[2025-04-20 00:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 21:00:06 [end_date_ymd] => 2025-04-20 00:00:06 [RateCDR] => 1 ) [2025-04-20 00:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-19 21:00:06' and `end` < '2025-04-20 00:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 00:00:19] Production.INFO: count ==920 [2025-04-20 00:00:19] Production.ERROR: pbx CDR StartTime 2025-04-19 21:00:06 - End Time 2025-04-20 00:00:06 [2025-04-20 00:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946459', 'tblTempUsageDetail_20' ) start [2025-04-20 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946459', 'tblTempUsageDetail_20' ) end [2025-04-20 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946459', 'tblTempVendorCDR_20' ) start [2025-04-20 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946459', 'tblTempVendorCDR_20' ) end [2025-04-20 00:00:20] Production.INFO: ProcessCDR(1,14946459,1,1,2) [2025-04-20 00:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946459', 'tblTempUsageDetail_20' ) start [2025-04-20 00:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946459', 'tblTempUsageDetail_20' ) end [2025-04-20 00:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 00:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 00:00:24] Production.INFO: ==19916== Releasing lock... [2025-04-20 00:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 00:00:24] Production.INFO: 35.75 MB #Memory Used# [2025-04-20 00:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 21:01:05 [end_date_ymd] => 2025-04-20 00:01:05 [RateCDR] => 1 ) [2025-04-20 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-19 21:01:05' and `end` < '2025-04-20 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-20 00:01:18] Production.INFO: count ==463 [2025-04-20 00:01:18] Production.ERROR: pbx CDR StartTime 2025-04-19 21:01:05 - End Time 2025-04-20 00:01:05 [2025-04-20 00:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946464', 'tblTempUsageDetail_20' ) start [2025-04-20 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946464', 'tblTempUsageDetail_20' ) end [2025-04-20 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946464', 'tblTempVendorCDR_20' ) start [2025-04-20 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946464', 'tblTempVendorCDR_20' ) end [2025-04-20 00:01:18] Production.INFO: ProcessCDR(1,14946464,1,1,2) [2025-04-20 00:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946464', 'tblTempUsageDetail_20' ) start [2025-04-20 00:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946464', 'tblTempUsageDetail_20' ) end [2025-04-20 00:01:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 00:01:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 00:01:24] Production.INFO: ==20011== Releasing lock... [2025-04-20 00:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 00:01:24] Production.INFO: 32.5 MB #Memory Used# [2025-04-20 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 21:02:05 [end_date_ymd] => 2025-04-20 00:02:05 [RateCDR] => 1 ) [2025-04-20 00:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-19 21:02:05' and `end` < '2025-04-20 00:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 00:02:20] Production.INFO: count ==462 [2025-04-20 00:02:20] Production.ERROR: pbx CDR StartTime 2025-04-19 21:02:05 - End Time 2025-04-20 00:02:05 [2025-04-20 00:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 00:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946469', 'tblTempUsageDetail_20' ) start [2025-04-20 00:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946469', 'tblTempUsageDetail_20' ) end [2025-04-20 00:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946469', 'tblTempVendorCDR_20' ) start [2025-04-20 00:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946469', 'tblTempVendorCDR_20' ) end [2025-04-20 00:02:20] Production.INFO: ProcessCDR(1,14946469,1,1,2) [2025-04-20 00:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946469', 'tblTempUsageDetail_20' ) start [2025-04-20 00:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946469', 'tblTempUsageDetail_20' ) end [2025-04-20 00:02:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 00:02:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 00:02:24] Production.INFO: ==20093== Releasing lock... [2025-04-20 00:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 00:02:24] Production.INFO: 32.25 MB #Memory Used# [2025-04-20 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 21:03:05 [end_date_ymd] => 2025-04-20 00:03:05 [RateCDR] => 1 ) [2025-04-20 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-19 21:03:05' and `end` < '2025-04-20 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-20 00:03:18] Production.INFO: count ==461 [2025-04-20 00:03:18] Production.ERROR: pbx CDR StartTime 2025-04-19 21:03:05 - End Time 2025-04-20 00:03:05 [2025-04-20 00:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946474', 'tblTempUsageDetail_20' ) start [2025-04-20 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946474', 'tblTempUsageDetail_20' ) end [2025-04-20 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946474', 'tblTempVendorCDR_20' ) start [2025-04-20 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946474', 'tblTempVendorCDR_20' ) end [2025-04-20 00:03:18] Production.INFO: ProcessCDR(1,14946474,1,1,2) [2025-04-20 00:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946474', 'tblTempUsageDetail_20' ) start [2025-04-20 00:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946474', 'tblTempUsageDetail_20' ) end [2025-04-20 00:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 00:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 00:03:21] Production.INFO: ==20169== Releasing lock... [2025-04-20 00:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 00:03:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-20 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 21:04:05 [end_date_ymd] => 2025-04-20 00:04:05 [RateCDR] => 1 ) [2025-04-20 00:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-19 21:04:05' and `end` < '2025-04-20 00:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 00:04:33] Production.INFO: count ==456 [2025-04-20 00:04:33] Production.ERROR: pbx CDR StartTime 2025-04-19 21:04:05 - End Time 2025-04-20 00:04:05 [2025-04-20 00:04:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 00:04:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946479', 'tblTempUsageDetail_20' ) start [2025-04-20 00:04:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946479', 'tblTempUsageDetail_20' ) end [2025-04-20 00:04:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946479', 'tblTempVendorCDR_20' ) start [2025-04-20 00:04:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946479', 'tblTempVendorCDR_20' ) end [2025-04-20 00:04:33] Production.INFO: ProcessCDR(1,14946479,1,1,2) [2025-04-20 00:04:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:04:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:04:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:04:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:04:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946479', 'tblTempUsageDetail_20' ) start [2025-04-20 00:04:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946479', 'tblTempUsageDetail_20' ) end [2025-04-20 00:04:36] Production.ERROR: pbx prc_insertCDR start [2025-04-20 00:04:36] Production.ERROR: pbx prc_insertCDR end [2025-04-20 00:04:36] Production.INFO: ==20247== Releasing lock... [2025-04-20 00:04:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 00:04:36] Production.INFO: 31.75 MB #Memory Used# [2025-04-20 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 21:05:05 [end_date_ymd] => 2025-04-20 00:05:05 [RateCDR] => 1 ) [2025-04-20 00:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-19 21:05:05' and `end` < '2025-04-20 00:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 00:05:29] Production.INFO: count ==453 [2025-04-20 00:05:29] Production.ERROR: pbx CDR StartTime 2025-04-19 21:05:05 - End Time 2025-04-20 00:05:05 [2025-04-20 00:05:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 00:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946484', 'tblTempUsageDetail_20' ) start [2025-04-20 00:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946484', 'tblTempUsageDetail_20' ) end [2025-04-20 00:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946484', 'tblTempVendorCDR_20' ) start [2025-04-20 00:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946484', 'tblTempVendorCDR_20' ) end [2025-04-20 00:05:29] Production.INFO: ProcessCDR(1,14946484,1,1,2) [2025-04-20 00:05:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:05:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:05:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:05:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:05:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946484', 'tblTempUsageDetail_20' ) start [2025-04-20 00:05:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946484', 'tblTempUsageDetail_20' ) end [2025-04-20 00:05:32] Production.ERROR: pbx prc_insertCDR start [2025-04-20 00:05:32] Production.ERROR: pbx prc_insertCDR end [2025-04-20 00:05:32] Production.INFO: ==20333== Releasing lock... [2025-04-20 00:05:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 00:05:32] Production.INFO: 32.25 MB #Memory Used# [2025-04-20 00:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 21:06:06 [end_date_ymd] => 2025-04-20 00:06:06 [RateCDR] => 1 ) [2025-04-20 00:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-19 21:06:06' and `end` < '2025-04-20 00:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 00:06:27] Production.INFO: count ==452 [2025-04-20 00:06:27] Production.ERROR: pbx CDR StartTime 2025-04-19 21:06:06 - End Time 2025-04-20 00:06:06 [2025-04-20 00:06:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 00:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946489', 'tblTempUsageDetail_20' ) start [2025-04-20 00:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946489', 'tblTempUsageDetail_20' ) end [2025-04-20 00:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946489', 'tblTempVendorCDR_20' ) start [2025-04-20 00:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946489', 'tblTempVendorCDR_20' ) end [2025-04-20 00:06:27] Production.INFO: ProcessCDR(1,14946489,1,1,2) [2025-04-20 00:06:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:06:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:06:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:06:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946489', 'tblTempUsageDetail_20' ) start [2025-04-20 00:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946489', 'tblTempUsageDetail_20' ) end [2025-04-20 00:06:31] Production.ERROR: pbx prc_insertCDR start [2025-04-20 00:06:31] Production.ERROR: pbx prc_insertCDR end [2025-04-20 00:06:31] Production.INFO: ==20452== Releasing lock... [2025-04-20 00:06:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 00:06:31] Production.INFO: 32.25 MB #Memory Used# [2025-04-20 00:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 21:07:06 [end_date_ymd] => 2025-04-20 00:07:06 [RateCDR] => 1 ) [2025-04-20 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-19 21:07:06' and `end` < '2025-04-20 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-20 00:07:23] Production.INFO: count ==449 [2025-04-20 00:07:23] Production.ERROR: pbx CDR StartTime 2025-04-19 21:07:06 - End Time 2025-04-20 00:07:06 [2025-04-20 00:07:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 00:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946494', 'tblTempUsageDetail_20' ) start [2025-04-20 00:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946494', 'tblTempUsageDetail_20' ) end [2025-04-20 00:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946494', 'tblTempVendorCDR_20' ) start [2025-04-20 00:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946494', 'tblTempVendorCDR_20' ) end [2025-04-20 00:07:23] Production.INFO: ProcessCDR(1,14946494,1,1,2) [2025-04-20 00:07:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946494', 'tblTempUsageDetail_20' ) start [2025-04-20 00:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946494', 'tblTempUsageDetail_20' ) end [2025-04-20 00:07:26] Production.ERROR: pbx prc_insertCDR start [2025-04-20 00:07:26] Production.ERROR: pbx prc_insertCDR end [2025-04-20 00:07:26] Production.INFO: ==20538== Releasing lock... [2025-04-20 00:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 00:07:26] Production.INFO: 32.5 MB #Memory Used# [2025-04-20 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 21:08:05 [end_date_ymd] => 2025-04-20 00:08:05 [RateCDR] => 1 ) [2025-04-20 00:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-19 21:08:05' and `end` < '2025-04-20 00:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 00:08:19] Production.INFO: count ==445 [2025-04-20 00:08:20] Production.ERROR: pbx CDR StartTime 2025-04-19 21:08:05 - End Time 2025-04-20 00:08:05 [2025-04-20 00:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 00:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946499', 'tblTempUsageDetail_20' ) start [2025-04-20 00:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946499', 'tblTempUsageDetail_20' ) end [2025-04-20 00:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946499', 'tblTempVendorCDR_20' ) start [2025-04-20 00:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946499', 'tblTempVendorCDR_20' ) end [2025-04-20 00:08:20] Production.INFO: ProcessCDR(1,14946499,1,1,2) [2025-04-20 00:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946499', 'tblTempUsageDetail_20' ) start [2025-04-20 00:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946499', 'tblTempUsageDetail_20' ) end [2025-04-20 00:08:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 00:08:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 00:08:23] Production.INFO: ==20620== Releasing lock... [2025-04-20 00:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 00:08:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-20 00:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 21:09:06 [end_date_ymd] => 2025-04-20 00:09:06 [RateCDR] => 1 ) [2025-04-20 00: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-19 21:09:06' and `end` < '2025-04-20 00: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-20 00:09:18] Production.INFO: count ==442 [2025-04-20 00:09:18] Production.ERROR: pbx CDR StartTime 2025-04-19 21:09:06 - End Time 2025-04-20 00:09:06 [2025-04-20 00:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946504', 'tblTempUsageDetail_20' ) start [2025-04-20 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946504', 'tblTempUsageDetail_20' ) end [2025-04-20 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946504', 'tblTempVendorCDR_20' ) start [2025-04-20 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946504', 'tblTempVendorCDR_20' ) end [2025-04-20 00:09:18] Production.INFO: ProcessCDR(1,14946504,1,1,2) [2025-04-20 00:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946504', 'tblTempUsageDetail_20' ) start [2025-04-20 00:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946504', 'tblTempUsageDetail_20' ) end [2025-04-20 00:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 00:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 00:09:22] Production.INFO: ==20695== Releasing lock... [2025-04-20 00:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 00:09:22] Production.INFO: 32 MB #Memory Used# [2025-04-20 00:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 21:10:06 [end_date_ymd] => 2025-04-20 00:10:06 [RateCDR] => 1 ) [2025-04-20 00:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-19 21:10:06' and `end` < '2025-04-20 00:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 00:10:19] Production.INFO: count ==450 [2025-04-20 00:10:19] Production.ERROR: pbx CDR StartTime 2025-04-19 21:10:06 - End Time 2025-04-20 00:10:06 [2025-04-20 00:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946510', 'tblTempUsageDetail_20' ) start [2025-04-20 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946510', 'tblTempUsageDetail_20' ) end [2025-04-20 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946510', 'tblTempVendorCDR_20' ) start [2025-04-20 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946510', 'tblTempVendorCDR_20' ) end [2025-04-20 00:10:19] Production.INFO: ProcessCDR(1,14946510,1,1,2) [2025-04-20 00:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946510', 'tblTempUsageDetail_20' ) start [2025-04-20 00:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946510', 'tblTempUsageDetail_20' ) end [2025-04-20 00:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 00:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 00:10:22] Production.INFO: ==20778== Releasing lock... [2025-04-20 00:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 00:10:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-20 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 21:11:05 [end_date_ymd] => 2025-04-20 00:11:05 [RateCDR] => 1 ) [2025-04-20 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-19 21:11:05' and `end` < '2025-04-20 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-20 00:11:18] Production.INFO: count ==458 [2025-04-20 00:11:18] Production.ERROR: pbx CDR StartTime 2025-04-19 21:11:05 - End Time 2025-04-20 00:11:05 [2025-04-20 00:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946515', 'tblTempUsageDetail_20' ) start [2025-04-20 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946515', 'tblTempUsageDetail_20' ) end [2025-04-20 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946515', 'tblTempVendorCDR_20' ) start [2025-04-20 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946515', 'tblTempVendorCDR_20' ) end [2025-04-20 00:11:18] Production.INFO: ProcessCDR(1,14946515,1,1,2) [2025-04-20 00:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946515', 'tblTempUsageDetail_20' ) start [2025-04-20 00:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946515', 'tblTempUsageDetail_20' ) end [2025-04-20 00:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 00:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 00:11:23] Production.INFO: ==20860== Releasing lock... [2025-04-20 00:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 00:11:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-20 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 21:12:05 [end_date_ymd] => 2025-04-20 00:12:05 [RateCDR] => 1 ) [2025-04-20 00:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-19 21:12:05' and `end` < '2025-04-20 00:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 00:12:18] Production.INFO: count ==455 [2025-04-20 00:12:18] Production.ERROR: pbx CDR StartTime 2025-04-19 21:12:05 - End Time 2025-04-20 00:12:05 [2025-04-20 00:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946520', 'tblTempUsageDetail_20' ) start [2025-04-20 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946520', 'tblTempUsageDetail_20' ) end [2025-04-20 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946520', 'tblTempVendorCDR_20' ) start [2025-04-20 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946520', 'tblTempVendorCDR_20' ) end [2025-04-20 00:12:18] Production.INFO: ProcessCDR(1,14946520,1,1,2) [2025-04-20 00:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946520', 'tblTempUsageDetail_20' ) start [2025-04-20 00:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946520', 'tblTempUsageDetail_20' ) end [2025-04-20 00:12:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 00:12:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 00:12:23] Production.INFO: ==20936== Releasing lock... [2025-04-20 00:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 00:12:23] Production.INFO: 32 MB #Memory Used# [2025-04-20 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 21:13:05 [end_date_ymd] => 2025-04-20 00:13:05 [RateCDR] => 1 ) [2025-04-20 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-19 21:13:05' and `end` < '2025-04-20 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-20 00:13:18] Production.INFO: count ==453 [2025-04-20 00:13:18] Production.ERROR: pbx CDR StartTime 2025-04-19 21:13:05 - End Time 2025-04-20 00:13:05 [2025-04-20 00:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946525', 'tblTempUsageDetail_20' ) start [2025-04-20 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946525', 'tblTempUsageDetail_20' ) end [2025-04-20 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946525', 'tblTempVendorCDR_20' ) start [2025-04-20 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946525', 'tblTempVendorCDR_20' ) end [2025-04-20 00:13:18] Production.INFO: ProcessCDR(1,14946525,1,1,2) [2025-04-20 00:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946525', 'tblTempUsageDetail_20' ) start [2025-04-20 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946525', 'tblTempUsageDetail_20' ) end [2025-04-20 00:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 00:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 00:13:21] Production.INFO: ==21012== Releasing lock... [2025-04-20 00:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 00:13:21] Production.INFO: 32 MB #Memory Used# [2025-04-20 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 21:14:04 [end_date_ymd] => 2025-04-20 00:14:04 [RateCDR] => 1 ) [2025-04-20 00:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-19 21:14:04' and `end` < '2025-04-20 00:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 00:14:17] Production.INFO: count ==451 [2025-04-20 00:14:17] Production.ERROR: pbx CDR StartTime 2025-04-19 21:14:04 - End Time 2025-04-20 00:14:04 [2025-04-20 00:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946530', 'tblTempUsageDetail_20' ) start [2025-04-20 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946530', 'tblTempUsageDetail_20' ) end [2025-04-20 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946530', 'tblTempVendorCDR_20' ) start [2025-04-20 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946530', 'tblTempVendorCDR_20' ) end [2025-04-20 00:14:17] Production.INFO: ProcessCDR(1,14946530,1,1,2) [2025-04-20 00:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946530', 'tblTempUsageDetail_20' ) start [2025-04-20 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946530', 'tblTempUsageDetail_20' ) end [2025-04-20 00:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 00:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 00:14:21] Production.INFO: ==21095== Releasing lock... [2025-04-20 00:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 00:14:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-20 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 21:15:05 [end_date_ymd] => 2025-04-20 00:15:05 [RateCDR] => 1 ) [2025-04-20 00:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-19 21:15:05' and `end` < '2025-04-20 00:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 00:15:18] Production.INFO: count ==450 [2025-04-20 00:15:18] Production.ERROR: pbx CDR StartTime 2025-04-19 21:15:05 - End Time 2025-04-20 00:15:05 [2025-04-20 00:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946535', 'tblTempUsageDetail_20' ) start [2025-04-20 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946535', 'tblTempUsageDetail_20' ) end [2025-04-20 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946535', 'tblTempVendorCDR_20' ) start [2025-04-20 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946535', 'tblTempVendorCDR_20' ) end [2025-04-20 00:15:18] Production.INFO: ProcessCDR(1,14946535,1,1,2) [2025-04-20 00:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946535', 'tblTempUsageDetail_20' ) start [2025-04-20 00:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946535', 'tblTempUsageDetail_20' ) end [2025-04-20 00:15:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 00:15:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 00:15:23] Production.INFO: ==21171== Releasing lock... [2025-04-20 00:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 00:15:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-20 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 21:16:05 [end_date_ymd] => 2025-04-20 00:16:05 [RateCDR] => 1 ) [2025-04-20 00:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-19 21:16:05' and `end` < '2025-04-20 00:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 00:16:18] Production.INFO: count ==445 [2025-04-20 00:16:18] Production.ERROR: pbx CDR StartTime 2025-04-19 21:16:05 - End Time 2025-04-20 00:16:05 [2025-04-20 00:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946540', 'tblTempUsageDetail_20' ) start [2025-04-20 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946540', 'tblTempUsageDetail_20' ) end [2025-04-20 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946540', 'tblTempVendorCDR_20' ) start [2025-04-20 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946540', 'tblTempVendorCDR_20' ) end [2025-04-20 00:16:18] Production.INFO: ProcessCDR(1,14946540,1,1,2) [2025-04-20 00:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946540', 'tblTempUsageDetail_20' ) start [2025-04-20 00:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946540', 'tblTempUsageDetail_20' ) end [2025-04-20 00:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 00:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 00:16:23] Production.INFO: ==21243== Releasing lock... [2025-04-20 00:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 00:16:23] Production.INFO: 31.75 MB #Memory Used# [2025-04-20 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 21:17:05 [end_date_ymd] => 2025-04-20 00:17:05 [RateCDR] => 1 ) [2025-04-20 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-19 21:17:05' and `end` < '2025-04-20 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-20 00:17:18] Production.INFO: count ==444 [2025-04-20 00:17:18] Production.ERROR: pbx CDR StartTime 2025-04-19 21:17:05 - End Time 2025-04-20 00:17:05 [2025-04-20 00:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946545', 'tblTempUsageDetail_20' ) start [2025-04-20 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946545', 'tblTempUsageDetail_20' ) end [2025-04-20 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946545', 'tblTempVendorCDR_20' ) start [2025-04-20 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946545', 'tblTempVendorCDR_20' ) end [2025-04-20 00:17:18] Production.INFO: ProcessCDR(1,14946545,1,1,2) [2025-04-20 00:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946545', 'tblTempUsageDetail_20' ) start [2025-04-20 00:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946545', 'tblTempUsageDetail_20' ) end [2025-04-20 00:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 00:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 00:17:22] Production.INFO: ==21325== Releasing lock... [2025-04-20 00:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 00:17:22] Production.INFO: 32 MB #Memory Used# [2025-04-20 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 21:18:05 [end_date_ymd] => 2025-04-20 00:18:05 [RateCDR] => 1 ) [2025-04-20 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-19 21:18:05' and `end` < '2025-04-20 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-20 00:18:18] Production.INFO: count ==441 [2025-04-20 00:18:18] Production.ERROR: pbx CDR StartTime 2025-04-19 21:18:05 - End Time 2025-04-20 00:18:05 [2025-04-20 00:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946550', 'tblTempUsageDetail_20' ) start [2025-04-20 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946550', 'tblTempUsageDetail_20' ) end [2025-04-20 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946550', 'tblTempVendorCDR_20' ) start [2025-04-20 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946550', 'tblTempVendorCDR_20' ) end [2025-04-20 00:18:18] Production.INFO: ProcessCDR(1,14946550,1,1,2) [2025-04-20 00:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946550', 'tblTempUsageDetail_20' ) start [2025-04-20 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946550', 'tblTempUsageDetail_20' ) end [2025-04-20 00:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 00:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 00:18:22] Production.INFO: ==21397== Releasing lock... [2025-04-20 00:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 00:18:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-20 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 21:19:05 [end_date_ymd] => 2025-04-20 00:19:05 [RateCDR] => 1 ) [2025-04-20 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-19 21:19:05' and `end` < '2025-04-20 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-20 00:19:17] Production.INFO: count ==443 [2025-04-20 00:19:17] Production.ERROR: pbx CDR StartTime 2025-04-19 21:19:05 - End Time 2025-04-20 00:19:05 [2025-04-20 00:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946555', 'tblTempUsageDetail_20' ) start [2025-04-20 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946555', 'tblTempUsageDetail_20' ) end [2025-04-20 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946555', 'tblTempVendorCDR_20' ) start [2025-04-20 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946555', 'tblTempVendorCDR_20' ) end [2025-04-20 00:19:17] Production.INFO: ProcessCDR(1,14946555,1,1,2) [2025-04-20 00:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946555', 'tblTempUsageDetail_20' ) start [2025-04-20 00:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946555', 'tblTempUsageDetail_20' ) end [2025-04-20 00:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 00:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 00:19:22] Production.INFO: ==21481== Releasing lock... [2025-04-20 00:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 00:19:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-20 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 21:20:06 [end_date_ymd] => 2025-04-20 00:20:06 [RateCDR] => 1 ) [2025-04-20 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-19 21:20:06' and `end` < '2025-04-20 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-20 00:20:18] Production.INFO: count ==455 [2025-04-20 00:20:18] Production.ERROR: pbx CDR StartTime 2025-04-19 21:20:06 - End Time 2025-04-20 00:20:06 [2025-04-20 00:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946560', 'tblTempUsageDetail_20' ) start [2025-04-20 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946560', 'tblTempUsageDetail_20' ) end [2025-04-20 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946560', 'tblTempVendorCDR_20' ) start [2025-04-20 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946560', 'tblTempVendorCDR_20' ) end [2025-04-20 00:20:18] Production.INFO: ProcessCDR(1,14946560,1,1,2) [2025-04-20 00:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946560', 'tblTempUsageDetail_20' ) start [2025-04-20 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946560', 'tblTempUsageDetail_20' ) end [2025-04-20 00:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 00:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 00:20:22] Production.INFO: ==21571== Releasing lock... [2025-04-20 00:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 00:20:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-20 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 21:21:05 [end_date_ymd] => 2025-04-20 00:21:05 [RateCDR] => 1 ) [2025-04-20 00:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-19 21:21:05' and `end` < '2025-04-20 00:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 00:21:17] Production.INFO: count ==466 [2025-04-20 00:21:17] Production.ERROR: pbx CDR StartTime 2025-04-19 21:21:05 - End Time 2025-04-20 00:21:05 [2025-04-20 00:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946566', 'tblTempUsageDetail_20' ) start [2025-04-20 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946566', 'tblTempUsageDetail_20' ) end [2025-04-20 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946566', 'tblTempVendorCDR_20' ) start [2025-04-20 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946566', 'tblTempVendorCDR_20' ) end [2025-04-20 00:21:17] Production.INFO: ProcessCDR(1,14946566,1,1,2) [2025-04-20 00:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946566', 'tblTempUsageDetail_20' ) start [2025-04-20 00:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946566', 'tblTempUsageDetail_20' ) end [2025-04-20 00:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 00:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 00:21:22] Production.INFO: ==21649== Releasing lock... [2025-04-20 00:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 00:21:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-20 00:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 21:22:06 [end_date_ymd] => 2025-04-20 00:22:06 [RateCDR] => 1 ) [2025-04-20 00: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-19 21:22:06' and `end` < '2025-04-20 00: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-20 00:22:18] Production.INFO: count ==466 [2025-04-20 00:22:19] Production.ERROR: pbx CDR StartTime 2025-04-19 21:22:06 - End Time 2025-04-20 00:22:06 [2025-04-20 00:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 00:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946571', 'tblTempUsageDetail_20' ) start [2025-04-20 00:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946571', 'tblTempUsageDetail_20' ) end [2025-04-20 00:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946571', 'tblTempVendorCDR_20' ) start [2025-04-20 00:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946571', 'tblTempVendorCDR_20' ) end [2025-04-20 00:22:19] Production.INFO: ProcessCDR(1,14946571,1,1,2) [2025-04-20 00:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946571', 'tblTempUsageDetail_20' ) start [2025-04-20 00:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946571', 'tblTempUsageDetail_20' ) end [2025-04-20 00:22:26] Production.ERROR: pbx prc_insertCDR start [2025-04-20 00:22:26] Production.ERROR: pbx prc_insertCDR end [2025-04-20 00:22:26] Production.INFO: ==21767== Releasing lock... [2025-04-20 00:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 00:22:26] Production.INFO: 32.25 MB #Memory Used# [2025-04-20 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 21:23:05 [end_date_ymd] => 2025-04-20 00:23:05 [RateCDR] => 1 ) [2025-04-20 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-19 21:23:05' and `end` < '2025-04-20 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-20 00:23:17] Production.INFO: count ==468 [2025-04-20 00:23:18] Production.ERROR: pbx CDR StartTime 2025-04-19 21:23:05 - End Time 2025-04-20 00:23:05 [2025-04-20 00:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946576', 'tblTempUsageDetail_20' ) start [2025-04-20 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946576', 'tblTempUsageDetail_20' ) end [2025-04-20 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946576', 'tblTempVendorCDR_20' ) start [2025-04-20 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946576', 'tblTempVendorCDR_20' ) end [2025-04-20 00:23:18] Production.INFO: ProcessCDR(1,14946576,1,1,2) [2025-04-20 00:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946576', 'tblTempUsageDetail_20' ) start [2025-04-20 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946576', 'tblTempUsageDetail_20' ) end [2025-04-20 00:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 00:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 00:23:21] Production.INFO: ==21848== Releasing lock... [2025-04-20 00:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 00:23:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-20 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 21:24:05 [end_date_ymd] => 2025-04-20 00:24:05 [RateCDR] => 1 ) [2025-04-20 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-19 21:24:05' and `end` < '2025-04-20 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-20 00:24:18] Production.INFO: count ==468 [2025-04-20 00:24:18] Production.ERROR: pbx CDR StartTime 2025-04-19 21:24:05 - End Time 2025-04-20 00:24:05 [2025-04-20 00:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946581', 'tblTempUsageDetail_20' ) start [2025-04-20 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946581', 'tblTempUsageDetail_20' ) end [2025-04-20 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946581', 'tblTempVendorCDR_20' ) start [2025-04-20 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946581', 'tblTempVendorCDR_20' ) end [2025-04-20 00:24:18] Production.INFO: ProcessCDR(1,14946581,1,1,2) [2025-04-20 00:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946581', 'tblTempUsageDetail_20' ) start [2025-04-20 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946581', 'tblTempUsageDetail_20' ) end [2025-04-20 00:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 00:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 00:24:21] Production.INFO: ==21926== Releasing lock... [2025-04-20 00:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 00:24:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-20 00:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 21:25:06 [end_date_ymd] => 2025-04-20 00:25:06 [RateCDR] => 1 ) [2025-04-20 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-19 21:25:06' and `end` < '2025-04-20 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-20 00:25:19] Production.INFO: count ==468 [2025-04-20 00:25:19] Production.ERROR: pbx CDR StartTime 2025-04-19 21:25:06 - End Time 2025-04-20 00:25:06 [2025-04-20 00:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946586', 'tblTempUsageDetail_20' ) start [2025-04-20 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946586', 'tblTempUsageDetail_20' ) end [2025-04-20 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946586', 'tblTempVendorCDR_20' ) start [2025-04-20 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946586', 'tblTempVendorCDR_20' ) end [2025-04-20 00:25:19] Production.INFO: ProcessCDR(1,14946586,1,1,2) [2025-04-20 00:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946586', 'tblTempUsageDetail_20' ) start [2025-04-20 00:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946586', 'tblTempUsageDetail_20' ) end [2025-04-20 00:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 00:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 00:25:22] Production.INFO: ==22008== Releasing lock... [2025-04-20 00:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 00:25:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-20 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 21:26:05 [end_date_ymd] => 2025-04-20 00:26:05 [RateCDR] => 1 ) [2025-04-20 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-19 21:26:05' and `end` < '2025-04-20 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-20 00:26:18] Production.INFO: count ==469 [2025-04-20 00:26:18] Production.ERROR: pbx CDR StartTime 2025-04-19 21:26:05 - End Time 2025-04-20 00:26:05 [2025-04-20 00:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946591', 'tblTempUsageDetail_20' ) start [2025-04-20 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946591', 'tblTempUsageDetail_20' ) end [2025-04-20 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946591', 'tblTempVendorCDR_20' ) start [2025-04-20 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946591', 'tblTempVendorCDR_20' ) end [2025-04-20 00:26:18] Production.INFO: ProcessCDR(1,14946591,1,1,2) [2025-04-20 00:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946591', 'tblTempUsageDetail_20' ) start [2025-04-20 00:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946591', 'tblTempUsageDetail_20' ) end [2025-04-20 00:26:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 00:26:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 00:26:23] Production.INFO: ==22088== Releasing lock... [2025-04-20 00:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 00:26:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-20 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 21:27:05 [end_date_ymd] => 2025-04-20 00:27:05 [RateCDR] => 1 ) [2025-04-20 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-19 21:27:05' and `end` < '2025-04-20 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-20 00:27:18] Production.INFO: count ==471 [2025-04-20 00:27:18] Production.ERROR: pbx CDR StartTime 2025-04-19 21:27:05 - End Time 2025-04-20 00:27:05 [2025-04-20 00:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946596', 'tblTempUsageDetail_20' ) start [2025-04-20 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946596', 'tblTempUsageDetail_20' ) end [2025-04-20 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946596', 'tblTempVendorCDR_20' ) start [2025-04-20 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946596', 'tblTempVendorCDR_20' ) end [2025-04-20 00:27:18] Production.INFO: ProcessCDR(1,14946596,1,1,2) [2025-04-20 00:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946596', 'tblTempUsageDetail_20' ) start [2025-04-20 00:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946596', 'tblTempUsageDetail_20' ) end [2025-04-20 00:27:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 00:27:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 00:27:23] Production.INFO: ==22167== Releasing lock... [2025-04-20 00:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 00:27:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-20 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 21:28:05 [end_date_ymd] => 2025-04-20 00:28:05 [RateCDR] => 1 ) [2025-04-20 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-19 21:28:05' and `end` < '2025-04-20 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-20 00:28:18] Production.INFO: count ==470 [2025-04-20 00:28:18] Production.ERROR: pbx CDR StartTime 2025-04-19 21:28:05 - End Time 2025-04-20 00:28:05 [2025-04-20 00:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946601', 'tblTempUsageDetail_20' ) start [2025-04-20 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946601', 'tblTempUsageDetail_20' ) end [2025-04-20 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946601', 'tblTempVendorCDR_20' ) start [2025-04-20 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946601', 'tblTempVendorCDR_20' ) end [2025-04-20 00:28:18] Production.INFO: ProcessCDR(1,14946601,1,1,2) [2025-04-20 00:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946601', 'tblTempUsageDetail_20' ) start [2025-04-20 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946601', 'tblTempUsageDetail_20' ) end [2025-04-20 00:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 00:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 00:28:21] Production.INFO: ==22246== Releasing lock... [2025-04-20 00:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 00:28:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-20 00:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 21:29:06 [end_date_ymd] => 2025-04-20 00:29:06 [RateCDR] => 1 ) [2025-04-20 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-19 21:29:06' and `end` < '2025-04-20 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-20 00:29:18] Production.INFO: count ==468 [2025-04-20 00:29:18] Production.ERROR: pbx CDR StartTime 2025-04-19 21:29:06 - End Time 2025-04-20 00:29:06 [2025-04-20 00:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946606', 'tblTempUsageDetail_20' ) start [2025-04-20 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946606', 'tblTempUsageDetail_20' ) end [2025-04-20 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946606', 'tblTempVendorCDR_20' ) start [2025-04-20 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946606', 'tblTempVendorCDR_20' ) end [2025-04-20 00:29:18] Production.INFO: ProcessCDR(1,14946606,1,1,2) [2025-04-20 00:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946606', 'tblTempUsageDetail_20' ) start [2025-04-20 00:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946606', 'tblTempUsageDetail_20' ) end [2025-04-20 00:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 00:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 00:29:22] Production.INFO: ==22354== Releasing lock... [2025-04-20 00:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 00:29:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-20 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 21:30:06 [end_date_ymd] => 2025-04-20 00:30:06 [RateCDR] => 1 ) [2025-04-20 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-19 21:30:06' and `end` < '2025-04-20 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-20 00:30:18] Production.INFO: count ==478 [2025-04-20 00:30:19] Production.ERROR: pbx CDR StartTime 2025-04-19 21:30:06 - End Time 2025-04-20 00:30:06 [2025-04-20 00:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946612', 'tblTempUsageDetail_20' ) start [2025-04-20 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946612', 'tblTempUsageDetail_20' ) end [2025-04-20 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946612', 'tblTempVendorCDR_20' ) start [2025-04-20 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946612', 'tblTempVendorCDR_20' ) end [2025-04-20 00:30:19] Production.INFO: ProcessCDR(1,14946612,1,1,2) [2025-04-20 00:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946612', 'tblTempUsageDetail_20' ) start [2025-04-20 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946612', 'tblTempUsageDetail_20' ) end [2025-04-20 00:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 00:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 00:30:22] Production.INFO: ==22456== Releasing lock... [2025-04-20 00:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 00:30:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-20 00:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 21:31:06 [end_date_ymd] => 2025-04-20 00:31:06 [RateCDR] => 1 ) [2025-04-20 00: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-19 21:31:06' and `end` < '2025-04-20 00: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-20 00:31:18] Production.INFO: count ==479 [2025-04-20 00:31:18] Production.ERROR: pbx CDR StartTime 2025-04-19 21:31:06 - End Time 2025-04-20 00:31:06 [2025-04-20 00:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946617', 'tblTempUsageDetail_20' ) start [2025-04-20 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946617', 'tblTempUsageDetail_20' ) end [2025-04-20 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946617', 'tblTempVendorCDR_20' ) start [2025-04-20 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946617', 'tblTempVendorCDR_20' ) end [2025-04-20 00:31:18] Production.INFO: ProcessCDR(1,14946617,1,1,2) [2025-04-20 00:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946617', 'tblTempUsageDetail_20' ) start [2025-04-20 00:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946617', 'tblTempUsageDetail_20' ) end [2025-04-20 00:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 00:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 00:31:22] Production.INFO: ==22564== Releasing lock... [2025-04-20 00:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 00:31:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-20 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 21:32:05 [end_date_ymd] => 2025-04-20 00:32:05 [RateCDR] => 1 ) [2025-04-20 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-19 21:32:05' and `end` < '2025-04-20 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-20 00:32:18] Production.INFO: count ==473 [2025-04-20 00:32:18] Production.ERROR: pbx CDR StartTime 2025-04-19 21:32:05 - End Time 2025-04-20 00:32:05 [2025-04-20 00:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946622', 'tblTempUsageDetail_20' ) start [2025-04-20 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946622', 'tblTempUsageDetail_20' ) end [2025-04-20 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946622', 'tblTempVendorCDR_20' ) start [2025-04-20 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946622', 'tblTempVendorCDR_20' ) end [2025-04-20 00:32:18] Production.INFO: ProcessCDR(1,14946622,1,1,2) [2025-04-20 00:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946622', 'tblTempUsageDetail_20' ) start [2025-04-20 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946622', 'tblTempUsageDetail_20' ) end [2025-04-20 00:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 00:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 00:32:21] Production.INFO: ==22661== Releasing lock... [2025-04-20 00:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 00:32:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-20 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 21:33:05 [end_date_ymd] => 2025-04-20 00:33:05 [RateCDR] => 1 ) [2025-04-20 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-19 21:33:05' and `end` < '2025-04-20 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-20 00:33:18] Production.INFO: count ==470 [2025-04-20 00:33:18] Production.ERROR: pbx CDR StartTime 2025-04-19 21:33:05 - End Time 2025-04-20 00:33:05 [2025-04-20 00:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946627', 'tblTempUsageDetail_20' ) start [2025-04-20 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946627', 'tblTempUsageDetail_20' ) end [2025-04-20 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946627', 'tblTempVendorCDR_20' ) start [2025-04-20 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946627', 'tblTempVendorCDR_20' ) end [2025-04-20 00:33:18] Production.INFO: ProcessCDR(1,14946627,1,1,2) [2025-04-20 00:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946627', 'tblTempUsageDetail_20' ) start [2025-04-20 00:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946627', 'tblTempUsageDetail_20' ) end [2025-04-20 00:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 00:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 00:33:22] Production.INFO: ==22767== Releasing lock... [2025-04-20 00:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 00:33:22] Production.INFO: 32 MB #Memory Used# [2025-04-20 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 21:34:05 [end_date_ymd] => 2025-04-20 00:34:05 [RateCDR] => 1 ) [2025-04-20 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-19 21:34:05' and `end` < '2025-04-20 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-20 00:34:18] Production.INFO: count ==469 [2025-04-20 00:34:18] Production.ERROR: pbx CDR StartTime 2025-04-19 21:34:05 - End Time 2025-04-20 00:34:05 [2025-04-20 00:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946632', 'tblTempUsageDetail_20' ) start [2025-04-20 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946632', 'tblTempUsageDetail_20' ) end [2025-04-20 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946632', 'tblTempVendorCDR_20' ) start [2025-04-20 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946632', 'tblTempVendorCDR_20' ) end [2025-04-20 00:34:18] Production.INFO: ProcessCDR(1,14946632,1,1,2) [2025-04-20 00:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946632', 'tblTempUsageDetail_20' ) start [2025-04-20 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946632', 'tblTempUsageDetail_20' ) end [2025-04-20 00:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 00:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 00:34:22] Production.INFO: ==22871== Releasing lock... [2025-04-20 00:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 00:34:22] Production.INFO: 32 MB #Memory Used# [2025-04-20 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 21:35:05 [end_date_ymd] => 2025-04-20 00:35:05 [RateCDR] => 1 ) [2025-04-20 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-19 21:35:05' and `end` < '2025-04-20 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-20 00:35:18] Production.INFO: count ==470 [2025-04-20 00:35:18] Production.ERROR: pbx CDR StartTime 2025-04-19 21:35:05 - End Time 2025-04-20 00:35:05 [2025-04-20 00:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946637', 'tblTempUsageDetail_20' ) start [2025-04-20 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946637', 'tblTempUsageDetail_20' ) end [2025-04-20 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946637', 'tblTempVendorCDR_20' ) start [2025-04-20 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946637', 'tblTempVendorCDR_20' ) end [2025-04-20 00:35:18] Production.INFO: ProcessCDR(1,14946637,1,1,2) [2025-04-20 00:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946637', 'tblTempUsageDetail_20' ) start [2025-04-20 00:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946637', 'tblTempUsageDetail_20' ) end [2025-04-20 00:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 00:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 00:35:23] Production.INFO: ==22968== Releasing lock... [2025-04-20 00:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 00:35:23] Production.INFO: 32 MB #Memory Used# [2025-04-20 00:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 21:36:06 [end_date_ymd] => 2025-04-20 00:36:06 [RateCDR] => 1 ) [2025-04-20 00: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-19 21:36:06' and `end` < '2025-04-20 00: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-20 00:36:19] Production.INFO: count ==471 [2025-04-20 00:36:19] Production.ERROR: pbx CDR StartTime 2025-04-19 21:36:06 - End Time 2025-04-20 00:36:06 [2025-04-20 00:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 00:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946642', 'tblTempUsageDetail_20' ) start [2025-04-20 00:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946642', 'tblTempUsageDetail_20' ) end [2025-04-20 00:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946642', 'tblTempVendorCDR_20' ) start [2025-04-20 00:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946642', 'tblTempVendorCDR_20' ) end [2025-04-20 00:36:19] Production.INFO: ProcessCDR(1,14946642,1,1,2) [2025-04-20 00:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946642', 'tblTempUsageDetail_20' ) start [2025-04-20 00:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946642', 'tblTempUsageDetail_20' ) end [2025-04-20 00:36:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 00:36:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 00:36:24] Production.INFO: ==23055== Releasing lock... [2025-04-20 00:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 00:36:24] Production.INFO: 32 MB #Memory Used# [2025-04-20 00:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 21:37:06 [end_date_ymd] => 2025-04-20 00:37:06 [RateCDR] => 1 ) [2025-04-20 00: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-19 21:37:06' and `end` < '2025-04-20 00: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-20 00:37:18] Production.INFO: count ==469 [2025-04-20 00:37:19] Production.ERROR: pbx CDR StartTime 2025-04-19 21:37:06 - End Time 2025-04-20 00:37:06 [2025-04-20 00:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 00:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946647', 'tblTempUsageDetail_20' ) start [2025-04-20 00:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946647', 'tblTempUsageDetail_20' ) end [2025-04-20 00:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946647', 'tblTempVendorCDR_20' ) start [2025-04-20 00:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946647', 'tblTempVendorCDR_20' ) end [2025-04-20 00:37:19] Production.INFO: ProcessCDR(1,14946647,1,1,2) [2025-04-20 00:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946647', 'tblTempUsageDetail_20' ) start [2025-04-20 00:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946647', 'tblTempUsageDetail_20' ) end [2025-04-20 00:37:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 00:37:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 00:37:24] Production.INFO: ==23170== Releasing lock... [2025-04-20 00:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 00:37:24] Production.INFO: 32 MB #Memory Used# [2025-04-20 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 21:38:05 [end_date_ymd] => 2025-04-20 00:38:05 [RateCDR] => 1 ) [2025-04-20 00:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-19 21:38:05' and `end` < '2025-04-20 00:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 00:38:18] Production.INFO: count ==471 [2025-04-20 00:38:18] Production.ERROR: pbx CDR StartTime 2025-04-19 21:38:05 - End Time 2025-04-20 00:38:05 [2025-04-20 00:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946652', 'tblTempUsageDetail_20' ) start [2025-04-20 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946652', 'tblTempUsageDetail_20' ) end [2025-04-20 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946652', 'tblTempVendorCDR_20' ) start [2025-04-20 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946652', 'tblTempVendorCDR_20' ) end [2025-04-20 00:38:18] Production.INFO: ProcessCDR(1,14946652,1,1,2) [2025-04-20 00:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946652', 'tblTempUsageDetail_20' ) start [2025-04-20 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946652', 'tblTempUsageDetail_20' ) end [2025-04-20 00:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 00:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 00:38:22] Production.INFO: ==23249== Releasing lock... [2025-04-20 00:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 00:38:22] Production.INFO: 32 MB #Memory Used# [2025-04-20 00:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 21:39:06 [end_date_ymd] => 2025-04-20 00:39:06 [RateCDR] => 1 ) [2025-04-20 00: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-19 21:39:06' and `end` < '2025-04-20 00: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-20 00:39:18] Production.INFO: count ==470 [2025-04-20 00:39:18] Production.ERROR: pbx CDR StartTime 2025-04-19 21:39:06 - End Time 2025-04-20 00:39:06 [2025-04-20 00:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946657', 'tblTempUsageDetail_20' ) start [2025-04-20 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946657', 'tblTempUsageDetail_20' ) end [2025-04-20 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946657', 'tblTempVendorCDR_20' ) start [2025-04-20 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946657', 'tblTempVendorCDR_20' ) end [2025-04-20 00:39:19] Production.INFO: ProcessCDR(1,14946657,1,1,2) [2025-04-20 00:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946657', 'tblTempUsageDetail_20' ) start [2025-04-20 00:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946657', 'tblTempUsageDetail_20' ) end [2025-04-20 00:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 00:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 00:39:22] Production.INFO: ==23325== Releasing lock... [2025-04-20 00:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 00:39:22] Production.INFO: 32 MB #Memory Used# [2025-04-20 00:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 21:40:05 [end_date_ymd] => 2025-04-20 00:40:05 [RateCDR] => 1 ) [2025-04-20 00: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-19 21:40:05' and `end` < '2025-04-20 00: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-20 00:40:18] Production.INFO: count ==478 [2025-04-20 00:40:18] Production.ERROR: pbx CDR StartTime 2025-04-19 21:40:05 - End Time 2025-04-20 00:40:05 [2025-04-20 00:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946663', 'tblTempUsageDetail_20' ) start [2025-04-20 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946663', 'tblTempUsageDetail_20' ) end [2025-04-20 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946663', 'tblTempVendorCDR_20' ) start [2025-04-20 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946663', 'tblTempVendorCDR_20' ) end [2025-04-20 00:40:18] Production.INFO: ProcessCDR(1,14946663,1,1,2) [2025-04-20 00:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946663', 'tblTempUsageDetail_20' ) start [2025-04-20 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946663', 'tblTempUsageDetail_20' ) end [2025-04-20 00:40:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 00:40:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 00:40:21] Production.INFO: ==23400== Releasing lock... [2025-04-20 00:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 00:40:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-20 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 21:41:05 [end_date_ymd] => 2025-04-20 00:41:05 [RateCDR] => 1 ) [2025-04-20 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-19 21:41:05' and `end` < '2025-04-20 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-20 00:41:18] Production.INFO: count ==474 [2025-04-20 00:41:18] Production.ERROR: pbx CDR StartTime 2025-04-19 21:41:05 - End Time 2025-04-20 00:41:05 [2025-04-20 00:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946668', 'tblTempUsageDetail_20' ) start [2025-04-20 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946668', 'tblTempUsageDetail_20' ) end [2025-04-20 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946668', 'tblTempVendorCDR_20' ) start [2025-04-20 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946668', 'tblTempVendorCDR_20' ) end [2025-04-20 00:41:18] Production.INFO: ProcessCDR(1,14946668,1,1,2) [2025-04-20 00:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946668', 'tblTempUsageDetail_20' ) start [2025-04-20 00:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946668', 'tblTempUsageDetail_20' ) end [2025-04-20 00:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 00:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 00:41:22] Production.INFO: ==23480== Releasing lock... [2025-04-20 00:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 00:41:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-20 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 21:42:05 [end_date_ymd] => 2025-04-20 00:42:05 [RateCDR] => 1 ) [2025-04-20 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-19 21:42:05' and `end` < '2025-04-20 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-20 00:42:18] Production.INFO: count ==476 [2025-04-20 00:42:18] Production.ERROR: pbx CDR StartTime 2025-04-19 21:42:05 - End Time 2025-04-20 00:42:05 [2025-04-20 00:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946673', 'tblTempUsageDetail_20' ) start [2025-04-20 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946673', 'tblTempUsageDetail_20' ) end [2025-04-20 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946673', 'tblTempVendorCDR_20' ) start [2025-04-20 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946673', 'tblTempVendorCDR_20' ) end [2025-04-20 00:42:18] Production.INFO: ProcessCDR(1,14946673,1,1,2) [2025-04-20 00:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946673', 'tblTempUsageDetail_20' ) start [2025-04-20 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946673', 'tblTempUsageDetail_20' ) end [2025-04-20 00:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 00:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 00:42:21] Production.INFO: ==23552== Releasing lock... [2025-04-20 00:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 00:42:21] Production.INFO: 32 MB #Memory Used# [2025-04-20 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 21:43:05 [end_date_ymd] => 2025-04-20 00:43:05 [RateCDR] => 1 ) [2025-04-20 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-19 21:43:05' and `end` < '2025-04-20 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-20 00:43:18] Production.INFO: count ==475 [2025-04-20 00:43:18] Production.ERROR: pbx CDR StartTime 2025-04-19 21:43:05 - End Time 2025-04-20 00:43:05 [2025-04-20 00:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946678', 'tblTempUsageDetail_20' ) start [2025-04-20 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946678', 'tblTempUsageDetail_20' ) end [2025-04-20 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946678', 'tblTempVendorCDR_20' ) start [2025-04-20 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946678', 'tblTempVendorCDR_20' ) end [2025-04-20 00:43:18] Production.INFO: ProcessCDR(1,14946678,1,1,2) [2025-04-20 00:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946678', 'tblTempUsageDetail_20' ) start [2025-04-20 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946678', 'tblTempUsageDetail_20' ) end [2025-04-20 00:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 00:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 00:43:21] Production.INFO: ==23631== Releasing lock... [2025-04-20 00:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 00:43:21] Production.INFO: 32 MB #Memory Used# [2025-04-20 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 21:44:05 [end_date_ymd] => 2025-04-20 00:44:05 [RateCDR] => 1 ) [2025-04-20 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-19 21:44:05' and `end` < '2025-04-20 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-20 00:44:18] Production.INFO: count ==474 [2025-04-20 00:44:18] Production.ERROR: pbx CDR StartTime 2025-04-19 21:44:05 - End Time 2025-04-20 00:44:05 [2025-04-20 00:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946683', 'tblTempUsageDetail_20' ) start [2025-04-20 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946683', 'tblTempUsageDetail_20' ) end [2025-04-20 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946683', 'tblTempVendorCDR_20' ) start [2025-04-20 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946683', 'tblTempVendorCDR_20' ) end [2025-04-20 00:44:18] Production.INFO: ProcessCDR(1,14946683,1,1,2) [2025-04-20 00:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946683', 'tblTempUsageDetail_20' ) start [2025-04-20 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946683', 'tblTempUsageDetail_20' ) end [2025-04-20 00:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 00:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 00:44:21] Production.INFO: ==23704== Releasing lock... [2025-04-20 00:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 00:44:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-20 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 21:45:05 [end_date_ymd] => 2025-04-20 00:45:05 [RateCDR] => 1 ) [2025-04-20 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-19 21:45:05' and `end` < '2025-04-20 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-20 00:45:18] Production.INFO: count ==470 [2025-04-20 00:45:18] Production.ERROR: pbx CDR StartTime 2025-04-19 21:45:05 - End Time 2025-04-20 00:45:05 [2025-04-20 00:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946688', 'tblTempUsageDetail_20' ) start [2025-04-20 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946688', 'tblTempUsageDetail_20' ) end [2025-04-20 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946688', 'tblTempVendorCDR_20' ) start [2025-04-20 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946688', 'tblTempVendorCDR_20' ) end [2025-04-20 00:45:18] Production.INFO: ProcessCDR(1,14946688,1,1,2) [2025-04-20 00:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946688', 'tblTempUsageDetail_20' ) start [2025-04-20 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946688', 'tblTempUsageDetail_20' ) end [2025-04-20 00:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 00:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 00:45:21] Production.INFO: ==23781== Releasing lock... [2025-04-20 00:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 00:45:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-20 00:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 21:46:06 [end_date_ymd] => 2025-04-20 00:46:06 [RateCDR] => 1 ) [2025-04-20 00: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-19 21:46:06' and `end` < '2025-04-20 00: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-20 00:46:18] Production.INFO: count ==468 [2025-04-20 00:46:19] Production.ERROR: pbx CDR StartTime 2025-04-19 21:46:06 - End Time 2025-04-20 00:46:06 [2025-04-20 00:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 00:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946693', 'tblTempUsageDetail_20' ) start [2025-04-20 00:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946693', 'tblTempUsageDetail_20' ) end [2025-04-20 00:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946693', 'tblTempVendorCDR_20' ) start [2025-04-20 00:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946693', 'tblTempVendorCDR_20' ) end [2025-04-20 00:46:19] Production.INFO: ProcessCDR(1,14946693,1,1,2) [2025-04-20 00:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946693', 'tblTempUsageDetail_20' ) start [2025-04-20 00:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946693', 'tblTempUsageDetail_20' ) end [2025-04-20 00:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 00:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 00:46:22] Production.INFO: ==23853== Releasing lock... [2025-04-20 00:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 00:46:22] Production.INFO: 32 MB #Memory Used# [2025-04-20 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 21:47:05 [end_date_ymd] => 2025-04-20 00:47:05 [RateCDR] => 1 ) [2025-04-20 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-19 21:47:05' and `end` < '2025-04-20 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-20 00:47:18] Production.INFO: count ==467 [2025-04-20 00:47:18] Production.ERROR: pbx CDR StartTime 2025-04-19 21:47:05 - End Time 2025-04-20 00:47:05 [2025-04-20 00:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946698', 'tblTempUsageDetail_20' ) start [2025-04-20 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946698', 'tblTempUsageDetail_20' ) end [2025-04-20 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946698', 'tblTempVendorCDR_20' ) start [2025-04-20 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946698', 'tblTempVendorCDR_20' ) end [2025-04-20 00:47:18] Production.INFO: ProcessCDR(1,14946698,1,1,2) [2025-04-20 00:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946698', 'tblTempUsageDetail_20' ) start [2025-04-20 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946698', 'tblTempUsageDetail_20' ) end [2025-04-20 00:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 00:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 00:47:21] Production.INFO: ==23931== Releasing lock... [2025-04-20 00:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 00:47:21] Production.INFO: 32 MB #Memory Used# [2025-04-20 00:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 21:48:06 [end_date_ymd] => 2025-04-20 00:48:06 [RateCDR] => 1 ) [2025-04-20 00:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-19 21:48:06' and `end` < '2025-04-20 00:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 00:48:18] Production.INFO: count ==467 [2025-04-20 00:48:18] Production.ERROR: pbx CDR StartTime 2025-04-19 21:48:06 - End Time 2025-04-20 00:48:06 [2025-04-20 00:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946703', 'tblTempUsageDetail_20' ) start [2025-04-20 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946703', 'tblTempUsageDetail_20' ) end [2025-04-20 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946703', 'tblTempVendorCDR_20' ) start [2025-04-20 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946703', 'tblTempVendorCDR_20' ) end [2025-04-20 00:48:18] Production.INFO: ProcessCDR(1,14946703,1,1,2) [2025-04-20 00:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946703', 'tblTempUsageDetail_20' ) start [2025-04-20 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946703', 'tblTempUsageDetail_20' ) end [2025-04-20 00:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 00:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 00:48:22] Production.INFO: ==24003== Releasing lock... [2025-04-20 00:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 00:48:22] Production.INFO: 32 MB #Memory Used# [2025-04-20 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 21:49:05 [end_date_ymd] => 2025-04-20 00:49:05 [RateCDR] => 1 ) [2025-04-20 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-19 21:49:05' and `end` < '2025-04-20 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-20 00:49:18] Production.INFO: count ==466 [2025-04-20 00:49:18] Production.ERROR: pbx CDR StartTime 2025-04-19 21:49:05 - End Time 2025-04-20 00:49:05 [2025-04-20 00:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946708', 'tblTempUsageDetail_20' ) start [2025-04-20 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946708', 'tblTempUsageDetail_20' ) end [2025-04-20 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946708', 'tblTempVendorCDR_20' ) start [2025-04-20 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946708', 'tblTempVendorCDR_20' ) end [2025-04-20 00:49:18] Production.INFO: ProcessCDR(1,14946708,1,1,2) [2025-04-20 00:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946708', 'tblTempUsageDetail_20' ) start [2025-04-20 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946708', 'tblTempUsageDetail_20' ) end [2025-04-20 00:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 00:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 00:49:22] Production.INFO: ==24078== Releasing lock... [2025-04-20 00:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 00:49:22] Production.INFO: 32 MB #Memory Used# [2025-04-20 00:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 21:50:07 [end_date_ymd] => 2025-04-20 00:50:07 [RateCDR] => 1 ) [2025-04-20 00: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-19 21:50:07' and `end` < '2025-04-20 00: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-20 00:50:19] Production.INFO: count ==476 [2025-04-20 00:50:19] Production.ERROR: pbx CDR StartTime 2025-04-19 21:50:07 - End Time 2025-04-20 00:50:07 [2025-04-20 00:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946714', 'tblTempUsageDetail_20' ) start [2025-04-20 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946714', 'tblTempUsageDetail_20' ) end [2025-04-20 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946714', 'tblTempVendorCDR_20' ) start [2025-04-20 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946714', 'tblTempVendorCDR_20' ) end [2025-04-20 00:50:19] Production.INFO: ProcessCDR(1,14946714,1,1,2) [2025-04-20 00:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946714', 'tblTempUsageDetail_20' ) start [2025-04-20 00:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946714', 'tblTempUsageDetail_20' ) end [2025-04-20 00:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 00:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 00:50:23] Production.INFO: ==24160== Releasing lock... [2025-04-20 00:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 00:50:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-20 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 21:51:05 [end_date_ymd] => 2025-04-20 00:51:05 [RateCDR] => 1 ) [2025-04-20 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-19 21:51:05' and `end` < '2025-04-20 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-20 00:51:18] Production.INFO: count ==480 [2025-04-20 00:51:18] Production.ERROR: pbx CDR StartTime 2025-04-19 21:51:05 - End Time 2025-04-20 00:51:05 [2025-04-20 00:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946719', 'tblTempUsageDetail_20' ) start [2025-04-20 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946719', 'tblTempUsageDetail_20' ) end [2025-04-20 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946719', 'tblTempVendorCDR_20' ) start [2025-04-20 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946719', 'tblTempVendorCDR_20' ) end [2025-04-20 00:51:18] Production.INFO: ProcessCDR(1,14946719,1,1,2) [2025-04-20 00:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946719', 'tblTempUsageDetail_20' ) start [2025-04-20 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946719', 'tblTempUsageDetail_20' ) end [2025-04-20 00:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 00:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 00:51:21] Production.INFO: ==24239== Releasing lock... [2025-04-20 00:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 00:51:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-20 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 21:52:05 [end_date_ymd] => 2025-04-20 00:52:05 [RateCDR] => 1 ) [2025-04-20 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-19 21:52:05' and `end` < '2025-04-20 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-20 00:52:18] Production.INFO: count ==477 [2025-04-20 00:52:18] Production.ERROR: pbx CDR StartTime 2025-04-19 21:52:05 - End Time 2025-04-20 00:52:05 [2025-04-20 00:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946724', 'tblTempUsageDetail_20' ) start [2025-04-20 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946724', 'tblTempUsageDetail_20' ) end [2025-04-20 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946724', 'tblTempVendorCDR_20' ) start [2025-04-20 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946724', 'tblTempVendorCDR_20' ) end [2025-04-20 00:52:18] Production.INFO: ProcessCDR(1,14946724,1,1,2) [2025-04-20 00:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946724', 'tblTempUsageDetail_20' ) start [2025-04-20 00:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946724', 'tblTempUsageDetail_20' ) end [2025-04-20 00:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 00:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 00:52:22] Production.INFO: ==24311== Releasing lock... [2025-04-20 00:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 00:52:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-20 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 21:53:05 [end_date_ymd] => 2025-04-20 00:53:05 [RateCDR] => 1 ) [2025-04-20 00:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-19 21:53:05' and `end` < '2025-04-20 00:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 00:53:17] Production.INFO: count ==474 [2025-04-20 00:53:18] Production.ERROR: pbx CDR StartTime 2025-04-19 21:53:05 - End Time 2025-04-20 00:53:05 [2025-04-20 00:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946729', 'tblTempUsageDetail_20' ) start [2025-04-20 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946729', 'tblTempUsageDetail_20' ) end [2025-04-20 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946729', 'tblTempVendorCDR_20' ) start [2025-04-20 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946729', 'tblTempVendorCDR_20' ) end [2025-04-20 00:53:18] Production.INFO: ProcessCDR(1,14946729,1,1,2) [2025-04-20 00:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946729', 'tblTempUsageDetail_20' ) start [2025-04-20 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946729', 'tblTempUsageDetail_20' ) end [2025-04-20 00:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 00:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 00:53:21] Production.INFO: ==24429== Releasing lock... [2025-04-20 00:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 00:53:21] Production.INFO: 32 MB #Memory Used# [2025-04-20 00:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 21:54:06 [end_date_ymd] => 2025-04-20 00:54:06 [RateCDR] => 1 ) [2025-04-20 00: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-19 21:54:06' and `end` < '2025-04-20 00: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-20 00:54:18] Production.INFO: count ==470 [2025-04-20 00:54:18] Production.ERROR: pbx CDR StartTime 2025-04-19 21:54:06 - End Time 2025-04-20 00:54:06 [2025-04-20 00:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946734', 'tblTempUsageDetail_20' ) start [2025-04-20 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946734', 'tblTempUsageDetail_20' ) end [2025-04-20 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946734', 'tblTempVendorCDR_20' ) start [2025-04-20 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946734', 'tblTempVendorCDR_20' ) end [2025-04-20 00:54:18] Production.INFO: ProcessCDR(1,14946734,1,1,2) [2025-04-20 00:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946734', 'tblTempUsageDetail_20' ) start [2025-04-20 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946734', 'tblTempUsageDetail_20' ) end [2025-04-20 00:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 00:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 00:54:22] Production.INFO: ==24502== Releasing lock... [2025-04-20 00:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 00:54:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-20 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 21:55:05 [end_date_ymd] => 2025-04-20 00:55:05 [RateCDR] => 1 ) [2025-04-20 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-19 21:55:05' and `end` < '2025-04-20 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-20 00:55:17] Production.INFO: count ==468 [2025-04-20 00:55:17] Production.ERROR: pbx CDR StartTime 2025-04-19 21:55:05 - End Time 2025-04-20 00:55:05 [2025-04-20 00:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946739', 'tblTempUsageDetail_20' ) start [2025-04-20 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946739', 'tblTempUsageDetail_20' ) end [2025-04-20 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946739', 'tblTempVendorCDR_20' ) start [2025-04-20 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946739', 'tblTempVendorCDR_20' ) end [2025-04-20 00:55:17] Production.INFO: ProcessCDR(1,14946739,1,1,2) [2025-04-20 00:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946739', 'tblTempUsageDetail_20' ) start [2025-04-20 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946739', 'tblTempUsageDetail_20' ) end [2025-04-20 00:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 00:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 00:55:21] Production.INFO: ==24575== Releasing lock... [2025-04-20 00:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 00:55:21] Production.INFO: 32 MB #Memory Used# [2025-04-20 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 21:56:05 [end_date_ymd] => 2025-04-20 00:56:05 [RateCDR] => 1 ) [2025-04-20 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-19 21:56:05' and `end` < '2025-04-20 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-20 00:56:18] Production.INFO: count ==466 [2025-04-20 00:56:18] Production.ERROR: pbx CDR StartTime 2025-04-19 21:56:05 - End Time 2025-04-20 00:56:05 [2025-04-20 00:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946744', 'tblTempUsageDetail_20' ) start [2025-04-20 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946744', 'tblTempUsageDetail_20' ) end [2025-04-20 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946744', 'tblTempVendorCDR_20' ) start [2025-04-20 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946744', 'tblTempVendorCDR_20' ) end [2025-04-20 00:56:18] Production.INFO: ProcessCDR(1,14946744,1,1,2) [2025-04-20 00:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946744', 'tblTempUsageDetail_20' ) start [2025-04-20 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946744', 'tblTempUsageDetail_20' ) end [2025-04-20 00:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 00:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 00:56:22] Production.INFO: ==24649== Releasing lock... [2025-04-20 00:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 00:56:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-20 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 21:57:05 [end_date_ymd] => 2025-04-20 00:57:05 [RateCDR] => 1 ) [2025-04-20 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-19 21:57:05' and `end` < '2025-04-20 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-20 00:57:17] Production.INFO: count ==461 [2025-04-20 00:57:17] Production.ERROR: pbx CDR StartTime 2025-04-19 21:57:05 - End Time 2025-04-20 00:57:05 [2025-04-20 00:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946749', 'tblTempUsageDetail_20' ) start [2025-04-20 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946749', 'tblTempUsageDetail_20' ) end [2025-04-20 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946749', 'tblTempVendorCDR_20' ) start [2025-04-20 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946749', 'tblTempVendorCDR_20' ) end [2025-04-20 00:57:17] Production.INFO: ProcessCDR(1,14946749,1,1,2) [2025-04-20 00:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946749', 'tblTempUsageDetail_20' ) start [2025-04-20 00:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946749', 'tblTempUsageDetail_20' ) end [2025-04-20 00:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 00:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 00:57:21] Production.INFO: ==24722== Releasing lock... [2025-04-20 00:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 00:57:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-20 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 21:58:05 [end_date_ymd] => 2025-04-20 00:58:05 [RateCDR] => 1 ) [2025-04-20 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-19 21:58:05' and `end` < '2025-04-20 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-20 00:58:18] Production.INFO: count ==459 [2025-04-20 00:58:18] Production.ERROR: pbx CDR StartTime 2025-04-19 21:58:05 - End Time 2025-04-20 00:58:05 [2025-04-20 00:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946754', 'tblTempUsageDetail_20' ) start [2025-04-20 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946754', 'tblTempUsageDetail_20' ) end [2025-04-20 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946754', 'tblTempVendorCDR_20' ) start [2025-04-20 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946754', 'tblTempVendorCDR_20' ) end [2025-04-20 00:58:18] Production.INFO: ProcessCDR(1,14946754,1,1,2) [2025-04-20 00:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946754', 'tblTempUsageDetail_20' ) start [2025-04-20 00:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946754', 'tblTempUsageDetail_20' ) end [2025-04-20 00:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 00:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 00:58:23] Production.INFO: ==24795== Releasing lock... [2025-04-20 00:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 00:58:23] Production.INFO: 31.75 MB #Memory Used# [2025-04-20 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 21:59:05 [end_date_ymd] => 2025-04-20 00:59:05 [RateCDR] => 1 ) [2025-04-20 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-19 21:59:05' and `end` < '2025-04-20 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-20 00:59:17] Production.INFO: count ==457 [2025-04-20 00:59:17] Production.ERROR: pbx CDR StartTime 2025-04-19 21:59:05 - End Time 2025-04-20 00:59:05 [2025-04-20 00:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946759', 'tblTempUsageDetail_20' ) start [2025-04-20 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946759', 'tblTempUsageDetail_20' ) end [2025-04-20 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946759', 'tblTempVendorCDR_20' ) start [2025-04-20 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946759', 'tblTempVendorCDR_20' ) end [2025-04-20 00:59:17] Production.INFO: ProcessCDR(1,14946759,1,1,2) [2025-04-20 00:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 00:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946759', 'tblTempUsageDetail_20' ) start [2025-04-20 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946759', 'tblTempUsageDetail_20' ) end [2025-04-20 00:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 00:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 00:59:21] Production.INFO: ==24868== Releasing lock... [2025-04-20 00:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 00:59:21] Production.INFO: 32 MB #Memory Used# [2025-04-20 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 22:00:06 [end_date_ymd] => 2025-04-20 01:00:06 [RateCDR] => 1 ) [2025-04-20 01:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-19 22:00:06' and `end` < '2025-04-20 01:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 01:00:19] Production.INFO: count ==464 [2025-04-20 01:00:19] Production.ERROR: pbx CDR StartTime 2025-04-19 22:00:06 - End Time 2025-04-20 01:00:06 [2025-04-20 01:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946765', 'tblTempUsageDetail_20' ) start [2025-04-20 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946765', 'tblTempUsageDetail_20' ) end [2025-04-20 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946765', 'tblTempVendorCDR_20' ) start [2025-04-20 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946765', 'tblTempVendorCDR_20' ) end [2025-04-20 01:00:19] Production.INFO: ProcessCDR(1,14946765,1,1,2) [2025-04-20 01:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946765', 'tblTempUsageDetail_20' ) start [2025-04-20 01:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946765', 'tblTempUsageDetail_20' ) end [2025-04-20 01:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 01:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 01:00:23] Production.INFO: ==24947== Releasing lock... [2025-04-20 01:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 01:00:23] Production.INFO: 31.75 MB #Memory Used# [2025-04-20 01:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 22:01:04 [end_date_ymd] => 2025-04-20 01:01:04 [RateCDR] => 1 ) [2025-04-20 01:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-19 22:01:04' and `end` < '2025-04-20 01:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 01:01:17] Production.INFO: count ==462 [2025-04-20 01:01:17] Production.ERROR: pbx CDR StartTime 2025-04-19 22:01:04 - End Time 2025-04-20 01:01:04 [2025-04-20 01:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946770', 'tblTempUsageDetail_20' ) start [2025-04-20 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946770', 'tblTempUsageDetail_20' ) end [2025-04-20 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946770', 'tblTempVendorCDR_20' ) start [2025-04-20 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946770', 'tblTempVendorCDR_20' ) end [2025-04-20 01:01:17] Production.INFO: ProcessCDR(1,14946770,1,1,2) [2025-04-20 01:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946770', 'tblTempUsageDetail_20' ) start [2025-04-20 01:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946770', 'tblTempUsageDetail_20' ) end [2025-04-20 01:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 01:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 01:01:22] Production.INFO: ==25049== Releasing lock... [2025-04-20 01:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 01:01:22] Production.INFO: 32 MB #Memory Used# [2025-04-20 01:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 22:02:06 [end_date_ymd] => 2025-04-20 01:02:06 [RateCDR] => 1 ) [2025-04-20 01:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-19 22:02:06' and `end` < '2025-04-20 01:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 01:02:19] Production.INFO: count ==460 [2025-04-20 01:02:20] Production.ERROR: pbx CDR StartTime 2025-04-19 22:02:06 - End Time 2025-04-20 01:02:06 [2025-04-20 01:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 01:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946775', 'tblTempUsageDetail_20' ) start [2025-04-20 01:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946775', 'tblTempUsageDetail_20' ) end [2025-04-20 01:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946775', 'tblTempVendorCDR_20' ) start [2025-04-20 01:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946775', 'tblTempVendorCDR_20' ) end [2025-04-20 01:02:20] Production.INFO: ProcessCDR(1,14946775,1,1,2) [2025-04-20 01:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946775', 'tblTempUsageDetail_20' ) start [2025-04-20 01:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946775', 'tblTempUsageDetail_20' ) end [2025-04-20 01:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 01:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 01:02:23] Production.INFO: ==25123== Releasing lock... [2025-04-20 01:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 01:02:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-20 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 22:03:05 [end_date_ymd] => 2025-04-20 01:03:05 [RateCDR] => 1 ) [2025-04-20 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-19 22:03:05' and `end` < '2025-04-20 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-20 01:03:18] Production.INFO: count ==458 [2025-04-20 01:03:18] Production.ERROR: pbx CDR StartTime 2025-04-19 22:03:05 - End Time 2025-04-20 01:03:05 [2025-04-20 01:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946780', 'tblTempUsageDetail_20' ) start [2025-04-20 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946780', 'tblTempUsageDetail_20' ) end [2025-04-20 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946780', 'tblTempVendorCDR_20' ) start [2025-04-20 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946780', 'tblTempVendorCDR_20' ) end [2025-04-20 01:03:18] Production.INFO: ProcessCDR(1,14946780,1,1,2) [2025-04-20 01:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946780', 'tblTempUsageDetail_20' ) start [2025-04-20 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946780', 'tblTempUsageDetail_20' ) end [2025-04-20 01:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 01:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 01:03:21] Production.INFO: ==25197== Releasing lock... [2025-04-20 01:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 01:03:21] Production.INFO: 32 MB #Memory Used# [2025-04-20 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 22:04:05 [end_date_ymd] => 2025-04-20 01:04:05 [RateCDR] => 1 ) [2025-04-20 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-19 22:04:05' and `end` < '2025-04-20 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-20 01:04:18] Production.INFO: count ==455 [2025-04-20 01:04:18] Production.ERROR: pbx CDR StartTime 2025-04-19 22:04:05 - End Time 2025-04-20 01:04:05 [2025-04-20 01:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946785', 'tblTempUsageDetail_20' ) start [2025-04-20 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946785', 'tblTempUsageDetail_20' ) end [2025-04-20 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946785', 'tblTempVendorCDR_20' ) start [2025-04-20 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946785', 'tblTempVendorCDR_20' ) end [2025-04-20 01:04:18] Production.INFO: ProcessCDR(1,14946785,1,1,2) [2025-04-20 01:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946785', 'tblTempUsageDetail_20' ) start [2025-04-20 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946785', 'tblTempUsageDetail_20' ) end [2025-04-20 01:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 01:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 01:04:21] Production.INFO: ==25269== Releasing lock... [2025-04-20 01:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 01:04:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-20 01:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 22:05:06 [end_date_ymd] => 2025-04-20 01:05:06 [RateCDR] => 1 ) [2025-04-20 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-19 22:05:06' and `end` < '2025-04-20 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-20 01:05:18] Production.INFO: count ==453 [2025-04-20 01:05:19] Production.ERROR: pbx CDR StartTime 2025-04-19 22:05:06 - End Time 2025-04-20 01:05:06 [2025-04-20 01:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 01:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946790', 'tblTempUsageDetail_20' ) start [2025-04-20 01:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946790', 'tblTempUsageDetail_20' ) end [2025-04-20 01:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946790', 'tblTempVendorCDR_20' ) start [2025-04-20 01:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946790', 'tblTempVendorCDR_20' ) end [2025-04-20 01:05:19] Production.INFO: ProcessCDR(1,14946790,1,1,2) [2025-04-20 01:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946790', 'tblTempUsageDetail_20' ) start [2025-04-20 01:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946790', 'tblTempUsageDetail_20' ) end [2025-04-20 01:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 01:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 01:05:22] Production.INFO: ==25341== Releasing lock... [2025-04-20 01:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 01:05:22] Production.INFO: 32 MB #Memory Used# [2025-04-20 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 22:06:05 [end_date_ymd] => 2025-04-20 01:06:05 [RateCDR] => 1 ) [2025-04-20 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-19 22:06:05' and `end` < '2025-04-20 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-20 01:06:18] Production.INFO: count ==450 [2025-04-20 01:06:18] Production.ERROR: pbx CDR StartTime 2025-04-19 22:06:05 - End Time 2025-04-20 01:06:05 [2025-04-20 01:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946795', 'tblTempUsageDetail_20' ) start [2025-04-20 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946795', 'tblTempUsageDetail_20' ) end [2025-04-20 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946795', 'tblTempVendorCDR_20' ) start [2025-04-20 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946795', 'tblTempVendorCDR_20' ) end [2025-04-20 01:06:18] Production.INFO: ProcessCDR(1,14946795,1,1,2) [2025-04-20 01:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946795', 'tblTempUsageDetail_20' ) start [2025-04-20 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946795', 'tblTempUsageDetail_20' ) end [2025-04-20 01:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 01:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 01:06:21] Production.INFO: ==25414== Releasing lock... [2025-04-20 01:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 01:06:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-20 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 22:07:05 [end_date_ymd] => 2025-04-20 01:07:05 [RateCDR] => 1 ) [2025-04-20 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-19 22:07:05' and `end` < '2025-04-20 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-20 01:07:18] Production.INFO: count ==447 [2025-04-20 01:07:18] Production.ERROR: pbx CDR StartTime 2025-04-19 22:07:05 - End Time 2025-04-20 01:07:05 [2025-04-20 01:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946800', 'tblTempUsageDetail_20' ) start [2025-04-20 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946800', 'tblTempUsageDetail_20' ) end [2025-04-20 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946800', 'tblTempVendorCDR_20' ) start [2025-04-20 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946800', 'tblTempVendorCDR_20' ) end [2025-04-20 01:07:18] Production.INFO: ProcessCDR(1,14946800,1,1,2) [2025-04-20 01:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946800', 'tblTempUsageDetail_20' ) start [2025-04-20 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946800', 'tblTempUsageDetail_20' ) end [2025-04-20 01:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 01:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 01:07:21] Production.INFO: ==25487== Releasing lock... [2025-04-20 01:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 01:07:21] Production.INFO: 32 MB #Memory Used# [2025-04-20 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 22:08:05 [end_date_ymd] => 2025-04-20 01:08:05 [RateCDR] => 1 ) [2025-04-20 01:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-19 22:08:05' and `end` < '2025-04-20 01:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 01:08:18] Production.INFO: count ==446 [2025-04-20 01:08:18] Production.ERROR: pbx CDR StartTime 2025-04-19 22:08:05 - End Time 2025-04-20 01:08:05 [2025-04-20 01:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946805', 'tblTempUsageDetail_20' ) start [2025-04-20 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946805', 'tblTempUsageDetail_20' ) end [2025-04-20 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946805', 'tblTempVendorCDR_20' ) start [2025-04-20 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946805', 'tblTempVendorCDR_20' ) end [2025-04-20 01:08:18] Production.INFO: ProcessCDR(1,14946805,1,1,2) [2025-04-20 01:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946805', 'tblTempUsageDetail_20' ) start [2025-04-20 01:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946805', 'tblTempUsageDetail_20' ) end [2025-04-20 01:08:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 01:08:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 01:08:23] Production.INFO: ==25598== Releasing lock... [2025-04-20 01:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 01:08:23] Production.INFO: 32 MB #Memory Used# [2025-04-20 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 22:09:05 [end_date_ymd] => 2025-04-20 01:09:05 [RateCDR] => 1 ) [2025-04-20 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-19 22:09:05' and `end` < '2025-04-20 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-20 01:09:18] Production.INFO: count ==443 [2025-04-20 01:09:18] Production.ERROR: pbx CDR StartTime 2025-04-19 22:09:05 - End Time 2025-04-20 01:09:05 [2025-04-20 01:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946810', 'tblTempUsageDetail_20' ) start [2025-04-20 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946810', 'tblTempUsageDetail_20' ) end [2025-04-20 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946810', 'tblTempVendorCDR_20' ) start [2025-04-20 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946810', 'tblTempVendorCDR_20' ) end [2025-04-20 01:09:18] Production.INFO: ProcessCDR(1,14946810,1,1,2) [2025-04-20 01:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946810', 'tblTempUsageDetail_20' ) start [2025-04-20 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946810', 'tblTempUsageDetail_20' ) end [2025-04-20 01:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 01:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 01:09:22] Production.INFO: ==25676== Releasing lock... [2025-04-20 01:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 01:09:22] Production.INFO: 32 MB #Memory Used# [2025-04-20 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 22:10:06 [end_date_ymd] => 2025-04-20 01:10:06 [RateCDR] => 1 ) [2025-04-20 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-19 22:10:06' and `end` < '2025-04-20 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-20 01:10:19] Production.INFO: count ==441 [2025-04-20 01:10:19] Production.ERROR: pbx CDR StartTime 2025-04-19 22:10:06 - End Time 2025-04-20 01:10:06 [2025-04-20 01:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946816', 'tblTempUsageDetail_20' ) start [2025-04-20 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946816', 'tblTempUsageDetail_20' ) end [2025-04-20 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946816', 'tblTempVendorCDR_20' ) start [2025-04-20 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946816', 'tblTempVendorCDR_20' ) end [2025-04-20 01:10:19] Production.INFO: ProcessCDR(1,14946816,1,1,2) [2025-04-20 01:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946816', 'tblTempUsageDetail_20' ) start [2025-04-20 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946816', 'tblTempUsageDetail_20' ) end [2025-04-20 01:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 01:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 01:10:22] Production.INFO: ==25750== Releasing lock... [2025-04-20 01:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 01:10:22] Production.INFO: 32 MB #Memory Used# [2025-04-20 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 22:11:05 [end_date_ymd] => 2025-04-20 01:11:05 [RateCDR] => 1 ) [2025-04-20 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-19 22:11:05' and `end` < '2025-04-20 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-20 01:11:18] Production.INFO: count ==439 [2025-04-20 01:11:18] Production.ERROR: pbx CDR StartTime 2025-04-19 22:11:05 - End Time 2025-04-20 01:11:05 [2025-04-20 01:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946821', 'tblTempUsageDetail_20' ) start [2025-04-20 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946821', 'tblTempUsageDetail_20' ) end [2025-04-20 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946821', 'tblTempVendorCDR_20' ) start [2025-04-20 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946821', 'tblTempVendorCDR_20' ) end [2025-04-20 01:11:18] Production.INFO: ProcessCDR(1,14946821,1,1,2) [2025-04-20 01:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946821', 'tblTempUsageDetail_20' ) start [2025-04-20 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946821', 'tblTempUsageDetail_20' ) end [2025-04-20 01:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 01:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 01:11:21] Production.INFO: ==25827== Releasing lock... [2025-04-20 01:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 01:11:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-20 01:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 22:12:04 [end_date_ymd] => 2025-04-20 01:12:04 [RateCDR] => 1 ) [2025-04-20 01:12: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-19 22:12:04' and `end` < '2025-04-20 01:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 01:12:17] Production.INFO: count ==437 [2025-04-20 01:12:17] Production.ERROR: pbx CDR StartTime 2025-04-19 22:12:04 - End Time 2025-04-20 01:12:04 [2025-04-20 01:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946826', 'tblTempUsageDetail_20' ) start [2025-04-20 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946826', 'tblTempUsageDetail_20' ) end [2025-04-20 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946826', 'tblTempVendorCDR_20' ) start [2025-04-20 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946826', 'tblTempVendorCDR_20' ) end [2025-04-20 01:12:17] Production.INFO: ProcessCDR(1,14946826,1,1,2) [2025-04-20 01:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946826', 'tblTempUsageDetail_20' ) start [2025-04-20 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946826', 'tblTempUsageDetail_20' ) end [2025-04-20 01:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 01:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 01:12:21] Production.INFO: ==25899== Releasing lock... [2025-04-20 01:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 01:12:21] Production.INFO: 32 MB #Memory Used# [2025-04-20 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 22:13:05 [end_date_ymd] => 2025-04-20 01:13:05 [RateCDR] => 1 ) [2025-04-20 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-19 22:13:05' and `end` < '2025-04-20 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-20 01:13:19] Production.INFO: count ==436 [2025-04-20 01:13:19] Production.ERROR: pbx CDR StartTime 2025-04-19 22:13:05 - End Time 2025-04-20 01:13:05 [2025-04-20 01:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946831', 'tblTempUsageDetail_20' ) start [2025-04-20 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946831', 'tblTempUsageDetail_20' ) end [2025-04-20 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946831', 'tblTempVendorCDR_20' ) start [2025-04-20 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946831', 'tblTempVendorCDR_20' ) end [2025-04-20 01:13:19] Production.INFO: ProcessCDR(1,14946831,1,1,2) [2025-04-20 01:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946831', 'tblTempUsageDetail_20' ) start [2025-04-20 01:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946831', 'tblTempUsageDetail_20' ) end [2025-04-20 01:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 01:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 01:13:22] Production.INFO: ==25976== Releasing lock... [2025-04-20 01:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 01:13:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-20 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 22:14:05 [end_date_ymd] => 2025-04-20 01:14:05 [RateCDR] => 1 ) [2025-04-20 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-19 22:14:05' and `end` < '2025-04-20 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-20 01:14:18] Production.INFO: count ==429 [2025-04-20 01:14:18] Production.ERROR: pbx CDR StartTime 2025-04-19 22:14:05 - End Time 2025-04-20 01:14:05 [2025-04-20 01:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946836', 'tblTempUsageDetail_20' ) start [2025-04-20 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946836', 'tblTempUsageDetail_20' ) end [2025-04-20 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946836', 'tblTempVendorCDR_20' ) start [2025-04-20 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946836', 'tblTempVendorCDR_20' ) end [2025-04-20 01:14:18] Production.INFO: ProcessCDR(1,14946836,1,1,2) [2025-04-20 01:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946836', 'tblTempUsageDetail_20' ) start [2025-04-20 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946836', 'tblTempUsageDetail_20' ) end [2025-04-20 01:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 01:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 01:14:21] Production.INFO: ==26047== Releasing lock... [2025-04-20 01:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 01:14:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-20 01:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 22:15:06 [end_date_ymd] => 2025-04-20 01:15:06 [RateCDR] => 1 ) [2025-04-20 01: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-19 22:15:06' and `end` < '2025-04-20 01: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-20 01:15:19] Production.INFO: count ==428 [2025-04-20 01:15:19] Production.ERROR: pbx CDR StartTime 2025-04-19 22:15:06 - End Time 2025-04-20 01:15:06 [2025-04-20 01:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 01:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946841', 'tblTempUsageDetail_20' ) start [2025-04-20 01:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946841', 'tblTempUsageDetail_20' ) end [2025-04-20 01:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946841', 'tblTempVendorCDR_20' ) start [2025-04-20 01:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946841', 'tblTempVendorCDR_20' ) end [2025-04-20 01:15:19] Production.INFO: ProcessCDR(1,14946841,1,1,2) [2025-04-20 01:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946841', 'tblTempUsageDetail_20' ) start [2025-04-20 01:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946841', 'tblTempUsageDetail_20' ) end [2025-04-20 01:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 01:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 01:15:22] Production.INFO: ==26132== Releasing lock... [2025-04-20 01:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 01:15:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-20 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 22:16:05 [end_date_ymd] => 2025-04-20 01:16:05 [RateCDR] => 1 ) [2025-04-20 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-19 22:16:05' and `end` < '2025-04-20 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-20 01:16:17] Production.INFO: count ==426 [2025-04-20 01:16:17] Production.ERROR: pbx CDR StartTime 2025-04-19 22:16:05 - End Time 2025-04-20 01:16:05 [2025-04-20 01:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946846', 'tblTempUsageDetail_20' ) start [2025-04-20 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946846', 'tblTempUsageDetail_20' ) end [2025-04-20 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946846', 'tblTempVendorCDR_20' ) start [2025-04-20 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946846', 'tblTempVendorCDR_20' ) end [2025-04-20 01:16:17] Production.INFO: ProcessCDR(1,14946846,1,1,2) [2025-04-20 01:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946846', 'tblTempUsageDetail_20' ) start [2025-04-20 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946846', 'tblTempUsageDetail_20' ) end [2025-04-20 01:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 01:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 01:16:21] Production.INFO: ==26204== Releasing lock... [2025-04-20 01:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 01:16:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-20 01:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 22:17:06 [end_date_ymd] => 2025-04-20 01:17:06 [RateCDR] => 1 ) [2025-04-20 01:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-19 22:17:06' and `end` < '2025-04-20 01:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 01:17:18] Production.INFO: count ==421 [2025-04-20 01:17:18] Production.ERROR: pbx CDR StartTime 2025-04-19 22:17:06 - End Time 2025-04-20 01:17:06 [2025-04-20 01:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946851', 'tblTempUsageDetail_20' ) start [2025-04-20 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946851', 'tblTempUsageDetail_20' ) end [2025-04-20 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946851', 'tblTempVendorCDR_20' ) start [2025-04-20 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946851', 'tblTempVendorCDR_20' ) end [2025-04-20 01:17:18] Production.INFO: ProcessCDR(1,14946851,1,1,2) [2025-04-20 01:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946851', 'tblTempUsageDetail_20' ) start [2025-04-20 01:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946851', 'tblTempUsageDetail_20' ) end [2025-04-20 01:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 01:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 01:17:22] Production.INFO: ==26278== Releasing lock... [2025-04-20 01:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 01:17:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-20 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 22:18:05 [end_date_ymd] => 2025-04-20 01:18:05 [RateCDR] => 1 ) [2025-04-20 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-19 22:18:05' and `end` < '2025-04-20 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-20 01:18:18] Production.INFO: count ==422 [2025-04-20 01:18:18] Production.ERROR: pbx CDR StartTime 2025-04-19 22:18:05 - End Time 2025-04-20 01:18:05 [2025-04-20 01:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946856', 'tblTempUsageDetail_20' ) start [2025-04-20 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946856', 'tblTempUsageDetail_20' ) end [2025-04-20 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946856', 'tblTempVendorCDR_20' ) start [2025-04-20 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946856', 'tblTempVendorCDR_20' ) end [2025-04-20 01:18:19] Production.INFO: ProcessCDR(1,14946856,1,1,2) [2025-04-20 01:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946856', 'tblTempUsageDetail_20' ) start [2025-04-20 01:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946856', 'tblTempUsageDetail_20' ) end [2025-04-20 01:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 01:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 01:18:22] Production.INFO: ==26362== Releasing lock... [2025-04-20 01:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 01:18:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-20 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 22:19:05 [end_date_ymd] => 2025-04-20 01:19:05 [RateCDR] => 1 ) [2025-04-20 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-19 22:19:05' and `end` < '2025-04-20 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-20 01:19:18] Production.INFO: count ==421 [2025-04-20 01:19:18] Production.ERROR: pbx CDR StartTime 2025-04-19 22:19:05 - End Time 2025-04-20 01:19:05 [2025-04-20 01:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946861', 'tblTempUsageDetail_20' ) start [2025-04-20 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946861', 'tblTempUsageDetail_20' ) end [2025-04-20 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946861', 'tblTempVendorCDR_20' ) start [2025-04-20 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946861', 'tblTempVendorCDR_20' ) end [2025-04-20 01:19:18] Production.INFO: ProcessCDR(1,14946861,1,1,2) [2025-04-20 01:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946861', 'tblTempUsageDetail_20' ) start [2025-04-20 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946861', 'tblTempUsageDetail_20' ) end [2025-04-20 01:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 01:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 01:19:21] Production.INFO: ==26436== Releasing lock... [2025-04-20 01:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 01:19:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-20 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 22:20:06 [end_date_ymd] => 2025-04-20 01:20:06 [RateCDR] => 1 ) [2025-04-20 01:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-19 22:20:06' and `end` < '2025-04-20 01:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 01:20:19] Production.INFO: count ==432 [2025-04-20 01:20:19] Production.ERROR: pbx CDR StartTime 2025-04-19 22:20:06 - End Time 2025-04-20 01:20:06 [2025-04-20 01:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946867', 'tblTempUsageDetail_20' ) start [2025-04-20 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946867', 'tblTempUsageDetail_20' ) end [2025-04-20 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946867', 'tblTempVendorCDR_20' ) start [2025-04-20 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946867', 'tblTempVendorCDR_20' ) end [2025-04-20 01:20:19] Production.INFO: ProcessCDR(1,14946867,1,1,2) [2025-04-20 01:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946867', 'tblTempUsageDetail_20' ) start [2025-04-20 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946867', 'tblTempUsageDetail_20' ) end [2025-04-20 01:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 01:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 01:20:22] Production.INFO: ==26513== Releasing lock... [2025-04-20 01:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 01:20:22] Production.INFO: 32 MB #Memory Used# [2025-04-20 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 22:21:05 [end_date_ymd] => 2025-04-20 01:21:05 [RateCDR] => 1 ) [2025-04-20 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-19 22:21:05' and `end` < '2025-04-20 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-20 01:21:18] Production.INFO: count ==440 [2025-04-20 01:21:18] Production.ERROR: pbx CDR StartTime 2025-04-19 22:21:05 - End Time 2025-04-20 01:21:05 [2025-04-20 01:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946872', 'tblTempUsageDetail_20' ) start [2025-04-20 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946872', 'tblTempUsageDetail_20' ) end [2025-04-20 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946872', 'tblTempVendorCDR_20' ) start [2025-04-20 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946872', 'tblTempVendorCDR_20' ) end [2025-04-20 01:21:18] Production.INFO: ProcessCDR(1,14946872,1,1,2) [2025-04-20 01:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946872', 'tblTempUsageDetail_20' ) start [2025-04-20 01:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946872', 'tblTempUsageDetail_20' ) end [2025-04-20 01:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 01:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 01:21:22] Production.INFO: ==26593== Releasing lock... [2025-04-20 01:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 01:21:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-20 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 22:22:05 [end_date_ymd] => 2025-04-20 01:22:05 [RateCDR] => 1 ) [2025-04-20 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-19 22:22:05' and `end` < '2025-04-20 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-20 01:22:18] Production.INFO: count ==437 [2025-04-20 01:22:18] Production.ERROR: pbx CDR StartTime 2025-04-19 22:22:05 - End Time 2025-04-20 01:22:05 [2025-04-20 01:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946877', 'tblTempUsageDetail_20' ) start [2025-04-20 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946877', 'tblTempUsageDetail_20' ) end [2025-04-20 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946877', 'tblTempVendorCDR_20' ) start [2025-04-20 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946877', 'tblTempVendorCDR_20' ) end [2025-04-20 01:22:18] Production.INFO: ProcessCDR(1,14946877,1,1,2) [2025-04-20 01:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946877', 'tblTempUsageDetail_20' ) start [2025-04-20 01:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946877', 'tblTempUsageDetail_20' ) end [2025-04-20 01:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 01:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 01:22:22] Production.INFO: ==26664== Releasing lock... [2025-04-20 01:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 01:22:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-20 01:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 22:23:04 [end_date_ymd] => 2025-04-20 01:23:04 [RateCDR] => 1 ) [2025-04-20 01: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-19 22:23:04' and `end` < '2025-04-20 01: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-20 01:23:17] Production.INFO: count ==433 [2025-04-20 01:23:17] Production.ERROR: pbx CDR StartTime 2025-04-19 22:23:04 - End Time 2025-04-20 01:23:04 [2025-04-20 01:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946882', 'tblTempUsageDetail_20' ) start [2025-04-20 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946882', 'tblTempUsageDetail_20' ) end [2025-04-20 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946882', 'tblTempVendorCDR_20' ) start [2025-04-20 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946882', 'tblTempVendorCDR_20' ) end [2025-04-20 01:23:17] Production.INFO: ProcessCDR(1,14946882,1,1,2) [2025-04-20 01:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946882', 'tblTempUsageDetail_20' ) start [2025-04-20 01:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946882', 'tblTempUsageDetail_20' ) end [2025-04-20 01:23:20] Production.ERROR: pbx prc_insertCDR start [2025-04-20 01:23:20] Production.ERROR: pbx prc_insertCDR end [2025-04-20 01:23:21] Production.INFO: ==26738== Releasing lock... [2025-04-20 01:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 01:23:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-20 01:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 22:24:06 [end_date_ymd] => 2025-04-20 01:24:06 [RateCDR] => 1 ) [2025-04-20 01:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-19 22:24:06' and `end` < '2025-04-20 01:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 01:24:19] Production.INFO: count ==432 [2025-04-20 01:24:19] Production.ERROR: pbx CDR StartTime 2025-04-19 22:24:06 - End Time 2025-04-20 01:24:06 [2025-04-20 01:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946887', 'tblTempUsageDetail_20' ) start [2025-04-20 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946887', 'tblTempUsageDetail_20' ) end [2025-04-20 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946887', 'tblTempVendorCDR_20' ) start [2025-04-20 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946887', 'tblTempVendorCDR_20' ) end [2025-04-20 01:24:19] Production.INFO: ProcessCDR(1,14946887,1,1,2) [2025-04-20 01:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946887', 'tblTempUsageDetail_20' ) start [2025-04-20 01:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946887', 'tblTempUsageDetail_20' ) end [2025-04-20 01:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 01:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 01:24:22] Production.INFO: ==26851== Releasing lock... [2025-04-20 01:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 01:24:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-20 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 22:25:05 [end_date_ymd] => 2025-04-20 01:25:05 [RateCDR] => 1 ) [2025-04-20 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-19 22:25:05' and `end` < '2025-04-20 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-20 01:25:19] Production.INFO: count ==432 [2025-04-20 01:25:19] Production.ERROR: pbx CDR StartTime 2025-04-19 22:25:05 - End Time 2025-04-20 01:25:05 [2025-04-20 01:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 01:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946892', 'tblTempUsageDetail_20' ) start [2025-04-20 01:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946892', 'tblTempUsageDetail_20' ) end [2025-04-20 01:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946892', 'tblTempVendorCDR_20' ) start [2025-04-20 01:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946892', 'tblTempVendorCDR_20' ) end [2025-04-20 01:25:19] Production.INFO: ProcessCDR(1,14946892,1,1,2) [2025-04-20 01:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946892', 'tblTempUsageDetail_20' ) start [2025-04-20 01:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946892', 'tblTempUsageDetail_20' ) end [2025-04-20 01:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 01:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 01:25:22] Production.INFO: ==26928== Releasing lock... [2025-04-20 01:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 01:25:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-20 01:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 22:26:06 [end_date_ymd] => 2025-04-20 01:26:06 [RateCDR] => 1 ) [2025-04-20 01:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-19 22:26:06' and `end` < '2025-04-20 01:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 01:26:18] Production.INFO: count ==430 [2025-04-20 01:26:18] Production.ERROR: pbx CDR StartTime 2025-04-19 22:26:06 - End Time 2025-04-20 01:26:06 [2025-04-20 01:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946897', 'tblTempUsageDetail_20' ) start [2025-04-20 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946897', 'tblTempUsageDetail_20' ) end [2025-04-20 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946897', 'tblTempVendorCDR_20' ) start [2025-04-20 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946897', 'tblTempVendorCDR_20' ) end [2025-04-20 01:26:18] Production.INFO: ProcessCDR(1,14946897,1,1,2) [2025-04-20 01:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946897', 'tblTempUsageDetail_20' ) start [2025-04-20 01:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946897', 'tblTempUsageDetail_20' ) end [2025-04-20 01:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 01:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 01:26:22] Production.INFO: ==27000== Releasing lock... [2025-04-20 01:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 01:26:22] Production.INFO: 32 MB #Memory Used# [2025-04-20 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 22:27:05 [end_date_ymd] => 2025-04-20 01:27:05 [RateCDR] => 1 ) [2025-04-20 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-19 22:27:05' and `end` < '2025-04-20 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-20 01:27:18] Production.INFO: count ==428 [2025-04-20 01:27:18] Production.ERROR: pbx CDR StartTime 2025-04-19 22:27:05 - End Time 2025-04-20 01:27:05 [2025-04-20 01:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946902', 'tblTempUsageDetail_20' ) start [2025-04-20 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946902', 'tblTempUsageDetail_20' ) end [2025-04-20 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946902', 'tblTempVendorCDR_20' ) start [2025-04-20 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946902', 'tblTempVendorCDR_20' ) end [2025-04-20 01:27:18] Production.INFO: ProcessCDR(1,14946902,1,1,2) [2025-04-20 01:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946902', 'tblTempUsageDetail_20' ) start [2025-04-20 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946902', 'tblTempUsageDetail_20' ) end [2025-04-20 01:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 01:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 01:27:21] Production.INFO: ==27071== Releasing lock... [2025-04-20 01:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 01:27:21] Production.INFO: 32 MB #Memory Used# [2025-04-20 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 22:28:05 [end_date_ymd] => 2025-04-20 01:28:05 [RateCDR] => 1 ) [2025-04-20 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-19 22:28:05' and `end` < '2025-04-20 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-20 01:28:17] Production.INFO: count ==431 [2025-04-20 01:28:18] Production.ERROR: pbx CDR StartTime 2025-04-19 22:28:05 - End Time 2025-04-20 01:28:05 [2025-04-20 01:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946907', 'tblTempUsageDetail_20' ) start [2025-04-20 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946907', 'tblTempUsageDetail_20' ) end [2025-04-20 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946907', 'tblTempVendorCDR_20' ) start [2025-04-20 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946907', 'tblTempVendorCDR_20' ) end [2025-04-20 01:28:18] Production.INFO: ProcessCDR(1,14946907,1,1,2) [2025-04-20 01:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946907', 'tblTempUsageDetail_20' ) start [2025-04-20 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946907', 'tblTempUsageDetail_20' ) end [2025-04-20 01:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 01:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 01:28:21] Production.INFO: ==27152== Releasing lock... [2025-04-20 01:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 01:28:21] Production.INFO: 32 MB #Memory Used# [2025-04-20 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 22:29:05 [end_date_ymd] => 2025-04-20 01:29:05 [RateCDR] => 1 ) [2025-04-20 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-19 22:29:05' and `end` < '2025-04-20 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-20 01:29:17] Production.INFO: count ==432 [2025-04-20 01:29:17] Production.ERROR: pbx CDR StartTime 2025-04-19 22:29:05 - End Time 2025-04-20 01:29:05 [2025-04-20 01:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946912', 'tblTempUsageDetail_20' ) start [2025-04-20 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946912', 'tblTempUsageDetail_20' ) end [2025-04-20 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946912', 'tblTempVendorCDR_20' ) start [2025-04-20 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946912', 'tblTempVendorCDR_20' ) end [2025-04-20 01:29:18] Production.INFO: ProcessCDR(1,14946912,1,1,2) [2025-04-20 01:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946912', 'tblTempUsageDetail_20' ) start [2025-04-20 01:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946912', 'tblTempUsageDetail_20' ) end [2025-04-20 01:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 01:29:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 01:29:23] Production.INFO: ==27225== Releasing lock... [2025-04-20 01:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 01:29:23] Production.INFO: 31.75 MB #Memory Used# [2025-04-20 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 22:30:06 [end_date_ymd] => 2025-04-20 01:30:06 [RateCDR] => 1 ) [2025-04-20 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-19 22:30:06' and `end` < '2025-04-20 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-20 01:30:19] Production.INFO: count ==438 [2025-04-20 01:30:19] Production.ERROR: pbx CDR StartTime 2025-04-19 22:30:06 - End Time 2025-04-20 01:30:06 [2025-04-20 01:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946918', 'tblTempUsageDetail_20' ) start [2025-04-20 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946918', 'tblTempUsageDetail_20' ) end [2025-04-20 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946918', 'tblTempVendorCDR_20' ) start [2025-04-20 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946918', 'tblTempVendorCDR_20' ) end [2025-04-20 01:30:19] Production.INFO: ProcessCDR(1,14946918,1,1,2) [2025-04-20 01:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946918', 'tblTempUsageDetail_20' ) start [2025-04-20 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946918', 'tblTempUsageDetail_20' ) end [2025-04-20 01:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 01:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 01:30:22] Production.INFO: ==27299== Releasing lock... [2025-04-20 01:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 01:30:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-20 01:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 22:31:04 [end_date_ymd] => 2025-04-20 01:31:04 [RateCDR] => 1 ) [2025-04-20 01: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-19 22:31:04' and `end` < '2025-04-20 01: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-20 01:31:17] Production.INFO: count ==438 [2025-04-20 01:31:17] Production.ERROR: pbx CDR StartTime 2025-04-19 22:31:04 - End Time 2025-04-20 01:31:04 [2025-04-20 01:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946923', 'tblTempUsageDetail_20' ) start [2025-04-20 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946923', 'tblTempUsageDetail_20' ) end [2025-04-20 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946923', 'tblTempVendorCDR_20' ) start [2025-04-20 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946923', 'tblTempVendorCDR_20' ) end [2025-04-20 01:31:17] Production.INFO: ProcessCDR(1,14946923,1,1,2) [2025-04-20 01:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946923', 'tblTempUsageDetail_20' ) start [2025-04-20 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946923', 'tblTempUsageDetail_20' ) end [2025-04-20 01:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 01:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 01:31:21] Production.INFO: ==27374== Releasing lock... [2025-04-20 01:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 01:31:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-20 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 22:32:05 [end_date_ymd] => 2025-04-20 01:32:05 [RateCDR] => 1 ) [2025-04-20 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-19 22:32:05' and `end` < '2025-04-20 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-20 01:32:18] Production.INFO: count ==439 [2025-04-20 01:32:18] Production.ERROR: pbx CDR StartTime 2025-04-19 22:32:05 - End Time 2025-04-20 01:32:05 [2025-04-20 01:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946928', 'tblTempUsageDetail_20' ) start [2025-04-20 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946928', 'tblTempUsageDetail_20' ) end [2025-04-20 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946928', 'tblTempVendorCDR_20' ) start [2025-04-20 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946928', 'tblTempVendorCDR_20' ) end [2025-04-20 01:32:18] Production.INFO: ProcessCDR(1,14946928,1,1,2) [2025-04-20 01:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946928', 'tblTempUsageDetail_20' ) start [2025-04-20 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946928', 'tblTempUsageDetail_20' ) end [2025-04-20 01:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 01:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 01:32:21] Production.INFO: ==27445== Releasing lock... [2025-04-20 01:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 01:32:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-20 01:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 22:33:06 [end_date_ymd] => 2025-04-20 01:33:06 [RateCDR] => 1 ) [2025-04-20 01:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-19 22:33:06' and `end` < '2025-04-20 01:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 01:33:18] Production.INFO: count ==442 [2025-04-20 01:33:18] Production.ERROR: pbx CDR StartTime 2025-04-19 22:33:06 - End Time 2025-04-20 01:33:06 [2025-04-20 01:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946933', 'tblTempUsageDetail_20' ) start [2025-04-20 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946933', 'tblTempUsageDetail_20' ) end [2025-04-20 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946933', 'tblTempVendorCDR_20' ) start [2025-04-20 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946933', 'tblTempVendorCDR_20' ) end [2025-04-20 01:33:18] Production.INFO: ProcessCDR(1,14946933,1,1,2) [2025-04-20 01:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946933', 'tblTempUsageDetail_20' ) start [2025-04-20 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946933', 'tblTempUsageDetail_20' ) end [2025-04-20 01:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 01:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 01:33:22] Production.INFO: ==27523== Releasing lock... [2025-04-20 01:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 01:33:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-20 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 22:34:05 [end_date_ymd] => 2025-04-20 01:34:05 [RateCDR] => 1 ) [2025-04-20 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-19 22:34:05' and `end` < '2025-04-20 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-20 01:34:18] Production.INFO: count ==438 [2025-04-20 01:34:18] Production.ERROR: pbx CDR StartTime 2025-04-19 22:34:05 - End Time 2025-04-20 01:34:05 [2025-04-20 01:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946938', 'tblTempUsageDetail_20' ) start [2025-04-20 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946938', 'tblTempUsageDetail_20' ) end [2025-04-20 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946938', 'tblTempVendorCDR_20' ) start [2025-04-20 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946938', 'tblTempVendorCDR_20' ) end [2025-04-20 01:34:18] Production.INFO: ProcessCDR(1,14946938,1,1,2) [2025-04-20 01:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946938', 'tblTempUsageDetail_20' ) start [2025-04-20 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946938', 'tblTempUsageDetail_20' ) end [2025-04-20 01:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 01:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 01:34:21] Production.INFO: ==27597== Releasing lock... [2025-04-20 01:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 01:34:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-20 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 22:35:05 [end_date_ymd] => 2025-04-20 01:35:05 [RateCDR] => 1 ) [2025-04-20 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-19 22:35:05' and `end` < '2025-04-20 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-20 01:35:17] Production.INFO: count ==436 [2025-04-20 01:35:17] Production.ERROR: pbx CDR StartTime 2025-04-19 22:35:05 - End Time 2025-04-20 01:35:05 [2025-04-20 01:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946943', 'tblTempUsageDetail_20' ) start [2025-04-20 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946943', 'tblTempUsageDetail_20' ) end [2025-04-20 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946943', 'tblTempVendorCDR_20' ) start [2025-04-20 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946943', 'tblTempVendorCDR_20' ) end [2025-04-20 01:35:17] Production.INFO: ProcessCDR(1,14946943,1,1,2) [2025-04-20 01:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946943', 'tblTempUsageDetail_20' ) start [2025-04-20 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946943', 'tblTempUsageDetail_20' ) end [2025-04-20 01:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 01:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 01:35:21] Production.INFO: ==27672== Releasing lock... [2025-04-20 01:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 01:35:21] Production.INFO: 32 MB #Memory Used# [2025-04-20 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 22:36:05 [end_date_ymd] => 2025-04-20 01:36:05 [RateCDR] => 1 ) [2025-04-20 01:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-19 22:36:05' and `end` < '2025-04-20 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-20 01:36:18] Production.INFO: count ==436 [2025-04-20 01:36:18] Production.ERROR: pbx CDR StartTime 2025-04-19 22:36:05 - End Time 2025-04-20 01:36:05 [2025-04-20 01:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946948', 'tblTempUsageDetail_20' ) start [2025-04-20 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946948', 'tblTempUsageDetail_20' ) end [2025-04-20 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946948', 'tblTempVendorCDR_20' ) start [2025-04-20 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946948', 'tblTempVendorCDR_20' ) end [2025-04-20 01:36:18] Production.INFO: ProcessCDR(1,14946948,1,1,2) [2025-04-20 01:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946948', 'tblTempUsageDetail_20' ) start [2025-04-20 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946948', 'tblTempUsageDetail_20' ) end [2025-04-20 01:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 01:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 01:36:22] Production.INFO: ==27745== Releasing lock... [2025-04-20 01:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 01:36:22] Production.INFO: 32 MB #Memory Used# [2025-04-20 01:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 22:37:05 [end_date_ymd] => 2025-04-20 01:37:05 [RateCDR] => 1 ) [2025-04-20 01:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-19 22:37:05' and `end` < '2025-04-20 01:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 01:37:17] Production.INFO: count ==436 [2025-04-20 01:37:17] Production.ERROR: pbx CDR StartTime 2025-04-19 22:37:05 - End Time 2025-04-20 01:37:05 [2025-04-20 01:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946953', 'tblTempUsageDetail_20' ) start [2025-04-20 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946953', 'tblTempUsageDetail_20' ) end [2025-04-20 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946953', 'tblTempVendorCDR_20' ) start [2025-04-20 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946953', 'tblTempVendorCDR_20' ) end [2025-04-20 01:37:17] Production.INFO: ProcessCDR(1,14946953,1,1,2) [2025-04-20 01:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946953', 'tblTempUsageDetail_20' ) start [2025-04-20 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946953', 'tblTempUsageDetail_20' ) end [2025-04-20 01:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 01:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 01:37:21] Production.INFO: ==27815== Releasing lock... [2025-04-20 01:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 01:37:21] Production.INFO: 32 MB #Memory Used# [2025-04-20 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 22:38:05 [end_date_ymd] => 2025-04-20 01:38:05 [RateCDR] => 1 ) [2025-04-20 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-19 22:38:05' and `end` < '2025-04-20 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-20 01:38:18] Production.INFO: count ==437 [2025-04-20 01:38:18] Production.ERROR: pbx CDR StartTime 2025-04-19 22:38:05 - End Time 2025-04-20 01:38:05 [2025-04-20 01:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946958', 'tblTempUsageDetail_20' ) start [2025-04-20 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946958', 'tblTempUsageDetail_20' ) end [2025-04-20 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946958', 'tblTempVendorCDR_20' ) start [2025-04-20 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946958', 'tblTempVendorCDR_20' ) end [2025-04-20 01:38:18] Production.INFO: ProcessCDR(1,14946958,1,1,2) [2025-04-20 01:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946958', 'tblTempUsageDetail_20' ) start [2025-04-20 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946958', 'tblTempUsageDetail_20' ) end [2025-04-20 01:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 01:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 01:38:21] Production.INFO: ==27888== Releasing lock... [2025-04-20 01:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 01:38:21] Production.INFO: 32 MB #Memory Used# [2025-04-20 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 22:39:05 [end_date_ymd] => 2025-04-20 01:39:05 [RateCDR] => 1 ) [2025-04-20 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-19 22:39:05' and `end` < '2025-04-20 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-20 01:39:17] Production.INFO: count ==436 [2025-04-20 01:39:17] Production.ERROR: pbx CDR StartTime 2025-04-19 22:39:05 - End Time 2025-04-20 01:39:05 [2025-04-20 01:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946963', 'tblTempUsageDetail_20' ) start [2025-04-20 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946963', 'tblTempUsageDetail_20' ) end [2025-04-20 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946963', 'tblTempVendorCDR_20' ) start [2025-04-20 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946963', 'tblTempVendorCDR_20' ) end [2025-04-20 01:39:17] Production.INFO: ProcessCDR(1,14946963,1,1,2) [2025-04-20 01:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946963', 'tblTempUsageDetail_20' ) start [2025-04-20 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946963', 'tblTempUsageDetail_20' ) end [2025-04-20 01:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 01:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 01:39:21] Production.INFO: ==27996== Releasing lock... [2025-04-20 01:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 01:39:21] Production.INFO: 32 MB #Memory Used# [2025-04-20 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 22:40:06 [end_date_ymd] => 2025-04-20 01:40:06 [RateCDR] => 1 ) [2025-04-20 01:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-19 22:40:06' and `end` < '2025-04-20 01:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 01:40:19] Production.INFO: count ==445 [2025-04-20 01:40:19] Production.ERROR: pbx CDR StartTime 2025-04-19 22:40:06 - End Time 2025-04-20 01:40:06 [2025-04-20 01:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946969', 'tblTempUsageDetail_20' ) start [2025-04-20 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946969', 'tblTempUsageDetail_20' ) end [2025-04-20 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946969', 'tblTempVendorCDR_20' ) start [2025-04-20 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946969', 'tblTempVendorCDR_20' ) end [2025-04-20 01:40:19] Production.INFO: ProcessCDR(1,14946969,1,1,2) [2025-04-20 01:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946969', 'tblTempUsageDetail_20' ) start [2025-04-20 01:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946969', 'tblTempUsageDetail_20' ) end [2025-04-20 01:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 01:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 01:40:23] Production.INFO: ==28084== Releasing lock... [2025-04-20 01:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 01:40:23] Production.INFO: 31.75 MB #Memory Used# [2025-04-20 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 22:41:05 [end_date_ymd] => 2025-04-20 01:41:05 [RateCDR] => 1 ) [2025-04-20 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-19 22:41:05' and `end` < '2025-04-20 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-20 01:41:17] Production.INFO: count ==453 [2025-04-20 01:41:17] Production.ERROR: pbx CDR StartTime 2025-04-19 22:41:05 - End Time 2025-04-20 01:41:05 [2025-04-20 01:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946974', 'tblTempUsageDetail_20' ) start [2025-04-20 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946974', 'tblTempUsageDetail_20' ) end [2025-04-20 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946974', 'tblTempVendorCDR_20' ) start [2025-04-20 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946974', 'tblTempVendorCDR_20' ) end [2025-04-20 01:41:17] Production.INFO: ProcessCDR(1,14946974,1,1,2) [2025-04-20 01:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946974', 'tblTempUsageDetail_20' ) start [2025-04-20 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946974', 'tblTempUsageDetail_20' ) end [2025-04-20 01:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 01:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 01:41:21] Production.INFO: ==28157== Releasing lock... [2025-04-20 01:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 01:41:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-20 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 22:42:05 [end_date_ymd] => 2025-04-20 01:42:05 [RateCDR] => 1 ) [2025-04-20 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-19 22:42:05' and `end` < '2025-04-20 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-20 01:42:18] Production.INFO: count ==453 [2025-04-20 01:42:18] Production.ERROR: pbx CDR StartTime 2025-04-19 22:42:05 - End Time 2025-04-20 01:42:05 [2025-04-20 01:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946979', 'tblTempUsageDetail_20' ) start [2025-04-20 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946979', 'tblTempUsageDetail_20' ) end [2025-04-20 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946979', 'tblTempVendorCDR_20' ) start [2025-04-20 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946979', 'tblTempVendorCDR_20' ) end [2025-04-20 01:42:18] Production.INFO: ProcessCDR(1,14946979,1,1,2) [2025-04-20 01:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946979', 'tblTempUsageDetail_20' ) start [2025-04-20 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946979', 'tblTempUsageDetail_20' ) end [2025-04-20 01:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 01:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 01:42:21] Production.INFO: ==28236== Releasing lock... [2025-04-20 01:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 01:42:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-20 01:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 22:43:05 [end_date_ymd] => 2025-04-20 01:43:05 [RateCDR] => 1 ) [2025-04-20 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-19 22:43:05' and `end` < '2025-04-20 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-20 01:43:17] Production.INFO: count ==453 [2025-04-20 01:43:17] Production.ERROR: pbx CDR StartTime 2025-04-19 22:43:05 - End Time 2025-04-20 01:43:05 [2025-04-20 01:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946984', 'tblTempUsageDetail_20' ) start [2025-04-20 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946984', 'tblTempUsageDetail_20' ) end [2025-04-20 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946984', 'tblTempVendorCDR_20' ) start [2025-04-20 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946984', 'tblTempVendorCDR_20' ) end [2025-04-20 01:43:17] Production.INFO: ProcessCDR(1,14946984,1,1,2) [2025-04-20 01:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946984', 'tblTempUsageDetail_20' ) start [2025-04-20 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946984', 'tblTempUsageDetail_20' ) end [2025-04-20 01:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 01:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 01:43:22] Production.INFO: ==28308== Releasing lock... [2025-04-20 01:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 01:43:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-20 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 22:44:05 [end_date_ymd] => 2025-04-20 01:44:05 [RateCDR] => 1 ) [2025-04-20 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-19 22:44:05' and `end` < '2025-04-20 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-20 01:44:18] Production.INFO: count ==454 [2025-04-20 01:44:18] Production.ERROR: pbx CDR StartTime 2025-04-19 22:44:05 - End Time 2025-04-20 01:44:05 [2025-04-20 01:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946989', 'tblTempUsageDetail_20' ) start [2025-04-20 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946989', 'tblTempUsageDetail_20' ) end [2025-04-20 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946989', 'tblTempVendorCDR_20' ) start [2025-04-20 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946989', 'tblTempVendorCDR_20' ) end [2025-04-20 01:44:18] Production.INFO: ProcessCDR(1,14946989,1,1,2) [2025-04-20 01:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946989', 'tblTempUsageDetail_20' ) start [2025-04-20 01:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946989', 'tblTempUsageDetail_20' ) end [2025-04-20 01:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 01:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 01:44:23] Production.INFO: ==28380== Releasing lock... [2025-04-20 01:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 01:44:23] Production.INFO: 32 MB #Memory Used# [2025-04-20 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 22:45:05 [end_date_ymd] => 2025-04-20 01:45:05 [RateCDR] => 1 ) [2025-04-20 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-19 22:45:05' and `end` < '2025-04-20 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-20 01:45:17] Production.INFO: count ==450 [2025-04-20 01:45:17] Production.ERROR: pbx CDR StartTime 2025-04-19 22:45:05 - End Time 2025-04-20 01:45:05 [2025-04-20 01:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946994', 'tblTempUsageDetail_20' ) start [2025-04-20 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946994', 'tblTempUsageDetail_20' ) end [2025-04-20 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946994', 'tblTempVendorCDR_20' ) start [2025-04-20 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946994', 'tblTempVendorCDR_20' ) end [2025-04-20 01:45:17] Production.INFO: ProcessCDR(1,14946994,1,1,2) [2025-04-20 01:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946994', 'tblTempUsageDetail_20' ) start [2025-04-20 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946994', 'tblTempUsageDetail_20' ) end [2025-04-20 01:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 01:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 01:45:21] Production.INFO: ==28454== Releasing lock... [2025-04-20 01:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 01:45:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-20 01:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 22:46:05 [end_date_ymd] => 2025-04-20 01:46:05 [RateCDR] => 1 ) [2025-04-20 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-19 22:46:05' and `end` < '2025-04-20 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-20 01:46:18] Production.INFO: count ==450 [2025-04-20 01:46:18] Production.ERROR: pbx CDR StartTime 2025-04-19 22:46:05 - End Time 2025-04-20 01:46:05 [2025-04-20 01:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946999', 'tblTempUsageDetail_20' ) start [2025-04-20 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14946999', 'tblTempUsageDetail_20' ) end [2025-04-20 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946999', 'tblTempVendorCDR_20' ) start [2025-04-20 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14946999', 'tblTempVendorCDR_20' ) end [2025-04-20 01:46:18] Production.INFO: ProcessCDR(1,14946999,1,1,2) [2025-04-20 01:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14946999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14946999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14946999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14946999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946999', 'tblTempUsageDetail_20' ) start [2025-04-20 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14946999', 'tblTempUsageDetail_20' ) end [2025-04-20 01:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 01:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 01:46:21] Production.INFO: ==28527== Releasing lock... [2025-04-20 01:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 01:46:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-20 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 22:47:05 [end_date_ymd] => 2025-04-20 01:47:05 [RateCDR] => 1 ) [2025-04-20 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-19 22:47:05' and `end` < '2025-04-20 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-20 01:47:18] Production.INFO: count ==449 [2025-04-20 01:47:18] Production.ERROR: pbx CDR StartTime 2025-04-19 22:47:05 - End Time 2025-04-20 01:47:05 [2025-04-20 01:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947004', 'tblTempUsageDetail_20' ) start [2025-04-20 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947004', 'tblTempUsageDetail_20' ) end [2025-04-20 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947004', 'tblTempVendorCDR_20' ) start [2025-04-20 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947004', 'tblTempVendorCDR_20' ) end [2025-04-20 01:47:18] Production.INFO: ProcessCDR(1,14947004,1,1,2) [2025-04-20 01:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947004', 'tblTempUsageDetail_20' ) start [2025-04-20 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947004', 'tblTempUsageDetail_20' ) end [2025-04-20 01:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 01:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 01:47:22] Production.INFO: ==28601== Releasing lock... [2025-04-20 01:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 01:47:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-20 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 22:48:05 [end_date_ymd] => 2025-04-20 01:48:05 [RateCDR] => 1 ) [2025-04-20 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-19 22:48:05' and `end` < '2025-04-20 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-20 01:48:17] Production.INFO: count ==448 [2025-04-20 01:48:17] Production.ERROR: pbx CDR StartTime 2025-04-19 22:48:05 - End Time 2025-04-20 01:48:05 [2025-04-20 01:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947009', 'tblTempUsageDetail_20' ) start [2025-04-20 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947009', 'tblTempUsageDetail_20' ) end [2025-04-20 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947009', 'tblTempVendorCDR_20' ) start [2025-04-20 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947009', 'tblTempVendorCDR_20' ) end [2025-04-20 01:48:17] Production.INFO: ProcessCDR(1,14947009,1,1,2) [2025-04-20 01:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947009', 'tblTempUsageDetail_20' ) start [2025-04-20 01:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947009', 'tblTempUsageDetail_20' ) end [2025-04-20 01:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 01:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 01:48:22] Production.INFO: ==28673== Releasing lock... [2025-04-20 01:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 01:48:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-20 01:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 22:49:06 [end_date_ymd] => 2025-04-20 01:49:06 [RateCDR] => 1 ) [2025-04-20 01: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-19 22:49:06' and `end` < '2025-04-20 01: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-20 01:49:18] Production.INFO: count ==448 [2025-04-20 01:49:18] Production.ERROR: pbx CDR StartTime 2025-04-19 22:49:06 - End Time 2025-04-20 01:49:06 [2025-04-20 01:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947014', 'tblTempUsageDetail_20' ) start [2025-04-20 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947014', 'tblTempUsageDetail_20' ) end [2025-04-20 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947014', 'tblTempVendorCDR_20' ) start [2025-04-20 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947014', 'tblTempVendorCDR_20' ) end [2025-04-20 01:49:18] Production.INFO: ProcessCDR(1,14947014,1,1,2) [2025-04-20 01:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947014', 'tblTempUsageDetail_20' ) start [2025-04-20 01:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947014', 'tblTempUsageDetail_20' ) end [2025-04-20 01:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 01:49:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 01:49:23] Production.INFO: ==28756== Releasing lock... [2025-04-20 01:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 01:49:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-20 01:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 22:50:05 [end_date_ymd] => 2025-04-20 01:50:05 [RateCDR] => 1 ) [2025-04-20 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-19 22:50:05' and `end` < '2025-04-20 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-20 01:50:18] Production.INFO: count ==452 [2025-04-20 01:50:18] Production.ERROR: pbx CDR StartTime 2025-04-19 22:50:05 - End Time 2025-04-20 01:50:05 [2025-04-20 01:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947020', 'tblTempUsageDetail_20' ) start [2025-04-20 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947020', 'tblTempUsageDetail_20' ) end [2025-04-20 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947020', 'tblTempVendorCDR_20' ) start [2025-04-20 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947020', 'tblTempVendorCDR_20' ) end [2025-04-20 01:50:18] Production.INFO: ProcessCDR(1,14947020,1,1,2) [2025-04-20 01:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947020', 'tblTempUsageDetail_20' ) start [2025-04-20 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947020', 'tblTempUsageDetail_20' ) end [2025-04-20 01:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 01:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 01:50:22] Production.INFO: ==28866== Releasing lock... [2025-04-20 01:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 01:50:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-20 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 22:51:05 [end_date_ymd] => 2025-04-20 01:51:05 [RateCDR] => 1 ) [2025-04-20 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-19 22:51:05' and `end` < '2025-04-20 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-20 01:51:18] Production.INFO: count ==450 [2025-04-20 01:51:18] Production.ERROR: pbx CDR StartTime 2025-04-19 22:51:05 - End Time 2025-04-20 01:51:05 [2025-04-20 01:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947025', 'tblTempUsageDetail_20' ) start [2025-04-20 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947025', 'tblTempUsageDetail_20' ) end [2025-04-20 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947025', 'tblTempVendorCDR_20' ) start [2025-04-20 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947025', 'tblTempVendorCDR_20' ) end [2025-04-20 01:51:18] Production.INFO: ProcessCDR(1,14947025,1,1,2) [2025-04-20 01:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947025', 'tblTempUsageDetail_20' ) start [2025-04-20 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947025', 'tblTempUsageDetail_20' ) end [2025-04-20 01:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 01:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 01:51:21] Production.INFO: ==28970== Releasing lock... [2025-04-20 01:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 01:51:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-20 01:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 22:52:05 [end_date_ymd] => 2025-04-20 01:52:05 [RateCDR] => 1 ) [2025-04-20 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-19 22:52:05' and `end` < '2025-04-20 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-20 01:52:17] Production.INFO: count ==454 [2025-04-20 01:52:18] Production.ERROR: pbx CDR StartTime 2025-04-19 22:52:05 - End Time 2025-04-20 01:52:05 [2025-04-20 01:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947030', 'tblTempUsageDetail_20' ) start [2025-04-20 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947030', 'tblTempUsageDetail_20' ) end [2025-04-20 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947030', 'tblTempVendorCDR_20' ) start [2025-04-20 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947030', 'tblTempVendorCDR_20' ) end [2025-04-20 01:52:18] Production.INFO: ProcessCDR(1,14947030,1,1,2) [2025-04-20 01:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947030', 'tblTempUsageDetail_20' ) start [2025-04-20 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947030', 'tblTempUsageDetail_20' ) end [2025-04-20 01:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 01:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 01:52:21] Production.INFO: ==29078== Releasing lock... [2025-04-20 01:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 01:52:21] Production.INFO: 32 MB #Memory Used# [2025-04-20 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 22:53:05 [end_date_ymd] => 2025-04-20 01:53:05 [RateCDR] => 1 ) [2025-04-20 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-19 22:53:05' and `end` < '2025-04-20 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-20 01:53:18] Production.INFO: count ==454 [2025-04-20 01:53:18] Production.ERROR: pbx CDR StartTime 2025-04-19 22:53:05 - End Time 2025-04-20 01:53:05 [2025-04-20 01:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947035', 'tblTempUsageDetail_20' ) start [2025-04-20 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947035', 'tblTempUsageDetail_20' ) end [2025-04-20 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947035', 'tblTempVendorCDR_20' ) start [2025-04-20 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947035', 'tblTempVendorCDR_20' ) end [2025-04-20 01:53:18] Production.INFO: ProcessCDR(1,14947035,1,1,2) [2025-04-20 01:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947035', 'tblTempUsageDetail_20' ) start [2025-04-20 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947035', 'tblTempUsageDetail_20' ) end [2025-04-20 01:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 01:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 01:53:22] Production.INFO: ==29188== Releasing lock... [2025-04-20 01:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 01:53:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-20 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 22:54:05 [end_date_ymd] => 2025-04-20 01:54:05 [RateCDR] => 1 ) [2025-04-20 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-19 22:54:05' and `end` < '2025-04-20 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-20 01:54:17] Production.INFO: count ==455 [2025-04-20 01:54:17] Production.ERROR: pbx CDR StartTime 2025-04-19 22:54:05 - End Time 2025-04-20 01:54:05 [2025-04-20 01:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947040', 'tblTempUsageDetail_20' ) start [2025-04-20 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947040', 'tblTempUsageDetail_20' ) end [2025-04-20 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947040', 'tblTempVendorCDR_20' ) start [2025-04-20 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947040', 'tblTempVendorCDR_20' ) end [2025-04-20 01:54:17] Production.INFO: ProcessCDR(1,14947040,1,1,2) [2025-04-20 01:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947040', 'tblTempUsageDetail_20' ) start [2025-04-20 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947040', 'tblTempUsageDetail_20' ) end [2025-04-20 01:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 01:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 01:54:21] Production.INFO: ==29291== Releasing lock... [2025-04-20 01:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 01:54:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-20 01:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 22:55:06 [end_date_ymd] => 2025-04-20 01:55:06 [RateCDR] => 1 ) [2025-04-20 01:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-19 22:55:06' and `end` < '2025-04-20 01:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 01:55:19] Production.INFO: count ==455 [2025-04-20 01:55:19] Production.ERROR: pbx CDR StartTime 2025-04-19 22:55:06 - End Time 2025-04-20 01:55:06 [2025-04-20 01:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947045', 'tblTempUsageDetail_20' ) start [2025-04-20 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947045', 'tblTempUsageDetail_20' ) end [2025-04-20 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947045', 'tblTempVendorCDR_20' ) start [2025-04-20 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947045', 'tblTempVendorCDR_20' ) end [2025-04-20 01:55:19] Production.INFO: ProcessCDR(1,14947045,1,1,2) [2025-04-20 01:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947045', 'tblTempUsageDetail_20' ) start [2025-04-20 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947045', 'tblTempUsageDetail_20' ) end [2025-04-20 01:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 01:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 01:55:22] Production.INFO: ==29450== Releasing lock... [2025-04-20 01:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 01:55:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-20 01:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 22:56:05 [end_date_ymd] => 2025-04-20 01:56:05 [RateCDR] => 1 ) [2025-04-20 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-19 22:56:05' and `end` < '2025-04-20 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-20 01:56:18] Production.INFO: count ==458 [2025-04-20 01:56:18] Production.ERROR: pbx CDR StartTime 2025-04-19 22:56:05 - End Time 2025-04-20 01:56:05 [2025-04-20 01:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947050', 'tblTempUsageDetail_20' ) start [2025-04-20 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947050', 'tblTempUsageDetail_20' ) end [2025-04-20 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947050', 'tblTempVendorCDR_20' ) start [2025-04-20 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947050', 'tblTempVendorCDR_20' ) end [2025-04-20 01:56:18] Production.INFO: ProcessCDR(1,14947050,1,1,2) [2025-04-20 01:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947050', 'tblTempUsageDetail_20' ) start [2025-04-20 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947050', 'tblTempUsageDetail_20' ) end [2025-04-20 01:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 01:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 01:56:22] Production.INFO: ==29556== Releasing lock... [2025-04-20 01:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 01:56:22] Production.INFO: 32 MB #Memory Used# [2025-04-20 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 22:57:05 [end_date_ymd] => 2025-04-20 01:57:05 [RateCDR] => 1 ) [2025-04-20 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-19 22:57:05' and `end` < '2025-04-20 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-20 01:57:18] Production.INFO: count ==455 [2025-04-20 01:57:18] Production.ERROR: pbx CDR StartTime 2025-04-19 22:57:05 - End Time 2025-04-20 01:57:05 [2025-04-20 01:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947055', 'tblTempUsageDetail_20' ) start [2025-04-20 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947055', 'tblTempUsageDetail_20' ) end [2025-04-20 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947055', 'tblTempVendorCDR_20' ) start [2025-04-20 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947055', 'tblTempVendorCDR_20' ) end [2025-04-20 01:57:18] Production.INFO: ProcessCDR(1,14947055,1,1,2) [2025-04-20 01:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947055', 'tblTempUsageDetail_20' ) start [2025-04-20 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947055', 'tblTempUsageDetail_20' ) end [2025-04-20 01:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 01:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 01:57:21] Production.INFO: ==29665== Releasing lock... [2025-04-20 01:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 01:57:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-20 01:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 22:58:06 [end_date_ymd] => 2025-04-20 01:58:06 [RateCDR] => 1 ) [2025-04-20 01:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-19 22:58:06' and `end` < '2025-04-20 01:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 01:58:18] Production.INFO: count ==450 [2025-04-20 01:58:18] Production.ERROR: pbx CDR StartTime 2025-04-19 22:58:06 - End Time 2025-04-20 01:58:06 [2025-04-20 01:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947060', 'tblTempUsageDetail_20' ) start [2025-04-20 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947060', 'tblTempUsageDetail_20' ) end [2025-04-20 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947060', 'tblTempVendorCDR_20' ) start [2025-04-20 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947060', 'tblTempVendorCDR_20' ) end [2025-04-20 01:58:18] Production.INFO: ProcessCDR(1,14947060,1,1,2) [2025-04-20 01:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947060', 'tblTempUsageDetail_20' ) start [2025-04-20 01:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947060', 'tblTempUsageDetail_20' ) end [2025-04-20 01:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 01:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 01:58:22] Production.INFO: ==29773== Releasing lock... [2025-04-20 01:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 01:58:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-20 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 22:59:05 [end_date_ymd] => 2025-04-20 01:59:05 [RateCDR] => 1 ) [2025-04-20 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-19 22:59:05' and `end` < '2025-04-20 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-20 01:59:18] Production.INFO: count ==451 [2025-04-20 01:59:18] Production.ERROR: pbx CDR StartTime 2025-04-19 22:59:05 - End Time 2025-04-20 01:59:05 [2025-04-20 01:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947065', 'tblTempUsageDetail_20' ) start [2025-04-20 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947065', 'tblTempUsageDetail_20' ) end [2025-04-20 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947065', 'tblTempVendorCDR_20' ) start [2025-04-20 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947065', 'tblTempVendorCDR_20' ) end [2025-04-20 01:59:18] Production.INFO: ProcessCDR(1,14947065,1,1,2) [2025-04-20 01:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 01:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947065', 'tblTempUsageDetail_20' ) start [2025-04-20 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947065', 'tblTempUsageDetail_20' ) end [2025-04-20 01:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 01:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 01:59:21] Production.INFO: ==29879== Releasing lock... [2025-04-20 01:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 01:59:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-20 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 23:00:06 [end_date_ymd] => 2025-04-20 02:00:06 [RateCDR] => 1 ) [2025-04-20 02:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-19 23:00:06' and `end` < '2025-04-20 02:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 02:00:19] Production.INFO: count ==452 [2025-04-20 02:00:19] Production.ERROR: pbx CDR StartTime 2025-04-19 23:00:06 - End Time 2025-04-20 02:00:06 [2025-04-20 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947070', 'tblTempUsageDetail_20' ) start [2025-04-20 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947070', 'tblTempUsageDetail_20' ) end [2025-04-20 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947070', 'tblTempVendorCDR_20' ) start [2025-04-20 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947070', 'tblTempVendorCDR_20' ) end [2025-04-20 02:00:19] Production.INFO: ProcessCDR(1,14947070,1,1,2) [2025-04-20 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947070', 'tblTempUsageDetail_20' ) start [2025-04-20 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947070', 'tblTempUsageDetail_20' ) end [2025-04-20 02:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 02:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 02:00:22] Production.INFO: ==29993== Releasing lock... [2025-04-20 02:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 02:00:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-20 02:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 23:01:06 [end_date_ymd] => 2025-04-20 02:01:06 [RateCDR] => 1 ) [2025-04-20 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-19 23:01:06' and `end` < '2025-04-20 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-20 02:01:18] Production.INFO: count ==450 [2025-04-20 02:01:18] Production.ERROR: pbx CDR StartTime 2025-04-19 23:01:06 - End Time 2025-04-20 02:01:06 [2025-04-20 02:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947076', 'tblTempUsageDetail_20' ) start [2025-04-20 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947076', 'tblTempUsageDetail_20' ) end [2025-04-20 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947076', 'tblTempVendorCDR_20' ) start [2025-04-20 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947076', 'tblTempVendorCDR_20' ) end [2025-04-20 02:01:18] Production.INFO: ProcessCDR(1,14947076,1,1,2) [2025-04-20 02:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947076', 'tblTempUsageDetail_20' ) start [2025-04-20 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947076', 'tblTempUsageDetail_20' ) end [2025-04-20 02:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 02:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 02:01:22] Production.INFO: ==30118== Releasing lock... [2025-04-20 02:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 02:01:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-20 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 23:02:05 [end_date_ymd] => 2025-04-20 02:02:05 [RateCDR] => 1 ) [2025-04-20 02: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-19 23:02:05' and `end` < '2025-04-20 02: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-20 02:02:18] Production.INFO: count ==448 [2025-04-20 02:02:18] Production.ERROR: pbx CDR StartTime 2025-04-19 23:02:05 - End Time 2025-04-20 02:02:05 [2025-04-20 02:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947081', 'tblTempUsageDetail_20' ) start [2025-04-20 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947081', 'tblTempUsageDetail_20' ) end [2025-04-20 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947081', 'tblTempVendorCDR_20' ) start [2025-04-20 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947081', 'tblTempVendorCDR_20' ) end [2025-04-20 02:02:18] Production.INFO: ProcessCDR(1,14947081,1,1,2) [2025-04-20 02:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947081', 'tblTempUsageDetail_20' ) start [2025-04-20 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947081', 'tblTempUsageDetail_20' ) end [2025-04-20 02:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 02:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 02:02:21] Production.INFO: ==30316== Releasing lock... [2025-04-20 02:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 02:02:21] Production.INFO: 32 MB #Memory Used# [2025-04-20 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 23:03:05 [end_date_ymd] => 2025-04-20 02:03:05 [RateCDR] => 1 ) [2025-04-20 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-19 23:03:05' and `end` < '2025-04-20 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-20 02:03:18] Production.INFO: count ==445 [2025-04-20 02:03:18] Production.ERROR: pbx CDR StartTime 2025-04-19 23:03:05 - End Time 2025-04-20 02:03:05 [2025-04-20 02:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947086', 'tblTempUsageDetail_20' ) start [2025-04-20 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947086', 'tblTempUsageDetail_20' ) end [2025-04-20 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947086', 'tblTempVendorCDR_20' ) start [2025-04-20 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947086', 'tblTempVendorCDR_20' ) end [2025-04-20 02:03:18] Production.INFO: ProcessCDR(1,14947086,1,1,2) [2025-04-20 02:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947086', 'tblTempUsageDetail_20' ) start [2025-04-20 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947086', 'tblTempUsageDetail_20' ) end [2025-04-20 02:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 02:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 02:03:21] Production.INFO: ==30419== Releasing lock... [2025-04-20 02:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 02:03:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-20 02:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 23:04:05 [end_date_ymd] => 2025-04-20 02:04:05 [RateCDR] => 1 ) [2025-04-20 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-19 23:04:05' and `end` < '2025-04-20 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-20 02:04:18] Production.INFO: count ==440 [2025-04-20 02:04:18] Production.ERROR: pbx CDR StartTime 2025-04-19 23:04:05 - End Time 2025-04-20 02:04:05 [2025-04-20 02:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947091', 'tblTempUsageDetail_20' ) start [2025-04-20 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947091', 'tblTempUsageDetail_20' ) end [2025-04-20 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947091', 'tblTempVendorCDR_20' ) start [2025-04-20 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947091', 'tblTempVendorCDR_20' ) end [2025-04-20 02:04:18] Production.INFO: ProcessCDR(1,14947091,1,1,2) [2025-04-20 02:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947091', 'tblTempUsageDetail_20' ) start [2025-04-20 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947091', 'tblTempUsageDetail_20' ) end [2025-04-20 02:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 02:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 02:04:22] Production.INFO: ==30522== Releasing lock... [2025-04-20 02:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 02:04:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-20 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 23:05:05 [end_date_ymd] => 2025-04-20 02:05:05 [RateCDR] => 1 ) [2025-04-20 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-19 23:05:05' and `end` < '2025-04-20 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-20 02:05:17] Production.INFO: count ==438 [2025-04-20 02:05:17] Production.ERROR: pbx CDR StartTime 2025-04-19 23:05:05 - End Time 2025-04-20 02:05:05 [2025-04-20 02:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947096', 'tblTempUsageDetail_20' ) start [2025-04-20 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947096', 'tblTempUsageDetail_20' ) end [2025-04-20 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947096', 'tblTempVendorCDR_20' ) start [2025-04-20 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947096', 'tblTempVendorCDR_20' ) end [2025-04-20 02:05:17] Production.INFO: ProcessCDR(1,14947096,1,1,2) [2025-04-20 02:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947096', 'tblTempUsageDetail_20' ) start [2025-04-20 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947096', 'tblTempUsageDetail_20' ) end [2025-04-20 02:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 02:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 02:05:21] Production.INFO: ==30598== Releasing lock... [2025-04-20 02:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 02:05:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-20 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 23:06:05 [end_date_ymd] => 2025-04-20 02:06:05 [RateCDR] => 1 ) [2025-04-20 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-19 23:06:05' and `end` < '2025-04-20 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-20 02:06:18] Production.INFO: count ==437 [2025-04-20 02:06:18] Production.ERROR: pbx CDR StartTime 2025-04-19 23:06:05 - End Time 2025-04-20 02:06:05 [2025-04-20 02:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947101', 'tblTempUsageDetail_20' ) start [2025-04-20 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947101', 'tblTempUsageDetail_20' ) end [2025-04-20 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947101', 'tblTempVendorCDR_20' ) start [2025-04-20 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947101', 'tblTempVendorCDR_20' ) end [2025-04-20 02:06:18] Production.INFO: ProcessCDR(1,14947101,1,1,2) [2025-04-20 02:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947101', 'tblTempUsageDetail_20' ) start [2025-04-20 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947101', 'tblTempUsageDetail_20' ) end [2025-04-20 02:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 02:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 02:06:21] Production.INFO: ==30669== Releasing lock... [2025-04-20 02:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 02:06:21] Production.INFO: 32 MB #Memory Used# [2025-04-20 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 23:07:05 [end_date_ymd] => 2025-04-20 02:07:05 [RateCDR] => 1 ) [2025-04-20 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-19 23:07:05' and `end` < '2025-04-20 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-20 02:07:17] Production.INFO: count ==435 [2025-04-20 02:07:17] Production.ERROR: pbx CDR StartTime 2025-04-19 23:07:05 - End Time 2025-04-20 02:07:05 [2025-04-20 02:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947106', 'tblTempUsageDetail_20' ) start [2025-04-20 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947106', 'tblTempUsageDetail_20' ) end [2025-04-20 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947106', 'tblTempVendorCDR_20' ) start [2025-04-20 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947106', 'tblTempVendorCDR_20' ) end [2025-04-20 02:07:17] Production.INFO: ProcessCDR(1,14947106,1,1,2) [2025-04-20 02:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947106', 'tblTempUsageDetail_20' ) start [2025-04-20 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947106', 'tblTempUsageDetail_20' ) end [2025-04-20 02:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 02:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 02:07:21] Production.INFO: ==30742== Releasing lock... [2025-04-20 02:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 02:07:21] Production.INFO: 32 MB #Memory Used# [2025-04-20 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 23:08:05 [end_date_ymd] => 2025-04-20 02:08:05 [RateCDR] => 1 ) [2025-04-20 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-19 23:08:05' and `end` < '2025-04-20 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-20 02:08:17] Production.INFO: count ==431 [2025-04-20 02:08:18] Production.ERROR: pbx CDR StartTime 2025-04-19 23:08:05 - End Time 2025-04-20 02:08:05 [2025-04-20 02:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947111', 'tblTempUsageDetail_20' ) start [2025-04-20 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947111', 'tblTempUsageDetail_20' ) end [2025-04-20 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947111', 'tblTempVendorCDR_20' ) start [2025-04-20 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947111', 'tblTempVendorCDR_20' ) end [2025-04-20 02:08:18] Production.INFO: ProcessCDR(1,14947111,1,1,2) [2025-04-20 02:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947111', 'tblTempUsageDetail_20' ) start [2025-04-20 02:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947111', 'tblTempUsageDetail_20' ) end [2025-04-20 02:08:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 02:08:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 02:08:23] Production.INFO: ==30812== Releasing lock... [2025-04-20 02:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 02:08:23] Production.INFO: 32 MB #Memory Used# [2025-04-20 02:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 23:09:04 [end_date_ymd] => 2025-04-20 02:09:04 [RateCDR] => 1 ) [2025-04-20 02: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-19 23:09:04' and `end` < '2025-04-20 02: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-20 02:09:17] Production.INFO: count ==429 [2025-04-20 02:09:17] Production.ERROR: pbx CDR StartTime 2025-04-19 23:09:04 - End Time 2025-04-20 02:09:04 [2025-04-20 02:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947116', 'tblTempUsageDetail_20' ) start [2025-04-20 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947116', 'tblTempUsageDetail_20' ) end [2025-04-20 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947116', 'tblTempVendorCDR_20' ) start [2025-04-20 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947116', 'tblTempVendorCDR_20' ) end [2025-04-20 02:09:17] Production.INFO: ProcessCDR(1,14947116,1,1,2) [2025-04-20 02:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947116', 'tblTempUsageDetail_20' ) start [2025-04-20 02:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947116', 'tblTempUsageDetail_20' ) end [2025-04-20 02:09:20] Production.ERROR: pbx prc_insertCDR start [2025-04-20 02:09:20] Production.ERROR: pbx prc_insertCDR end [2025-04-20 02:09:20] Production.INFO: ==30890== Releasing lock... [2025-04-20 02:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 02:09:20] Production.INFO: 32.25 MB #Memory Used# [2025-04-20 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 23:10:06 [end_date_ymd] => 2025-04-20 02:10:06 [RateCDR] => 1 ) [2025-04-20 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-19 23:10:06' and `end` < '2025-04-20 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-20 02:10:19] Production.INFO: count ==436 [2025-04-20 02:10:19] Production.ERROR: pbx CDR StartTime 2025-04-19 23:10:06 - End Time 2025-04-20 02:10:06 [2025-04-20 02:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947122', 'tblTempUsageDetail_20' ) start [2025-04-20 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947122', 'tblTempUsageDetail_20' ) end [2025-04-20 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947122', 'tblTempVendorCDR_20' ) start [2025-04-20 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947122', 'tblTempVendorCDR_20' ) end [2025-04-20 02:10:19] Production.INFO: ProcessCDR(1,14947122,1,1,2) [2025-04-20 02:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947122', 'tblTempUsageDetail_20' ) start [2025-04-20 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947122', 'tblTempUsageDetail_20' ) end [2025-04-20 02:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 02:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 02:10:22] Production.INFO: ==31006== Releasing lock... [2025-04-20 02:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 02:10:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-20 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 23:11:05 [end_date_ymd] => 2025-04-20 02:11:05 [RateCDR] => 1 ) [2025-04-20 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-19 23:11:05' and `end` < '2025-04-20 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-20 02:11:18] Production.INFO: count ==443 [2025-04-20 02:11:18] Production.ERROR: pbx CDR StartTime 2025-04-19 23:11:05 - End Time 2025-04-20 02:11:05 [2025-04-20 02:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947127', 'tblTempUsageDetail_20' ) start [2025-04-20 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947127', 'tblTempUsageDetail_20' ) end [2025-04-20 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947127', 'tblTempVendorCDR_20' ) start [2025-04-20 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947127', 'tblTempVendorCDR_20' ) end [2025-04-20 02:11:18] Production.INFO: ProcessCDR(1,14947127,1,1,2) [2025-04-20 02:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947127', 'tblTempUsageDetail_20' ) start [2025-04-20 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947127', 'tblTempUsageDetail_20' ) end [2025-04-20 02:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 02:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 02:11:22] Production.INFO: ==31090== Releasing lock... [2025-04-20 02:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 02:11:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-20 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 23:12:05 [end_date_ymd] => 2025-04-20 02:12:05 [RateCDR] => 1 ) [2025-04-20 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-19 23:12:05' and `end` < '2025-04-20 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-20 02:12:18] Production.INFO: count ==446 [2025-04-20 02:12:18] Production.ERROR: pbx CDR StartTime 2025-04-19 23:12:05 - End Time 2025-04-20 02:12:05 [2025-04-20 02:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947132', 'tblTempUsageDetail_20' ) start [2025-04-20 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947132', 'tblTempUsageDetail_20' ) end [2025-04-20 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947132', 'tblTempVendorCDR_20' ) start [2025-04-20 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947132', 'tblTempVendorCDR_20' ) end [2025-04-20 02:12:18] Production.INFO: ProcessCDR(1,14947132,1,1,2) [2025-04-20 02:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947132', 'tblTempUsageDetail_20' ) start [2025-04-20 02:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947132', 'tblTempUsageDetail_20' ) end [2025-04-20 02:12:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 02:12:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 02:12:23] Production.INFO: ==31161== Releasing lock... [2025-04-20 02:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 02:12:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-20 02:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 23:13:06 [end_date_ymd] => 2025-04-20 02:13:06 [RateCDR] => 1 ) [2025-04-20 02:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-19 23:13:06' and `end` < '2025-04-20 02:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 02:13:18] Production.INFO: count ==450 [2025-04-20 02:13:18] Production.ERROR: pbx CDR StartTime 2025-04-19 23:13:06 - End Time 2025-04-20 02:13:06 [2025-04-20 02:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947137', 'tblTempUsageDetail_20' ) start [2025-04-20 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947137', 'tblTempUsageDetail_20' ) end [2025-04-20 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947137', 'tblTempVendorCDR_20' ) start [2025-04-20 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947137', 'tblTempVendorCDR_20' ) end [2025-04-20 02:13:18] Production.INFO: ProcessCDR(1,14947137,1,1,2) [2025-04-20 02:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947137', 'tblTempUsageDetail_20' ) start [2025-04-20 02:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947137', 'tblTempUsageDetail_20' ) end [2025-04-20 02:13:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 02:13:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 02:13:23] Production.INFO: ==31234== Releasing lock... [2025-04-20 02:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 02:13:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-20 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 23:14:05 [end_date_ymd] => 2025-04-20 02:14:05 [RateCDR] => 1 ) [2025-04-20 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-19 23:14:05' and `end` < '2025-04-20 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-20 02:14:18] Production.INFO: count ==453 [2025-04-20 02:14:18] Production.ERROR: pbx CDR StartTime 2025-04-19 23:14:05 - End Time 2025-04-20 02:14:05 [2025-04-20 02:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947142', 'tblTempUsageDetail_20' ) start [2025-04-20 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947142', 'tblTempUsageDetail_20' ) end [2025-04-20 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947142', 'tblTempVendorCDR_20' ) start [2025-04-20 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947142', 'tblTempVendorCDR_20' ) end [2025-04-20 02:14:18] Production.INFO: ProcessCDR(1,14947142,1,1,2) [2025-04-20 02:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947142', 'tblTempUsageDetail_20' ) start [2025-04-20 02:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947142', 'tblTempUsageDetail_20' ) end [2025-04-20 02:14:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 02:14:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 02:14:23] Production.INFO: ==31306== Releasing lock... [2025-04-20 02:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 02:14:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-20 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 23:15:05 [end_date_ymd] => 2025-04-20 02:15:05 [RateCDR] => 1 ) [2025-04-20 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-19 23:15:05' and `end` < '2025-04-20 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-20 02:15:18] Production.INFO: count ==453 [2025-04-20 02:15:18] Production.ERROR: pbx CDR StartTime 2025-04-19 23:15:05 - End Time 2025-04-20 02:15:05 [2025-04-20 02:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947147', 'tblTempUsageDetail_20' ) start [2025-04-20 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947147', 'tblTempUsageDetail_20' ) end [2025-04-20 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947147', 'tblTempVendorCDR_20' ) start [2025-04-20 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947147', 'tblTempVendorCDR_20' ) end [2025-04-20 02:15:18] Production.INFO: ProcessCDR(1,14947147,1,1,2) [2025-04-20 02:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947147', 'tblTempUsageDetail_20' ) start [2025-04-20 02:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947147', 'tblTempUsageDetail_20' ) end [2025-04-20 02:15:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 02:15:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 02:15:23] Production.INFO: ==31377== Releasing lock... [2025-04-20 02:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 02:15:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-20 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 23:16:05 [end_date_ymd] => 2025-04-20 02:16:05 [RateCDR] => 1 ) [2025-04-20 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-19 23:16:05' and `end` < '2025-04-20 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-20 02:16:17] Production.INFO: count ==455 [2025-04-20 02:16:18] Production.ERROR: pbx CDR StartTime 2025-04-19 23:16:05 - End Time 2025-04-20 02:16:05 [2025-04-20 02:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947152', 'tblTempUsageDetail_20' ) start [2025-04-20 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947152', 'tblTempUsageDetail_20' ) end [2025-04-20 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947152', 'tblTempVendorCDR_20' ) start [2025-04-20 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947152', 'tblTempVendorCDR_20' ) end [2025-04-20 02:16:18] Production.INFO: ProcessCDR(1,14947152,1,1,2) [2025-04-20 02:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947152', 'tblTempUsageDetail_20' ) start [2025-04-20 02:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947152', 'tblTempUsageDetail_20' ) end [2025-04-20 02:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 02:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 02:16:22] Production.INFO: ==31449== Releasing lock... [2025-04-20 02:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 02:16:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-20 02:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 23:17:05 [end_date_ymd] => 2025-04-20 02:17:05 [RateCDR] => 1 ) [2025-04-20 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-19 23:17:05' and `end` < '2025-04-20 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-20 02:17:17] Production.INFO: count ==454 [2025-04-20 02:17:18] Production.ERROR: pbx CDR StartTime 2025-04-19 23:17:05 - End Time 2025-04-20 02:17:05 [2025-04-20 02:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947157', 'tblTempUsageDetail_20' ) start [2025-04-20 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947157', 'tblTempUsageDetail_20' ) end [2025-04-20 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947157', 'tblTempVendorCDR_20' ) start [2025-04-20 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947157', 'tblTempVendorCDR_20' ) end [2025-04-20 02:17:18] Production.INFO: ProcessCDR(1,14947157,1,1,2) [2025-04-20 02:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947157', 'tblTempUsageDetail_20' ) start [2025-04-20 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947157', 'tblTempUsageDetail_20' ) end [2025-04-20 02:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 02:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 02:17:21] Production.INFO: ==31521== Releasing lock... [2025-04-20 02:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 02:17:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-20 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 23:18:05 [end_date_ymd] => 2025-04-20 02:18:05 [RateCDR] => 1 ) [2025-04-20 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-19 23:18:05' and `end` < '2025-04-20 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-20 02:18:18] Production.INFO: count ==454 [2025-04-20 02:18:18] Production.ERROR: pbx CDR StartTime 2025-04-19 23:18:05 - End Time 2025-04-20 02:18:05 [2025-04-20 02:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947162', 'tblTempUsageDetail_20' ) start [2025-04-20 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947162', 'tblTempUsageDetail_20' ) end [2025-04-20 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947162', 'tblTempVendorCDR_20' ) start [2025-04-20 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947162', 'tblTempVendorCDR_20' ) end [2025-04-20 02:18:18] Production.INFO: ProcessCDR(1,14947162,1,1,2) [2025-04-20 02:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947162', 'tblTempUsageDetail_20' ) start [2025-04-20 02:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947162', 'tblTempUsageDetail_20' ) end [2025-04-20 02:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 02:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 02:18:22] Production.INFO: ==31597== Releasing lock... [2025-04-20 02:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 02:18:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-20 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 23:19:05 [end_date_ymd] => 2025-04-20 02:19:05 [RateCDR] => 1 ) [2025-04-20 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-19 23:19:05' and `end` < '2025-04-20 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-20 02:19:18] Production.INFO: count ==454 [2025-04-20 02:19:18] Production.ERROR: pbx CDR StartTime 2025-04-19 23:19:05 - End Time 2025-04-20 02:19:05 [2025-04-20 02:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947167', 'tblTempUsageDetail_20' ) start [2025-04-20 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947167', 'tblTempUsageDetail_20' ) end [2025-04-20 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947167', 'tblTempVendorCDR_20' ) start [2025-04-20 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947167', 'tblTempVendorCDR_20' ) end [2025-04-20 02:19:18] Production.INFO: ProcessCDR(1,14947167,1,1,2) [2025-04-20 02:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947167', 'tblTempUsageDetail_20' ) start [2025-04-20 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947167', 'tblTempUsageDetail_20' ) end [2025-04-20 02:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 02:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 02:19:21] Production.INFO: ==31671== Releasing lock... [2025-04-20 02:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 02:19:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-20 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 23:20:06 [end_date_ymd] => 2025-04-20 02:20:06 [RateCDR] => 1 ) [2025-04-20 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-19 23:20:06' and `end` < '2025-04-20 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-20 02:20:18] Production.INFO: count ==461 [2025-04-20 02:20:18] Production.ERROR: pbx CDR StartTime 2025-04-19 23:20:06 - End Time 2025-04-20 02:20:06 [2025-04-20 02:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947173', 'tblTempUsageDetail_20' ) start [2025-04-20 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947173', 'tblTempUsageDetail_20' ) end [2025-04-20 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947173', 'tblTempVendorCDR_20' ) start [2025-04-20 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947173', 'tblTempVendorCDR_20' ) end [2025-04-20 02:20:18] Production.INFO: ProcessCDR(1,14947173,1,1,2) [2025-04-20 02:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947173', 'tblTempUsageDetail_20' ) start [2025-04-20 02:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947173', 'tblTempUsageDetail_20' ) end [2025-04-20 02:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 02:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 02:20:23] Production.INFO: ==31744== Releasing lock... [2025-04-20 02:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 02:20:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-20 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 23:21:05 [end_date_ymd] => 2025-04-20 02:21:05 [RateCDR] => 1 ) [2025-04-20 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-19 23:21:05' and `end` < '2025-04-20 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-20 02:21:19] Production.INFO: count ==459 [2025-04-20 02:21:19] Production.ERROR: pbx CDR StartTime 2025-04-19 23:21:05 - End Time 2025-04-20 02:21:05 [2025-04-20 02:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 02:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947178', 'tblTempUsageDetail_20' ) start [2025-04-20 02:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947178', 'tblTempUsageDetail_20' ) end [2025-04-20 02:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947178', 'tblTempVendorCDR_20' ) start [2025-04-20 02:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947178', 'tblTempVendorCDR_20' ) end [2025-04-20 02:21:19] Production.INFO: ProcessCDR(1,14947178,1,1,2) [2025-04-20 02:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947178', 'tblTempUsageDetail_20' ) start [2025-04-20 02:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947178', 'tblTempUsageDetail_20' ) end [2025-04-20 02:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 02:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 02:21:22] Production.INFO: ==31818== Releasing lock... [2025-04-20 02:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 02:21:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-20 02:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 23:22:06 [end_date_ymd] => 2025-04-20 02:22:06 [RateCDR] => 1 ) [2025-04-20 02:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-19 23:22:06' and `end` < '2025-04-20 02:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 02:22:18] Production.INFO: count ==457 [2025-04-20 02:22:18] Production.ERROR: pbx CDR StartTime 2025-04-19 23:22:06 - End Time 2025-04-20 02:22:06 [2025-04-20 02:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947183', 'tblTempUsageDetail_20' ) start [2025-04-20 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947183', 'tblTempUsageDetail_20' ) end [2025-04-20 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947183', 'tblTempVendorCDR_20' ) start [2025-04-20 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947183', 'tblTempVendorCDR_20' ) end [2025-04-20 02:22:18] Production.INFO: ProcessCDR(1,14947183,1,1,2) [2025-04-20 02:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947183', 'tblTempUsageDetail_20' ) start [2025-04-20 02:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947183', 'tblTempUsageDetail_20' ) end [2025-04-20 02:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 02:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 02:22:23] Production.INFO: ==31914== Releasing lock... [2025-04-20 02:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 02:22:23] Production.INFO: 32 MB #Memory Used# [2025-04-20 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 23:23:05 [end_date_ymd] => 2025-04-20 02:23:05 [RateCDR] => 1 ) [2025-04-20 02:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-19 23:23:05' and `end` < '2025-04-20 02:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 02:23:19] Production.INFO: count ==456 [2025-04-20 02:23:19] Production.ERROR: pbx CDR StartTime 2025-04-19 23:23:05 - End Time 2025-04-20 02:23:05 [2025-04-20 02:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947188', 'tblTempUsageDetail_20' ) start [2025-04-20 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947188', 'tblTempUsageDetail_20' ) end [2025-04-20 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947188', 'tblTempVendorCDR_20' ) start [2025-04-20 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947188', 'tblTempVendorCDR_20' ) end [2025-04-20 02:23:19] Production.INFO: ProcessCDR(1,14947188,1,1,2) [2025-04-20 02:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947188', 'tblTempUsageDetail_20' ) start [2025-04-20 02:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947188', 'tblTempUsageDetail_20' ) end [2025-04-20 02:23:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 02:23:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 02:23:24] Production.INFO: ==31989== Releasing lock... [2025-04-20 02:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 02:23:24] Production.INFO: 32 MB #Memory Used# [2025-04-20 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 23:24:05 [end_date_ymd] => 2025-04-20 02:24:05 [RateCDR] => 1 ) [2025-04-20 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-19 23:24:05' and `end` < '2025-04-20 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-20 02:24:18] Production.INFO: count ==456 [2025-04-20 02:24:18] Production.ERROR: pbx CDR StartTime 2025-04-19 23:24:05 - End Time 2025-04-20 02:24:05 [2025-04-20 02:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947193', 'tblTempUsageDetail_20' ) start [2025-04-20 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947193', 'tblTempUsageDetail_20' ) end [2025-04-20 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947193', 'tblTempVendorCDR_20' ) start [2025-04-20 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947193', 'tblTempVendorCDR_20' ) end [2025-04-20 02:24:18] Production.INFO: ProcessCDR(1,14947193,1,1,2) [2025-04-20 02:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947193', 'tblTempUsageDetail_20' ) start [2025-04-20 02:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947193', 'tblTempUsageDetail_20' ) end [2025-04-20 02:24:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 02:24:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 02:24:23] Production.INFO: ==32067== Releasing lock... [2025-04-20 02:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 02:24:23] Production.INFO: 32 MB #Memory Used# [2025-04-20 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 23:25:05 [end_date_ymd] => 2025-04-20 02:25:05 [RateCDR] => 1 ) [2025-04-20 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-19 23:25:05' and `end` < '2025-04-20 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-20 02:25:18] Production.INFO: count ==456 [2025-04-20 02:25:18] Production.ERROR: pbx CDR StartTime 2025-04-19 23:25:05 - End Time 2025-04-20 02:25:05 [2025-04-20 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947198', 'tblTempUsageDetail_20' ) start [2025-04-20 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947198', 'tblTempUsageDetail_20' ) end [2025-04-20 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947198', 'tblTempVendorCDR_20' ) start [2025-04-20 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947198', 'tblTempVendorCDR_20' ) end [2025-04-20 02:25:18] Production.INFO: ProcessCDR(1,14947198,1,1,2) [2025-04-20 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947198', 'tblTempUsageDetail_20' ) start [2025-04-20 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947198', 'tblTempUsageDetail_20' ) end [2025-04-20 02:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 02:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 02:25:21] Production.INFO: ==32178== Releasing lock... [2025-04-20 02:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 02:25:21] Production.INFO: 32 MB #Memory Used# [2025-04-20 02:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 23:26:06 [end_date_ymd] => 2025-04-20 02:26:06 [RateCDR] => 1 ) [2025-04-20 02: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-19 23:26:06' and `end` < '2025-04-20 02: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-20 02:26:18] Production.INFO: count ==455 [2025-04-20 02:26:18] Production.ERROR: pbx CDR StartTime 2025-04-19 23:26:06 - End Time 2025-04-20 02:26:06 [2025-04-20 02:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947203', 'tblTempUsageDetail_20' ) start [2025-04-20 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947203', 'tblTempUsageDetail_20' ) end [2025-04-20 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947203', 'tblTempVendorCDR_20' ) start [2025-04-20 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947203', 'tblTempVendorCDR_20' ) end [2025-04-20 02:26:18] Production.INFO: ProcessCDR(1,14947203,1,1,2) [2025-04-20 02:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947203', 'tblTempUsageDetail_20' ) start [2025-04-20 02:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947203', 'tblTempUsageDetail_20' ) end [2025-04-20 02:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 02:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 02:26:22] Production.INFO: ==32248== Releasing lock... [2025-04-20 02:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 02:26:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-20 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 23:27:05 [end_date_ymd] => 2025-04-20 02:27:05 [RateCDR] => 1 ) [2025-04-20 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-19 23:27:05' and `end` < '2025-04-20 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-20 02:27:17] Production.INFO: count ==452 [2025-04-20 02:27:18] Production.ERROR: pbx CDR StartTime 2025-04-19 23:27:05 - End Time 2025-04-20 02:27:05 [2025-04-20 02:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947208', 'tblTempUsageDetail_20' ) start [2025-04-20 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947208', 'tblTempUsageDetail_20' ) end [2025-04-20 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947208', 'tblTempVendorCDR_20' ) start [2025-04-20 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947208', 'tblTempVendorCDR_20' ) end [2025-04-20 02:27:18] Production.INFO: ProcessCDR(1,14947208,1,1,2) [2025-04-20 02:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947208', 'tblTempUsageDetail_20' ) start [2025-04-20 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947208', 'tblTempUsageDetail_20' ) end [2025-04-20 02:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 02:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 02:27:21] Production.INFO: ==32325== Releasing lock... [2025-04-20 02:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 02:27:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-20 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 23:28:05 [end_date_ymd] => 2025-04-20 02:28:05 [RateCDR] => 1 ) [2025-04-20 02:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-19 23:28:05' and `end` < '2025-04-20 02:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 02:28:18] Production.INFO: count ==451 [2025-04-20 02:28:18] Production.ERROR: pbx CDR StartTime 2025-04-19 23:28:05 - End Time 2025-04-20 02:28:05 [2025-04-20 02:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947213', 'tblTempUsageDetail_20' ) start [2025-04-20 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947213', 'tblTempUsageDetail_20' ) end [2025-04-20 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947213', 'tblTempVendorCDR_20' ) start [2025-04-20 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947213', 'tblTempVendorCDR_20' ) end [2025-04-20 02:28:18] Production.INFO: ProcessCDR(1,14947213,1,1,2) [2025-04-20 02:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947213', 'tblTempUsageDetail_20' ) start [2025-04-20 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947213', 'tblTempUsageDetail_20' ) end [2025-04-20 02:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 02:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 02:28:21] Production.INFO: ==32395== Releasing lock... [2025-04-20 02:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 02:28:21] Production.INFO: 32 MB #Memory Used# [2025-04-20 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 23:29:05 [end_date_ymd] => 2025-04-20 02:29:05 [RateCDR] => 1 ) [2025-04-20 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-19 23:29:05' and `end` < '2025-04-20 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-20 02:29:17] Production.INFO: count ==449 [2025-04-20 02:29:17] Production.ERROR: pbx CDR StartTime 2025-04-19 23:29:05 - End Time 2025-04-20 02:29:05 [2025-04-20 02:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947218', 'tblTempUsageDetail_20' ) start [2025-04-20 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947218', 'tblTempUsageDetail_20' ) end [2025-04-20 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947218', 'tblTempVendorCDR_20' ) start [2025-04-20 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947218', 'tblTempVendorCDR_20' ) end [2025-04-20 02:29:17] Production.INFO: ProcessCDR(1,14947218,1,1,2) [2025-04-20 02:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947218', 'tblTempUsageDetail_20' ) start [2025-04-20 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947218', 'tblTempUsageDetail_20' ) end [2025-04-20 02:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 02:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 02:29:21] Production.INFO: ==32468== Releasing lock... [2025-04-20 02:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 02:29:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-20 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 23:30:06 [end_date_ymd] => 2025-04-20 02:30:06 [RateCDR] => 1 ) [2025-04-20 02:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-19 23:30:06' and `end` < '2025-04-20 02:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 02:30:19] Production.INFO: count ==452 [2025-04-20 02:30:19] Production.ERROR: pbx CDR StartTime 2025-04-19 23:30:06 - End Time 2025-04-20 02:30:06 [2025-04-20 02:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947224', 'tblTempUsageDetail_20' ) start [2025-04-20 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947224', 'tblTempUsageDetail_20' ) end [2025-04-20 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947224', 'tblTempVendorCDR_20' ) start [2025-04-20 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947224', 'tblTempVendorCDR_20' ) end [2025-04-20 02:30:19] Production.INFO: ProcessCDR(1,14947224,1,1,2) [2025-04-20 02:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947224', 'tblTempUsageDetail_20' ) start [2025-04-20 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947224', 'tblTempUsageDetail_20' ) end [2025-04-20 02:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 02:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 02:30:22] Production.INFO: ==32543== Releasing lock... [2025-04-20 02:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 02:30:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-20 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 23:31:05 [end_date_ymd] => 2025-04-20 02:31:05 [RateCDR] => 1 ) [2025-04-20 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-19 23:31:05' and `end` < '2025-04-20 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-20 02:31:17] Production.INFO: count ==470 [2025-04-20 02:31:17] Production.ERROR: pbx CDR StartTime 2025-04-19 23:31:05 - End Time 2025-04-20 02:31:05 [2025-04-20 02:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947229', 'tblTempUsageDetail_20' ) start [2025-04-20 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947229', 'tblTempUsageDetail_20' ) end [2025-04-20 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947229', 'tblTempVendorCDR_20' ) start [2025-04-20 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947229', 'tblTempVendorCDR_20' ) end [2025-04-20 02:31:17] Production.INFO: ProcessCDR(1,14947229,1,1,2) [2025-04-20 02:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947229', 'tblTempUsageDetail_20' ) start [2025-04-20 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947229', 'tblTempUsageDetail_20' ) end [2025-04-20 02:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 02:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 02:31:21] Production.INFO: ==32621== Releasing lock... [2025-04-20 02:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 02:31:21] Production.INFO: 32 MB #Memory Used# [2025-04-20 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 23:32:05 [end_date_ymd] => 2025-04-20 02:32:05 [RateCDR] => 1 ) [2025-04-20 02:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-19 23:32:05' and `end` < '2025-04-20 02:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 02:32:18] Production.INFO: count ==470 [2025-04-20 02:32:18] Production.ERROR: pbx CDR StartTime 2025-04-19 23:32:05 - End Time 2025-04-20 02:32:05 [2025-04-20 02:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947234', 'tblTempUsageDetail_20' ) start [2025-04-20 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947234', 'tblTempUsageDetail_20' ) end [2025-04-20 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947234', 'tblTempVendorCDR_20' ) start [2025-04-20 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947234', 'tblTempVendorCDR_20' ) end [2025-04-20 02:32:18] Production.INFO: ProcessCDR(1,14947234,1,1,2) [2025-04-20 02:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947234', 'tblTempUsageDetail_20' ) start [2025-04-20 02:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947234', 'tblTempUsageDetail_20' ) end [2025-04-20 02:32:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 02:32:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 02:32:23] Production.INFO: ==32693== Releasing lock... [2025-04-20 02:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 02:32:23] Production.INFO: 32 MB #Memory Used# [2025-04-20 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 23:33:05 [end_date_ymd] => 2025-04-20 02:33:05 [RateCDR] => 1 ) [2025-04-20 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-19 23:33:05' and `end` < '2025-04-20 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-20 02:33:18] Production.INFO: count ==471 [2025-04-20 02:33:18] Production.ERROR: pbx CDR StartTime 2025-04-19 23:33:05 - End Time 2025-04-20 02:33:05 [2025-04-20 02:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947239', 'tblTempUsageDetail_20' ) start [2025-04-20 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947239', 'tblTempUsageDetail_20' ) end [2025-04-20 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947239', 'tblTempVendorCDR_20' ) start [2025-04-20 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947239', 'tblTempVendorCDR_20' ) end [2025-04-20 02:33:19] Production.INFO: ProcessCDR(1,14947239,1,1,2) [2025-04-20 02:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947239', 'tblTempUsageDetail_20' ) start [2025-04-20 02:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947239', 'tblTempUsageDetail_20' ) end [2025-04-20 02:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 02:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 02:33:22] Production.INFO: ==32763== Releasing lock... [2025-04-20 02:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 02:33:22] Production.INFO: 32 MB #Memory Used# [2025-04-20 02:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 23:34:05 [end_date_ymd] => 2025-04-20 02:34:05 [RateCDR] => 1 ) [2025-04-20 02:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-19 23:34:05' and `end` < '2025-04-20 02:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 02:34:18] Production.INFO: count ==471 [2025-04-20 02:34:18] Production.ERROR: pbx CDR StartTime 2025-04-19 23:34:05 - End Time 2025-04-20 02:34:05 [2025-04-20 02:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947244', 'tblTempUsageDetail_20' ) start [2025-04-20 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947244', 'tblTempUsageDetail_20' ) end [2025-04-20 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947244', 'tblTempVendorCDR_20' ) start [2025-04-20 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947244', 'tblTempVendorCDR_20' ) end [2025-04-20 02:34:18] Production.INFO: ProcessCDR(1,14947244,1,1,2) [2025-04-20 02:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947244', 'tblTempUsageDetail_20' ) start [2025-04-20 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947244', 'tblTempUsageDetail_20' ) end [2025-04-20 02:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 02:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 02:34:21] Production.INFO: ==389== Releasing lock... [2025-04-20 02:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 02:34:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-20 02:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 23:35:05 [end_date_ymd] => 2025-04-20 02:35:05 [RateCDR] => 1 ) [2025-04-20 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-19 23:35:05' and `end` < '2025-04-20 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-20 02:35:18] Production.INFO: count ==475 [2025-04-20 02:35:18] Production.ERROR: pbx CDR StartTime 2025-04-19 23:35:05 - End Time 2025-04-20 02:35:05 [2025-04-20 02:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947249', 'tblTempUsageDetail_20' ) start [2025-04-20 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947249', 'tblTempUsageDetail_20' ) end [2025-04-20 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947249', 'tblTempVendorCDR_20' ) start [2025-04-20 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947249', 'tblTempVendorCDR_20' ) end [2025-04-20 02:35:18] Production.INFO: ProcessCDR(1,14947249,1,1,2) [2025-04-20 02:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947249', 'tblTempUsageDetail_20' ) start [2025-04-20 02:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947249', 'tblTempUsageDetail_20' ) end [2025-04-20 02:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 02:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 02:35:23] Production.INFO: ==464== Releasing lock... [2025-04-20 02:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 02:35:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-20 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 23:36:05 [end_date_ymd] => 2025-04-20 02:36:05 [RateCDR] => 1 ) [2025-04-20 02: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-19 23:36:05' and `end` < '2025-04-20 02: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-20 02:36:18] Production.INFO: count ==478 [2025-04-20 02:36:18] Production.ERROR: pbx CDR StartTime 2025-04-19 23:36:05 - End Time 2025-04-20 02:36:05 [2025-04-20 02:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947254', 'tblTempUsageDetail_20' ) start [2025-04-20 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947254', 'tblTempUsageDetail_20' ) end [2025-04-20 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947254', 'tblTempVendorCDR_20' ) start [2025-04-20 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947254', 'tblTempVendorCDR_20' ) end [2025-04-20 02:36:18] Production.INFO: ProcessCDR(1,14947254,1,1,2) [2025-04-20 02:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947254', 'tblTempUsageDetail_20' ) start [2025-04-20 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947254', 'tblTempUsageDetail_20' ) end [2025-04-20 02:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 02:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 02:36:23] Production.INFO: ==541== Releasing lock... [2025-04-20 02:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 02:36:23] Production.INFO: 32.75 MB #Memory Used# [2025-04-20 02:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 23:37:05 [end_date_ymd] => 2025-04-20 02:37:05 [RateCDR] => 1 ) [2025-04-20 02:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-19 23:37:05' and `end` < '2025-04-20 02:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 02:37:18] Production.INFO: count ==480 [2025-04-20 02:37:18] Production.ERROR: pbx CDR StartTime 2025-04-19 23:37:05 - End Time 2025-04-20 02:37:05 [2025-04-20 02:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947259', 'tblTempUsageDetail_20' ) start [2025-04-20 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947259', 'tblTempUsageDetail_20' ) end [2025-04-20 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947259', 'tblTempVendorCDR_20' ) start [2025-04-20 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947259', 'tblTempVendorCDR_20' ) end [2025-04-20 02:37:18] Production.INFO: ProcessCDR(1,14947259,1,1,2) [2025-04-20 02:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947259', 'tblTempUsageDetail_20' ) start [2025-04-20 02:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947259', 'tblTempUsageDetail_20' ) end [2025-04-20 02:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 02:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 02:37:21] Production.INFO: ==625== Releasing lock... [2025-04-20 02:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 02:37:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-20 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 23:38:05 [end_date_ymd] => 2025-04-20 02:38:05 [RateCDR] => 1 ) [2025-04-20 02: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-19 23:38:05' and `end` < '2025-04-20 02:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 02:38:18] Production.INFO: count ==480 [2025-04-20 02:38:18] Production.ERROR: pbx CDR StartTime 2025-04-19 23:38:05 - End Time 2025-04-20 02:38:05 [2025-04-20 02:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947264', 'tblTempUsageDetail_20' ) start [2025-04-20 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947264', 'tblTempUsageDetail_20' ) end [2025-04-20 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947264', 'tblTempVendorCDR_20' ) start [2025-04-20 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947264', 'tblTempVendorCDR_20' ) end [2025-04-20 02:38:18] Production.INFO: ProcessCDR(1,14947264,1,1,2) [2025-04-20 02:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947264', 'tblTempUsageDetail_20' ) start [2025-04-20 02:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947264', 'tblTempUsageDetail_20' ) end [2025-04-20 02:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 02:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 02:38:23] Production.INFO: ==723== Releasing lock... [2025-04-20 02:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 02:38:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-20 02:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 23:39:06 [end_date_ymd] => 2025-04-20 02:39:06 [RateCDR] => 1 ) [2025-04-20 02:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-19 23:39:06' and `end` < '2025-04-20 02:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 02:39:18] Production.INFO: count ==481 [2025-04-20 02:39:18] Production.ERROR: pbx CDR StartTime 2025-04-19 23:39:06 - End Time 2025-04-20 02:39:06 [2025-04-20 02:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947269', 'tblTempUsageDetail_20' ) start [2025-04-20 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947269', 'tblTempUsageDetail_20' ) end [2025-04-20 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947269', 'tblTempVendorCDR_20' ) start [2025-04-20 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947269', 'tblTempVendorCDR_20' ) end [2025-04-20 02:39:18] Production.INFO: ProcessCDR(1,14947269,1,1,2) [2025-04-20 02:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947269', 'tblTempUsageDetail_20' ) start [2025-04-20 02:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947269', 'tblTempUsageDetail_20' ) end [2025-04-20 02:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 02:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 02:39:22] Production.INFO: ==801== Releasing lock... [2025-04-20 02:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 02:39:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-20 02:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 23:40:06 [end_date_ymd] => 2025-04-20 02:40:06 [RateCDR] => 1 ) [2025-04-20 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-19 23:40:06' and `end` < '2025-04-20 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-20 02:40:18] Production.INFO: count ==491 [2025-04-20 02:40:18] Production.ERROR: pbx CDR StartTime 2025-04-19 23:40:06 - End Time 2025-04-20 02:40:06 [2025-04-20 02:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947274', 'tblTempUsageDetail_20' ) start [2025-04-20 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947274', 'tblTempUsageDetail_20' ) end [2025-04-20 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947274', 'tblTempVendorCDR_20' ) start [2025-04-20 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947274', 'tblTempVendorCDR_20' ) end [2025-04-20 02:40:18] Production.INFO: ProcessCDR(1,14947274,1,1,2) [2025-04-20 02:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947274', 'tblTempUsageDetail_20' ) start [2025-04-20 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947274', 'tblTempUsageDetail_20' ) end [2025-04-20 02:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 02:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 02:40:22] Production.INFO: ==873== Releasing lock... [2025-04-20 02:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 02:40:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-20 02:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 23:41:06 [end_date_ymd] => 2025-04-20 02:41:06 [RateCDR] => 1 ) [2025-04-20 02:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-19 23:41:06' and `end` < '2025-04-20 02:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 02:41:19] Production.INFO: count ==498 [2025-04-20 02:41:19] Production.ERROR: pbx CDR StartTime 2025-04-19 23:41:06 - End Time 2025-04-20 02:41:06 [2025-04-20 02:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947280', 'tblTempUsageDetail_20' ) start [2025-04-20 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947280', 'tblTempUsageDetail_20' ) end [2025-04-20 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947280', 'tblTempVendorCDR_20' ) start [2025-04-20 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947280', 'tblTempVendorCDR_20' ) end [2025-04-20 02:41:19] Production.INFO: ProcessCDR(1,14947280,1,1,2) [2025-04-20 02:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947280', 'tblTempUsageDetail_20' ) start [2025-04-20 02:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947280', 'tblTempUsageDetail_20' ) end [2025-04-20 02:41:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 02:41:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 02:41:24] Production.INFO: ==988== Releasing lock... [2025-04-20 02:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 02:41:24] Production.INFO: 32.5 MB #Memory Used# [2025-04-20 02:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 23:42:05 [end_date_ymd] => 2025-04-20 02:42:05 [RateCDR] => 1 ) [2025-04-20 02:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-19 23:42:05' and `end` < '2025-04-20 02:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 02:42:17] Production.INFO: count ==495 [2025-04-20 02:42:17] Production.ERROR: pbx CDR StartTime 2025-04-19 23:42:05 - End Time 2025-04-20 02:42:05 [2025-04-20 02:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947285', 'tblTempUsageDetail_20' ) start [2025-04-20 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947285', 'tblTempUsageDetail_20' ) end [2025-04-20 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947285', 'tblTempVendorCDR_20' ) start [2025-04-20 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947285', 'tblTempVendorCDR_20' ) end [2025-04-20 02:42:17] Production.INFO: ProcessCDR(1,14947285,1,1,2) [2025-04-20 02:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947285', 'tblTempUsageDetail_20' ) start [2025-04-20 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947285', 'tblTempUsageDetail_20' ) end [2025-04-20 02:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 02:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 02:42:21] Production.INFO: ==1059== Releasing lock... [2025-04-20 02:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 02:42:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-20 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 23:43:05 [end_date_ymd] => 2025-04-20 02:43:05 [RateCDR] => 1 ) [2025-04-20 02: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-19 23:43:05' and `end` < '2025-04-20 02: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-20 02:43:18] Production.INFO: count ==495 [2025-04-20 02:43:18] Production.ERROR: pbx CDR StartTime 2025-04-19 23:43:05 - End Time 2025-04-20 02:43:05 [2025-04-20 02:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947290', 'tblTempUsageDetail_20' ) start [2025-04-20 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947290', 'tblTempUsageDetail_20' ) end [2025-04-20 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947290', 'tblTempVendorCDR_20' ) start [2025-04-20 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947290', 'tblTempVendorCDR_20' ) end [2025-04-20 02:43:18] Production.INFO: ProcessCDR(1,14947290,1,1,2) [2025-04-20 02:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947290', 'tblTempUsageDetail_20' ) start [2025-04-20 02:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947290', 'tblTempUsageDetail_20' ) end [2025-04-20 02:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 02:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 02:43:23] Production.INFO: ==1139== Releasing lock... [2025-04-20 02:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 02:43:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-20 02:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 23:44:05 [end_date_ymd] => 2025-04-20 02:44:05 [RateCDR] => 1 ) [2025-04-20 02:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-19 23:44:05' and `end` < '2025-04-20 02:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 02:44:17] Production.INFO: count ==492 [2025-04-20 02:44:18] Production.ERROR: pbx CDR StartTime 2025-04-19 23:44:05 - End Time 2025-04-20 02:44:05 [2025-04-20 02:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947295', 'tblTempUsageDetail_20' ) start [2025-04-20 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947295', 'tblTempUsageDetail_20' ) end [2025-04-20 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947295', 'tblTempVendorCDR_20' ) start [2025-04-20 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947295', 'tblTempVendorCDR_20' ) end [2025-04-20 02:44:18] Production.INFO: ProcessCDR(1,14947295,1,1,2) [2025-04-20 02:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947295', 'tblTempUsageDetail_20' ) start [2025-04-20 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947295', 'tblTempUsageDetail_20' ) end [2025-04-20 02:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 02:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 02:44:21] Production.INFO: ==1215== Releasing lock... [2025-04-20 02:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 02:44:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-20 02:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 23:45:06 [end_date_ymd] => 2025-04-20 02:45:06 [RateCDR] => 1 ) [2025-04-20 02:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-19 23:45:06' and `end` < '2025-04-20 02:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 02:45:18] Production.INFO: count ==493 [2025-04-20 02:45:18] Production.ERROR: pbx CDR StartTime 2025-04-19 23:45:06 - End Time 2025-04-20 02:45:06 [2025-04-20 02:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947300', 'tblTempUsageDetail_20' ) start [2025-04-20 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947300', 'tblTempUsageDetail_20' ) end [2025-04-20 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947300', 'tblTempVendorCDR_20' ) start [2025-04-20 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947300', 'tblTempVendorCDR_20' ) end [2025-04-20 02:45:18] Production.INFO: ProcessCDR(1,14947300,1,1,2) [2025-04-20 02:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947300', 'tblTempUsageDetail_20' ) start [2025-04-20 02:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947300', 'tblTempUsageDetail_20' ) end [2025-04-20 02:45:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 02:45:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 02:45:23] Production.INFO: ==1300== Releasing lock... [2025-04-20 02:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 02:45:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-20 02:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 23:46:05 [end_date_ymd] => 2025-04-20 02:46:05 [RateCDR] => 1 ) [2025-04-20 02:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-19 23:46:05' and `end` < '2025-04-20 02:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 02:46:17] Production.INFO: count ==489 [2025-04-20 02:46:17] Production.ERROR: pbx CDR StartTime 2025-04-19 23:46:05 - End Time 2025-04-20 02:46:05 [2025-04-20 02:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947305', 'tblTempUsageDetail_20' ) start [2025-04-20 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947305', 'tblTempUsageDetail_20' ) end [2025-04-20 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947305', 'tblTempVendorCDR_20' ) start [2025-04-20 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947305', 'tblTempVendorCDR_20' ) end [2025-04-20 02:46:17] Production.INFO: ProcessCDR(1,14947305,1,1,2) [2025-04-20 02:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947305', 'tblTempUsageDetail_20' ) start [2025-04-20 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947305', 'tblTempUsageDetail_20' ) end [2025-04-20 02:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 02:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 02:46:21] Production.INFO: ==1371== Releasing lock... [2025-04-20 02:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 02:46:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-20 02:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 23:47:05 [end_date_ymd] => 2025-04-20 02:47:05 [RateCDR] => 1 ) [2025-04-20 02: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-19 23:47:05' and `end` < '2025-04-20 02: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-20 02:47:18] Production.INFO: count ==486 [2025-04-20 02:47:18] Production.ERROR: pbx CDR StartTime 2025-04-19 23:47:05 - End Time 2025-04-20 02:47:05 [2025-04-20 02:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947310', 'tblTempUsageDetail_20' ) start [2025-04-20 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947310', 'tblTempUsageDetail_20' ) end [2025-04-20 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947310', 'tblTempVendorCDR_20' ) start [2025-04-20 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947310', 'tblTempVendorCDR_20' ) end [2025-04-20 02:47:18] Production.INFO: ProcessCDR(1,14947310,1,1,2) [2025-04-20 02:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947310', 'tblTempUsageDetail_20' ) start [2025-04-20 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947310', 'tblTempUsageDetail_20' ) end [2025-04-20 02:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 02:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 02:47:21] Production.INFO: ==1446== Releasing lock... [2025-04-20 02:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 02:47:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-20 02:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 23:48:06 [end_date_ymd] => 2025-04-20 02:48:06 [RateCDR] => 1 ) [2025-04-20 02:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-19 23:48:06' and `end` < '2025-04-20 02:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 02:48:18] Production.INFO: count ==484 [2025-04-20 02:48:18] Production.ERROR: pbx CDR StartTime 2025-04-19 23:48:06 - End Time 2025-04-20 02:48:06 [2025-04-20 02:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947315', 'tblTempUsageDetail_20' ) start [2025-04-20 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947315', 'tblTempUsageDetail_20' ) end [2025-04-20 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947315', 'tblTempVendorCDR_20' ) start [2025-04-20 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947315', 'tblTempVendorCDR_20' ) end [2025-04-20 02:48:18] Production.INFO: ProcessCDR(1,14947315,1,1,2) [2025-04-20 02:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947315', 'tblTempUsageDetail_20' ) start [2025-04-20 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947315', 'tblTempUsageDetail_20' ) end [2025-04-20 02:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 02:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 02:48:22] Production.INFO: ==1548== Releasing lock... [2025-04-20 02:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 02:48:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-20 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 23:49:05 [end_date_ymd] => 2025-04-20 02:49:05 [RateCDR] => 1 ) [2025-04-20 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-19 23:49:05' and `end` < '2025-04-20 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-20 02:49:18] Production.INFO: count ==484 [2025-04-20 02:49:18] Production.ERROR: pbx CDR StartTime 2025-04-19 23:49:05 - End Time 2025-04-20 02:49:05 [2025-04-20 02:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947320', 'tblTempUsageDetail_20' ) start [2025-04-20 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947320', 'tblTempUsageDetail_20' ) end [2025-04-20 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947320', 'tblTempVendorCDR_20' ) start [2025-04-20 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947320', 'tblTempVendorCDR_20' ) end [2025-04-20 02:49:18] Production.INFO: ProcessCDR(1,14947320,1,1,2) [2025-04-20 02:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947320', 'tblTempUsageDetail_20' ) start [2025-04-20 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947320', 'tblTempUsageDetail_20' ) end [2025-04-20 02:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 02:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 02:49:22] Production.INFO: ==1628== Releasing lock... [2025-04-20 02:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 02:49:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-20 02:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 23:50:06 [end_date_ymd] => 2025-04-20 02:50:06 [RateCDR] => 1 ) [2025-04-20 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-19 23:50:06' and `end` < '2025-04-20 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-20 02:50:19] Production.INFO: count ==491 [2025-04-20 02:50:19] Production.ERROR: pbx CDR StartTime 2025-04-19 23:50:06 - End Time 2025-04-20 02:50:06 [2025-04-20 02:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947326', 'tblTempUsageDetail_20' ) start [2025-04-20 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947326', 'tblTempUsageDetail_20' ) end [2025-04-20 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947326', 'tblTempVendorCDR_20' ) start [2025-04-20 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947326', 'tblTempVendorCDR_20' ) end [2025-04-20 02:50:19] Production.INFO: ProcessCDR(1,14947326,1,1,2) [2025-04-20 02:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947326', 'tblTempUsageDetail_20' ) start [2025-04-20 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947326', 'tblTempUsageDetail_20' ) end [2025-04-20 02:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 02:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 02:50:22] Production.INFO: ==1711== Releasing lock... [2025-04-20 02:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 02:50:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-20 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 23:51:05 [end_date_ymd] => 2025-04-20 02:51:05 [RateCDR] => 1 ) [2025-04-20 02:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-19 23:51:05' and `end` < '2025-04-20 02:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 02:51:18] Production.INFO: count ==512 [2025-04-20 02:51:18] Production.ERROR: pbx CDR StartTime 2025-04-19 23:51:05 - End Time 2025-04-20 02:51:05 [2025-04-20 02:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947331', 'tblTempUsageDetail_20' ) start [2025-04-20 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947331', 'tblTempUsageDetail_20' ) end [2025-04-20 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947331', 'tblTempVendorCDR_20' ) start [2025-04-20 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947331', 'tblTempVendorCDR_20' ) end [2025-04-20 02:51:18] Production.INFO: ProcessCDR(1,14947331,1,1,2) [2025-04-20 02:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947331', 'tblTempUsageDetail_20' ) start [2025-04-20 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947331', 'tblTempUsageDetail_20' ) end [2025-04-20 02:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 02:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 02:51:22] Production.INFO: ==1784== Releasing lock... [2025-04-20 02:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 02:51:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-20 02:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 23:52:06 [end_date_ymd] => 2025-04-20 02:52:06 [RateCDR] => 1 ) [2025-04-20 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-19 23:52:06' and `end` < '2025-04-20 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-20 02:52:18] Production.INFO: count ==515 [2025-04-20 02:52:18] Production.ERROR: pbx CDR StartTime 2025-04-19 23:52:06 - End Time 2025-04-20 02:52:06 [2025-04-20 02:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947336', 'tblTempUsageDetail_20' ) start [2025-04-20 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947336', 'tblTempUsageDetail_20' ) end [2025-04-20 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947336', 'tblTempVendorCDR_20' ) start [2025-04-20 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947336', 'tblTempVendorCDR_20' ) end [2025-04-20 02:52:18] Production.INFO: ProcessCDR(1,14947336,1,1,2) [2025-04-20 02:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947336', 'tblTempUsageDetail_20' ) start [2025-04-20 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947336', 'tblTempUsageDetail_20' ) end [2025-04-20 02:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 02:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 02:52:22] Production.INFO: ==1858== Releasing lock... [2025-04-20 02:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 02:52:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-20 02:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 23:53:05 [end_date_ymd] => 2025-04-20 02:53:05 [RateCDR] => 1 ) [2025-04-20 02:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-19 23:53:05' and `end` < '2025-04-20 02:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 02:53:18] Production.INFO: count ==514 [2025-04-20 02:53:18] Production.ERROR: pbx CDR StartTime 2025-04-19 23:53:05 - End Time 2025-04-20 02:53:05 [2025-04-20 02:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947341', 'tblTempUsageDetail_20' ) start [2025-04-20 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947341', 'tblTempUsageDetail_20' ) end [2025-04-20 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947341', 'tblTempVendorCDR_20' ) start [2025-04-20 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947341', 'tblTempVendorCDR_20' ) end [2025-04-20 02:53:18] Production.INFO: ProcessCDR(1,14947341,1,1,2) [2025-04-20 02:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947341', 'tblTempUsageDetail_20' ) start [2025-04-20 02:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947341', 'tblTempUsageDetail_20' ) end [2025-04-20 02:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 02:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 02:53:21] Production.INFO: ==1932== Releasing lock... [2025-04-20 02:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 02:53:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-20 02:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 23:54:05 [end_date_ymd] => 2025-04-20 02:54:05 [RateCDR] => 1 ) [2025-04-20 02: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-19 23:54:05' and `end` < '2025-04-20 02: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-20 02:54:18] Production.INFO: count ==514 [2025-04-20 02:54:18] Production.ERROR: pbx CDR StartTime 2025-04-19 23:54:05 - End Time 2025-04-20 02:54:05 [2025-04-20 02:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947346', 'tblTempUsageDetail_20' ) start [2025-04-20 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947346', 'tblTempUsageDetail_20' ) end [2025-04-20 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947346', 'tblTempVendorCDR_20' ) start [2025-04-20 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947346', 'tblTempVendorCDR_20' ) end [2025-04-20 02:54:18] Production.INFO: ProcessCDR(1,14947346,1,1,2) [2025-04-20 02:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947346', 'tblTempUsageDetail_20' ) start [2025-04-20 02:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947346', 'tblTempUsageDetail_20' ) end [2025-04-20 02:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 02:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 02:54:21] Production.INFO: ==2007== Releasing lock... [2025-04-20 02:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 02:54:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-20 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 23:55:05 [end_date_ymd] => 2025-04-20 02:55:05 [RateCDR] => 1 ) [2025-04-20 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-19 23:55:05' and `end` < '2025-04-20 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-20 02:55:17] Production.INFO: count ==512 [2025-04-20 02:55:17] Production.ERROR: pbx CDR StartTime 2025-04-19 23:55:05 - End Time 2025-04-20 02:55:05 [2025-04-20 02:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947351', 'tblTempUsageDetail_20' ) start [2025-04-20 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947351', 'tblTempUsageDetail_20' ) end [2025-04-20 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947351', 'tblTempVendorCDR_20' ) start [2025-04-20 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947351', 'tblTempVendorCDR_20' ) end [2025-04-20 02:55:17] Production.INFO: ProcessCDR(1,14947351,1,1,2) [2025-04-20 02:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947351', 'tblTempUsageDetail_20' ) start [2025-04-20 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947351', 'tblTempUsageDetail_20' ) end [2025-04-20 02:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 02:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 02:55:21] Production.INFO: ==2081== Releasing lock... [2025-04-20 02:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 02:55:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-20 02:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 23:56:06 [end_date_ymd] => 2025-04-20 02:56:06 [RateCDR] => 1 ) [2025-04-20 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-19 23:56:06' and `end` < '2025-04-20 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-20 02:56:18] Production.INFO: count ==512 [2025-04-20 02:56:18] Production.ERROR: pbx CDR StartTime 2025-04-19 23:56:06 - End Time 2025-04-20 02:56:06 [2025-04-20 02:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947356', 'tblTempUsageDetail_20' ) start [2025-04-20 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947356', 'tblTempUsageDetail_20' ) end [2025-04-20 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947356', 'tblTempVendorCDR_20' ) start [2025-04-20 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947356', 'tblTempVendorCDR_20' ) end [2025-04-20 02:56:18] Production.INFO: ProcessCDR(1,14947356,1,1,2) [2025-04-20 02:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947356', 'tblTempUsageDetail_20' ) start [2025-04-20 02:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947356', 'tblTempUsageDetail_20' ) end [2025-04-20 02:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 02:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 02:56:23] Production.INFO: ==2193== Releasing lock... [2025-04-20 02:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 02:56:23] Production.INFO: 32.75 MB #Memory Used# [2025-04-20 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 23:57:05 [end_date_ymd] => 2025-04-20 02:57:05 [RateCDR] => 1 ) [2025-04-20 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-19 23:57:05' and `end` < '2025-04-20 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-20 02:57:17] Production.INFO: count ==512 [2025-04-20 02:57:17] Production.ERROR: pbx CDR StartTime 2025-04-19 23:57:05 - End Time 2025-04-20 02:57:05 [2025-04-20 02:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947361', 'tblTempUsageDetail_20' ) start [2025-04-20 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947361', 'tblTempUsageDetail_20' ) end [2025-04-20 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947361', 'tblTempVendorCDR_20' ) start [2025-04-20 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947361', 'tblTempVendorCDR_20' ) end [2025-04-20 02:57:17] Production.INFO: ProcessCDR(1,14947361,1,1,2) [2025-04-20 02:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947361', 'tblTempUsageDetail_20' ) start [2025-04-20 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947361', 'tblTempUsageDetail_20' ) end [2025-04-20 02:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 02:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 02:57:21] Production.INFO: ==2266== Releasing lock... [2025-04-20 02:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 02:57:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-20 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 23:58:05 [end_date_ymd] => 2025-04-20 02:58:05 [RateCDR] => 1 ) [2025-04-20 02: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-19 23:58:05' and `end` < '2025-04-20 02: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-20 02:58:18] Production.INFO: count ==511 [2025-04-20 02:58:18] Production.ERROR: pbx CDR StartTime 2025-04-19 23:58:05 - End Time 2025-04-20 02:58:05 [2025-04-20 02:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947366', 'tblTempUsageDetail_20' ) start [2025-04-20 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947366', 'tblTempUsageDetail_20' ) end [2025-04-20 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947366', 'tblTempVendorCDR_20' ) start [2025-04-20 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947366', 'tblTempVendorCDR_20' ) end [2025-04-20 02:58:18] Production.INFO: ProcessCDR(1,14947366,1,1,2) [2025-04-20 02:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947366', 'tblTempUsageDetail_20' ) start [2025-04-20 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947366', 'tblTempUsageDetail_20' ) end [2025-04-20 02:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 02:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 02:58:21] Production.INFO: ==2342== Releasing lock... [2025-04-20 02:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 02:58:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-20 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-19 23:59:05 [end_date_ymd] => 2025-04-20 02:59:05 [RateCDR] => 1 ) [2025-04-20 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-19 23:59:05' and `end` < '2025-04-20 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-20 02:59:18] Production.INFO: count ==509 [2025-04-20 02:59:18] Production.ERROR: pbx CDR StartTime 2025-04-19 23:59:05 - End Time 2025-04-20 02:59:05 [2025-04-20 02:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947371', 'tblTempUsageDetail_20' ) start [2025-04-20 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947371', 'tblTempUsageDetail_20' ) end [2025-04-20 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947371', 'tblTempVendorCDR_20' ) start [2025-04-20 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947371', 'tblTempVendorCDR_20' ) end [2025-04-20 02:59:18] Production.INFO: ProcessCDR(1,14947371,1,1,2) [2025-04-20 02:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 02:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 02:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947371', 'tblTempUsageDetail_20' ) start [2025-04-20 02:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947371', 'tblTempUsageDetail_20' ) end [2025-04-20 02:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 02:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 02:59:23] Production.INFO: ==2415== Releasing lock... [2025-04-20 02:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 02:59:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-20 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 00:00:06 [end_date_ymd] => 2025-04-20 03:00:06 [RateCDR] => 1 ) [2025-04-20 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-20 00:00:06' and `end` < '2025-04-20 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-20 03:00:19] Production.INFO: count ==507 [2025-04-20 03:00:19] Production.ERROR: pbx CDR StartTime 2025-04-20 00:00:06 - End Time 2025-04-20 03:00:06 [2025-04-20 03:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947377', 'tblTempUsageDetail_20' ) start [2025-04-20 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947377', 'tblTempUsageDetail_20' ) end [2025-04-20 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947377', 'tblTempVendorCDR_20' ) start [2025-04-20 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947377', 'tblTempVendorCDR_20' ) end [2025-04-20 03:00:19] Production.INFO: ProcessCDR(1,14947377,1,1,2) [2025-04-20 03:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947377', 'tblTempUsageDetail_20' ) start [2025-04-20 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947377', 'tblTempUsageDetail_20' ) end [2025-04-20 03:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 03:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 03:00:22] Production.INFO: ==2495== Releasing lock... [2025-04-20 03:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 03:00:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-20 03:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 00:01:05 [end_date_ymd] => 2025-04-20 03:01:05 [RateCDR] => 1 ) [2025-04-20 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-20 00:01:05' and `end` < '2025-04-20 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-20 03:01:17] Production.INFO: count ==505 [2025-04-20 03:01:17] Production.ERROR: pbx CDR StartTime 2025-04-20 00:01:05 - End Time 2025-04-20 03:01:05 [2025-04-20 03:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947382', 'tblTempUsageDetail_20' ) start [2025-04-20 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947382', 'tblTempUsageDetail_20' ) end [2025-04-20 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947382', 'tblTempVendorCDR_20' ) start [2025-04-20 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947382', 'tblTempVendorCDR_20' ) end [2025-04-20 03:01:17] Production.INFO: ProcessCDR(1,14947382,1,1,2) [2025-04-20 03:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947382', 'tblTempUsageDetail_20' ) start [2025-04-20 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947382', 'tblTempUsageDetail_20' ) end [2025-04-20 03:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 03:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 03:01:21] Production.INFO: ==2585== Releasing lock... [2025-04-20 03:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 03:01:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-20 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 00:02:05 [end_date_ymd] => 2025-04-20 03:02:05 [RateCDR] => 1 ) [2025-04-20 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-20 00:02:05' and `end` < '2025-04-20 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-20 03:02:17] Production.INFO: count ==507 [2025-04-20 03:02:18] Production.ERROR: pbx CDR StartTime 2025-04-20 00:02:05 - End Time 2025-04-20 03:02:05 [2025-04-20 03:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947387', 'tblTempUsageDetail_20' ) start [2025-04-20 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947387', 'tblTempUsageDetail_20' ) end [2025-04-20 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947387', 'tblTempVendorCDR_20' ) start [2025-04-20 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947387', 'tblTempVendorCDR_20' ) end [2025-04-20 03:02:18] Production.INFO: ProcessCDR(1,14947387,1,1,2) [2025-04-20 03:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947387', 'tblTempUsageDetail_20' ) start [2025-04-20 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947387', 'tblTempUsageDetail_20' ) end [2025-04-20 03:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 03:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 03:02:21] Production.INFO: ==2736== Releasing lock... [2025-04-20 03:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 03:02:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-20 03:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 00:03:06 [end_date_ymd] => 2025-04-20 03:03:06 [RateCDR] => 1 ) [2025-04-20 03: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-20 00:03:06' and `end` < '2025-04-20 03: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-20 03:03:18] Production.INFO: count ==503 [2025-04-20 03:03:18] Production.ERROR: pbx CDR StartTime 2025-04-20 00:03:06 - End Time 2025-04-20 03:03:06 [2025-04-20 03:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947392', 'tblTempUsageDetail_20' ) start [2025-04-20 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947392', 'tblTempUsageDetail_20' ) end [2025-04-20 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947392', 'tblTempVendorCDR_20' ) start [2025-04-20 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947392', 'tblTempVendorCDR_20' ) end [2025-04-20 03:03:18] Production.INFO: ProcessCDR(1,14947392,1,1,2) [2025-04-20 03:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947392', 'tblTempUsageDetail_20' ) start [2025-04-20 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947392', 'tblTempUsageDetail_20' ) end [2025-04-20 03:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 03:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 03:03:22] Production.INFO: ==2808== Releasing lock... [2025-04-20 03:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 03:03:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-20 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 00:04:05 [end_date_ymd] => 2025-04-20 03:04:05 [RateCDR] => 1 ) [2025-04-20 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-20 00:04:05' and `end` < '2025-04-20 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-20 03:04:19] Production.INFO: count ==500 [2025-04-20 03:04:19] Production.ERROR: pbx CDR StartTime 2025-04-20 00:04:05 - End Time 2025-04-20 03:04:05 [2025-04-20 03:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947397', 'tblTempUsageDetail_20' ) start [2025-04-20 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947397', 'tblTempUsageDetail_20' ) end [2025-04-20 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947397', 'tblTempVendorCDR_20' ) start [2025-04-20 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947397', 'tblTempVendorCDR_20' ) end [2025-04-20 03:04:19] Production.INFO: ProcessCDR(1,14947397,1,1,2) [2025-04-20 03:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947397', 'tblTempUsageDetail_20' ) start [2025-04-20 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947397', 'tblTempUsageDetail_20' ) end [2025-04-20 03:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 03:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 03:04:22] Production.INFO: ==2885== Releasing lock... [2025-04-20 03:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 03:04:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-20 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 00:05:05 [end_date_ymd] => 2025-04-20 03:05:05 [RateCDR] => 1 ) [2025-04-20 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-20 00:05:05' and `end` < '2025-04-20 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-20 03:05:18] Production.INFO: count ==499 [2025-04-20 03:05:18] Production.ERROR: pbx CDR StartTime 2025-04-20 00:05:05 - End Time 2025-04-20 03:05:05 [2025-04-20 03:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947402', 'tblTempUsageDetail_20' ) start [2025-04-20 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947402', 'tblTempUsageDetail_20' ) end [2025-04-20 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947402', 'tblTempVendorCDR_20' ) start [2025-04-20 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947402', 'tblTempVendorCDR_20' ) end [2025-04-20 03:05:18] Production.INFO: ProcessCDR(1,14947402,1,1,2) [2025-04-20 03:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947402', 'tblTempUsageDetail_20' ) start [2025-04-20 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947402', 'tblTempUsageDetail_20' ) end [2025-04-20 03:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 03:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 03:05:21] Production.INFO: ==2957== Releasing lock... [2025-04-20 03:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 03:05:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-20 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 00:06:05 [end_date_ymd] => 2025-04-20 03:06:05 [RateCDR] => 1 ) [2025-04-20 03:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 00:06:05' and `end` < '2025-04-20 03:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 03:06:17] Production.INFO: count ==499 [2025-04-20 03:06:17] Production.ERROR: pbx CDR StartTime 2025-04-20 00:06:05 - End Time 2025-04-20 03:06:05 [2025-04-20 03:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947407', 'tblTempUsageDetail_20' ) start [2025-04-20 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947407', 'tblTempUsageDetail_20' ) end [2025-04-20 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947407', 'tblTempVendorCDR_20' ) start [2025-04-20 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947407', 'tblTempVendorCDR_20' ) end [2025-04-20 03:06:17] Production.INFO: ProcessCDR(1,14947407,1,1,2) [2025-04-20 03:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947407', 'tblTempUsageDetail_20' ) start [2025-04-20 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947407', 'tblTempUsageDetail_20' ) end [2025-04-20 03:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 03:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 03:06:21] Production.INFO: ==3112== Releasing lock... [2025-04-20 03:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 03:06:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-20 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 00:07:05 [end_date_ymd] => 2025-04-20 03:07:05 [RateCDR] => 1 ) [2025-04-20 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-20 00:07:05' and `end` < '2025-04-20 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-20 03:07:17] Production.INFO: count ==497 [2025-04-20 03:07:18] Production.ERROR: pbx CDR StartTime 2025-04-20 00:07:05 - End Time 2025-04-20 03:07:05 [2025-04-20 03:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947412', 'tblTempUsageDetail_20' ) start [2025-04-20 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947412', 'tblTempUsageDetail_20' ) end [2025-04-20 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947412', 'tblTempVendorCDR_20' ) start [2025-04-20 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947412', 'tblTempVendorCDR_20' ) end [2025-04-20 03:07:18] Production.INFO: ProcessCDR(1,14947412,1,1,2) [2025-04-20 03:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947412', 'tblTempUsageDetail_20' ) start [2025-04-20 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947412', 'tblTempUsageDetail_20' ) end [2025-04-20 03:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 03:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 03:07:21] Production.INFO: ==3222== Releasing lock... [2025-04-20 03:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 03:07:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-20 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 00:08:05 [end_date_ymd] => 2025-04-20 03:08:05 [RateCDR] => 1 ) [2025-04-20 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-20 00:08:05' and `end` < '2025-04-20 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-20 03:08:17] Production.INFO: count ==495 [2025-04-20 03:08:17] Production.ERROR: pbx CDR StartTime 2025-04-20 00:08:05 - End Time 2025-04-20 03:08:05 [2025-04-20 03:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947417', 'tblTempUsageDetail_20' ) start [2025-04-20 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947417', 'tblTempUsageDetail_20' ) end [2025-04-20 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947417', 'tblTempVendorCDR_20' ) start [2025-04-20 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947417', 'tblTempVendorCDR_20' ) end [2025-04-20 03:08:17] Production.INFO: ProcessCDR(1,14947417,1,1,2) [2025-04-20 03:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947417', 'tblTempUsageDetail_20' ) start [2025-04-20 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947417', 'tblTempUsageDetail_20' ) end [2025-04-20 03:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 03:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 03:08:21] Production.INFO: ==3305== Releasing lock... [2025-04-20 03:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 03:08:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-20 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 00:09:05 [end_date_ymd] => 2025-04-20 03:09:05 [RateCDR] => 1 ) [2025-04-20 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-20 00:09:05' and `end` < '2025-04-20 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-20 03:09:17] Production.INFO: count ==494 [2025-04-20 03:09:18] Production.ERROR: pbx CDR StartTime 2025-04-20 00:09:05 - End Time 2025-04-20 03:09:05 [2025-04-20 03:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947422', 'tblTempUsageDetail_20' ) start [2025-04-20 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947422', 'tblTempUsageDetail_20' ) end [2025-04-20 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947422', 'tblTempVendorCDR_20' ) start [2025-04-20 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947422', 'tblTempVendorCDR_20' ) end [2025-04-20 03:09:18] Production.INFO: ProcessCDR(1,14947422,1,1,2) [2025-04-20 03:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947422', 'tblTempUsageDetail_20' ) start [2025-04-20 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947422', 'tblTempUsageDetail_20' ) end [2025-04-20 03:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 03:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 03:09:21] Production.INFO: ==3454== Releasing lock... [2025-04-20 03:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 03:09:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-20 03:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 00:10:06 [end_date_ymd] => 2025-04-20 03:10:06 [RateCDR] => 1 ) [2025-04-20 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-20 00:10:06' and `end` < '2025-04-20 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-20 03:10:18] Production.INFO: count ==491 [2025-04-20 03:10:19] Production.ERROR: pbx CDR StartTime 2025-04-20 00:10:06 - End Time 2025-04-20 03:10:06 [2025-04-20 03:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947428', 'tblTempUsageDetail_20' ) start [2025-04-20 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947428', 'tblTempUsageDetail_20' ) end [2025-04-20 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947428', 'tblTempVendorCDR_20' ) start [2025-04-20 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947428', 'tblTempVendorCDR_20' ) end [2025-04-20 03:10:19] Production.INFO: ProcessCDR(1,14947428,1,1,2) [2025-04-20 03:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947428', 'tblTempUsageDetail_20' ) start [2025-04-20 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947428', 'tblTempUsageDetail_20' ) end [2025-04-20 03:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 03:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 03:10:22] Production.INFO: ==3529== Releasing lock... [2025-04-20 03:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 03:10:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-20 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 00:11:05 [end_date_ymd] => 2025-04-20 03:11:05 [RateCDR] => 1 ) [2025-04-20 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-20 00:11:05' and `end` < '2025-04-20 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-20 03:11:18] Production.INFO: count ==481 [2025-04-20 03:11:18] Production.ERROR: pbx CDR StartTime 2025-04-20 00:11:05 - End Time 2025-04-20 03:11:05 [2025-04-20 03:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947433', 'tblTempUsageDetail_20' ) start [2025-04-20 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947433', 'tblTempUsageDetail_20' ) end [2025-04-20 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947433', 'tblTempVendorCDR_20' ) start [2025-04-20 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947433', 'tblTempVendorCDR_20' ) end [2025-04-20 03:11:18] Production.INFO: ProcessCDR(1,14947433,1,1,2) [2025-04-20 03:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947433', 'tblTempUsageDetail_20' ) start [2025-04-20 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947433', 'tblTempUsageDetail_20' ) end [2025-04-20 03:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 03:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 03:11:22] Production.INFO: ==3600== Releasing lock... [2025-04-20 03:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 03:11:22] Production.INFO: 32 MB #Memory Used# [2025-04-20 03:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 00:12:06 [end_date_ymd] => 2025-04-20 03:12:06 [RateCDR] => 1 ) [2025-04-20 03:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 00:12:06' and `end` < '2025-04-20 03:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 03:12:18] Production.INFO: count ==480 [2025-04-20 03:12:19] Production.ERROR: pbx CDR StartTime 2025-04-20 00:12:06 - End Time 2025-04-20 03:12:06 [2025-04-20 03:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947438', 'tblTempUsageDetail_20' ) start [2025-04-20 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947438', 'tblTempUsageDetail_20' ) end [2025-04-20 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947438', 'tblTempVendorCDR_20' ) start [2025-04-20 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947438', 'tblTempVendorCDR_20' ) end [2025-04-20 03:12:19] Production.INFO: ProcessCDR(1,14947438,1,1,2) [2025-04-20 03:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947438', 'tblTempUsageDetail_20' ) start [2025-04-20 03:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947438', 'tblTempUsageDetail_20' ) end [2025-04-20 03:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 03:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 03:12:22] Production.INFO: ==3717== Releasing lock... [2025-04-20 03:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 03:12:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-20 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 00:13:05 [end_date_ymd] => 2025-04-20 03:13:05 [RateCDR] => 1 ) [2025-04-20 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-20 00:13:05' and `end` < '2025-04-20 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-20 03:13:18] Production.INFO: count ==480 [2025-04-20 03:13:18] Production.ERROR: pbx CDR StartTime 2025-04-20 00:13:05 - End Time 2025-04-20 03:13:05 [2025-04-20 03:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947443', 'tblTempUsageDetail_20' ) start [2025-04-20 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947443', 'tblTempUsageDetail_20' ) end [2025-04-20 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947443', 'tblTempVendorCDR_20' ) start [2025-04-20 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947443', 'tblTempVendorCDR_20' ) end [2025-04-20 03:13:18] Production.INFO: ProcessCDR(1,14947443,1,1,2) [2025-04-20 03:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947443', 'tblTempUsageDetail_20' ) start [2025-04-20 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947443', 'tblTempUsageDetail_20' ) end [2025-04-20 03:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 03:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 03:13:21] Production.INFO: ==3869== Releasing lock... [2025-04-20 03:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 03:13:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-20 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 00:14:05 [end_date_ymd] => 2025-04-20 03:14:05 [RateCDR] => 1 ) [2025-04-20 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-20 00:14:05' and `end` < '2025-04-20 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-20 03:14:17] Production.INFO: count ==480 [2025-04-20 03:14:17] Production.ERROR: pbx CDR StartTime 2025-04-20 00:14:05 - End Time 2025-04-20 03:14:05 [2025-04-20 03:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947448', 'tblTempUsageDetail_20' ) start [2025-04-20 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947448', 'tblTempUsageDetail_20' ) end [2025-04-20 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947448', 'tblTempVendorCDR_20' ) start [2025-04-20 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947448', 'tblTempVendorCDR_20' ) end [2025-04-20 03:14:17] Production.INFO: ProcessCDR(1,14947448,1,1,2) [2025-04-20 03:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947448', 'tblTempUsageDetail_20' ) start [2025-04-20 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947448', 'tblTempUsageDetail_20' ) end [2025-04-20 03:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 03:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 03:14:21] Production.INFO: ==3942== Releasing lock... [2025-04-20 03:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 03:14:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-20 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 00:15:05 [end_date_ymd] => 2025-04-20 03:15:05 [RateCDR] => 1 ) [2025-04-20 03:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 00:15:05' and `end` < '2025-04-20 03:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 03:15:18] Production.INFO: count ==478 [2025-04-20 03:15:18] Production.ERROR: pbx CDR StartTime 2025-04-20 00:15:05 - End Time 2025-04-20 03:15:05 [2025-04-20 03:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947453', 'tblTempUsageDetail_20' ) start [2025-04-20 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947453', 'tblTempUsageDetail_20' ) end [2025-04-20 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947453', 'tblTempVendorCDR_20' ) start [2025-04-20 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947453', 'tblTempVendorCDR_20' ) end [2025-04-20 03:15:18] Production.INFO: ProcessCDR(1,14947453,1,1,2) [2025-04-20 03:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947453', 'tblTempUsageDetail_20' ) start [2025-04-20 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947453', 'tblTempUsageDetail_20' ) end [2025-04-20 03:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 03:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 03:15:21] Production.INFO: ==4018== Releasing lock... [2025-04-20 03:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 03:15:21] Production.INFO: 32 MB #Memory Used# [2025-04-20 03:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 00:16:06 [end_date_ymd] => 2025-04-20 03:16:06 [RateCDR] => 1 ) [2025-04-20 03:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 00:16:06' and `end` < '2025-04-20 03:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 03:16:18] Production.INFO: count ==477 [2025-04-20 03:16:18] Production.ERROR: pbx CDR StartTime 2025-04-20 00:16:06 - End Time 2025-04-20 03:16:06 [2025-04-20 03:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947458', 'tblTempUsageDetail_20' ) start [2025-04-20 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947458', 'tblTempUsageDetail_20' ) end [2025-04-20 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947458', 'tblTempVendorCDR_20' ) start [2025-04-20 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947458', 'tblTempVendorCDR_20' ) end [2025-04-20 03:16:18] Production.INFO: ProcessCDR(1,14947458,1,1,2) [2025-04-20 03:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947458', 'tblTempUsageDetail_20' ) start [2025-04-20 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947458', 'tblTempUsageDetail_20' ) end [2025-04-20 03:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 03:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 03:16:22] Production.INFO: ==4089== Releasing lock... [2025-04-20 03:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 03:16:22] Production.INFO: 32 MB #Memory Used# [2025-04-20 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 00:17:05 [end_date_ymd] => 2025-04-20 03:17:05 [RateCDR] => 1 ) [2025-04-20 03:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 00:17:05' and `end` < '2025-04-20 03:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 03:17:18] Production.INFO: count ==475 [2025-04-20 03:17:18] Production.ERROR: pbx CDR StartTime 2025-04-20 00:17:05 - End Time 2025-04-20 03:17:05 [2025-04-20 03:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947463', 'tblTempUsageDetail_20' ) start [2025-04-20 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947463', 'tblTempUsageDetail_20' ) end [2025-04-20 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947463', 'tblTempVendorCDR_20' ) start [2025-04-20 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947463', 'tblTempVendorCDR_20' ) end [2025-04-20 03:17:18] Production.INFO: ProcessCDR(1,14947463,1,1,2) [2025-04-20 03:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947463', 'tblTempUsageDetail_20' ) start [2025-04-20 03:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947463', 'tblTempUsageDetail_20' ) end [2025-04-20 03:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 03:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 03:17:22] Production.INFO: ==4246== Releasing lock... [2025-04-20 03:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 03:17:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-20 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 00:18:05 [end_date_ymd] => 2025-04-20 03:18:05 [RateCDR] => 1 ) [2025-04-20 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-20 00:18:05' and `end` < '2025-04-20 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-20 03:18:18] Production.INFO: count ==472 [2025-04-20 03:18:18] Production.ERROR: pbx CDR StartTime 2025-04-20 00:18:05 - End Time 2025-04-20 03:18:05 [2025-04-20 03:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947468', 'tblTempUsageDetail_20' ) start [2025-04-20 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947468', 'tblTempUsageDetail_20' ) end [2025-04-20 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947468', 'tblTempVendorCDR_20' ) start [2025-04-20 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947468', 'tblTempVendorCDR_20' ) end [2025-04-20 03:18:18] Production.INFO: ProcessCDR(1,14947468,1,1,2) [2025-04-20 03:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947468', 'tblTempUsageDetail_20' ) start [2025-04-20 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947468', 'tblTempUsageDetail_20' ) end [2025-04-20 03:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 03:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 03:18:21] Production.INFO: ==4318== Releasing lock... [2025-04-20 03:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 03:18:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-20 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 00:19:05 [end_date_ymd] => 2025-04-20 03:19:05 [RateCDR] => 1 ) [2025-04-20 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-20 00:19:05' and `end` < '2025-04-20 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-20 03:19:18] Production.INFO: count ==469 [2025-04-20 03:19:18] Production.ERROR: pbx CDR StartTime 2025-04-20 00:19:05 - End Time 2025-04-20 03:19:05 [2025-04-20 03:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947473', 'tblTempUsageDetail_20' ) start [2025-04-20 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947473', 'tblTempUsageDetail_20' ) end [2025-04-20 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947473', 'tblTempVendorCDR_20' ) start [2025-04-20 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947473', 'tblTempVendorCDR_20' ) end [2025-04-20 03:19:18] Production.INFO: ProcessCDR(1,14947473,1,1,2) [2025-04-20 03:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947473', 'tblTempUsageDetail_20' ) start [2025-04-20 03:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947473', 'tblTempUsageDetail_20' ) end [2025-04-20 03:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 03:19:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 03:19:23] Production.INFO: ==4389== Releasing lock... [2025-04-20 03:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 03:19:23] Production.INFO: 32 MB #Memory Used# [2025-04-20 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 00:20:06 [end_date_ymd] => 2025-04-20 03:20:06 [RateCDR] => 1 ) [2025-04-20 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-20 00:20:06' and `end` < '2025-04-20 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-20 03:20:18] Production.INFO: count ==464 [2025-04-20 03:20:18] Production.ERROR: pbx CDR StartTime 2025-04-20 00:20:06 - End Time 2025-04-20 03:20:06 [2025-04-20 03:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947478', 'tblTempUsageDetail_20' ) start [2025-04-20 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947478', 'tblTempUsageDetail_20' ) end [2025-04-20 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947478', 'tblTempVendorCDR_20' ) start [2025-04-20 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947478', 'tblTempVendorCDR_20' ) end [2025-04-20 03:20:18] Production.INFO: ProcessCDR(1,14947478,1,1,2) [2025-04-20 03:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947478', 'tblTempUsageDetail_20' ) start [2025-04-20 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947478', 'tblTempUsageDetail_20' ) end [2025-04-20 03:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 03:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 03:20:22] Production.INFO: ==4471== Releasing lock... [2025-04-20 03:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 03:20:22] Production.INFO: 32 MB #Memory Used# [2025-04-20 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 00:21:05 [end_date_ymd] => 2025-04-20 03:21:05 [RateCDR] => 1 ) [2025-04-20 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-20 00:21:05' and `end` < '2025-04-20 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-20 03:21:18] Production.INFO: count ==448 [2025-04-20 03:21:18] Production.ERROR: pbx CDR StartTime 2025-04-20 00:21:05 - End Time 2025-04-20 03:21:05 [2025-04-20 03:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947484', 'tblTempUsageDetail_20' ) start [2025-04-20 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947484', 'tblTempUsageDetail_20' ) end [2025-04-20 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947484', 'tblTempVendorCDR_20' ) start [2025-04-20 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947484', 'tblTempVendorCDR_20' ) end [2025-04-20 03:21:18] Production.INFO: ProcessCDR(1,14947484,1,1,2) [2025-04-20 03:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947484', 'tblTempUsageDetail_20' ) start [2025-04-20 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947484', 'tblTempUsageDetail_20' ) end [2025-04-20 03:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 03:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 03:21:21] Production.INFO: ==4545== Releasing lock... [2025-04-20 03:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 03:21:21] Production.INFO: 32 MB #Memory Used# [2025-04-20 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 00:22:05 [end_date_ymd] => 2025-04-20 03:22:05 [RateCDR] => 1 ) [2025-04-20 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-20 00:22:05' and `end` < '2025-04-20 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-20 03:22:19] Production.INFO: count ==449 [2025-04-20 03:22:19] Production.ERROR: pbx CDR StartTime 2025-04-20 00:22:05 - End Time 2025-04-20 03:22:05 [2025-04-20 03:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 03:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947489', 'tblTempUsageDetail_20' ) start [2025-04-20 03:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947489', 'tblTempUsageDetail_20' ) end [2025-04-20 03:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947489', 'tblTempVendorCDR_20' ) start [2025-04-20 03:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947489', 'tblTempVendorCDR_20' ) end [2025-04-20 03:22:19] Production.INFO: ProcessCDR(1,14947489,1,1,2) [2025-04-20 03:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947489', 'tblTempUsageDetail_20' ) start [2025-04-20 03:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947489', 'tblTempUsageDetail_20' ) end [2025-04-20 03:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 03:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 03:22:22] Production.INFO: ==4626== Releasing lock... [2025-04-20 03:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 03:22:22] Production.INFO: 32 MB #Memory Used# [2025-04-20 03:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 00:23:06 [end_date_ymd] => 2025-04-20 03:23:06 [RateCDR] => 1 ) [2025-04-20 03:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 00:23:06' and `end` < '2025-04-20 03:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 03:23:18] Production.INFO: count ==447 [2025-04-20 03:23:18] Production.ERROR: pbx CDR StartTime 2025-04-20 00:23:06 - End Time 2025-04-20 03:23:06 [2025-04-20 03:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947494', 'tblTempUsageDetail_20' ) start [2025-04-20 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947494', 'tblTempUsageDetail_20' ) end [2025-04-20 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947494', 'tblTempVendorCDR_20' ) start [2025-04-20 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947494', 'tblTempVendorCDR_20' ) end [2025-04-20 03:23:18] Production.INFO: ProcessCDR(1,14947494,1,1,2) [2025-04-20 03:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947494', 'tblTempUsageDetail_20' ) start [2025-04-20 03:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947494', 'tblTempUsageDetail_20' ) end [2025-04-20 03:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 03:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 03:23:22] Production.INFO: ==4699== Releasing lock... [2025-04-20 03:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 03:23:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-20 03:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 00:24:06 [end_date_ymd] => 2025-04-20 03:24:06 [RateCDR] => 1 ) [2025-04-20 03:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 00:24:06' and `end` < '2025-04-20 03:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 03:24:18] Production.INFO: count ==445 [2025-04-20 03:24:18] Production.ERROR: pbx CDR StartTime 2025-04-20 00:24:06 - End Time 2025-04-20 03:24:06 [2025-04-20 03:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947499', 'tblTempUsageDetail_20' ) start [2025-04-20 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947499', 'tblTempUsageDetail_20' ) end [2025-04-20 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947499', 'tblTempVendorCDR_20' ) start [2025-04-20 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947499', 'tblTempVendorCDR_20' ) end [2025-04-20 03:24:18] Production.INFO: ProcessCDR(1,14947499,1,1,2) [2025-04-20 03:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947499', 'tblTempUsageDetail_20' ) start [2025-04-20 03:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947499', 'tblTempUsageDetail_20' ) end [2025-04-20 03:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 03:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 03:24:22] Production.INFO: ==4771== Releasing lock... [2025-04-20 03:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 03:24:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-20 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 00:25:05 [end_date_ymd] => 2025-04-20 03:25:05 [RateCDR] => 1 ) [2025-04-20 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-20 00:25:05' and `end` < '2025-04-20 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-20 03:25:18] Production.INFO: count ==443 [2025-04-20 03:25:18] Production.ERROR: pbx CDR StartTime 2025-04-20 00:25:05 - End Time 2025-04-20 03:25:05 [2025-04-20 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947504', 'tblTempUsageDetail_20' ) start [2025-04-20 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947504', 'tblTempUsageDetail_20' ) end [2025-04-20 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947504', 'tblTempVendorCDR_20' ) start [2025-04-20 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947504', 'tblTempVendorCDR_20' ) end [2025-04-20 03:25:18] Production.INFO: ProcessCDR(1,14947504,1,1,2) [2025-04-20 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947504', 'tblTempUsageDetail_20' ) start [2025-04-20 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947504', 'tblTempUsageDetail_20' ) end [2025-04-20 03:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 03:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 03:25:21] Production.INFO: ==4845== Releasing lock... [2025-04-20 03:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 03:25:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-20 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 00:26:05 [end_date_ymd] => 2025-04-20 03:26:05 [RateCDR] => 1 ) [2025-04-20 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-20 00:26:05' and `end` < '2025-04-20 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-20 03:26:18] Production.INFO: count ==440 [2025-04-20 03:26:18] Production.ERROR: pbx CDR StartTime 2025-04-20 00:26:05 - End Time 2025-04-20 03:26:05 [2025-04-20 03:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947509', 'tblTempUsageDetail_20' ) start [2025-04-20 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947509', 'tblTempUsageDetail_20' ) end [2025-04-20 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947509', 'tblTempVendorCDR_20' ) start [2025-04-20 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947509', 'tblTempVendorCDR_20' ) end [2025-04-20 03:26:18] Production.INFO: ProcessCDR(1,14947509,1,1,2) [2025-04-20 03:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947509', 'tblTempUsageDetail_20' ) start [2025-04-20 03:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947509', 'tblTempUsageDetail_20' ) end [2025-04-20 03:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 03:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 03:26:22] Production.INFO: ==4917== Releasing lock... [2025-04-20 03:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 03:26:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-20 03:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 00:27:06 [end_date_ymd] => 2025-04-20 03:27:06 [RateCDR] => 1 ) [2025-04-20 03:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 00:27:06' and `end` < '2025-04-20 03:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 03:27:19] Production.INFO: count ==436 [2025-04-20 03:27:19] Production.ERROR: pbx CDR StartTime 2025-04-20 00:27:06 - End Time 2025-04-20 03:27:06 [2025-04-20 03:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947514', 'tblTempUsageDetail_20' ) start [2025-04-20 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947514', 'tblTempUsageDetail_20' ) end [2025-04-20 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947514', 'tblTempVendorCDR_20' ) start [2025-04-20 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947514', 'tblTempVendorCDR_20' ) end [2025-04-20 03:27:19] Production.INFO: ProcessCDR(1,14947514,1,1,2) [2025-04-20 03:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947514', 'tblTempUsageDetail_20' ) start [2025-04-20 03:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947514', 'tblTempUsageDetail_20' ) end [2025-04-20 03:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 03:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 03:27:22] Production.INFO: ==4992== Releasing lock... [2025-04-20 03:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 03:27:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-20 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 00:28:05 [end_date_ymd] => 2025-04-20 03:28:05 [RateCDR] => 1 ) [2025-04-20 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-20 00:28:05' and `end` < '2025-04-20 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-20 03:28:17] Production.INFO: count ==434 [2025-04-20 03:28:17] Production.ERROR: pbx CDR StartTime 2025-04-20 00:28:05 - End Time 2025-04-20 03:28:05 [2025-04-20 03:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947519', 'tblTempUsageDetail_20' ) start [2025-04-20 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947519', 'tblTempUsageDetail_20' ) end [2025-04-20 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947519', 'tblTempVendorCDR_20' ) start [2025-04-20 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947519', 'tblTempVendorCDR_20' ) end [2025-04-20 03:28:17] Production.INFO: ProcessCDR(1,14947519,1,1,2) [2025-04-20 03:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947519', 'tblTempUsageDetail_20' ) start [2025-04-20 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947519', 'tblTempUsageDetail_20' ) end [2025-04-20 03:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 03:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 03:28:21] Production.INFO: ==5063== Releasing lock... [2025-04-20 03:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 03:28:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-20 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 00:29:05 [end_date_ymd] => 2025-04-20 03:29:05 [RateCDR] => 1 ) [2025-04-20 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-20 00:29:05' and `end` < '2025-04-20 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-20 03:29:18] Production.INFO: count ==434 [2025-04-20 03:29:18] Production.ERROR: pbx CDR StartTime 2025-04-20 00:29:05 - End Time 2025-04-20 03:29:05 [2025-04-20 03:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947524', 'tblTempUsageDetail_20' ) start [2025-04-20 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947524', 'tblTempUsageDetail_20' ) end [2025-04-20 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947524', 'tblTempVendorCDR_20' ) start [2025-04-20 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947524', 'tblTempVendorCDR_20' ) end [2025-04-20 03:29:18] Production.INFO: ProcessCDR(1,14947524,1,1,2) [2025-04-20 03:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947524', 'tblTempUsageDetail_20' ) start [2025-04-20 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947524', 'tblTempUsageDetail_20' ) end [2025-04-20 03:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 03:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 03:29:21] Production.INFO: ==5180== Releasing lock... [2025-04-20 03:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 03:29:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-20 03:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 00:30:05 [end_date_ymd] => 2025-04-20 03:30:05 [RateCDR] => 1 ) [2025-04-20 03: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-20 00:30:05' and `end` < '2025-04-20 03: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-20 03:30:18] Production.INFO: count ==433 [2025-04-20 03:30:18] Production.ERROR: pbx CDR StartTime 2025-04-20 00:30:05 - End Time 2025-04-20 03:30:05 [2025-04-20 03:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947530', 'tblTempUsageDetail_20' ) start [2025-04-20 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947530', 'tblTempUsageDetail_20' ) end [2025-04-20 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947530', 'tblTempVendorCDR_20' ) start [2025-04-20 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947530', 'tblTempVendorCDR_20' ) end [2025-04-20 03:30:18] Production.INFO: ProcessCDR(1,14947530,1,1,2) [2025-04-20 03:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947530', 'tblTempUsageDetail_20' ) start [2025-04-20 03:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947530', 'tblTempUsageDetail_20' ) end [2025-04-20 03:30:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 03:30:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 03:30:21] Production.INFO: ==5289== Releasing lock... [2025-04-20 03:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 03:30:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-20 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 00:31:05 [end_date_ymd] => 2025-04-20 03:31:05 [RateCDR] => 1 ) [2025-04-20 03:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 00:31:05' and `end` < '2025-04-20 03:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 03:31:18] Production.INFO: count ==435 [2025-04-20 03:31:18] Production.ERROR: pbx CDR StartTime 2025-04-20 00:31:05 - End Time 2025-04-20 03:31:05 [2025-04-20 03:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947535', 'tblTempUsageDetail_20' ) start [2025-04-20 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947535', 'tblTempUsageDetail_20' ) end [2025-04-20 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947535', 'tblTempVendorCDR_20' ) start [2025-04-20 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947535', 'tblTempVendorCDR_20' ) end [2025-04-20 03:31:18] Production.INFO: ProcessCDR(1,14947535,1,1,2) [2025-04-20 03:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947535', 'tblTempUsageDetail_20' ) start [2025-04-20 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947535', 'tblTempUsageDetail_20' ) end [2025-04-20 03:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 03:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 03:31:21] Production.INFO: ==5408== Releasing lock... [2025-04-20 03:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 03:31:21] Production.INFO: 32 MB #Memory Used# [2025-04-20 03:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 00:32:05 [end_date_ymd] => 2025-04-20 03:32:05 [RateCDR] => 1 ) [2025-04-20 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-20 00:32:05' and `end` < '2025-04-20 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-20 03:32:17] Production.INFO: count ==437 [2025-04-20 03:32:17] Production.ERROR: pbx CDR StartTime 2025-04-20 00:32:05 - End Time 2025-04-20 03:32:05 [2025-04-20 03:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 03:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947540', 'tblTempUsageDetail_20' ) start [2025-04-20 03:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947540', 'tblTempUsageDetail_20' ) end [2025-04-20 03:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947540', 'tblTempVendorCDR_20' ) start [2025-04-20 03:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947540', 'tblTempVendorCDR_20' ) end [2025-04-20 03:32:17] Production.INFO: ProcessCDR(1,14947540,1,1,2) [2025-04-20 03:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947540', 'tblTempUsageDetail_20' ) start [2025-04-20 03:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947540', 'tblTempUsageDetail_20' ) end [2025-04-20 03:32:20] Production.ERROR: pbx prc_insertCDR start [2025-04-20 03:32:20] Production.ERROR: pbx prc_insertCDR end [2025-04-20 03:32:20] Production.INFO: ==5514== Releasing lock... [2025-04-20 03:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 03:32:20] Production.INFO: 32 MB #Memory Used# [2025-04-20 03:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 00:33:05 [end_date_ymd] => 2025-04-20 03:33:05 [RateCDR] => 1 ) [2025-04-20 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-20 00:33:05' and `end` < '2025-04-20 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-20 03:33:18] Production.INFO: count ==437 [2025-04-20 03:33:18] Production.ERROR: pbx CDR StartTime 2025-04-20 00:33:05 - End Time 2025-04-20 03:33:05 [2025-04-20 03:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947545', 'tblTempUsageDetail_20' ) start [2025-04-20 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947545', 'tblTempUsageDetail_20' ) end [2025-04-20 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947545', 'tblTempVendorCDR_20' ) start [2025-04-20 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947545', 'tblTempVendorCDR_20' ) end [2025-04-20 03:33:18] Production.INFO: ProcessCDR(1,14947545,1,1,2) [2025-04-20 03:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947545', 'tblTempUsageDetail_20' ) start [2025-04-20 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947545', 'tblTempUsageDetail_20' ) end [2025-04-20 03:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 03:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 03:33:21] Production.INFO: ==5620== Releasing lock... [2025-04-20 03:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 03:33:21] Production.INFO: 32 MB #Memory Used# [2025-04-20 03:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 00:34:06 [end_date_ymd] => 2025-04-20 03:34:06 [RateCDR] => 1 ) [2025-04-20 03:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 00:34:06' and `end` < '2025-04-20 03:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 03:34:18] Production.INFO: count ==435 [2025-04-20 03:34:18] Production.ERROR: pbx CDR StartTime 2025-04-20 00:34:06 - End Time 2025-04-20 03:34:06 [2025-04-20 03:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947550', 'tblTempUsageDetail_20' ) start [2025-04-20 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947550', 'tblTempUsageDetail_20' ) end [2025-04-20 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947550', 'tblTempVendorCDR_20' ) start [2025-04-20 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947550', 'tblTempVendorCDR_20' ) end [2025-04-20 03:34:18] Production.INFO: ProcessCDR(1,14947550,1,1,2) [2025-04-20 03:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947550', 'tblTempUsageDetail_20' ) start [2025-04-20 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947550', 'tblTempUsageDetail_20' ) end [2025-04-20 03:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 03:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 03:34:22] Production.INFO: ==5709== Releasing lock... [2025-04-20 03:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 03:34:22] Production.INFO: 32 MB #Memory Used# [2025-04-20 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 00:35:05 [end_date_ymd] => 2025-04-20 03:35:05 [RateCDR] => 1 ) [2025-04-20 03:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 00:35:05' and `end` < '2025-04-20 03:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 03:35:17] Production.INFO: count ==432 [2025-04-20 03:35:17] Production.ERROR: pbx CDR StartTime 2025-04-20 00:35:05 - End Time 2025-04-20 03:35:05 [2025-04-20 03:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947555', 'tblTempUsageDetail_20' ) start [2025-04-20 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947555', 'tblTempUsageDetail_20' ) end [2025-04-20 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947555', 'tblTempVendorCDR_20' ) start [2025-04-20 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947555', 'tblTempVendorCDR_20' ) end [2025-04-20 03:35:17] Production.INFO: ProcessCDR(1,14947555,1,1,2) [2025-04-20 03:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947555', 'tblTempUsageDetail_20' ) start [2025-04-20 03:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947555', 'tblTempUsageDetail_20' ) end [2025-04-20 03:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 03:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 03:35:21] Production.INFO: ==5781== Releasing lock... [2025-04-20 03:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 03:35:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-20 03:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 00:36:05 [end_date_ymd] => 2025-04-20 03:36:05 [RateCDR] => 1 ) [2025-04-20 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-20 00:36:05' and `end` < '2025-04-20 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-20 03:36:18] Production.INFO: count ==430 [2025-04-20 03:36:18] Production.ERROR: pbx CDR StartTime 2025-04-20 00:36:05 - End Time 2025-04-20 03:36:05 [2025-04-20 03:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947560', 'tblTempUsageDetail_20' ) start [2025-04-20 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947560', 'tblTempUsageDetail_20' ) end [2025-04-20 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947560', 'tblTempVendorCDR_20' ) start [2025-04-20 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947560', 'tblTempVendorCDR_20' ) end [2025-04-20 03:36:18] Production.INFO: ProcessCDR(1,14947560,1,1,2) [2025-04-20 03:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947560', 'tblTempUsageDetail_20' ) start [2025-04-20 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947560', 'tblTempUsageDetail_20' ) end [2025-04-20 03:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 03:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 03:36:21] Production.INFO: ==5855== Releasing lock... [2025-04-20 03:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 03:36:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-20 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 00:37:05 [end_date_ymd] => 2025-04-20 03:37:05 [RateCDR] => 1 ) [2025-04-20 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-20 00:37:05' and `end` < '2025-04-20 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-20 03:37:17] Production.INFO: count ==428 [2025-04-20 03:37:17] Production.ERROR: pbx CDR StartTime 2025-04-20 00:37:05 - End Time 2025-04-20 03:37:05 [2025-04-20 03:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947565', 'tblTempUsageDetail_20' ) start [2025-04-20 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947565', 'tblTempUsageDetail_20' ) end [2025-04-20 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947565', 'tblTempVendorCDR_20' ) start [2025-04-20 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947565', 'tblTempVendorCDR_20' ) end [2025-04-20 03:37:17] Production.INFO: ProcessCDR(1,14947565,1,1,2) [2025-04-20 03:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947565', 'tblTempUsageDetail_20' ) start [2025-04-20 03:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947565', 'tblTempUsageDetail_20' ) end [2025-04-20 03:37:20] Production.ERROR: pbx prc_insertCDR start [2025-04-20 03:37:20] Production.ERROR: pbx prc_insertCDR end [2025-04-20 03:37:21] Production.INFO: ==5930== Releasing lock... [2025-04-20 03:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 03:37:21] Production.INFO: 31 MB #Memory Used# [2025-04-20 03:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 00:38:05 [end_date_ymd] => 2025-04-20 03:38:05 [RateCDR] => 1 ) [2025-04-20 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-20 00:38:05' and `end` < '2025-04-20 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-20 03:38:18] Production.INFO: count ==424 [2025-04-20 03:38:18] Production.ERROR: pbx CDR StartTime 2025-04-20 00:38:05 - End Time 2025-04-20 03:38:05 [2025-04-20 03:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947570', 'tblTempUsageDetail_20' ) start [2025-04-20 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947570', 'tblTempUsageDetail_20' ) end [2025-04-20 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947570', 'tblTempVendorCDR_20' ) start [2025-04-20 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947570', 'tblTempVendorCDR_20' ) end [2025-04-20 03:38:18] Production.INFO: ProcessCDR(1,14947570,1,1,2) [2025-04-20 03:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947570', 'tblTempUsageDetail_20' ) start [2025-04-20 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947570', 'tblTempUsageDetail_20' ) end [2025-04-20 03:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 03:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 03:38:21] Production.INFO: ==6002== Releasing lock... [2025-04-20 03:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 03:38:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-20 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 00:39:05 [end_date_ymd] => 2025-04-20 03:39:05 [RateCDR] => 1 ) [2025-04-20 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-20 00:39:05' and `end` < '2025-04-20 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-20 03:39:18] Production.INFO: count ==425 [2025-04-20 03:39:18] Production.ERROR: pbx CDR StartTime 2025-04-20 00:39:05 - End Time 2025-04-20 03:39:05 [2025-04-20 03:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947575', 'tblTempUsageDetail_20' ) start [2025-04-20 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947575', 'tblTempUsageDetail_20' ) end [2025-04-20 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947575', 'tblTempVendorCDR_20' ) start [2025-04-20 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947575', 'tblTempVendorCDR_20' ) end [2025-04-20 03:39:18] Production.INFO: ProcessCDR(1,14947575,1,1,2) [2025-04-20 03:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947575', 'tblTempUsageDetail_20' ) start [2025-04-20 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947575', 'tblTempUsageDetail_20' ) end [2025-04-20 03:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 03:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 03:39:21] Production.INFO: ==6072== Releasing lock... [2025-04-20 03:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 03:39:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-20 03:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 00:40:06 [end_date_ymd] => 2025-04-20 03:40:06 [RateCDR] => 1 ) [2025-04-20 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-20 00:40:06' and `end` < '2025-04-20 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-20 03:40:19] Production.INFO: count ==427 [2025-04-20 03:40:19] Production.ERROR: pbx CDR StartTime 2025-04-20 00:40:06 - End Time 2025-04-20 03:40:06 [2025-04-20 03:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947581', 'tblTempUsageDetail_20' ) start [2025-04-20 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947581', 'tblTempUsageDetail_20' ) end [2025-04-20 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947581', 'tblTempVendorCDR_20' ) start [2025-04-20 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947581', 'tblTempVendorCDR_20' ) end [2025-04-20 03:40:19] Production.INFO: ProcessCDR(1,14947581,1,1,2) [2025-04-20 03:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947581', 'tblTempUsageDetail_20' ) start [2025-04-20 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947581', 'tblTempUsageDetail_20' ) end [2025-04-20 03:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 03:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 03:40:22] Production.INFO: ==6147== Releasing lock... [2025-04-20 03:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 03:40:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-20 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 00:41:05 [end_date_ymd] => 2025-04-20 03:41:05 [RateCDR] => 1 ) [2025-04-20 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-20 00:41:05' and `end` < '2025-04-20 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-20 03:41:17] Production.INFO: count ==427 [2025-04-20 03:41:17] Production.ERROR: pbx CDR StartTime 2025-04-20 00:41:05 - End Time 2025-04-20 03:41:05 [2025-04-20 03:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947586', 'tblTempUsageDetail_20' ) start [2025-04-20 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947586', 'tblTempUsageDetail_20' ) end [2025-04-20 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947586', 'tblTempVendorCDR_20' ) start [2025-04-20 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947586', 'tblTempVendorCDR_20' ) end [2025-04-20 03:41:17] Production.INFO: ProcessCDR(1,14947586,1,1,2) [2025-04-20 03:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947586', 'tblTempUsageDetail_20' ) start [2025-04-20 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947586', 'tblTempUsageDetail_20' ) end [2025-04-20 03:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 03:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 03:41:21] Production.INFO: ==6222== Releasing lock... [2025-04-20 03:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 03:41:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-20 03:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 00:42:05 [end_date_ymd] => 2025-04-20 03:42:05 [RateCDR] => 1 ) [2025-04-20 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-20 00:42:05' and `end` < '2025-04-20 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-20 03:42:17] Production.INFO: count ==426 [2025-04-20 03:42:17] Production.ERROR: pbx CDR StartTime 2025-04-20 00:42:05 - End Time 2025-04-20 03:42:05 [2025-04-20 03:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947591', 'tblTempUsageDetail_20' ) start [2025-04-20 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947591', 'tblTempUsageDetail_20' ) end [2025-04-20 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947591', 'tblTempVendorCDR_20' ) start [2025-04-20 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947591', 'tblTempVendorCDR_20' ) end [2025-04-20 03:42:17] Production.INFO: ProcessCDR(1,14947591,1,1,2) [2025-04-20 03:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947591', 'tblTempUsageDetail_20' ) start [2025-04-20 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947591', 'tblTempUsageDetail_20' ) end [2025-04-20 03:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 03:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 03:42:21] Production.INFO: ==6293== Releasing lock... [2025-04-20 03:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 03:42:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-20 03:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 00:43:06 [end_date_ymd] => 2025-04-20 03:43:06 [RateCDR] => 1 ) [2025-04-20 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-20 00:43:06' and `end` < '2025-04-20 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-20 03:43:18] Production.INFO: count ==428 [2025-04-20 03:43:18] Production.ERROR: pbx CDR StartTime 2025-04-20 00:43:06 - End Time 2025-04-20 03:43:06 [2025-04-20 03:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947596', 'tblTempUsageDetail_20' ) start [2025-04-20 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947596', 'tblTempUsageDetail_20' ) end [2025-04-20 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947596', 'tblTempVendorCDR_20' ) start [2025-04-20 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947596', 'tblTempVendorCDR_20' ) end [2025-04-20 03:43:18] Production.INFO: ProcessCDR(1,14947596,1,1,2) [2025-04-20 03:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947596', 'tblTempUsageDetail_20' ) start [2025-04-20 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947596', 'tblTempUsageDetail_20' ) end [2025-04-20 03:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 03:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 03:43:22] Production.INFO: ==6367== Releasing lock... [2025-04-20 03:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 03:43:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-20 03:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 00:44:05 [end_date_ymd] => 2025-04-20 03:44:05 [RateCDR] => 1 ) [2025-04-20 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-20 00:44:05' and `end` < '2025-04-20 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-20 03:44:17] Production.INFO: count ==428 [2025-04-20 03:44:17] Production.ERROR: pbx CDR StartTime 2025-04-20 00:44:05 - End Time 2025-04-20 03:44:05 [2025-04-20 03:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947601', 'tblTempUsageDetail_20' ) start [2025-04-20 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947601', 'tblTempUsageDetail_20' ) end [2025-04-20 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947601', 'tblTempVendorCDR_20' ) start [2025-04-20 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947601', 'tblTempVendorCDR_20' ) end [2025-04-20 03:44:17] Production.INFO: ProcessCDR(1,14947601,1,1,2) [2025-04-20 03:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947601', 'tblTempUsageDetail_20' ) start [2025-04-20 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947601', 'tblTempUsageDetail_20' ) end [2025-04-20 03:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 03:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 03:44:21] Production.INFO: ==6481== Releasing lock... [2025-04-20 03:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 03:44:21] Production.INFO: 31 MB #Memory Used# [2025-04-20 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 00:45:05 [end_date_ymd] => 2025-04-20 03:45:05 [RateCDR] => 1 ) [2025-04-20 03:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 00:45:05' and `end` < '2025-04-20 03:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 03:45:18] Production.INFO: count ==428 [2025-04-20 03:45:18] Production.ERROR: pbx CDR StartTime 2025-04-20 00:45:05 - End Time 2025-04-20 03:45:05 [2025-04-20 03:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947606', 'tblTempUsageDetail_20' ) start [2025-04-20 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947606', 'tblTempUsageDetail_20' ) end [2025-04-20 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947606', 'tblTempVendorCDR_20' ) start [2025-04-20 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947606', 'tblTempVendorCDR_20' ) end [2025-04-20 03:45:18] Production.INFO: ProcessCDR(1,14947606,1,1,2) [2025-04-20 03:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947606', 'tblTempUsageDetail_20' ) start [2025-04-20 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947606', 'tblTempUsageDetail_20' ) end [2025-04-20 03:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 03:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 03:45:21] Production.INFO: ==6560== Releasing lock... [2025-04-20 03:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 03:45:21] Production.INFO: 31 MB #Memory Used# [2025-04-20 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 00:46:05 [end_date_ymd] => 2025-04-20 03:46:05 [RateCDR] => 1 ) [2025-04-20 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-20 00:46:05' and `end` < '2025-04-20 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-20 03:46:18] Production.INFO: count ==427 [2025-04-20 03:46:18] Production.ERROR: pbx CDR StartTime 2025-04-20 00:46:05 - End Time 2025-04-20 03:46:05 [2025-04-20 03:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947611', 'tblTempUsageDetail_20' ) start [2025-04-20 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947611', 'tblTempUsageDetail_20' ) end [2025-04-20 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947611', 'tblTempVendorCDR_20' ) start [2025-04-20 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947611', 'tblTempVendorCDR_20' ) end [2025-04-20 03:46:18] Production.INFO: ProcessCDR(1,14947611,1,1,2) [2025-04-20 03:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947611', 'tblTempUsageDetail_20' ) start [2025-04-20 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947611', 'tblTempUsageDetail_20' ) end [2025-04-20 03:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 03:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 03:46:21] Production.INFO: ==6634== Releasing lock... [2025-04-20 03:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 03:46:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-20 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 00:47:05 [end_date_ymd] => 2025-04-20 03:47:05 [RateCDR] => 1 ) [2025-04-20 03:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 00:47:05' and `end` < '2025-04-20 03:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 03:47:17] Production.INFO: count ==425 [2025-04-20 03:47:17] Production.ERROR: pbx CDR StartTime 2025-04-20 00:47:05 - End Time 2025-04-20 03:47:05 [2025-04-20 03:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947616', 'tblTempUsageDetail_20' ) start [2025-04-20 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947616', 'tblTempUsageDetail_20' ) end [2025-04-20 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947616', 'tblTempVendorCDR_20' ) start [2025-04-20 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947616', 'tblTempVendorCDR_20' ) end [2025-04-20 03:47:17] Production.INFO: ProcessCDR(1,14947616,1,1,2) [2025-04-20 03:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947616', 'tblTempUsageDetail_20' ) start [2025-04-20 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947616', 'tblTempUsageDetail_20' ) end [2025-04-20 03:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 03:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 03:47:21] Production.INFO: ==6705== Releasing lock... [2025-04-20 03:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 03:47:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-20 03:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 00:48:05 [end_date_ymd] => 2025-04-20 03:48:05 [RateCDR] => 1 ) [2025-04-20 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-20 00:48:05' and `end` < '2025-04-20 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-20 03:48:18] Production.INFO: count ==425 [2025-04-20 03:48:18] Production.ERROR: pbx CDR StartTime 2025-04-20 00:48:05 - End Time 2025-04-20 03:48:05 [2025-04-20 03:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947621', 'tblTempUsageDetail_20' ) start [2025-04-20 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947621', 'tblTempUsageDetail_20' ) end [2025-04-20 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947621', 'tblTempVendorCDR_20' ) start [2025-04-20 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947621', 'tblTempVendorCDR_20' ) end [2025-04-20 03:48:18] Production.INFO: ProcessCDR(1,14947621,1,1,2) [2025-04-20 03:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947621', 'tblTempUsageDetail_20' ) start [2025-04-20 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947621', 'tblTempUsageDetail_20' ) end [2025-04-20 03:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 03:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 03:48:21] Production.INFO: ==6776== Releasing lock... [2025-04-20 03:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 03:48:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-20 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 00:49:05 [end_date_ymd] => 2025-04-20 03:49:05 [RateCDR] => 1 ) [2025-04-20 03:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 00:49:05' and `end` < '2025-04-20 03:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 03:49:18] Production.INFO: count ==425 [2025-04-20 03:49:18] Production.ERROR: pbx CDR StartTime 2025-04-20 00:49:05 - End Time 2025-04-20 03:49:05 [2025-04-20 03:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947626', 'tblTempUsageDetail_20' ) start [2025-04-20 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947626', 'tblTempUsageDetail_20' ) end [2025-04-20 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947626', 'tblTempVendorCDR_20' ) start [2025-04-20 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947626', 'tblTempVendorCDR_20' ) end [2025-04-20 03:49:18] Production.INFO: ProcessCDR(1,14947626,1,1,2) [2025-04-20 03:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947626', 'tblTempUsageDetail_20' ) start [2025-04-20 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947626', 'tblTempUsageDetail_20' ) end [2025-04-20 03:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 03:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 03:49:22] Production.INFO: ==6847== Releasing lock... [2025-04-20 03:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 03:49:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-20 03:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 00:50:06 [end_date_ymd] => 2025-04-20 03:50:06 [RateCDR] => 1 ) [2025-04-20 03:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 00:50:06' and `end` < '2025-04-20 03:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 03:50:18] Production.INFO: count ==424 [2025-04-20 03:50:18] Production.ERROR: pbx CDR StartTime 2025-04-20 00:50:06 - End Time 2025-04-20 03:50:06 [2025-04-20 03:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947632', 'tblTempUsageDetail_20' ) start [2025-04-20 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947632', 'tblTempUsageDetail_20' ) end [2025-04-20 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947632', 'tblTempVendorCDR_20' ) start [2025-04-20 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947632', 'tblTempVendorCDR_20' ) end [2025-04-20 03:50:18] Production.INFO: ProcessCDR(1,14947632,1,1,2) [2025-04-20 03:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947632', 'tblTempUsageDetail_20' ) start [2025-04-20 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947632', 'tblTempUsageDetail_20' ) end [2025-04-20 03:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 03:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 03:50:22] Production.INFO: ==6923== Releasing lock... [2025-04-20 03:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 03:50:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-20 03:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 00:51:05 [end_date_ymd] => 2025-04-20 03:51:05 [RateCDR] => 1 ) [2025-04-20 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-20 00:51:05' and `end` < '2025-04-20 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-20 03:51:18] Production.INFO: count ==417 [2025-04-20 03:51:18] Production.ERROR: pbx CDR StartTime 2025-04-20 00:51:05 - End Time 2025-04-20 03:51:05 [2025-04-20 03:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947637', 'tblTempUsageDetail_20' ) start [2025-04-20 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947637', 'tblTempUsageDetail_20' ) end [2025-04-20 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947637', 'tblTempVendorCDR_20' ) start [2025-04-20 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947637', 'tblTempVendorCDR_20' ) end [2025-04-20 03:51:18] Production.INFO: ProcessCDR(1,14947637,1,1,2) [2025-04-20 03:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947637', 'tblTempUsageDetail_20' ) start [2025-04-20 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947637', 'tblTempUsageDetail_20' ) end [2025-04-20 03:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 03:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 03:51:21] Production.INFO: ==6997== Releasing lock... [2025-04-20 03:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 03:51:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-20 03:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 00:52:05 [end_date_ymd] => 2025-04-20 03:52:05 [RateCDR] => 1 ) [2025-04-20 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-20 00:52:05' and `end` < '2025-04-20 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-20 03:52:17] Production.INFO: count ==413 [2025-04-20 03:52:17] Production.ERROR: pbx CDR StartTime 2025-04-20 00:52:05 - End Time 2025-04-20 03:52:05 [2025-04-20 03:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947642', 'tblTempUsageDetail_20' ) start [2025-04-20 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947642', 'tblTempUsageDetail_20' ) end [2025-04-20 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947642', 'tblTempVendorCDR_20' ) start [2025-04-20 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947642', 'tblTempVendorCDR_20' ) end [2025-04-20 03:52:17] Production.INFO: ProcessCDR(1,14947642,1,1,2) [2025-04-20 03:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947642', 'tblTempUsageDetail_20' ) start [2025-04-20 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947642', 'tblTempUsageDetail_20' ) end [2025-04-20 03:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 03:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 03:52:21] Production.INFO: ==7071== Releasing lock... [2025-04-20 03:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 03:52:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-20 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 00:53:05 [end_date_ymd] => 2025-04-20 03:53:05 [RateCDR] => 1 ) [2025-04-20 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-20 00:53:05' and `end` < '2025-04-20 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-20 03:53:19] Production.INFO: count ==412 [2025-04-20 03:53:19] Production.ERROR: pbx CDR StartTime 2025-04-20 00:53:05 - End Time 2025-04-20 03:53:05 [2025-04-20 03:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947647', 'tblTempUsageDetail_20' ) start [2025-04-20 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947647', 'tblTempUsageDetail_20' ) end [2025-04-20 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947647', 'tblTempVendorCDR_20' ) start [2025-04-20 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947647', 'tblTempVendorCDR_20' ) end [2025-04-20 03:53:19] Production.INFO: ProcessCDR(1,14947647,1,1,2) [2025-04-20 03:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947647', 'tblTempUsageDetail_20' ) start [2025-04-20 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947647', 'tblTempUsageDetail_20' ) end [2025-04-20 03:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 03:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 03:53:22] Production.INFO: ==7153== Releasing lock... [2025-04-20 03:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 03:53:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-20 03:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 00:54:06 [end_date_ymd] => 2025-04-20 03:54:06 [RateCDR] => 1 ) [2025-04-20 03:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 00:54:06' and `end` < '2025-04-20 03:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 03:54:18] Production.INFO: count ==410 [2025-04-20 03:54:18] Production.ERROR: pbx CDR StartTime 2025-04-20 00:54:06 - End Time 2025-04-20 03:54:06 [2025-04-20 03:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947652', 'tblTempUsageDetail_20' ) start [2025-04-20 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947652', 'tblTempUsageDetail_20' ) end [2025-04-20 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947652', 'tblTempVendorCDR_20' ) start [2025-04-20 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947652', 'tblTempVendorCDR_20' ) end [2025-04-20 03:54:18] Production.INFO: ProcessCDR(1,14947652,1,1,2) [2025-04-20 03:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947652', 'tblTempUsageDetail_20' ) start [2025-04-20 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947652', 'tblTempUsageDetail_20' ) end [2025-04-20 03:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 03:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 03:54:21] Production.INFO: ==7232== Releasing lock... [2025-04-20 03:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 03:54:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-20 03:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 00:55:05 [end_date_ymd] => 2025-04-20 03:55:05 [RateCDR] => 1 ) [2025-04-20 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-20 00:55:05' and `end` < '2025-04-20 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-20 03:55:18] Production.INFO: count ==410 [2025-04-20 03:55:18] Production.ERROR: pbx CDR StartTime 2025-04-20 00:55:05 - End Time 2025-04-20 03:55:05 [2025-04-20 03:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947657', 'tblTempUsageDetail_20' ) start [2025-04-20 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947657', 'tblTempUsageDetail_20' ) end [2025-04-20 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947657', 'tblTempVendorCDR_20' ) start [2025-04-20 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947657', 'tblTempVendorCDR_20' ) end [2025-04-20 03:55:18] Production.INFO: ProcessCDR(1,14947657,1,1,2) [2025-04-20 03:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947657', 'tblTempUsageDetail_20' ) start [2025-04-20 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947657', 'tblTempUsageDetail_20' ) end [2025-04-20 03:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 03:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 03:55:21] Production.INFO: ==7318== Releasing lock... [2025-04-20 03:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 03:55:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-20 03:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 00:56:05 [end_date_ymd] => 2025-04-20 03:56:05 [RateCDR] => 1 ) [2025-04-20 03:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 00:56:05' and `end` < '2025-04-20 03:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 03:56:18] Production.INFO: count ==411 [2025-04-20 03:56:18] Production.ERROR: pbx CDR StartTime 2025-04-20 00:56:05 - End Time 2025-04-20 03:56:05 [2025-04-20 03:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947662', 'tblTempUsageDetail_20' ) start [2025-04-20 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947662', 'tblTempUsageDetail_20' ) end [2025-04-20 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947662', 'tblTempVendorCDR_20' ) start [2025-04-20 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947662', 'tblTempVendorCDR_20' ) end [2025-04-20 03:56:18] Production.INFO: ProcessCDR(1,14947662,1,1,2) [2025-04-20 03:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947662', 'tblTempUsageDetail_20' ) start [2025-04-20 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947662', 'tblTempUsageDetail_20' ) end [2025-04-20 03:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 03:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 03:56:21] Production.INFO: ==7398== Releasing lock... [2025-04-20 03:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 03:56:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-20 03:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 00:57:05 [end_date_ymd] => 2025-04-20 03:57:05 [RateCDR] => 1 ) [2025-04-20 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-20 00:57:05' and `end` < '2025-04-20 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-20 03:57:17] Production.INFO: count ==411 [2025-04-20 03:57:17] Production.ERROR: pbx CDR StartTime 2025-04-20 00:57:05 - End Time 2025-04-20 03:57:05 [2025-04-20 03:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947667', 'tblTempUsageDetail_20' ) start [2025-04-20 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947667', 'tblTempUsageDetail_20' ) end [2025-04-20 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947667', 'tblTempVendorCDR_20' ) start [2025-04-20 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947667', 'tblTempVendorCDR_20' ) end [2025-04-20 03:57:17] Production.INFO: ProcessCDR(1,14947667,1,1,2) [2025-04-20 03:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947667', 'tblTempUsageDetail_20' ) start [2025-04-20 03:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947667', 'tblTempUsageDetail_20' ) end [2025-04-20 03:57:20] Production.ERROR: pbx prc_insertCDR start [2025-04-20 03:57:20] Production.ERROR: pbx prc_insertCDR end [2025-04-20 03:57:20] Production.INFO: ==7483== Releasing lock... [2025-04-20 03:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 03:57:20] Production.INFO: 31.75 MB #Memory Used# [2025-04-20 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 00:58:05 [end_date_ymd] => 2025-04-20 03:58:05 [RateCDR] => 1 ) [2025-04-20 03:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 00:58:05' and `end` < '2025-04-20 03:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 03:58:18] Production.INFO: count ==409 [2025-04-20 03:58:18] Production.ERROR: pbx CDR StartTime 2025-04-20 00:58:05 - End Time 2025-04-20 03:58:05 [2025-04-20 03:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947672', 'tblTempUsageDetail_20' ) start [2025-04-20 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947672', 'tblTempUsageDetail_20' ) end [2025-04-20 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947672', 'tblTempVendorCDR_20' ) start [2025-04-20 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947672', 'tblTempVendorCDR_20' ) end [2025-04-20 03:58:18] Production.INFO: ProcessCDR(1,14947672,1,1,2) [2025-04-20 03:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947672', 'tblTempUsageDetail_20' ) start [2025-04-20 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947672', 'tblTempUsageDetail_20' ) end [2025-04-20 03:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 03:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 03:58:22] Production.INFO: ==7570== Releasing lock... [2025-04-20 03:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 03:58:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-20 03:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 00:59:04 [end_date_ymd] => 2025-04-20 03:59:04 [RateCDR] => 1 ) [2025-04-20 03: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-20 00:59:04' and `end` < '2025-04-20 03: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-20 03:59:17] Production.INFO: count ==408 [2025-04-20 03:59:17] Production.ERROR: pbx CDR StartTime 2025-04-20 00:59:04 - End Time 2025-04-20 03:59:04 [2025-04-20 03:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947677', 'tblTempUsageDetail_20' ) start [2025-04-20 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947677', 'tblTempUsageDetail_20' ) end [2025-04-20 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947677', 'tblTempVendorCDR_20' ) start [2025-04-20 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947677', 'tblTempVendorCDR_20' ) end [2025-04-20 03:59:17] Production.INFO: ProcessCDR(1,14947677,1,1,2) [2025-04-20 03:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 03:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 03:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947677', 'tblTempUsageDetail_20' ) start [2025-04-20 03:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947677', 'tblTempUsageDetail_20' ) end [2025-04-20 03:59:20] Production.ERROR: pbx prc_insertCDR start [2025-04-20 03:59:20] Production.ERROR: pbx prc_insertCDR end [2025-04-20 03:59:20] Production.INFO: ==7655== Releasing lock... [2025-04-20 03:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 03:59:20] Production.INFO: 31.75 MB #Memory Used# [2025-04-20 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 01:00:06 [end_date_ymd] => 2025-04-20 04:00:06 [RateCDR] => 1 ) [2025-04-20 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-20 01:00:06' and `end` < '2025-04-20 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-20 04:00:19] Production.INFO: count ==397 [2025-04-20 04:00:19] Production.ERROR: pbx CDR StartTime 2025-04-20 01:00:06 - End Time 2025-04-20 04:00:06 [2025-04-20 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947682', 'tblTempUsageDetail_20' ) start [2025-04-20 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947682', 'tblTempUsageDetail_20' ) end [2025-04-20 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947682', 'tblTempVendorCDR_20' ) start [2025-04-20 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947682', 'tblTempVendorCDR_20' ) end [2025-04-20 04:00:19] Production.INFO: ProcessCDR(1,14947682,1,1,2) [2025-04-20 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947682', 'tblTempUsageDetail_20' ) start [2025-04-20 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947682', 'tblTempUsageDetail_20' ) end [2025-04-20 04:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 04:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 04:00:22] Production.INFO: ==7780== Releasing lock... [2025-04-20 04:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 04:00:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-20 04:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 01:01:05 [end_date_ymd] => 2025-04-20 04:01:05 [RateCDR] => 1 ) [2025-04-20 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-20 01:01:05' and `end` < '2025-04-20 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-20 04:01:18] Production.INFO: count ==398 [2025-04-20 04:01:18] Production.ERROR: pbx CDR StartTime 2025-04-20 01:01:05 - End Time 2025-04-20 04:01:05 [2025-04-20 04:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947689', 'tblTempUsageDetail_20' ) start [2025-04-20 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947689', 'tblTempUsageDetail_20' ) end [2025-04-20 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947689', 'tblTempVendorCDR_20' ) start [2025-04-20 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947689', 'tblTempVendorCDR_20' ) end [2025-04-20 04:01:18] Production.INFO: ProcessCDR(1,14947689,1,1,2) [2025-04-20 04:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947689', 'tblTempUsageDetail_20' ) start [2025-04-20 04:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947689', 'tblTempUsageDetail_20' ) end [2025-04-20 04:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 04:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 04:01:22] Production.INFO: ==7886== Releasing lock... [2025-04-20 04:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 04:01:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-20 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 01:02:05 [end_date_ymd] => 2025-04-20 04:02:05 [RateCDR] => 1 ) [2025-04-20 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-20 01:02:05' and `end` < '2025-04-20 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-20 04:02:19] Production.INFO: count ==398 [2025-04-20 04:02:19] Production.ERROR: pbx CDR StartTime 2025-04-20 01:02:05 - End Time 2025-04-20 04:02:05 [2025-04-20 04:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947694', 'tblTempUsageDetail_20' ) start [2025-04-20 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947694', 'tblTempUsageDetail_20' ) end [2025-04-20 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947694', 'tblTempVendorCDR_20' ) start [2025-04-20 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947694', 'tblTempVendorCDR_20' ) end [2025-04-20 04:02:19] Production.INFO: ProcessCDR(1,14947694,1,1,2) [2025-04-20 04:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947694', 'tblTempUsageDetail_20' ) start [2025-04-20 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947694', 'tblTempUsageDetail_20' ) end [2025-04-20 04:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 04:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 04:02:22] Production.INFO: ==7969== Releasing lock... [2025-04-20 04:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 04:02:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-20 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 01:03:05 [end_date_ymd] => 2025-04-20 04:03:05 [RateCDR] => 1 ) [2025-04-20 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-20 01:03:05' and `end` < '2025-04-20 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-20 04:03:18] Production.INFO: count ==400 [2025-04-20 04:03:18] Production.ERROR: pbx CDR StartTime 2025-04-20 01:03:05 - End Time 2025-04-20 04:03:05 [2025-04-20 04:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947699', 'tblTempUsageDetail_20' ) start [2025-04-20 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947699', 'tblTempUsageDetail_20' ) end [2025-04-20 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947699', 'tblTempVendorCDR_20' ) start [2025-04-20 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947699', 'tblTempVendorCDR_20' ) end [2025-04-20 04:03:18] Production.INFO: ProcessCDR(1,14947699,1,1,2) [2025-04-20 04:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947699', 'tblTempUsageDetail_20' ) start [2025-04-20 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947699', 'tblTempUsageDetail_20' ) end [2025-04-20 04:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 04:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 04:03:21] Production.INFO: ==8052== Releasing lock... [2025-04-20 04:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 04:03:21] Production.INFO: 31 MB #Memory Used# [2025-04-20 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 01:04:05 [end_date_ymd] => 2025-04-20 04:04:05 [RateCDR] => 1 ) [2025-04-20 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-20 01:04:05' and `end` < '2025-04-20 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-20 04:04:18] Production.INFO: count ==401 [2025-04-20 04:04:18] Production.ERROR: pbx CDR StartTime 2025-04-20 01:04:05 - End Time 2025-04-20 04:04:05 [2025-04-20 04:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947704', 'tblTempUsageDetail_20' ) start [2025-04-20 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947704', 'tblTempUsageDetail_20' ) end [2025-04-20 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947704', 'tblTempVendorCDR_20' ) start [2025-04-20 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947704', 'tblTempVendorCDR_20' ) end [2025-04-20 04:04:18] Production.INFO: ProcessCDR(1,14947704,1,1,2) [2025-04-20 04:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947704', 'tblTempUsageDetail_20' ) start [2025-04-20 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947704', 'tblTempUsageDetail_20' ) end [2025-04-20 04:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 04:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 04:04:21] Production.INFO: ==8137== Releasing lock... [2025-04-20 04:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 04:04:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-20 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 01:05:05 [end_date_ymd] => 2025-04-20 04:05:05 [RateCDR] => 1 ) [2025-04-20 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-20 01:05:05' and `end` < '2025-04-20 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-20 04:05:18] Production.INFO: count ==401 [2025-04-20 04:05:18] Production.ERROR: pbx CDR StartTime 2025-04-20 01:05:05 - End Time 2025-04-20 04:05:05 [2025-04-20 04:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947709', 'tblTempUsageDetail_20' ) start [2025-04-20 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947709', 'tblTempUsageDetail_20' ) end [2025-04-20 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947709', 'tblTempVendorCDR_20' ) start [2025-04-20 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947709', 'tblTempVendorCDR_20' ) end [2025-04-20 04:05:18] Production.INFO: ProcessCDR(1,14947709,1,1,2) [2025-04-20 04:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947709', 'tblTempUsageDetail_20' ) start [2025-04-20 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947709', 'tblTempUsageDetail_20' ) end [2025-04-20 04:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 04:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 04:05:21] Production.INFO: ==8222== Releasing lock... [2025-04-20 04:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 04:05:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-20 04:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 01:06:04 [end_date_ymd] => 2025-04-20 04:06:04 [RateCDR] => 1 ) [2025-04-20 04:06: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-20 01:06:04' and `end` < '2025-04-20 04:06: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-20 04:06:17] Production.INFO: count ==401 [2025-04-20 04:06:17] Production.ERROR: pbx CDR StartTime 2025-04-20 01:06:04 - End Time 2025-04-20 04:06:04 [2025-04-20 04:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947714', 'tblTempUsageDetail_20' ) start [2025-04-20 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947714', 'tblTempUsageDetail_20' ) end [2025-04-20 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947714', 'tblTempVendorCDR_20' ) start [2025-04-20 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947714', 'tblTempVendorCDR_20' ) end [2025-04-20 04:06:17] Production.INFO: ProcessCDR(1,14947714,1,1,2) [2025-04-20 04:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947714', 'tblTempUsageDetail_20' ) start [2025-04-20 04:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947714', 'tblTempUsageDetail_20' ) end [2025-04-20 04:06:20] Production.ERROR: pbx prc_insertCDR start [2025-04-20 04:06:20] Production.ERROR: pbx prc_insertCDR end [2025-04-20 04:06:20] Production.INFO: ==8302== Releasing lock... [2025-04-20 04:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 04:06:20] Production.INFO: 31.5 MB #Memory Used# [2025-04-20 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 01:07:05 [end_date_ymd] => 2025-04-20 04:07:05 [RateCDR] => 1 ) [2025-04-20 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-20 01:07:05' and `end` < '2025-04-20 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-20 04:07:18] Production.INFO: count ==400 [2025-04-20 04:07:18] Production.ERROR: pbx CDR StartTime 2025-04-20 01:07:05 - End Time 2025-04-20 04:07:05 [2025-04-20 04:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947719', 'tblTempUsageDetail_20' ) start [2025-04-20 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947719', 'tblTempUsageDetail_20' ) end [2025-04-20 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947719', 'tblTempVendorCDR_20' ) start [2025-04-20 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947719', 'tblTempVendorCDR_20' ) end [2025-04-20 04:07:18] Production.INFO: ProcessCDR(1,14947719,1,1,2) [2025-04-20 04:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947719', 'tblTempUsageDetail_20' ) start [2025-04-20 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947719', 'tblTempUsageDetail_20' ) end [2025-04-20 04:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 04:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 04:07:21] Production.INFO: ==8385== Releasing lock... [2025-04-20 04:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 04:07:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-20 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 01:08:05 [end_date_ymd] => 2025-04-20 04:08:05 [RateCDR] => 1 ) [2025-04-20 04:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 01:08:05' and `end` < '2025-04-20 04:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 04:08:17] Production.INFO: count ==399 [2025-04-20 04:08:18] Production.ERROR: pbx CDR StartTime 2025-04-20 01:08:05 - End Time 2025-04-20 04:08:05 [2025-04-20 04:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947724', 'tblTempUsageDetail_20' ) start [2025-04-20 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947724', 'tblTempUsageDetail_20' ) end [2025-04-20 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947724', 'tblTempVendorCDR_20' ) start [2025-04-20 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947724', 'tblTempVendorCDR_20' ) end [2025-04-20 04:08:18] Production.INFO: ProcessCDR(1,14947724,1,1,2) [2025-04-20 04:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947724', 'tblTempUsageDetail_20' ) start [2025-04-20 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947724', 'tblTempUsageDetail_20' ) end [2025-04-20 04:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 04:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 04:08:21] Production.INFO: ==8481== Releasing lock... [2025-04-20 04:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 04:08:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-20 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 01:09:05 [end_date_ymd] => 2025-04-20 04:09:05 [RateCDR] => 1 ) [2025-04-20 04:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 01:09:05' and `end` < '2025-04-20 04:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 04:09:18] Production.INFO: count ==397 [2025-04-20 04:09:18] Production.ERROR: pbx CDR StartTime 2025-04-20 01:09:05 - End Time 2025-04-20 04:09:05 [2025-04-20 04:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947729', 'tblTempUsageDetail_20' ) start [2025-04-20 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947729', 'tblTempUsageDetail_20' ) end [2025-04-20 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947729', 'tblTempVendorCDR_20' ) start [2025-04-20 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947729', 'tblTempVendorCDR_20' ) end [2025-04-20 04:09:18] Production.INFO: ProcessCDR(1,14947729,1,1,2) [2025-04-20 04:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947729', 'tblTempUsageDetail_20' ) start [2025-04-20 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947729', 'tblTempUsageDetail_20' ) end [2025-04-20 04:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 04:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 04:09:21] Production.INFO: ==8576== Releasing lock... [2025-04-20 04:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 04:09:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-20 04:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 01:10:05 [end_date_ymd] => 2025-04-20 04:10:05 [RateCDR] => 1 ) [2025-04-20 04: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-20 01:10:05' and `end` < '2025-04-20 04: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-20 04:10:18] Production.INFO: count ==404 [2025-04-20 04:10:18] Production.ERROR: pbx CDR StartTime 2025-04-20 01:10:05 - End Time 2025-04-20 04:10:05 [2025-04-20 04:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947735', 'tblTempUsageDetail_20' ) start [2025-04-20 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947735', 'tblTempUsageDetail_20' ) end [2025-04-20 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947735', 'tblTempVendorCDR_20' ) start [2025-04-20 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947735', 'tblTempVendorCDR_20' ) end [2025-04-20 04:10:18] Production.INFO: ProcessCDR(1,14947735,1,1,2) [2025-04-20 04:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947735', 'tblTempUsageDetail_20' ) start [2025-04-20 04:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947735', 'tblTempUsageDetail_20' ) end [2025-04-20 04:10:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 04:10:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 04:10:21] Production.INFO: ==8661== Releasing lock... [2025-04-20 04:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 04:10:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-20 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 01:11:05 [end_date_ymd] => 2025-04-20 04:11:05 [RateCDR] => 1 ) [2025-04-20 04:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 01:11:05' and `end` < '2025-04-20 04:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 04:11:18] Production.INFO: count ==404 [2025-04-20 04:11:18] Production.ERROR: pbx CDR StartTime 2025-04-20 01:11:05 - End Time 2025-04-20 04:11:05 [2025-04-20 04:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947740', 'tblTempUsageDetail_20' ) start [2025-04-20 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947740', 'tblTempUsageDetail_20' ) end [2025-04-20 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947740', 'tblTempVendorCDR_20' ) start [2025-04-20 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947740', 'tblTempVendorCDR_20' ) end [2025-04-20 04:11:18] Production.INFO: ProcessCDR(1,14947740,1,1,2) [2025-04-20 04:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947740', 'tblTempUsageDetail_20' ) start [2025-04-20 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947740', 'tblTempUsageDetail_20' ) end [2025-04-20 04:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 04:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 04:11:21] Production.INFO: ==8748== Releasing lock... [2025-04-20 04:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 04:11:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-20 04:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 01:12:06 [end_date_ymd] => 2025-04-20 04:12:06 [RateCDR] => 1 ) [2025-04-20 04:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 01:12:06' and `end` < '2025-04-20 04:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 04:12:18] Production.INFO: count ==406 [2025-04-20 04:12:19] Production.ERROR: pbx CDR StartTime 2025-04-20 01:12:06 - End Time 2025-04-20 04:12:06 [2025-04-20 04:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 04:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947745', 'tblTempUsageDetail_20' ) start [2025-04-20 04:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947745', 'tblTempUsageDetail_20' ) end [2025-04-20 04:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947745', 'tblTempVendorCDR_20' ) start [2025-04-20 04:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947745', 'tblTempVendorCDR_20' ) end [2025-04-20 04:12:19] Production.INFO: ProcessCDR(1,14947745,1,1,2) [2025-04-20 04:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947745', 'tblTempUsageDetail_20' ) start [2025-04-20 04:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947745', 'tblTempUsageDetail_20' ) end [2025-04-20 04:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 04:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 04:12:22] Production.INFO: ==8836== Releasing lock... [2025-04-20 04:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 04:12:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-20 04:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 01:13:06 [end_date_ymd] => 2025-04-20 04:13:06 [RateCDR] => 1 ) [2025-04-20 04:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 01:13:06' and `end` < '2025-04-20 04:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 04:13:18] Production.INFO: count ==405 [2025-04-20 04:13:18] Production.ERROR: pbx CDR StartTime 2025-04-20 01:13:06 - End Time 2025-04-20 04:13:06 [2025-04-20 04:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947750', 'tblTempUsageDetail_20' ) start [2025-04-20 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947750', 'tblTempUsageDetail_20' ) end [2025-04-20 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947750', 'tblTempVendorCDR_20' ) start [2025-04-20 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947750', 'tblTempVendorCDR_20' ) end [2025-04-20 04:13:18] Production.INFO: ProcessCDR(1,14947750,1,1,2) [2025-04-20 04:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947750', 'tblTempUsageDetail_20' ) start [2025-04-20 04:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947750', 'tblTempUsageDetail_20' ) end [2025-04-20 04:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 04:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 04:13:22] Production.INFO: ==8921== Releasing lock... [2025-04-20 04:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 04:13:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-20 04:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 01:14:04 [end_date_ymd] => 2025-04-20 04:14:04 [RateCDR] => 1 ) [2025-04-20 04:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 01:14:04' and `end` < '2025-04-20 04:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 04:14:17] Production.INFO: count ==405 [2025-04-20 04:14:17] Production.ERROR: pbx CDR StartTime 2025-04-20 01:14:04 - End Time 2025-04-20 04:14:04 [2025-04-20 04:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947755', 'tblTempUsageDetail_20' ) start [2025-04-20 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947755', 'tblTempUsageDetail_20' ) end [2025-04-20 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947755', 'tblTempVendorCDR_20' ) start [2025-04-20 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947755', 'tblTempVendorCDR_20' ) end [2025-04-20 04:14:17] Production.INFO: ProcessCDR(1,14947755,1,1,2) [2025-04-20 04:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947755', 'tblTempUsageDetail_20' ) start [2025-04-20 04:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947755', 'tblTempUsageDetail_20' ) end [2025-04-20 04:14:20] Production.ERROR: pbx prc_insertCDR start [2025-04-20 04:14:20] Production.ERROR: pbx prc_insertCDR end [2025-04-20 04:14:20] Production.INFO: ==9005== Releasing lock... [2025-04-20 04:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 04:14:20] Production.INFO: 31.75 MB #Memory Used# [2025-04-20 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 01:15:05 [end_date_ymd] => 2025-04-20 04:15:05 [RateCDR] => 1 ) [2025-04-20 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-20 01:15:05' and `end` < '2025-04-20 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-20 04:15:18] Production.INFO: count ==404 [2025-04-20 04:15:18] Production.ERROR: pbx CDR StartTime 2025-04-20 01:15:05 - End Time 2025-04-20 04:15:05 [2025-04-20 04:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947760', 'tblTempUsageDetail_20' ) start [2025-04-20 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947760', 'tblTempUsageDetail_20' ) end [2025-04-20 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947760', 'tblTempVendorCDR_20' ) start [2025-04-20 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947760', 'tblTempVendorCDR_20' ) end [2025-04-20 04:15:18] Production.INFO: ProcessCDR(1,14947760,1,1,2) [2025-04-20 04:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947760', 'tblTempUsageDetail_20' ) start [2025-04-20 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947760', 'tblTempUsageDetail_20' ) end [2025-04-20 04:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 04:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 04:15:21] Production.INFO: ==9123== Releasing lock... [2025-04-20 04:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 04:15:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-20 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 01:16:05 [end_date_ymd] => 2025-04-20 04:16:05 [RateCDR] => 1 ) [2025-04-20 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-20 01:16:05' and `end` < '2025-04-20 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-20 04:16:18] Production.INFO: count ==407 [2025-04-20 04:16:18] Production.ERROR: pbx CDR StartTime 2025-04-20 01:16:05 - End Time 2025-04-20 04:16:05 [2025-04-20 04:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947765', 'tblTempUsageDetail_20' ) start [2025-04-20 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947765', 'tblTempUsageDetail_20' ) end [2025-04-20 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947765', 'tblTempVendorCDR_20' ) start [2025-04-20 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947765', 'tblTempVendorCDR_20' ) end [2025-04-20 04:16:18] Production.INFO: ProcessCDR(1,14947765,1,1,2) [2025-04-20 04:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947765', 'tblTempUsageDetail_20' ) start [2025-04-20 04:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947765', 'tblTempUsageDetail_20' ) end [2025-04-20 04:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 04:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 04:16:22] Production.INFO: ==9210== Releasing lock... [2025-04-20 04:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 04:16:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-20 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 01:17:05 [end_date_ymd] => 2025-04-20 04:17:05 [RateCDR] => 1 ) [2025-04-20 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-20 01:17:05' and `end` < '2025-04-20 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-20 04:17:17] Production.INFO: count ==408 [2025-04-20 04:17:17] Production.ERROR: pbx CDR StartTime 2025-04-20 01:17:05 - End Time 2025-04-20 04:17:05 [2025-04-20 04:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947770', 'tblTempUsageDetail_20' ) start [2025-04-20 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947770', 'tblTempUsageDetail_20' ) end [2025-04-20 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947770', 'tblTempVendorCDR_20' ) start [2025-04-20 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947770', 'tblTempVendorCDR_20' ) end [2025-04-20 04:17:17] Production.INFO: ProcessCDR(1,14947770,1,1,2) [2025-04-20 04:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947770', 'tblTempUsageDetail_20' ) start [2025-04-20 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947770', 'tblTempUsageDetail_20' ) end [2025-04-20 04:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 04:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 04:17:21] Production.INFO: ==9293== Releasing lock... [2025-04-20 04:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 04:17:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-20 04:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 01:18:06 [end_date_ymd] => 2025-04-20 04:18:06 [RateCDR] => 1 ) [2025-04-20 04: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-20 01:18:06' and `end` < '2025-04-20 04: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-20 04:18:18] Production.INFO: count ==406 [2025-04-20 04:18:18] Production.ERROR: pbx CDR StartTime 2025-04-20 01:18:06 - End Time 2025-04-20 04:18:06 [2025-04-20 04:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947775', 'tblTempUsageDetail_20' ) start [2025-04-20 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947775', 'tblTempUsageDetail_20' ) end [2025-04-20 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947775', 'tblTempVendorCDR_20' ) start [2025-04-20 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947775', 'tblTempVendorCDR_20' ) end [2025-04-20 04:18:18] Production.INFO: ProcessCDR(1,14947775,1,1,2) [2025-04-20 04:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947775', 'tblTempUsageDetail_20' ) start [2025-04-20 04:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947775', 'tblTempUsageDetail_20' ) end [2025-04-20 04:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 04:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 04:18:22] Production.INFO: ==9385== Releasing lock... [2025-04-20 04:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 04:18:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-20 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 01:19:05 [end_date_ymd] => 2025-04-20 04:19:05 [RateCDR] => 1 ) [2025-04-20 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-20 01:19:05' and `end` < '2025-04-20 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-20 04:19:18] Production.INFO: count ==406 [2025-04-20 04:19:18] Production.ERROR: pbx CDR StartTime 2025-04-20 01:19:05 - End Time 2025-04-20 04:19:05 [2025-04-20 04:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947780', 'tblTempUsageDetail_20' ) start [2025-04-20 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947780', 'tblTempUsageDetail_20' ) end [2025-04-20 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947780', 'tblTempVendorCDR_20' ) start [2025-04-20 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947780', 'tblTempVendorCDR_20' ) end [2025-04-20 04:19:18] Production.INFO: ProcessCDR(1,14947780,1,1,2) [2025-04-20 04:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947780', 'tblTempUsageDetail_20' ) start [2025-04-20 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947780', 'tblTempUsageDetail_20' ) end [2025-04-20 04:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 04:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 04:19:21] Production.INFO: ==9476== Releasing lock... [2025-04-20 04:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 04:19:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-20 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 01:20:06 [end_date_ymd] => 2025-04-20 04:20:06 [RateCDR] => 1 ) [2025-04-20 04:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 01:20:06' and `end` < '2025-04-20 04:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 04:20:19] Production.INFO: count ==402 [2025-04-20 04:20:19] Production.ERROR: pbx CDR StartTime 2025-04-20 01:20:06 - End Time 2025-04-20 04:20:06 [2025-04-20 04:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947785', 'tblTempUsageDetail_20' ) start [2025-04-20 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947785', 'tblTempUsageDetail_20' ) end [2025-04-20 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947785', 'tblTempVendorCDR_20' ) start [2025-04-20 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947785', 'tblTempVendorCDR_20' ) end [2025-04-20 04:20:19] Production.INFO: ProcessCDR(1,14947785,1,1,2) [2025-04-20 04:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947785', 'tblTempUsageDetail_20' ) start [2025-04-20 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947785', 'tblTempUsageDetail_20' ) end [2025-04-20 04:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 04:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 04:20:22] Production.INFO: ==9572== Releasing lock... [2025-04-20 04:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 04:20:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-20 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 01:21:05 [end_date_ymd] => 2025-04-20 04:21:05 [RateCDR] => 1 ) [2025-04-20 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-20 01:21:05' and `end` < '2025-04-20 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-20 04:21:17] Production.INFO: count ==392 [2025-04-20 04:21:18] Production.ERROR: pbx CDR StartTime 2025-04-20 01:21:05 - End Time 2025-04-20 04:21:05 [2025-04-20 04:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947791', 'tblTempUsageDetail_20' ) start [2025-04-20 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947791', 'tblTempUsageDetail_20' ) end [2025-04-20 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947791', 'tblTempVendorCDR_20' ) start [2025-04-20 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947791', 'tblTempVendorCDR_20' ) end [2025-04-20 04:21:18] Production.INFO: ProcessCDR(1,14947791,1,1,2) [2025-04-20 04:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947791', 'tblTempUsageDetail_20' ) start [2025-04-20 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947791', 'tblTempUsageDetail_20' ) end [2025-04-20 04:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 04:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 04:21:21] Production.INFO: ==9657== Releasing lock... [2025-04-20 04:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 04:21:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-20 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 01:22:05 [end_date_ymd] => 2025-04-20 04:22:05 [RateCDR] => 1 ) [2025-04-20 04:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 01:22:05' and `end` < '2025-04-20 04:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 04:22:18] Production.INFO: count ==392 [2025-04-20 04:22:18] Production.ERROR: pbx CDR StartTime 2025-04-20 01:22:05 - End Time 2025-04-20 04:22:05 [2025-04-20 04:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947796', 'tblTempUsageDetail_20' ) start [2025-04-20 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947796', 'tblTempUsageDetail_20' ) end [2025-04-20 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947796', 'tblTempVendorCDR_20' ) start [2025-04-20 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947796', 'tblTempVendorCDR_20' ) end [2025-04-20 04:22:18] Production.INFO: ProcessCDR(1,14947796,1,1,2) [2025-04-20 04:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947796', 'tblTempUsageDetail_20' ) start [2025-04-20 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947796', 'tblTempUsageDetail_20' ) end [2025-04-20 04:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 04:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 04:22:21] Production.INFO: ==9743== Releasing lock... [2025-04-20 04:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 04:22:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-20 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 01:23:05 [end_date_ymd] => 2025-04-20 04:23:05 [RateCDR] => 1 ) [2025-04-20 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-20 01:23:05' and `end` < '2025-04-20 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-20 04:23:18] Production.INFO: count ==391 [2025-04-20 04:23:18] Production.ERROR: pbx CDR StartTime 2025-04-20 01:23:05 - End Time 2025-04-20 04:23:05 [2025-04-20 04:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947801', 'tblTempUsageDetail_20' ) start [2025-04-20 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947801', 'tblTempUsageDetail_20' ) end [2025-04-20 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947801', 'tblTempVendorCDR_20' ) start [2025-04-20 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947801', 'tblTempVendorCDR_20' ) end [2025-04-20 04:23:18] Production.INFO: ProcessCDR(1,14947801,1,1,2) [2025-04-20 04:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947801', 'tblTempUsageDetail_20' ) start [2025-04-20 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947801', 'tblTempUsageDetail_20' ) end [2025-04-20 04:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 04:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 04:23:21] Production.INFO: ==9822== Releasing lock... [2025-04-20 04:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 04:23:21] Production.INFO: 31 MB #Memory Used# [2025-04-20 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 01:24:05 [end_date_ymd] => 2025-04-20 04:24:05 [RateCDR] => 1 ) [2025-04-20 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-20 01:24:05' and `end` < '2025-04-20 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-20 04:24:17] Production.INFO: count ==389 [2025-04-20 04:24:17] Production.ERROR: pbx CDR StartTime 2025-04-20 01:24:05 - End Time 2025-04-20 04:24:05 [2025-04-20 04:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947806', 'tblTempUsageDetail_20' ) start [2025-04-20 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947806', 'tblTempUsageDetail_20' ) end [2025-04-20 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947806', 'tblTempVendorCDR_20' ) start [2025-04-20 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947806', 'tblTempVendorCDR_20' ) end [2025-04-20 04:24:17] Production.INFO: ProcessCDR(1,14947806,1,1,2) [2025-04-20 04:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947806', 'tblTempUsageDetail_20' ) start [2025-04-20 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947806', 'tblTempUsageDetail_20' ) end [2025-04-20 04:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 04:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 04:24:21] Production.INFO: ==9907== Releasing lock... [2025-04-20 04:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 04:24:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-20 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 01:25:05 [end_date_ymd] => 2025-04-20 04:25:05 [RateCDR] => 1 ) [2025-04-20 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-20 01:25:05' and `end` < '2025-04-20 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-20 04:25:17] Production.INFO: count ==391 [2025-04-20 04:25:17] Production.ERROR: pbx CDR StartTime 2025-04-20 01:25:05 - End Time 2025-04-20 04:25:05 [2025-04-20 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947811', 'tblTempUsageDetail_20' ) start [2025-04-20 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947811', 'tblTempUsageDetail_20' ) end [2025-04-20 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947811', 'tblTempVendorCDR_20' ) start [2025-04-20 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947811', 'tblTempVendorCDR_20' ) end [2025-04-20 04:25:17] Production.INFO: ProcessCDR(1,14947811,1,1,2) [2025-04-20 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947811', 'tblTempUsageDetail_20' ) start [2025-04-20 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947811', 'tblTempUsageDetail_20' ) end [2025-04-20 04:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 04:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 04:25:21] Production.INFO: ==10005== Releasing lock... [2025-04-20 04:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 04:25:21] Production.INFO: 31 MB #Memory Used# [2025-04-20 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 01:26:05 [end_date_ymd] => 2025-04-20 04:26:05 [RateCDR] => 1 ) [2025-04-20 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-20 01:26:05' and `end` < '2025-04-20 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-20 04:26:18] Production.INFO: count ==393 [2025-04-20 04:26:18] Production.ERROR: pbx CDR StartTime 2025-04-20 01:26:05 - End Time 2025-04-20 04:26:05 [2025-04-20 04:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947816', 'tblTempUsageDetail_20' ) start [2025-04-20 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947816', 'tblTempUsageDetail_20' ) end [2025-04-20 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947816', 'tblTempVendorCDR_20' ) start [2025-04-20 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947816', 'tblTempVendorCDR_20' ) end [2025-04-20 04:26:18] Production.INFO: ProcessCDR(1,14947816,1,1,2) [2025-04-20 04:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947816', 'tblTempUsageDetail_20' ) start [2025-04-20 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947816', 'tblTempUsageDetail_20' ) end [2025-04-20 04:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 04:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 04:26:21] Production.INFO: ==10104== Releasing lock... [2025-04-20 04:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 04:26:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-20 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 01:27:05 [end_date_ymd] => 2025-04-20 04:27:05 [RateCDR] => 1 ) [2025-04-20 04:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 01:27:05' and `end` < '2025-04-20 04:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 04:27:18] Production.INFO: count ==391 [2025-04-20 04:27:18] Production.ERROR: pbx CDR StartTime 2025-04-20 01:27:05 - End Time 2025-04-20 04:27:05 [2025-04-20 04:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947821', 'tblTempUsageDetail_20' ) start [2025-04-20 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947821', 'tblTempUsageDetail_20' ) end [2025-04-20 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947821', 'tblTempVendorCDR_20' ) start [2025-04-20 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947821', 'tblTempVendorCDR_20' ) end [2025-04-20 04:27:18] Production.INFO: ProcessCDR(1,14947821,1,1,2) [2025-04-20 04:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947821', 'tblTempUsageDetail_20' ) start [2025-04-20 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947821', 'tblTempUsageDetail_20' ) end [2025-04-20 04:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 04:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 04:27:21] Production.INFO: ==10189== Releasing lock... [2025-04-20 04:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 04:27:21] Production.INFO: 31 MB #Memory Used# [2025-04-20 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 01:28:05 [end_date_ymd] => 2025-04-20 04:28:05 [RateCDR] => 1 ) [2025-04-20 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-20 01:28:05' and `end` < '2025-04-20 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-20 04:28:18] Production.INFO: count ==388 [2025-04-20 04:28:18] Production.ERROR: pbx CDR StartTime 2025-04-20 01:28:05 - End Time 2025-04-20 04:28:05 [2025-04-20 04:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947826', 'tblTempUsageDetail_20' ) start [2025-04-20 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947826', 'tblTempUsageDetail_20' ) end [2025-04-20 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947826', 'tblTempVendorCDR_20' ) start [2025-04-20 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947826', 'tblTempVendorCDR_20' ) end [2025-04-20 04:28:18] Production.INFO: ProcessCDR(1,14947826,1,1,2) [2025-04-20 04:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947826', 'tblTempUsageDetail_20' ) start [2025-04-20 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947826', 'tblTempUsageDetail_20' ) end [2025-04-20 04:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 04:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 04:28:21] Production.INFO: ==10266== Releasing lock... [2025-04-20 04:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 04:28:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-20 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 01:29:05 [end_date_ymd] => 2025-04-20 04:29:05 [RateCDR] => 1 ) [2025-04-20 04:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 01:29:05' and `end` < '2025-04-20 04:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 04:29:18] Production.INFO: count ==386 [2025-04-20 04:29:18] Production.ERROR: pbx CDR StartTime 2025-04-20 01:29:05 - End Time 2025-04-20 04:29:05 [2025-04-20 04:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947831', 'tblTempUsageDetail_20' ) start [2025-04-20 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947831', 'tblTempUsageDetail_20' ) end [2025-04-20 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947831', 'tblTempVendorCDR_20' ) start [2025-04-20 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947831', 'tblTempVendorCDR_20' ) end [2025-04-20 04:29:18] Production.INFO: ProcessCDR(1,14947831,1,1,2) [2025-04-20 04:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947831', 'tblTempUsageDetail_20' ) start [2025-04-20 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947831', 'tblTempUsageDetail_20' ) end [2025-04-20 04:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 04:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 04:29:21] Production.INFO: ==10350== Releasing lock... [2025-04-20 04:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 04:29:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-20 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 01:30:06 [end_date_ymd] => 2025-04-20 04:30:06 [RateCDR] => 1 ) [2025-04-20 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-20 01:30:06' and `end` < '2025-04-20 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-20 04:30:19] Production.INFO: count ==387 [2025-04-20 04:30:19] Production.ERROR: pbx CDR StartTime 2025-04-20 01:30:06 - End Time 2025-04-20 04:30:06 [2025-04-20 04:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947838', 'tblTempUsageDetail_20' ) start [2025-04-20 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947838', 'tblTempUsageDetail_20' ) end [2025-04-20 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947838', 'tblTempVendorCDR_20' ) start [2025-04-20 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947838', 'tblTempVendorCDR_20' ) end [2025-04-20 04:30:19] Production.INFO: ProcessCDR(1,14947838,1,1,2) [2025-04-20 04:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947838', 'tblTempUsageDetail_20' ) start [2025-04-20 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947838', 'tblTempUsageDetail_20' ) end [2025-04-20 04:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 04:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 04:30:22] Production.INFO: ==10483== Releasing lock... [2025-04-20 04:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 04:30:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-20 04:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 01:31:06 [end_date_ymd] => 2025-04-20 04:31:06 [RateCDR] => 1 ) [2025-04-20 04:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 01:31:06' and `end` < '2025-04-20 04:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 04:31:18] Production.INFO: count ==404 [2025-04-20 04:31:18] Production.ERROR: pbx CDR StartTime 2025-04-20 01:31:06 - End Time 2025-04-20 04:31:06 [2025-04-20 04:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947843', 'tblTempUsageDetail_20' ) start [2025-04-20 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947843', 'tblTempUsageDetail_20' ) end [2025-04-20 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947843', 'tblTempVendorCDR_20' ) start [2025-04-20 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947843', 'tblTempVendorCDR_20' ) end [2025-04-20 04:31:18] Production.INFO: ProcessCDR(1,14947843,1,1,2) [2025-04-20 04:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947843', 'tblTempUsageDetail_20' ) start [2025-04-20 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947843', 'tblTempUsageDetail_20' ) end [2025-04-20 04:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 04:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 04:31:21] Production.INFO: ==10599== Releasing lock... [2025-04-20 04:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 04:31:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-20 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 01:32:05 [end_date_ymd] => 2025-04-20 04:32:05 [RateCDR] => 1 ) [2025-04-20 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-20 01:32:05' and `end` < '2025-04-20 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-20 04:32:17] Production.INFO: count ==403 [2025-04-20 04:32:17] Production.ERROR: pbx CDR StartTime 2025-04-20 01:32:05 - End Time 2025-04-20 04:32:05 [2025-04-20 04:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947848', 'tblTempUsageDetail_20' ) start [2025-04-20 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947848', 'tblTempUsageDetail_20' ) end [2025-04-20 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947848', 'tblTempVendorCDR_20' ) start [2025-04-20 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947848', 'tblTempVendorCDR_20' ) end [2025-04-20 04:32:17] Production.INFO: ProcessCDR(1,14947848,1,1,2) [2025-04-20 04:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947848', 'tblTempUsageDetail_20' ) start [2025-04-20 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947848', 'tblTempUsageDetail_20' ) end [2025-04-20 04:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 04:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 04:32:21] Production.INFO: ==10686== Releasing lock... [2025-04-20 04:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 04:32:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-20 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 01:33:05 [end_date_ymd] => 2025-04-20 04:33:05 [RateCDR] => 1 ) [2025-04-20 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-20 01:33:05' and `end` < '2025-04-20 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-20 04:33:18] Production.INFO: count ==406 [2025-04-20 04:33:18] Production.ERROR: pbx CDR StartTime 2025-04-20 01:33:05 - End Time 2025-04-20 04:33:05 [2025-04-20 04:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947853', 'tblTempUsageDetail_20' ) start [2025-04-20 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947853', 'tblTempUsageDetail_20' ) end [2025-04-20 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947853', 'tblTempVendorCDR_20' ) start [2025-04-20 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947853', 'tblTempVendorCDR_20' ) end [2025-04-20 04:33:18] Production.INFO: ProcessCDR(1,14947853,1,1,2) [2025-04-20 04:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947853', 'tblTempUsageDetail_20' ) start [2025-04-20 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947853', 'tblTempUsageDetail_20' ) end [2025-04-20 04:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 04:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 04:33:21] Production.INFO: ==10767== Releasing lock... [2025-04-20 04:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 04:33:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-20 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 01:34:05 [end_date_ymd] => 2025-04-20 04:34:05 [RateCDR] => 1 ) [2025-04-20 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-20 01:34:05' and `end` < '2025-04-20 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-20 04:34:17] Production.INFO: count ==405 [2025-04-20 04:34:18] Production.ERROR: pbx CDR StartTime 2025-04-20 01:34:05 - End Time 2025-04-20 04:34:05 [2025-04-20 04:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947858', 'tblTempUsageDetail_20' ) start [2025-04-20 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947858', 'tblTempUsageDetail_20' ) end [2025-04-20 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947858', 'tblTempVendorCDR_20' ) start [2025-04-20 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947858', 'tblTempVendorCDR_20' ) end [2025-04-20 04:34:18] Production.INFO: ProcessCDR(1,14947858,1,1,2) [2025-04-20 04:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947858', 'tblTempUsageDetail_20' ) start [2025-04-20 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947858', 'tblTempUsageDetail_20' ) end [2025-04-20 04:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 04:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 04:34:21] Production.INFO: ==10851== Releasing lock... [2025-04-20 04:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 04:34:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-20 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 01:35:05 [end_date_ymd] => 2025-04-20 04:35:05 [RateCDR] => 1 ) [2025-04-20 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-20 01:35:05' and `end` < '2025-04-20 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-20 04:35:18] Production.INFO: count ==405 [2025-04-20 04:35:18] Production.ERROR: pbx CDR StartTime 2025-04-20 01:35:05 - End Time 2025-04-20 04:35:05 [2025-04-20 04:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947863', 'tblTempUsageDetail_20' ) start [2025-04-20 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947863', 'tblTempUsageDetail_20' ) end [2025-04-20 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947863', 'tblTempVendorCDR_20' ) start [2025-04-20 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947863', 'tblTempVendorCDR_20' ) end [2025-04-20 04:35:18] Production.INFO: ProcessCDR(1,14947863,1,1,2) [2025-04-20 04:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947863', 'tblTempUsageDetail_20' ) start [2025-04-20 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947863', 'tblTempUsageDetail_20' ) end [2025-04-20 04:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 04:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 04:35:21] Production.INFO: ==10934== Releasing lock... [2025-04-20 04:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 04:35:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-20 04:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 01:36:04 [end_date_ymd] => 2025-04-20 04:36:04 [RateCDR] => 1 ) [2025-04-20 04: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-20 01:36:04' and `end` < '2025-04-20 04: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-20 04:36:17] Production.INFO: count ==405 [2025-04-20 04:36:17] Production.ERROR: pbx CDR StartTime 2025-04-20 01:36:04 - End Time 2025-04-20 04:36:04 [2025-04-20 04:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947868', 'tblTempUsageDetail_20' ) start [2025-04-20 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947868', 'tblTempUsageDetail_20' ) end [2025-04-20 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947868', 'tblTempVendorCDR_20' ) start [2025-04-20 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947868', 'tblTempVendorCDR_20' ) end [2025-04-20 04:36:17] Production.INFO: ProcessCDR(1,14947868,1,1,2) [2025-04-20 04:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947868', 'tblTempUsageDetail_20' ) start [2025-04-20 04:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947868', 'tblTempUsageDetail_20' ) end [2025-04-20 04:36:20] Production.ERROR: pbx prc_insertCDR start [2025-04-20 04:36:20] Production.ERROR: pbx prc_insertCDR end [2025-04-20 04:36:20] Production.INFO: ==11008== Releasing lock... [2025-04-20 04:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 04:36:20] Production.INFO: 31.75 MB #Memory Used# [2025-04-20 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 01:37:05 [end_date_ymd] => 2025-04-20 04:37:05 [RateCDR] => 1 ) [2025-04-20 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-20 01:37:05' and `end` < '2025-04-20 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-20 04:37:18] Production.INFO: count ==405 [2025-04-20 04:37:18] Production.ERROR: pbx CDR StartTime 2025-04-20 01:37:05 - End Time 2025-04-20 04:37:05 [2025-04-20 04:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947873', 'tblTempUsageDetail_20' ) start [2025-04-20 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947873', 'tblTempUsageDetail_20' ) end [2025-04-20 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947873', 'tblTempVendorCDR_20' ) start [2025-04-20 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947873', 'tblTempVendorCDR_20' ) end [2025-04-20 04:37:18] Production.INFO: ProcessCDR(1,14947873,1,1,2) [2025-04-20 04:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947873', 'tblTempUsageDetail_20' ) start [2025-04-20 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947873', 'tblTempUsageDetail_20' ) end [2025-04-20 04:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 04:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 04:37:21] Production.INFO: ==11080== Releasing lock... [2025-04-20 04:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 04:37:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-20 04:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 01:38:06 [end_date_ymd] => 2025-04-20 04:38:06 [RateCDR] => 1 ) [2025-04-20 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-20 01:38:06' and `end` < '2025-04-20 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-20 04:38:19] Production.INFO: count ==404 [2025-04-20 04:38:19] Production.ERROR: pbx CDR StartTime 2025-04-20 01:38:06 - End Time 2025-04-20 04:38:06 [2025-04-20 04:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947878', 'tblTempUsageDetail_20' ) start [2025-04-20 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947878', 'tblTempUsageDetail_20' ) end [2025-04-20 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947878', 'tblTempVendorCDR_20' ) start [2025-04-20 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947878', 'tblTempVendorCDR_20' ) end [2025-04-20 04:38:19] Production.INFO: ProcessCDR(1,14947878,1,1,2) [2025-04-20 04:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947878', 'tblTempUsageDetail_20' ) start [2025-04-20 04:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947878', 'tblTempUsageDetail_20' ) end [2025-04-20 04:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 04:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 04:38:22] Production.INFO: ==11155== Releasing lock... [2025-04-20 04:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 04:38:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-20 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 01:39:05 [end_date_ymd] => 2025-04-20 04:39:05 [RateCDR] => 1 ) [2025-04-20 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-20 01:39:05' and `end` < '2025-04-20 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-20 04:39:17] Production.INFO: count ==404 [2025-04-20 04:39:17] Production.ERROR: pbx CDR StartTime 2025-04-20 01:39:05 - End Time 2025-04-20 04:39:05 [2025-04-20 04:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947883', 'tblTempUsageDetail_20' ) start [2025-04-20 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947883', 'tblTempUsageDetail_20' ) end [2025-04-20 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947883', 'tblTempVendorCDR_20' ) start [2025-04-20 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947883', 'tblTempVendorCDR_20' ) end [2025-04-20 04:39:17] Production.INFO: ProcessCDR(1,14947883,1,1,2) [2025-04-20 04:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947883', 'tblTempUsageDetail_20' ) start [2025-04-20 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947883', 'tblTempUsageDetail_20' ) end [2025-04-20 04:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 04:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 04:39:21] Production.INFO: ==11231== Releasing lock... [2025-04-20 04:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 04:39:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-20 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 01:40:06 [end_date_ymd] => 2025-04-20 04:40:06 [RateCDR] => 1 ) [2025-04-20 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-20 01:40:06' and `end` < '2025-04-20 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-20 04:40:19] Production.INFO: count ==402 [2025-04-20 04:40:19] Production.ERROR: pbx CDR StartTime 2025-04-20 01:40:06 - End Time 2025-04-20 04:40:06 [2025-04-20 04:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947889', 'tblTempUsageDetail_20' ) start [2025-04-20 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947889', 'tblTempUsageDetail_20' ) end [2025-04-20 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947889', 'tblTempVendorCDR_20' ) start [2025-04-20 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947889', 'tblTempVendorCDR_20' ) end [2025-04-20 04:40:19] Production.INFO: ProcessCDR(1,14947889,1,1,2) [2025-04-20 04:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947889', 'tblTempUsageDetail_20' ) start [2025-04-20 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947889', 'tblTempUsageDetail_20' ) end [2025-04-20 04:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 04:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 04:40:22] Production.INFO: ==11308== Releasing lock... [2025-04-20 04:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 04:40:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-20 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 01:41:05 [end_date_ymd] => 2025-04-20 04:41:05 [RateCDR] => 1 ) [2025-04-20 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-20 01:41:05' and `end` < '2025-04-20 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-20 04:41:18] Production.INFO: count ==395 [2025-04-20 04:41:18] Production.ERROR: pbx CDR StartTime 2025-04-20 01:41:05 - End Time 2025-04-20 04:41:05 [2025-04-20 04:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947894', 'tblTempUsageDetail_20' ) start [2025-04-20 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947894', 'tblTempUsageDetail_20' ) end [2025-04-20 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947894', 'tblTempVendorCDR_20' ) start [2025-04-20 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947894', 'tblTempVendorCDR_20' ) end [2025-04-20 04:41:18] Production.INFO: ProcessCDR(1,14947894,1,1,2) [2025-04-20 04:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947894', 'tblTempUsageDetail_20' ) start [2025-04-20 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947894', 'tblTempUsageDetail_20' ) end [2025-04-20 04:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 04:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 04:41:22] Production.INFO: ==11382== Releasing lock... [2025-04-20 04:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 04:41:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-20 04:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 01:42:06 [end_date_ymd] => 2025-04-20 04:42:06 [RateCDR] => 1 ) [2025-04-20 04:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 01:42:06' and `end` < '2025-04-20 04:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 04:42:19] Production.INFO: count ==394 [2025-04-20 04:42:19] Production.ERROR: pbx CDR StartTime 2025-04-20 01:42:06 - End Time 2025-04-20 04:42:06 [2025-04-20 04:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947899', 'tblTempUsageDetail_20' ) start [2025-04-20 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947899', 'tblTempUsageDetail_20' ) end [2025-04-20 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947899', 'tblTempVendorCDR_20' ) start [2025-04-20 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947899', 'tblTempVendorCDR_20' ) end [2025-04-20 04:42:19] Production.INFO: ProcessCDR(1,14947899,1,1,2) [2025-04-20 04:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947899', 'tblTempUsageDetail_20' ) start [2025-04-20 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947899', 'tblTempUsageDetail_20' ) end [2025-04-20 04:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 04:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 04:42:22] Production.INFO: ==11454== Releasing lock... [2025-04-20 04:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 04:42:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-20 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 01:43:05 [end_date_ymd] => 2025-04-20 04:43:05 [RateCDR] => 1 ) [2025-04-20 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-20 01:43:05' and `end` < '2025-04-20 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-20 04:43:17] Production.INFO: count ==393 [2025-04-20 04:43:17] Production.ERROR: pbx CDR StartTime 2025-04-20 01:43:05 - End Time 2025-04-20 04:43:05 [2025-04-20 04:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947904', 'tblTempUsageDetail_20' ) start [2025-04-20 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947904', 'tblTempUsageDetail_20' ) end [2025-04-20 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947904', 'tblTempVendorCDR_20' ) start [2025-04-20 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947904', 'tblTempVendorCDR_20' ) end [2025-04-20 04:43:17] Production.INFO: ProcessCDR(1,14947904,1,1,2) [2025-04-20 04:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947904', 'tblTempUsageDetail_20' ) start [2025-04-20 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947904', 'tblTempUsageDetail_20' ) end [2025-04-20 04:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 04:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 04:43:21] Production.INFO: ==11526== Releasing lock... [2025-04-20 04:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 04:43:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-20 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 01:44:05 [end_date_ymd] => 2025-04-20 04:44:05 [RateCDR] => 1 ) [2025-04-20 04:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 01:44:05' and `end` < '2025-04-20 04:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 04:44:17] Production.INFO: count ==391 [2025-04-20 04:44:17] Production.ERROR: pbx CDR StartTime 2025-04-20 01:44:05 - End Time 2025-04-20 04:44:05 [2025-04-20 04:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947909', 'tblTempUsageDetail_20' ) start [2025-04-20 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947909', 'tblTempUsageDetail_20' ) end [2025-04-20 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947909', 'tblTempVendorCDR_20' ) start [2025-04-20 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947909', 'tblTempVendorCDR_20' ) end [2025-04-20 04:44:18] Production.INFO: ProcessCDR(1,14947909,1,1,2) [2025-04-20 04:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947909', 'tblTempUsageDetail_20' ) start [2025-04-20 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947909', 'tblTempUsageDetail_20' ) end [2025-04-20 04:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 04:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 04:44:21] Production.INFO: ==11597== Releasing lock... [2025-04-20 04:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 04:44:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-20 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 01:45:05 [end_date_ymd] => 2025-04-20 04:45:05 [RateCDR] => 1 ) [2025-04-20 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-20 01:45:05' and `end` < '2025-04-20 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-20 04:45:17] Production.INFO: count ==391 [2025-04-20 04:45:17] Production.ERROR: pbx CDR StartTime 2025-04-20 01:45:05 - End Time 2025-04-20 04:45:05 [2025-04-20 04:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947914', 'tblTempUsageDetail_20' ) start [2025-04-20 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947914', 'tblTempUsageDetail_20' ) end [2025-04-20 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947914', 'tblTempVendorCDR_20' ) start [2025-04-20 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947914', 'tblTempVendorCDR_20' ) end [2025-04-20 04:45:17] Production.INFO: ProcessCDR(1,14947914,1,1,2) [2025-04-20 04:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947914', 'tblTempUsageDetail_20' ) start [2025-04-20 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947914', 'tblTempUsageDetail_20' ) end [2025-04-20 04:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 04:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 04:45:21] Production.INFO: ==11671== Releasing lock... [2025-04-20 04:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 04:45:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-20 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 01:46:05 [end_date_ymd] => 2025-04-20 04:46:05 [RateCDR] => 1 ) [2025-04-20 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-20 01:46:05' and `end` < '2025-04-20 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-20 04:46:18] Production.INFO: count ==400 [2025-04-20 04:46:18] Production.ERROR: pbx CDR StartTime 2025-04-20 01:46:05 - End Time 2025-04-20 04:46:05 [2025-04-20 04:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947919', 'tblTempUsageDetail_20' ) start [2025-04-20 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947919', 'tblTempUsageDetail_20' ) end [2025-04-20 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947919', 'tblTempVendorCDR_20' ) start [2025-04-20 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947919', 'tblTempVendorCDR_20' ) end [2025-04-20 04:46:18] Production.INFO: ProcessCDR(1,14947919,1,1,2) [2025-04-20 04:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947919', 'tblTempUsageDetail_20' ) start [2025-04-20 04:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947919', 'tblTempUsageDetail_20' ) end [2025-04-20 04:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 04:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 04:46:21] Production.INFO: ==11782== Releasing lock... [2025-04-20 04:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 04:46:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-20 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 01:47:05 [end_date_ymd] => 2025-04-20 04:47:05 [RateCDR] => 1 ) [2025-04-20 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-20 01:47:05' and `end` < '2025-04-20 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-20 04:47:18] Production.INFO: count ==396 [2025-04-20 04:47:19] Production.ERROR: pbx CDR StartTime 2025-04-20 01:47:05 - End Time 2025-04-20 04:47:05 [2025-04-20 04:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947924', 'tblTempUsageDetail_20' ) start [2025-04-20 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947924', 'tblTempUsageDetail_20' ) end [2025-04-20 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947924', 'tblTempVendorCDR_20' ) start [2025-04-20 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947924', 'tblTempVendorCDR_20' ) end [2025-04-20 04:47:19] Production.INFO: ProcessCDR(1,14947924,1,1,2) [2025-04-20 04:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947924', 'tblTempUsageDetail_20' ) start [2025-04-20 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947924', 'tblTempUsageDetail_20' ) end [2025-04-20 04:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 04:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 04:47:22] Production.INFO: ==11851== Releasing lock... [2025-04-20 04:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 04:47:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-20 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 01:48:05 [end_date_ymd] => 2025-04-20 04:48:05 [RateCDR] => 1 ) [2025-04-20 04:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 01:48:05' and `end` < '2025-04-20 04:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 04:48:18] Production.INFO: count ==394 [2025-04-20 04:48:18] Production.ERROR: pbx CDR StartTime 2025-04-20 01:48:05 - End Time 2025-04-20 04:48:05 [2025-04-20 04:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947929', 'tblTempUsageDetail_20' ) start [2025-04-20 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947929', 'tblTempUsageDetail_20' ) end [2025-04-20 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947929', 'tblTempVendorCDR_20' ) start [2025-04-20 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947929', 'tblTempVendorCDR_20' ) end [2025-04-20 04:48:18] Production.INFO: ProcessCDR(1,14947929,1,1,2) [2025-04-20 04:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947929', 'tblTempUsageDetail_20' ) start [2025-04-20 04:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947929', 'tblTempUsageDetail_20' ) end [2025-04-20 04:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 04:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 04:48:21] Production.INFO: ==11925== Releasing lock... [2025-04-20 04:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 04:48:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-20 04:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 01:49:06 [end_date_ymd] => 2025-04-20 04:49:06 [RateCDR] => 1 ) [2025-04-20 04:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 01:49:06' and `end` < '2025-04-20 04:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 04:49:18] Production.INFO: count ==393 [2025-04-20 04:49:18] Production.ERROR: pbx CDR StartTime 2025-04-20 01:49:06 - End Time 2025-04-20 04:49:06 [2025-04-20 04:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947934', 'tblTempUsageDetail_20' ) start [2025-04-20 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947934', 'tblTempUsageDetail_20' ) end [2025-04-20 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947934', 'tblTempVendorCDR_20' ) start [2025-04-20 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947934', 'tblTempVendorCDR_20' ) end [2025-04-20 04:49:19] Production.INFO: ProcessCDR(1,14947934,1,1,2) [2025-04-20 04:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947934', 'tblTempUsageDetail_20' ) start [2025-04-20 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947934', 'tblTempUsageDetail_20' ) end [2025-04-20 04:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 04:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 04:49:22] Production.INFO: ==11995== Releasing lock... [2025-04-20 04:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 04:49:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-20 04:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 01:50:05 [end_date_ymd] => 2025-04-20 04:50:05 [RateCDR] => 1 ) [2025-04-20 04:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 01:50:05' and `end` < '2025-04-20 04:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 04:50:19] Production.INFO: count ==385 [2025-04-20 04:50:19] Production.ERROR: pbx CDR StartTime 2025-04-20 01:50:05 - End Time 2025-04-20 04:50:05 [2025-04-20 04:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947940', 'tblTempUsageDetail_20' ) start [2025-04-20 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947940', 'tblTempUsageDetail_20' ) end [2025-04-20 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947940', 'tblTempVendorCDR_20' ) start [2025-04-20 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947940', 'tblTempVendorCDR_20' ) end [2025-04-20 04:50:19] Production.INFO: ProcessCDR(1,14947940,1,1,2) [2025-04-20 04:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947940', 'tblTempUsageDetail_20' ) start [2025-04-20 04:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947940', 'tblTempUsageDetail_20' ) end [2025-04-20 04:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 04:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 04:50:23] Production.INFO: ==12072== Releasing lock... [2025-04-20 04:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 04:50:23] Production.INFO: 31.25 MB #Memory Used# [2025-04-20 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 01:51:05 [end_date_ymd] => 2025-04-20 04:51:05 [RateCDR] => 1 ) [2025-04-20 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-20 01:51:05' and `end` < '2025-04-20 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-20 04:51:18] Production.INFO: count ==383 [2025-04-20 04:51:18] Production.ERROR: pbx CDR StartTime 2025-04-20 01:51:05 - End Time 2025-04-20 04:51:05 [2025-04-20 04:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947945', 'tblTempUsageDetail_20' ) start [2025-04-20 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947945', 'tblTempUsageDetail_20' ) end [2025-04-20 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947945', 'tblTempVendorCDR_20' ) start [2025-04-20 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947945', 'tblTempVendorCDR_20' ) end [2025-04-20 04:51:18] Production.INFO: ProcessCDR(1,14947945,1,1,2) [2025-04-20 04:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947945', 'tblTempUsageDetail_20' ) start [2025-04-20 04:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947945', 'tblTempUsageDetail_20' ) end [2025-04-20 04:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 04:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 04:51:21] Production.INFO: ==12145== Releasing lock... [2025-04-20 04:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 04:51:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-20 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 01:52:05 [end_date_ymd] => 2025-04-20 04:52:05 [RateCDR] => 1 ) [2025-04-20 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-20 01:52:05' and `end` < '2025-04-20 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-20 04:52:18] Production.INFO: count ==378 [2025-04-20 04:52:18] Production.ERROR: pbx CDR StartTime 2025-04-20 01:52:05 - End Time 2025-04-20 04:52:05 [2025-04-20 04:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947950', 'tblTempUsageDetail_20' ) start [2025-04-20 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947950', 'tblTempUsageDetail_20' ) end [2025-04-20 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947950', 'tblTempVendorCDR_20' ) start [2025-04-20 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947950', 'tblTempVendorCDR_20' ) end [2025-04-20 04:52:18] Production.INFO: ProcessCDR(1,14947950,1,1,2) [2025-04-20 04:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947950', 'tblTempUsageDetail_20' ) start [2025-04-20 04:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947950', 'tblTempUsageDetail_20' ) end [2025-04-20 04:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 04:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 04:52:21] Production.INFO: ==12218== Releasing lock... [2025-04-20 04:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 04:52:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-20 04:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 01:53:06 [end_date_ymd] => 2025-04-20 04:53:06 [RateCDR] => 1 ) [2025-04-20 04: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-20 01:53:06' and `end` < '2025-04-20 04: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-20 04:53:18] Production.INFO: count ==377 [2025-04-20 04:53:18] Production.ERROR: pbx CDR StartTime 2025-04-20 01:53:06 - End Time 2025-04-20 04:53:06 [2025-04-20 04:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947955', 'tblTempUsageDetail_20' ) start [2025-04-20 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947955', 'tblTempUsageDetail_20' ) end [2025-04-20 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947955', 'tblTempVendorCDR_20' ) start [2025-04-20 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947955', 'tblTempVendorCDR_20' ) end [2025-04-20 04:53:18] Production.INFO: ProcessCDR(1,14947955,1,1,2) [2025-04-20 04:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947955', 'tblTempUsageDetail_20' ) start [2025-04-20 04:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947955', 'tblTempUsageDetail_20' ) end [2025-04-20 04:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 04:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 04:53:22] Production.INFO: ==12294== Releasing lock... [2025-04-20 04:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 04:53:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-20 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 01:54:05 [end_date_ymd] => 2025-04-20 04:54:05 [RateCDR] => 1 ) [2025-04-20 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-20 01:54:05' and `end` < '2025-04-20 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-20 04:54:19] Production.INFO: count ==376 [2025-04-20 04:54:19] Production.ERROR: pbx CDR StartTime 2025-04-20 01:54:05 - End Time 2025-04-20 04:54:05 [2025-04-20 04:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947960', 'tblTempUsageDetail_20' ) start [2025-04-20 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947960', 'tblTempUsageDetail_20' ) end [2025-04-20 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947960', 'tblTempVendorCDR_20' ) start [2025-04-20 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947960', 'tblTempVendorCDR_20' ) end [2025-04-20 04:54:19] Production.INFO: ProcessCDR(1,14947960,1,1,2) [2025-04-20 04:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947960', 'tblTempUsageDetail_20' ) start [2025-04-20 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947960', 'tblTempUsageDetail_20' ) end [2025-04-20 04:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 04:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 04:54:22] Production.INFO: ==12366== Releasing lock... [2025-04-20 04:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 04:54:22] Production.INFO: 31 MB #Memory Used# [2025-04-20 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 01:55:05 [end_date_ymd] => 2025-04-20 04:55:05 [RateCDR] => 1 ) [2025-04-20 04:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 01:55:05' and `end` < '2025-04-20 04:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 04:55:18] Production.INFO: count ==375 [2025-04-20 04:55:18] Production.ERROR: pbx CDR StartTime 2025-04-20 01:55:05 - End Time 2025-04-20 04:55:05 [2025-04-20 04:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947965', 'tblTempUsageDetail_20' ) start [2025-04-20 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947965', 'tblTempUsageDetail_20' ) end [2025-04-20 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947965', 'tblTempVendorCDR_20' ) start [2025-04-20 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947965', 'tblTempVendorCDR_20' ) end [2025-04-20 04:55:18] Production.INFO: ProcessCDR(1,14947965,1,1,2) [2025-04-20 04:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947965', 'tblTempUsageDetail_20' ) start [2025-04-20 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947965', 'tblTempUsageDetail_20' ) end [2025-04-20 04:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 04:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 04:55:22] Production.INFO: ==12438== Releasing lock... [2025-04-20 04:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 04:55:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-20 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 01:56:05 [end_date_ymd] => 2025-04-20 04:56:05 [RateCDR] => 1 ) [2025-04-20 04: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-20 01:56:05' and `end` < '2025-04-20 04:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 04:56:17] Production.INFO: count ==373 [2025-04-20 04:56:17] Production.ERROR: pbx CDR StartTime 2025-04-20 01:56:05 - End Time 2025-04-20 04:56:05 [2025-04-20 04:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947970', 'tblTempUsageDetail_20' ) start [2025-04-20 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947970', 'tblTempUsageDetail_20' ) end [2025-04-20 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947970', 'tblTempVendorCDR_20' ) start [2025-04-20 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947970', 'tblTempVendorCDR_20' ) end [2025-04-20 04:56:17] Production.INFO: ProcessCDR(1,14947970,1,1,2) [2025-04-20 04:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947970', 'tblTempUsageDetail_20' ) start [2025-04-20 04:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947970', 'tblTempUsageDetail_20' ) end [2025-04-20 04:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 04:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 04:56:21] Production.INFO: ==12510== Releasing lock... [2025-04-20 04:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 04:56:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-20 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 01:57:05 [end_date_ymd] => 2025-04-20 04:57:05 [RateCDR] => 1 ) [2025-04-20 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-20 01:57:05' and `end` < '2025-04-20 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-20 04:57:18] Production.INFO: count ==372 [2025-04-20 04:57:18] Production.ERROR: pbx CDR StartTime 2025-04-20 01:57:05 - End Time 2025-04-20 04:57:05 [2025-04-20 04:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947975', 'tblTempUsageDetail_20' ) start [2025-04-20 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947975', 'tblTempUsageDetail_20' ) end [2025-04-20 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947975', 'tblTempVendorCDR_20' ) start [2025-04-20 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947975', 'tblTempVendorCDR_20' ) end [2025-04-20 04:57:18] Production.INFO: ProcessCDR(1,14947975,1,1,2) [2025-04-20 04:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947975', 'tblTempUsageDetail_20' ) start [2025-04-20 04:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947975', 'tblTempUsageDetail_20' ) end [2025-04-20 04:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 04:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 04:57:21] Production.INFO: ==12580== Releasing lock... [2025-04-20 04:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 04:57:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-20 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 01:58:05 [end_date_ymd] => 2025-04-20 04:58:05 [RateCDR] => 1 ) [2025-04-20 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-20 01:58:05' and `end` < '2025-04-20 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-20 04:58:18] Production.INFO: count ==371 [2025-04-20 04:58:18] Production.ERROR: pbx CDR StartTime 2025-04-20 01:58:05 - End Time 2025-04-20 04:58:05 [2025-04-20 04:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947980', 'tblTempUsageDetail_20' ) start [2025-04-20 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947980', 'tblTempUsageDetail_20' ) end [2025-04-20 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947980', 'tblTempVendorCDR_20' ) start [2025-04-20 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947980', 'tblTempVendorCDR_20' ) end [2025-04-20 04:58:18] Production.INFO: ProcessCDR(1,14947980,1,1,2) [2025-04-20 04:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947980', 'tblTempUsageDetail_20' ) start [2025-04-20 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947980', 'tblTempUsageDetail_20' ) end [2025-04-20 04:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 04:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 04:58:22] Production.INFO: ==12655== Releasing lock... [2025-04-20 04:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 04:58:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-20 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 01:59:05 [end_date_ymd] => 2025-04-20 04:59:05 [RateCDR] => 1 ) [2025-04-20 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-20 01:59:05' and `end` < '2025-04-20 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-20 04:59:18] Production.INFO: count ==368 [2025-04-20 04:59:18] Production.ERROR: pbx CDR StartTime 2025-04-20 01:59:05 - End Time 2025-04-20 04:59:05 [2025-04-20 04:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947985', 'tblTempUsageDetail_20' ) start [2025-04-20 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947985', 'tblTempUsageDetail_20' ) end [2025-04-20 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947985', 'tblTempVendorCDR_20' ) start [2025-04-20 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947985', 'tblTempVendorCDR_20' ) end [2025-04-20 04:59:18] Production.INFO: ProcessCDR(1,14947985,1,1,2) [2025-04-20 04:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 04:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947985', 'tblTempUsageDetail_20' ) start [2025-04-20 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947985', 'tblTempUsageDetail_20' ) end [2025-04-20 04:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 04:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 04:59:21] Production.INFO: ==12727== Releasing lock... [2025-04-20 04:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 04:59:21] Production.INFO: 31 MB #Memory Used# [2025-04-20 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 02:00:06 [end_date_ymd] => 2025-04-20 05:00:06 [RateCDR] => 1 ) [2025-04-20 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-20 02:00:06' and `end` < '2025-04-20 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-20 05:00:18] Production.INFO: count ==372 [2025-04-20 05:00:19] Production.ERROR: pbx CDR StartTime 2025-04-20 02:00:06 - End Time 2025-04-20 05:00:06 [2025-04-20 05:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947991', 'tblTempUsageDetail_20' ) start [2025-04-20 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947991', 'tblTempUsageDetail_20' ) end [2025-04-20 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947991', 'tblTempVendorCDR_20' ) start [2025-04-20 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947991', 'tblTempVendorCDR_20' ) end [2025-04-20 05:00:19] Production.INFO: ProcessCDR(1,14947991,1,1,2) [2025-04-20 05:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947991', 'tblTempUsageDetail_20' ) start [2025-04-20 05:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947991', 'tblTempUsageDetail_20' ) end [2025-04-20 05:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 05:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 05:00:22] Production.INFO: ==12801== Releasing lock... [2025-04-20 05:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 05:00:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-20 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 02:01:05 [end_date_ymd] => 2025-04-20 05:01:05 [RateCDR] => 1 ) [2025-04-20 05:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 02:01:05' and `end` < '2025-04-20 05:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 05:01:21] Production.INFO: count ==372 [2025-04-20 05:01:21] Production.ERROR: pbx CDR StartTime 2025-04-20 02:01:05 - End Time 2025-04-20 05:01:05 [2025-04-20 05:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 05:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947996', 'tblTempUsageDetail_20' ) start [2025-04-20 05:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14947996', 'tblTempUsageDetail_20' ) end [2025-04-20 05:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947996', 'tblTempVendorCDR_20' ) start [2025-04-20 05:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14947996', 'tblTempVendorCDR_20' ) end [2025-04-20 05:01:21] Production.INFO: ProcessCDR(1,14947996,1,1,2) [2025-04-20 05:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14947996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14947996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14947996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14947996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947996', 'tblTempUsageDetail_20' ) start [2025-04-20 05:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14947996', 'tblTempUsageDetail_20' ) end [2025-04-20 05:01:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 05:01:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 05:01:24] Production.INFO: ==12927== Releasing lock... [2025-04-20 05:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 05:01:24] Production.INFO: 31.5 MB #Memory Used# [2025-04-20 05:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 02:02:06 [end_date_ymd] => 2025-04-20 05:02:06 [RateCDR] => 1 ) [2025-04-20 05:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 02:02:06' and `end` < '2025-04-20 05:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 05:02:19] Production.INFO: count ==369 [2025-04-20 05:02:19] Production.ERROR: pbx CDR StartTime 2025-04-20 02:02:06 - End Time 2025-04-20 05:02:06 [2025-04-20 05:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948001', 'tblTempUsageDetail_20' ) start [2025-04-20 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948001', 'tblTempUsageDetail_20' ) end [2025-04-20 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948001', 'tblTempVendorCDR_20' ) start [2025-04-20 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948001', 'tblTempVendorCDR_20' ) end [2025-04-20 05:02:19] Production.INFO: ProcessCDR(1,14948001,1,1,2) [2025-04-20 05:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948001', 'tblTempUsageDetail_20' ) start [2025-04-20 05:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948001', 'tblTempUsageDetail_20' ) end [2025-04-20 05:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 05:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 05:02:23] Production.INFO: ==13001== Releasing lock... [2025-04-20 05:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 05:02:23] Production.INFO: 31.5 MB #Memory Used# [2025-04-20 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 02:03:05 [end_date_ymd] => 2025-04-20 05:03:05 [RateCDR] => 1 ) [2025-04-20 05:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 02:03:05' and `end` < '2025-04-20 05:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 05:03:18] Production.INFO: count ==368 [2025-04-20 05:03:18] Production.ERROR: pbx CDR StartTime 2025-04-20 02:03:05 - End Time 2025-04-20 05:03:05 [2025-04-20 05:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948006', 'tblTempUsageDetail_20' ) start [2025-04-20 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948006', 'tblTempUsageDetail_20' ) end [2025-04-20 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948006', 'tblTempVendorCDR_20' ) start [2025-04-20 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948006', 'tblTempVendorCDR_20' ) end [2025-04-20 05:03:18] Production.INFO: ProcessCDR(1,14948006,1,1,2) [2025-04-20 05:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948006', 'tblTempUsageDetail_20' ) start [2025-04-20 05:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948006', 'tblTempUsageDetail_20' ) end [2025-04-20 05:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 05:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 05:03:21] Production.INFO: ==13070== Releasing lock... [2025-04-20 05:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 05:03:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-20 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 02:04:05 [end_date_ymd] => 2025-04-20 05:04:05 [RateCDR] => 1 ) [2025-04-20 05:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 02:04:05' and `end` < '2025-04-20 05:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 05:04:18] Production.INFO: count ==368 [2025-04-20 05:04:18] Production.ERROR: pbx CDR StartTime 2025-04-20 02:04:05 - End Time 2025-04-20 05:04:05 [2025-04-20 05:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948011', 'tblTempUsageDetail_20' ) start [2025-04-20 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948011', 'tblTempUsageDetail_20' ) end [2025-04-20 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948011', 'tblTempVendorCDR_20' ) start [2025-04-20 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948011', 'tblTempVendorCDR_20' ) end [2025-04-20 05:04:18] Production.INFO: ProcessCDR(1,14948011,1,1,2) [2025-04-20 05:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948011', 'tblTempUsageDetail_20' ) start [2025-04-20 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948011', 'tblTempUsageDetail_20' ) end [2025-04-20 05:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 05:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 05:04:21] Production.INFO: ==13143== Releasing lock... [2025-04-20 05:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 05:04:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-20 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 02:05:05 [end_date_ymd] => 2025-04-20 05:05:05 [RateCDR] => 1 ) [2025-04-20 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-20 02:05:05' and `end` < '2025-04-20 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-20 05:05:17] Production.INFO: count ==382 [2025-04-20 05:05:17] Production.ERROR: pbx CDR StartTime 2025-04-20 02:05:05 - End Time 2025-04-20 05:05:05 [2025-04-20 05:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948016', 'tblTempUsageDetail_20' ) start [2025-04-20 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948016', 'tblTempUsageDetail_20' ) end [2025-04-20 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948016', 'tblTempVendorCDR_20' ) start [2025-04-20 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948016', 'tblTempVendorCDR_20' ) end [2025-04-20 05:05:17] Production.INFO: ProcessCDR(1,14948016,1,1,2) [2025-04-20 05:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948016', 'tblTempUsageDetail_20' ) start [2025-04-20 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948016', 'tblTempUsageDetail_20' ) end [2025-04-20 05:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 05:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 05:05:21] Production.INFO: ==13228== Releasing lock... [2025-04-20 05:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 05:05:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-20 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 02:06:05 [end_date_ymd] => 2025-04-20 05:06:05 [RateCDR] => 1 ) [2025-04-20 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-20 02:06:05' and `end` < '2025-04-20 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-20 05:06:18] Production.INFO: count ==379 [2025-04-20 05:06:18] Production.ERROR: pbx CDR StartTime 2025-04-20 02:06:05 - End Time 2025-04-20 05:06:05 [2025-04-20 05:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948021', 'tblTempUsageDetail_20' ) start [2025-04-20 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948021', 'tblTempUsageDetail_20' ) end [2025-04-20 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948021', 'tblTempVendorCDR_20' ) start [2025-04-20 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948021', 'tblTempVendorCDR_20' ) end [2025-04-20 05:06:18] Production.INFO: ProcessCDR(1,14948021,1,1,2) [2025-04-20 05:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948021', 'tblTempUsageDetail_20' ) start [2025-04-20 05:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948021', 'tblTempUsageDetail_20' ) end [2025-04-20 05:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 05:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 05:06:22] Production.INFO: ==13322== Releasing lock... [2025-04-20 05:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 05:06:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-20 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 02:07:05 [end_date_ymd] => 2025-04-20 05:07:05 [RateCDR] => 1 ) [2025-04-20 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-20 02:07:05' and `end` < '2025-04-20 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-20 05:07:18] Production.INFO: count ==382 [2025-04-20 05:07:18] Production.ERROR: pbx CDR StartTime 2025-04-20 02:07:05 - End Time 2025-04-20 05:07:05 [2025-04-20 05:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948026', 'tblTempUsageDetail_20' ) start [2025-04-20 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948026', 'tblTempUsageDetail_20' ) end [2025-04-20 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948026', 'tblTempVendorCDR_20' ) start [2025-04-20 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948026', 'tblTempVendorCDR_20' ) end [2025-04-20 05:07:18] Production.INFO: ProcessCDR(1,14948026,1,1,2) [2025-04-20 05:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948026', 'tblTempUsageDetail_20' ) start [2025-04-20 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948026', 'tblTempUsageDetail_20' ) end [2025-04-20 05:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 05:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 05:07:21] Production.INFO: ==13410== Releasing lock... [2025-04-20 05:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 05:07:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-20 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 02:08:05 [end_date_ymd] => 2025-04-20 05:08:05 [RateCDR] => 1 ) [2025-04-20 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-20 02:08:05' and `end` < '2025-04-20 05:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 05:08:18] Production.INFO: count ==381 [2025-04-20 05:08:18] Production.ERROR: pbx CDR StartTime 2025-04-20 02:08:05 - End Time 2025-04-20 05:08:05 [2025-04-20 05:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948031', 'tblTempUsageDetail_20' ) start [2025-04-20 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948031', 'tblTempUsageDetail_20' ) end [2025-04-20 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948031', 'tblTempVendorCDR_20' ) start [2025-04-20 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948031', 'tblTempVendorCDR_20' ) end [2025-04-20 05:08:18] Production.INFO: ProcessCDR(1,14948031,1,1,2) [2025-04-20 05:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948031', 'tblTempUsageDetail_20' ) start [2025-04-20 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948031', 'tblTempUsageDetail_20' ) end [2025-04-20 05:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 05:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 05:08:21] Production.INFO: ==13497== Releasing lock... [2025-04-20 05:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 05:08:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-20 05:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 02:09:06 [end_date_ymd] => 2025-04-20 05:09:06 [RateCDR] => 1 ) [2025-04-20 05: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-20 02:09:06' and `end` < '2025-04-20 05: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-20 05:09:18] Production.INFO: count ==378 [2025-04-20 05:09:18] Production.ERROR: pbx CDR StartTime 2025-04-20 02:09:06 - End Time 2025-04-20 05:09:06 [2025-04-20 05:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948036', 'tblTempUsageDetail_20' ) start [2025-04-20 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948036', 'tblTempUsageDetail_20' ) end [2025-04-20 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948036', 'tblTempVendorCDR_20' ) start [2025-04-20 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948036', 'tblTempVendorCDR_20' ) end [2025-04-20 05:09:18] Production.INFO: ProcessCDR(1,14948036,1,1,2) [2025-04-20 05:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948036', 'tblTempUsageDetail_20' ) start [2025-04-20 05:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948036', 'tblTempUsageDetail_20' ) end [2025-04-20 05:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 05:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 05:09:22] Production.INFO: ==13586== Releasing lock... [2025-04-20 05:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 05:09:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-20 05:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 02:10:06 [end_date_ymd] => 2025-04-20 05:10:06 [RateCDR] => 1 ) [2025-04-20 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-20 02:10:06' and `end` < '2025-04-20 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-20 05:10:18] Production.INFO: count ==368 [2025-04-20 05:10:18] Production.ERROR: pbx CDR StartTime 2025-04-20 02:10:06 - End Time 2025-04-20 05:10:06 [2025-04-20 05:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948042', 'tblTempUsageDetail_20' ) start [2025-04-20 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948042', 'tblTempUsageDetail_20' ) end [2025-04-20 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948042', 'tblTempVendorCDR_20' ) start [2025-04-20 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948042', 'tblTempVendorCDR_20' ) end [2025-04-20 05:10:18] Production.INFO: ProcessCDR(1,14948042,1,1,2) [2025-04-20 05:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948042', 'tblTempUsageDetail_20' ) start [2025-04-20 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948042', 'tblTempUsageDetail_20' ) end [2025-04-20 05:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 05:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 05:10:22] Production.INFO: ==13677== Releasing lock... [2025-04-20 05:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 05:10:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-20 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 02:11:05 [end_date_ymd] => 2025-04-20 05:11:05 [RateCDR] => 1 ) [2025-04-20 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-20 02:11:05' and `end` < '2025-04-20 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-20 05:11:19] Production.INFO: count ==360 [2025-04-20 05:11:19] Production.ERROR: pbx CDR StartTime 2025-04-20 02:11:05 - End Time 2025-04-20 05:11:05 [2025-04-20 05:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948047', 'tblTempUsageDetail_20' ) start [2025-04-20 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948047', 'tblTempUsageDetail_20' ) end [2025-04-20 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948047', 'tblTempVendorCDR_20' ) start [2025-04-20 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948047', 'tblTempVendorCDR_20' ) end [2025-04-20 05:11:19] Production.INFO: ProcessCDR(1,14948047,1,1,2) [2025-04-20 05:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948047', 'tblTempUsageDetail_20' ) start [2025-04-20 05:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948047', 'tblTempUsageDetail_20' ) end [2025-04-20 05:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 05:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 05:11:22] Production.INFO: ==13767== Releasing lock... [2025-04-20 05:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 05:11:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-20 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 02:12:05 [end_date_ymd] => 2025-04-20 05:12:05 [RateCDR] => 1 ) [2025-04-20 05:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 02:12:05' and `end` < '2025-04-20 05:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 05:12:17] Production.INFO: count ==358 [2025-04-20 05:12:17] Production.ERROR: pbx CDR StartTime 2025-04-20 02:12:05 - End Time 2025-04-20 05:12:05 [2025-04-20 05:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948052', 'tblTempUsageDetail_20' ) start [2025-04-20 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948052', 'tblTempUsageDetail_20' ) end [2025-04-20 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948052', 'tblTempVendorCDR_20' ) start [2025-04-20 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948052', 'tblTempVendorCDR_20' ) end [2025-04-20 05:12:17] Production.INFO: ProcessCDR(1,14948052,1,1,2) [2025-04-20 05:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948052', 'tblTempUsageDetail_20' ) start [2025-04-20 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948052', 'tblTempUsageDetail_20' ) end [2025-04-20 05:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 05:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 05:12:21] Production.INFO: ==13852== Releasing lock... [2025-04-20 05:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 05:12:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-20 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 02:13:05 [end_date_ymd] => 2025-04-20 05:13:05 [RateCDR] => 1 ) [2025-04-20 05:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 02:13:05' and `end` < '2025-04-20 05:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 05:13:18] Production.INFO: count ==354 [2025-04-20 05:13:18] Production.ERROR: pbx CDR StartTime 2025-04-20 02:13:05 - End Time 2025-04-20 05:13:05 [2025-04-20 05:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948057', 'tblTempUsageDetail_20' ) start [2025-04-20 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948057', 'tblTempUsageDetail_20' ) end [2025-04-20 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948057', 'tblTempVendorCDR_20' ) start [2025-04-20 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948057', 'tblTempVendorCDR_20' ) end [2025-04-20 05:13:18] Production.INFO: ProcessCDR(1,14948057,1,1,2) [2025-04-20 05:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948057', 'tblTempUsageDetail_20' ) start [2025-04-20 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948057', 'tblTempUsageDetail_20' ) end [2025-04-20 05:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 05:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 05:13:21] Production.INFO: ==13927== Releasing lock... [2025-04-20 05:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 05:13:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-20 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 02:14:05 [end_date_ymd] => 2025-04-20 05:14:05 [RateCDR] => 1 ) [2025-04-20 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-20 02:14:05' and `end` < '2025-04-20 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-20 05:14:18] Production.INFO: count ==350 [2025-04-20 05:14:18] Production.ERROR: pbx CDR StartTime 2025-04-20 02:14:05 - End Time 2025-04-20 05:14:05 [2025-04-20 05:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948062', 'tblTempUsageDetail_20' ) start [2025-04-20 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948062', 'tblTempUsageDetail_20' ) end [2025-04-20 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948062', 'tblTempVendorCDR_20' ) start [2025-04-20 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948062', 'tblTempVendorCDR_20' ) end [2025-04-20 05:14:18] Production.INFO: ProcessCDR(1,14948062,1,1,2) [2025-04-20 05:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948062', 'tblTempUsageDetail_20' ) start [2025-04-20 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948062', 'tblTempUsageDetail_20' ) end [2025-04-20 05:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 05:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 05:14:21] Production.INFO: ==14000== Releasing lock... [2025-04-20 05:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 05:14:21] Production.INFO: 31 MB #Memory Used# [2025-04-20 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 02:15:05 [end_date_ymd] => 2025-04-20 05:15:05 [RateCDR] => 1 ) [2025-04-20 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-20 02:15:05' and `end` < '2025-04-20 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-20 05:15:18] Production.INFO: count ==351 [2025-04-20 05:15:18] Production.ERROR: pbx CDR StartTime 2025-04-20 02:15:05 - End Time 2025-04-20 05:15:05 [2025-04-20 05:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948067', 'tblTempUsageDetail_20' ) start [2025-04-20 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948067', 'tblTempUsageDetail_20' ) end [2025-04-20 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948067', 'tblTempVendorCDR_20' ) start [2025-04-20 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948067', 'tblTempVendorCDR_20' ) end [2025-04-20 05:15:18] Production.INFO: ProcessCDR(1,14948067,1,1,2) [2025-04-20 05:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948067', 'tblTempUsageDetail_20' ) start [2025-04-20 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948067', 'tblTempUsageDetail_20' ) end [2025-04-20 05:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 05:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 05:15:21] Production.INFO: ==14074== Releasing lock... [2025-04-20 05:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 05:15:21] Production.INFO: 31 MB #Memory Used# [2025-04-20 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 02:16:05 [end_date_ymd] => 2025-04-20 05:16:05 [RateCDR] => 1 ) [2025-04-20 05:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 02:16:05' and `end` < '2025-04-20 05:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 05:16:17] Production.INFO: count ==349 [2025-04-20 05:16:17] Production.ERROR: pbx CDR StartTime 2025-04-20 02:16:05 - End Time 2025-04-20 05:16:05 [2025-04-20 05:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948072', 'tblTempUsageDetail_20' ) start [2025-04-20 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948072', 'tblTempUsageDetail_20' ) end [2025-04-20 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948072', 'tblTempVendorCDR_20' ) start [2025-04-20 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948072', 'tblTempVendorCDR_20' ) end [2025-04-20 05:16:17] Production.INFO: ProcessCDR(1,14948072,1,1,2) [2025-04-20 05:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948072', 'tblTempUsageDetail_20' ) start [2025-04-20 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948072', 'tblTempUsageDetail_20' ) end [2025-04-20 05:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 05:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 05:16:21] Production.INFO: ==14144== Releasing lock... [2025-04-20 05:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 05:16:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-20 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 02:17:05 [end_date_ymd] => 2025-04-20 05:17:05 [RateCDR] => 1 ) [2025-04-20 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-20 02:17:05' and `end` < '2025-04-20 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-20 05:17:17] Production.INFO: count ==356 [2025-04-20 05:17:18] Production.ERROR: pbx CDR StartTime 2025-04-20 02:17:05 - End Time 2025-04-20 05:17:05 [2025-04-20 05:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948077', 'tblTempUsageDetail_20' ) start [2025-04-20 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948077', 'tblTempUsageDetail_20' ) end [2025-04-20 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948077', 'tblTempVendorCDR_20' ) start [2025-04-20 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948077', 'tblTempVendorCDR_20' ) end [2025-04-20 05:17:18] Production.INFO: ProcessCDR(1,14948077,1,1,2) [2025-04-20 05:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948077', 'tblTempUsageDetail_20' ) start [2025-04-20 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948077', 'tblTempUsageDetail_20' ) end [2025-04-20 05:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 05:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 05:17:21] Production.INFO: ==14256== Releasing lock... [2025-04-20 05:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 05:17:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-20 05:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 02:18:06 [end_date_ymd] => 2025-04-20 05:18:06 [RateCDR] => 1 ) [2025-04-20 05: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-20 02:18:06' and `end` < '2025-04-20 05: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-20 05:18:18] Production.INFO: count ==355 [2025-04-20 05:18:18] Production.ERROR: pbx CDR StartTime 2025-04-20 02:18:06 - End Time 2025-04-20 05:18:06 [2025-04-20 05:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948082', 'tblTempUsageDetail_20' ) start [2025-04-20 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948082', 'tblTempUsageDetail_20' ) end [2025-04-20 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948082', 'tblTempVendorCDR_20' ) start [2025-04-20 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948082', 'tblTempVendorCDR_20' ) end [2025-04-20 05:18:18] Production.INFO: ProcessCDR(1,14948082,1,1,2) [2025-04-20 05:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948082', 'tblTempUsageDetail_20' ) start [2025-04-20 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948082', 'tblTempUsageDetail_20' ) end [2025-04-20 05:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 05:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 05:18:21] Production.INFO: ==14348== Releasing lock... [2025-04-20 05:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 05:18:21] Production.INFO: 31 MB #Memory Used# [2025-04-20 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 02:19:05 [end_date_ymd] => 2025-04-20 05:19:05 [RateCDR] => 1 ) [2025-04-20 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-20 02:19:05' and `end` < '2025-04-20 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-20 05:19:17] Production.INFO: count ==353 [2025-04-20 05:19:17] Production.ERROR: pbx CDR StartTime 2025-04-20 02:19:05 - End Time 2025-04-20 05:19:05 [2025-04-20 05:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948087', 'tblTempUsageDetail_20' ) start [2025-04-20 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948087', 'tblTempUsageDetail_20' ) end [2025-04-20 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948087', 'tblTempVendorCDR_20' ) start [2025-04-20 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948087', 'tblTempVendorCDR_20' ) end [2025-04-20 05:19:17] Production.INFO: ProcessCDR(1,14948087,1,1,2) [2025-04-20 05:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948087', 'tblTempUsageDetail_20' ) start [2025-04-20 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948087', 'tblTempUsageDetail_20' ) end [2025-04-20 05:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 05:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 05:19:21] Production.INFO: ==14419== Releasing lock... [2025-04-20 05:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 05:19:21] Production.INFO: 31 MB #Memory Used# [2025-04-20 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 02:20:06 [end_date_ymd] => 2025-04-20 05:20:06 [RateCDR] => 1 ) [2025-04-20 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-20 02:20:06' and `end` < '2025-04-20 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-20 05:20:18] Production.INFO: count ==343 [2025-04-20 05:20:18] Production.ERROR: pbx CDR StartTime 2025-04-20 02:20:06 - End Time 2025-04-20 05:20:06 [2025-04-20 05:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948092', 'tblTempUsageDetail_20' ) start [2025-04-20 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948092', 'tblTempUsageDetail_20' ) end [2025-04-20 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948092', 'tblTempVendorCDR_20' ) start [2025-04-20 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948092', 'tblTempVendorCDR_20' ) end [2025-04-20 05:20:18] Production.INFO: ProcessCDR(1,14948092,1,1,2) [2025-04-20 05:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948092', 'tblTempUsageDetail_20' ) start [2025-04-20 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948092', 'tblTempUsageDetail_20' ) end [2025-04-20 05:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 05:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 05:20:22] Production.INFO: ==14501== Releasing lock... [2025-04-20 05:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 05:20:22] Production.INFO: 31 MB #Memory Used# [2025-04-20 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 02:21:05 [end_date_ymd] => 2025-04-20 05:21:05 [RateCDR] => 1 ) [2025-04-20 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-20 02:21:05' and `end` < '2025-04-20 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-20 05:21:17] Production.INFO: count ==342 [2025-04-20 05:21:18] Production.ERROR: pbx CDR StartTime 2025-04-20 02:21:05 - End Time 2025-04-20 05:21:05 [2025-04-20 05:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948098', 'tblTempUsageDetail_20' ) start [2025-04-20 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948098', 'tblTempUsageDetail_20' ) end [2025-04-20 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948098', 'tblTempVendorCDR_20' ) start [2025-04-20 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948098', 'tblTempVendorCDR_20' ) end [2025-04-20 05:21:18] Production.INFO: ProcessCDR(1,14948098,1,1,2) [2025-04-20 05:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948098', 'tblTempUsageDetail_20' ) start [2025-04-20 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948098', 'tblTempUsageDetail_20' ) end [2025-04-20 05:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 05:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 05:21:21] Production.INFO: ==14577== Releasing lock... [2025-04-20 05:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 05:21:21] Production.INFO: 31 MB #Memory Used# [2025-04-20 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 02:22:05 [end_date_ymd] => 2025-04-20 05:22:05 [RateCDR] => 1 ) [2025-04-20 05:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 02:22:05' and `end` < '2025-04-20 05:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 05:22:18] Production.INFO: count ==341 [2025-04-20 05:22:18] Production.ERROR: pbx CDR StartTime 2025-04-20 02:22:05 - End Time 2025-04-20 05:22:05 [2025-04-20 05:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948103', 'tblTempUsageDetail_20' ) start [2025-04-20 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948103', 'tblTempUsageDetail_20' ) end [2025-04-20 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948103', 'tblTempVendorCDR_20' ) start [2025-04-20 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948103', 'tblTempVendorCDR_20' ) end [2025-04-20 05:22:18] Production.INFO: ProcessCDR(1,14948103,1,1,2) [2025-04-20 05:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948103', 'tblTempUsageDetail_20' ) start [2025-04-20 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948103', 'tblTempUsageDetail_20' ) end [2025-04-20 05:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 05:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 05:22:21] Production.INFO: ==14647== Releasing lock... [2025-04-20 05:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 05:22:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-20 05:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 02:23:04 [end_date_ymd] => 2025-04-20 05:23:04 [RateCDR] => 1 ) [2025-04-20 05: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-20 02:23:04' and `end` < '2025-04-20 05: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-20 05:23:17] Production.INFO: count ==339 [2025-04-20 05:23:17] Production.ERROR: pbx CDR StartTime 2025-04-20 02:23:04 - End Time 2025-04-20 05:23:04 [2025-04-20 05:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948108', 'tblTempUsageDetail_20' ) start [2025-04-20 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948108', 'tblTempUsageDetail_20' ) end [2025-04-20 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948108', 'tblTempVendorCDR_20' ) start [2025-04-20 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948108', 'tblTempVendorCDR_20' ) end [2025-04-20 05:23:17] Production.INFO: ProcessCDR(1,14948108,1,1,2) [2025-04-20 05:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948108', 'tblTempUsageDetail_20' ) start [2025-04-20 05:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948108', 'tblTempUsageDetail_20' ) end [2025-04-20 05:23:20] Production.ERROR: pbx prc_insertCDR start [2025-04-20 05:23:20] Production.ERROR: pbx prc_insertCDR end [2025-04-20 05:23:20] Production.INFO: ==14720== Releasing lock... [2025-04-20 05:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 05:23:20] Production.INFO: 31.25 MB #Memory Used# [2025-04-20 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 02:24:05 [end_date_ymd] => 2025-04-20 05:24:05 [RateCDR] => 1 ) [2025-04-20 05:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 02:24:05' and `end` < '2025-04-20 05:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 05:24:18] Production.INFO: count ==339 [2025-04-20 05:24:18] Production.ERROR: pbx CDR StartTime 2025-04-20 02:24:05 - End Time 2025-04-20 05:24:05 [2025-04-20 05:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948113', 'tblTempUsageDetail_20' ) start [2025-04-20 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948113', 'tblTempUsageDetail_20' ) end [2025-04-20 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948113', 'tblTempVendorCDR_20' ) start [2025-04-20 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948113', 'tblTempVendorCDR_20' ) end [2025-04-20 05:24:18] Production.INFO: ProcessCDR(1,14948113,1,1,2) [2025-04-20 05:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948113', 'tblTempUsageDetail_20' ) start [2025-04-20 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948113', 'tblTempUsageDetail_20' ) end [2025-04-20 05:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 05:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 05:24:21] Production.INFO: ==14791== Releasing lock... [2025-04-20 05:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 05:24:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-20 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 02:25:05 [end_date_ymd] => 2025-04-20 05:25:05 [RateCDR] => 1 ) [2025-04-20 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-20 02:25:05' and `end` < '2025-04-20 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-20 05:25:18] Production.INFO: count ==339 [2025-04-20 05:25:18] Production.ERROR: pbx CDR StartTime 2025-04-20 02:25:05 - End Time 2025-04-20 05:25:05 [2025-04-20 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948118', 'tblTempUsageDetail_20' ) start [2025-04-20 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948118', 'tblTempUsageDetail_20' ) end [2025-04-20 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948118', 'tblTempVendorCDR_20' ) start [2025-04-20 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948118', 'tblTempVendorCDR_20' ) end [2025-04-20 05:25:18] Production.INFO: ProcessCDR(1,14948118,1,1,2) [2025-04-20 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948118', 'tblTempUsageDetail_20' ) start [2025-04-20 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948118', 'tblTempUsageDetail_20' ) end [2025-04-20 05:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 05:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 05:25:21] Production.INFO: ==14865== Releasing lock... [2025-04-20 05:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 05:25:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-20 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 02:26:05 [end_date_ymd] => 2025-04-20 05:26:05 [RateCDR] => 1 ) [2025-04-20 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-20 02:26:05' and `end` < '2025-04-20 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-20 05:26:18] Production.INFO: count ==337 [2025-04-20 05:26:18] Production.ERROR: pbx CDR StartTime 2025-04-20 02:26:05 - End Time 2025-04-20 05:26:05 [2025-04-20 05:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948123', 'tblTempUsageDetail_20' ) start [2025-04-20 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948123', 'tblTempUsageDetail_20' ) end [2025-04-20 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948123', 'tblTempVendorCDR_20' ) start [2025-04-20 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948123', 'tblTempVendorCDR_20' ) end [2025-04-20 05:26:18] Production.INFO: ProcessCDR(1,14948123,1,1,2) [2025-04-20 05:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948123', 'tblTempUsageDetail_20' ) start [2025-04-20 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948123', 'tblTempUsageDetail_20' ) end [2025-04-20 05:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 05:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 05:26:21] Production.INFO: ==14937== Releasing lock... [2025-04-20 05:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 05:26:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-20 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 02:27:05 [end_date_ymd] => 2025-04-20 05:27:05 [RateCDR] => 1 ) [2025-04-20 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-20 02:27:05' and `end` < '2025-04-20 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-20 05:27:18] Production.INFO: count ==336 [2025-04-20 05:27:18] Production.ERROR: pbx CDR StartTime 2025-04-20 02:27:05 - End Time 2025-04-20 05:27:05 [2025-04-20 05:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948128', 'tblTempUsageDetail_20' ) start [2025-04-20 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948128', 'tblTempUsageDetail_20' ) end [2025-04-20 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948128', 'tblTempVendorCDR_20' ) start [2025-04-20 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948128', 'tblTempVendorCDR_20' ) end [2025-04-20 05:27:18] Production.INFO: ProcessCDR(1,14948128,1,1,2) [2025-04-20 05:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948128', 'tblTempUsageDetail_20' ) start [2025-04-20 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948128', 'tblTempUsageDetail_20' ) end [2025-04-20 05:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 05:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 05:27:21] Production.INFO: ==15013== Releasing lock... [2025-04-20 05:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 05:27:21] Production.INFO: 31 MB #Memory Used# [2025-04-20 05:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 02:28:06 [end_date_ymd] => 2025-04-20 05:28:06 [RateCDR] => 1 ) [2025-04-20 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-20 02:28:06' and `end` < '2025-04-20 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-20 05:28:19] Production.INFO: count ==334 [2025-04-20 05:28:19] Production.ERROR: pbx CDR StartTime 2025-04-20 02:28:06 - End Time 2025-04-20 05:28:06 [2025-04-20 05:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948133', 'tblTempUsageDetail_20' ) start [2025-04-20 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948133', 'tblTempUsageDetail_20' ) end [2025-04-20 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948133', 'tblTempVendorCDR_20' ) start [2025-04-20 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948133', 'tblTempVendorCDR_20' ) end [2025-04-20 05:28:19] Production.INFO: ProcessCDR(1,14948133,1,1,2) [2025-04-20 05:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948133', 'tblTempUsageDetail_20' ) start [2025-04-20 05:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948133', 'tblTempUsageDetail_20' ) end [2025-04-20 05:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 05:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 05:28:22] Production.INFO: ==15085== Releasing lock... [2025-04-20 05:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 05:28:22] Production.INFO: 31 MB #Memory Used# [2025-04-20 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 02:29:05 [end_date_ymd] => 2025-04-20 05:29:05 [RateCDR] => 1 ) [2025-04-20 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-20 02:29:05' and `end` < '2025-04-20 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-20 05:29:18] Production.INFO: count ==332 [2025-04-20 05:29:18] Production.ERROR: pbx CDR StartTime 2025-04-20 02:29:05 - End Time 2025-04-20 05:29:05 [2025-04-20 05:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948138', 'tblTempUsageDetail_20' ) start [2025-04-20 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948138', 'tblTempUsageDetail_20' ) end [2025-04-20 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948138', 'tblTempVendorCDR_20' ) start [2025-04-20 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948138', 'tblTempVendorCDR_20' ) end [2025-04-20 05:29:18] Production.INFO: ProcessCDR(1,14948138,1,1,2) [2025-04-20 05:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948138', 'tblTempUsageDetail_20' ) start [2025-04-20 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948138', 'tblTempUsageDetail_20' ) end [2025-04-20 05:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 05:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 05:29:21] Production.INFO: ==15155== Releasing lock... [2025-04-20 05:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 05:29:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-20 05:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 02:30:05 [end_date_ymd] => 2025-04-20 05:30:05 [RateCDR] => 1 ) [2025-04-20 05: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-20 02:30:05' and `end` < '2025-04-20 05: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-20 05:30:18] Production.INFO: count ==326 [2025-04-20 05:30:18] Production.ERROR: pbx CDR StartTime 2025-04-20 02:30:05 - End Time 2025-04-20 05:30:05 [2025-04-20 05:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948143', 'tblTempUsageDetail_20' ) start [2025-04-20 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948143', 'tblTempUsageDetail_20' ) end [2025-04-20 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948143', 'tblTempVendorCDR_20' ) start [2025-04-20 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948143', 'tblTempVendorCDR_20' ) end [2025-04-20 05:30:18] Production.INFO: ProcessCDR(1,14948143,1,1,2) [2025-04-20 05:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948143', 'tblTempUsageDetail_20' ) start [2025-04-20 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948143', 'tblTempUsageDetail_20' ) end [2025-04-20 05:30:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 05:30:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 05:30:21] Production.INFO: ==15233== Releasing lock... [2025-04-20 05:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 05:30:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-20 05:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 02:31:06 [end_date_ymd] => 2025-04-20 05:31:06 [RateCDR] => 1 ) [2025-04-20 05:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 02:31:06' and `end` < '2025-04-20 05:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 05:31:18] Production.INFO: count ==306 [2025-04-20 05:31:18] Production.ERROR: pbx CDR StartTime 2025-04-20 02:31:06 - End Time 2025-04-20 05:31:06 [2025-04-20 05:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948149', 'tblTempUsageDetail_20' ) start [2025-04-20 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948149', 'tblTempUsageDetail_20' ) end [2025-04-20 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948149', 'tblTempVendorCDR_20' ) start [2025-04-20 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948149', 'tblTempVendorCDR_20' ) end [2025-04-20 05:31:18] Production.INFO: ProcessCDR(1,14948149,1,1,2) [2025-04-20 05:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948149', 'tblTempUsageDetail_20' ) start [2025-04-20 05:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948149', 'tblTempUsageDetail_20' ) end [2025-04-20 05:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 05:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 05:31:22] Production.INFO: ==15312== Releasing lock... [2025-04-20 05:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 05:31:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-20 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 02:32:05 [end_date_ymd] => 2025-04-20 05:32:05 [RateCDR] => 1 ) [2025-04-20 05:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 02:32:05' and `end` < '2025-04-20 05:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 05:32:18] Production.INFO: count ==304 [2025-04-20 05:32:18] Production.ERROR: pbx CDR StartTime 2025-04-20 02:32:05 - End Time 2025-04-20 05:32:05 [2025-04-20 05:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948154', 'tblTempUsageDetail_20' ) start [2025-04-20 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948154', 'tblTempUsageDetail_20' ) end [2025-04-20 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948154', 'tblTempVendorCDR_20' ) start [2025-04-20 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948154', 'tblTempVendorCDR_20' ) end [2025-04-20 05:32:18] Production.INFO: ProcessCDR(1,14948154,1,1,2) [2025-04-20 05:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948154', 'tblTempUsageDetail_20' ) start [2025-04-20 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948154', 'tblTempUsageDetail_20' ) end [2025-04-20 05:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 05:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 05:32:21] Production.INFO: ==15420== Releasing lock... [2025-04-20 05:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 05:32:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-20 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 02:33:05 [end_date_ymd] => 2025-04-20 05:33:05 [RateCDR] => 1 ) [2025-04-20 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-20 02:33:05' and `end` < '2025-04-20 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-20 05:33:18] Production.INFO: count ==303 [2025-04-20 05:33:18] Production.ERROR: pbx CDR StartTime 2025-04-20 02:33:05 - End Time 2025-04-20 05:33:05 [2025-04-20 05:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948159', 'tblTempUsageDetail_20' ) start [2025-04-20 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948159', 'tblTempUsageDetail_20' ) end [2025-04-20 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948159', 'tblTempVendorCDR_20' ) start [2025-04-20 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948159', 'tblTempVendorCDR_20' ) end [2025-04-20 05:33:18] Production.INFO: ProcessCDR(1,14948159,1,1,2) [2025-04-20 05:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948159', 'tblTempUsageDetail_20' ) start [2025-04-20 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948159', 'tblTempUsageDetail_20' ) end [2025-04-20 05:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 05:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 05:33:21] Production.INFO: ==15501== Releasing lock... [2025-04-20 05:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 05:33:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-20 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 02:34:05 [end_date_ymd] => 2025-04-20 05:34:05 [RateCDR] => 1 ) [2025-04-20 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-20 02:34:05' and `end` < '2025-04-20 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-20 05:34:17] Production.INFO: count ==301 [2025-04-20 05:34:17] Production.ERROR: pbx CDR StartTime 2025-04-20 02:34:05 - End Time 2025-04-20 05:34:05 [2025-04-20 05:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948164', 'tblTempUsageDetail_20' ) start [2025-04-20 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948164', 'tblTempUsageDetail_20' ) end [2025-04-20 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948164', 'tblTempVendorCDR_20' ) start [2025-04-20 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948164', 'tblTempVendorCDR_20' ) end [2025-04-20 05:34:18] Production.INFO: ProcessCDR(1,14948164,1,1,2) [2025-04-20 05:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948164', 'tblTempUsageDetail_20' ) start [2025-04-20 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948164', 'tblTempUsageDetail_20' ) end [2025-04-20 05:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 05:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 05:34:21] Production.INFO: ==15575== Releasing lock... [2025-04-20 05:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 05:34:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-20 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 02:35:05 [end_date_ymd] => 2025-04-20 05:35:05 [RateCDR] => 1 ) [2025-04-20 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-20 02:35:05' and `end` < '2025-04-20 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-20 05:35:18] Production.INFO: count ==295 [2025-04-20 05:35:18] Production.ERROR: pbx CDR StartTime 2025-04-20 02:35:05 - End Time 2025-04-20 05:35:05 [2025-04-20 05:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948169', 'tblTempUsageDetail_20' ) start [2025-04-20 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948169', 'tblTempUsageDetail_20' ) end [2025-04-20 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948169', 'tblTempVendorCDR_20' ) start [2025-04-20 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948169', 'tblTempVendorCDR_20' ) end [2025-04-20 05:35:18] Production.INFO: ProcessCDR(1,14948169,1,1,2) [2025-04-20 05:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948169', 'tblTempUsageDetail_20' ) start [2025-04-20 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948169', 'tblTempUsageDetail_20' ) end [2025-04-20 05:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 05:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 05:35:21] Production.INFO: ==15646== Releasing lock... [2025-04-20 05:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 05:35:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-20 05:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 02:36:06 [end_date_ymd] => 2025-04-20 05:36:06 [RateCDR] => 1 ) [2025-04-20 05:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 02:36:06' and `end` < '2025-04-20 05:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 05:36:18] Production.INFO: count ==292 [2025-04-20 05:36:18] Production.ERROR: pbx CDR StartTime 2025-04-20 02:36:06 - End Time 2025-04-20 05:36:06 [2025-04-20 05:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948174', 'tblTempUsageDetail_20' ) start [2025-04-20 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948174', 'tblTempUsageDetail_20' ) end [2025-04-20 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948174', 'tblTempVendorCDR_20' ) start [2025-04-20 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948174', 'tblTempVendorCDR_20' ) end [2025-04-20 05:36:18] Production.INFO: ProcessCDR(1,14948174,1,1,2) [2025-04-20 05:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948174', 'tblTempUsageDetail_20' ) start [2025-04-20 05:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948174', 'tblTempUsageDetail_20' ) end [2025-04-20 05:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 05:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 05:36:22] Production.INFO: ==15718== Releasing lock... [2025-04-20 05:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 05:36:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-20 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 02:37:05 [end_date_ymd] => 2025-04-20 05:37:05 [RateCDR] => 1 ) [2025-04-20 05:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 02:37:05' and `end` < '2025-04-20 05:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 05:37:17] Production.INFO: count ==290 [2025-04-20 05:37:17] Production.ERROR: pbx CDR StartTime 2025-04-20 02:37:05 - End Time 2025-04-20 05:37:05 [2025-04-20 05:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948179', 'tblTempUsageDetail_20' ) start [2025-04-20 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948179', 'tblTempUsageDetail_20' ) end [2025-04-20 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948179', 'tblTempVendorCDR_20' ) start [2025-04-20 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948179', 'tblTempVendorCDR_20' ) end [2025-04-20 05:37:17] Production.INFO: ProcessCDR(1,14948179,1,1,2) [2025-04-20 05:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948179', 'tblTempUsageDetail_20' ) start [2025-04-20 05:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948179', 'tblTempUsageDetail_20' ) end [2025-04-20 05:37:20] Production.ERROR: pbx prc_insertCDR start [2025-04-20 05:37:20] Production.ERROR: pbx prc_insertCDR end [2025-04-20 05:37:20] Production.INFO: ==15794== Releasing lock... [2025-04-20 05:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 05:37:20] Production.INFO: 30.5 MB #Memory Used# [2025-04-20 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 02:38:05 [end_date_ymd] => 2025-04-20 05:38:05 [RateCDR] => 1 ) [2025-04-20 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-20 02:38:05' and `end` < '2025-04-20 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-20 05:38:18] Production.INFO: count ==284 [2025-04-20 05:38:18] Production.ERROR: pbx CDR StartTime 2025-04-20 02:38:05 - End Time 2025-04-20 05:38:05 [2025-04-20 05:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948184', 'tblTempUsageDetail_20' ) start [2025-04-20 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948184', 'tblTempUsageDetail_20' ) end [2025-04-20 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948184', 'tblTempVendorCDR_20' ) start [2025-04-20 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948184', 'tblTempVendorCDR_20' ) end [2025-04-20 05:38:18] Production.INFO: ProcessCDR(1,14948184,1,1,2) [2025-04-20 05:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948184', 'tblTempUsageDetail_20' ) start [2025-04-20 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948184', 'tblTempUsageDetail_20' ) end [2025-04-20 05:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 05:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 05:38:21] Production.INFO: ==15864== Releasing lock... [2025-04-20 05:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 05:38:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-20 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 02:39:05 [end_date_ymd] => 2025-04-20 05:39:05 [RateCDR] => 1 ) [2025-04-20 05:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 02:39:05' and `end` < '2025-04-20 05:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 05:39:17] Production.INFO: count ==283 [2025-04-20 05:39:17] Production.ERROR: pbx CDR StartTime 2025-04-20 02:39:05 - End Time 2025-04-20 05:39:05 [2025-04-20 05:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948189', 'tblTempUsageDetail_20' ) start [2025-04-20 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948189', 'tblTempUsageDetail_20' ) end [2025-04-20 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948189', 'tblTempVendorCDR_20' ) start [2025-04-20 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948189', 'tblTempVendorCDR_20' ) end [2025-04-20 05:39:17] Production.INFO: ProcessCDR(1,14948189,1,1,2) [2025-04-20 05:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948189', 'tblTempUsageDetail_20' ) start [2025-04-20 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948189', 'tblTempUsageDetail_20' ) end [2025-04-20 05:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 05:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 05:39:21] Production.INFO: ==15937== Releasing lock... [2025-04-20 05:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 05:39:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-20 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 02:40:06 [end_date_ymd] => 2025-04-20 05:40:06 [RateCDR] => 1 ) [2025-04-20 05:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 02:40:06' and `end` < '2025-04-20 05:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 05:40:19] Production.INFO: count ==273 [2025-04-20 05:40:19] Production.ERROR: pbx CDR StartTime 2025-04-20 02:40:06 - End Time 2025-04-20 05:40:06 [2025-04-20 05:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948194', 'tblTempUsageDetail_20' ) start [2025-04-20 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948194', 'tblTempUsageDetail_20' ) end [2025-04-20 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948194', 'tblTempVendorCDR_20' ) start [2025-04-20 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948194', 'tblTempVendorCDR_20' ) end [2025-04-20 05:40:19] Production.INFO: ProcessCDR(1,14948194,1,1,2) [2025-04-20 05:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948194', 'tblTempUsageDetail_20' ) start [2025-04-20 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948194', 'tblTempUsageDetail_20' ) end [2025-04-20 05:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 05:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 05:40:22] Production.INFO: ==16012== Releasing lock... [2025-04-20 05:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 05:40:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-20 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 02:41:05 [end_date_ymd] => 2025-04-20 05:41:05 [RateCDR] => 1 ) [2025-04-20 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-20 02:41:05' and `end` < '2025-04-20 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-20 05:41:17] Production.INFO: count ==266 [2025-04-20 05:41:17] Production.ERROR: pbx CDR StartTime 2025-04-20 02:41:05 - End Time 2025-04-20 05:41:05 [2025-04-20 05:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948200', 'tblTempUsageDetail_20' ) start [2025-04-20 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948200', 'tblTempUsageDetail_20' ) end [2025-04-20 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948200', 'tblTempVendorCDR_20' ) start [2025-04-20 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948200', 'tblTempVendorCDR_20' ) end [2025-04-20 05:41:18] Production.INFO: ProcessCDR(1,14948200,1,1,2) [2025-04-20 05:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948200', 'tblTempUsageDetail_20' ) start [2025-04-20 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948200', 'tblTempUsageDetail_20' ) end [2025-04-20 05:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 05:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 05:41:21] Production.INFO: ==16089== Releasing lock... [2025-04-20 05:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 05:41:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-20 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 02:42:05 [end_date_ymd] => 2025-04-20 05:42:05 [RateCDR] => 1 ) [2025-04-20 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-20 02:42:05' and `end` < '2025-04-20 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-20 05:42:18] Production.INFO: count ==266 [2025-04-20 05:42:18] Production.ERROR: pbx CDR StartTime 2025-04-20 02:42:05 - End Time 2025-04-20 05:42:05 [2025-04-20 05:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948205', 'tblTempUsageDetail_20' ) start [2025-04-20 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948205', 'tblTempUsageDetail_20' ) end [2025-04-20 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948205', 'tblTempVendorCDR_20' ) start [2025-04-20 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948205', 'tblTempVendorCDR_20' ) end [2025-04-20 05:42:18] Production.INFO: ProcessCDR(1,14948205,1,1,2) [2025-04-20 05:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948205', 'tblTempUsageDetail_20' ) start [2025-04-20 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948205', 'tblTempUsageDetail_20' ) end [2025-04-20 05:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 05:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 05:42:21] Production.INFO: ==16160== Releasing lock... [2025-04-20 05:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 05:42:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-20 05:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 02:43:04 [end_date_ymd] => 2025-04-20 05:43:04 [RateCDR] => 1 ) [2025-04-20 05: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-20 02:43:04' and `end` < '2025-04-20 05: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-20 05:43:17] Production.INFO: count ==264 [2025-04-20 05:43:17] Production.ERROR: pbx CDR StartTime 2025-04-20 02:43:04 - End Time 2025-04-20 05:43:04 [2025-04-20 05:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948210', 'tblTempUsageDetail_20' ) start [2025-04-20 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948210', 'tblTempUsageDetail_20' ) end [2025-04-20 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948210', 'tblTempVendorCDR_20' ) start [2025-04-20 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948210', 'tblTempVendorCDR_20' ) end [2025-04-20 05:43:17] Production.INFO: ProcessCDR(1,14948210,1,1,2) [2025-04-20 05:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948210', 'tblTempUsageDetail_20' ) start [2025-04-20 05:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948210', 'tblTempUsageDetail_20' ) end [2025-04-20 05:43:20] Production.ERROR: pbx prc_insertCDR start [2025-04-20 05:43:20] Production.ERROR: pbx prc_insertCDR end [2025-04-20 05:43:20] Production.INFO: ==16230== Releasing lock... [2025-04-20 05:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 05:43:20] Production.INFO: 30.25 MB #Memory Used# [2025-04-20 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 02:44:05 [end_date_ymd] => 2025-04-20 05:44:05 [RateCDR] => 1 ) [2025-04-20 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-20 02:44:05' and `end` < '2025-04-20 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-20 05:44:18] Production.INFO: count ==264 [2025-04-20 05:44:18] Production.ERROR: pbx CDR StartTime 2025-04-20 02:44:05 - End Time 2025-04-20 05:44:05 [2025-04-20 05:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948215', 'tblTempUsageDetail_20' ) start [2025-04-20 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948215', 'tblTempUsageDetail_20' ) end [2025-04-20 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948215', 'tblTempVendorCDR_20' ) start [2025-04-20 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948215', 'tblTempVendorCDR_20' ) end [2025-04-20 05:44:18] Production.INFO: ProcessCDR(1,14948215,1,1,2) [2025-04-20 05:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948215', 'tblTempUsageDetail_20' ) start [2025-04-20 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948215', 'tblTempUsageDetail_20' ) end [2025-04-20 05:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 05:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 05:44:21] Production.INFO: ==16304== Releasing lock... [2025-04-20 05:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 05:44:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-20 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 02:45:05 [end_date_ymd] => 2025-04-20 05:45:05 [RateCDR] => 1 ) [2025-04-20 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-20 02:45:05' and `end` < '2025-04-20 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-20 05:45:18] Production.INFO: count ==261 [2025-04-20 05:45:18] Production.ERROR: pbx CDR StartTime 2025-04-20 02:45:05 - End Time 2025-04-20 05:45:05 [2025-04-20 05:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948220', 'tblTempUsageDetail_20' ) start [2025-04-20 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948220', 'tblTempUsageDetail_20' ) end [2025-04-20 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948220', 'tblTempVendorCDR_20' ) start [2025-04-20 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948220', 'tblTempVendorCDR_20' ) end [2025-04-20 05:45:18] Production.INFO: ProcessCDR(1,14948220,1,1,2) [2025-04-20 05:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948220', 'tblTempUsageDetail_20' ) start [2025-04-20 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948220', 'tblTempUsageDetail_20' ) end [2025-04-20 05:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 05:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 05:45:21] Production.INFO: ==16378== Releasing lock... [2025-04-20 05:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 05:45:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-20 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 02:46:05 [end_date_ymd] => 2025-04-20 05:46:05 [RateCDR] => 1 ) [2025-04-20 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-20 02:46:05' and `end` < '2025-04-20 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-20 05:46:18] Production.INFO: count ==260 [2025-04-20 05:46:18] Production.ERROR: pbx CDR StartTime 2025-04-20 02:46:05 - End Time 2025-04-20 05:46:05 [2025-04-20 05:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948225', 'tblTempUsageDetail_20' ) start [2025-04-20 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948225', 'tblTempUsageDetail_20' ) end [2025-04-20 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948225', 'tblTempVendorCDR_20' ) start [2025-04-20 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948225', 'tblTempVendorCDR_20' ) end [2025-04-20 05:46:18] Production.INFO: ProcessCDR(1,14948225,1,1,2) [2025-04-20 05:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948225', 'tblTempUsageDetail_20' ) start [2025-04-20 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948225', 'tblTempUsageDetail_20' ) end [2025-04-20 05:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 05:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 05:46:21] Production.INFO: ==16448== Releasing lock... [2025-04-20 05:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 05:46:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-20 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 02:47:05 [end_date_ymd] => 2025-04-20 05:47:05 [RateCDR] => 1 ) [2025-04-20 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-20 02:47:05' and `end` < '2025-04-20 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-20 05:47:18] Production.INFO: count ==260 [2025-04-20 05:47:18] Production.ERROR: pbx CDR StartTime 2025-04-20 02:47:05 - End Time 2025-04-20 05:47:05 [2025-04-20 05:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948230', 'tblTempUsageDetail_20' ) start [2025-04-20 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948230', 'tblTempUsageDetail_20' ) end [2025-04-20 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948230', 'tblTempVendorCDR_20' ) start [2025-04-20 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948230', 'tblTempVendorCDR_20' ) end [2025-04-20 05:47:18] Production.INFO: ProcessCDR(1,14948230,1,1,2) [2025-04-20 05:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948230', 'tblTempUsageDetail_20' ) start [2025-04-20 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948230', 'tblTempUsageDetail_20' ) end [2025-04-20 05:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 05:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 05:47:21] Production.INFO: ==16530== Releasing lock... [2025-04-20 05:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 05:47:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-20 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 02:48:05 [end_date_ymd] => 2025-04-20 05:48:05 [RateCDR] => 1 ) [2025-04-20 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-20 02:48:05' and `end` < '2025-04-20 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-20 05:48:17] Production.INFO: count ==260 [2025-04-20 05:48:17] Production.ERROR: pbx CDR StartTime 2025-04-20 02:48:05 - End Time 2025-04-20 05:48:05 [2025-04-20 05:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948235', 'tblTempUsageDetail_20' ) start [2025-04-20 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948235', 'tblTempUsageDetail_20' ) end [2025-04-20 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948235', 'tblTempVendorCDR_20' ) start [2025-04-20 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948235', 'tblTempVendorCDR_20' ) end [2025-04-20 05:48:17] Production.INFO: ProcessCDR(1,14948235,1,1,2) [2025-04-20 05:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948235', 'tblTempUsageDetail_20' ) start [2025-04-20 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948235', 'tblTempUsageDetail_20' ) end [2025-04-20 05:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 05:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 05:48:21] Production.INFO: ==16640== Releasing lock... [2025-04-20 05:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 05:48:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-20 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 02:49:05 [end_date_ymd] => 2025-04-20 05:49:05 [RateCDR] => 1 ) [2025-04-20 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-20 02:49:05' and `end` < '2025-04-20 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-20 05:49:18] Production.INFO: count ==259 [2025-04-20 05:49:18] Production.ERROR: pbx CDR StartTime 2025-04-20 02:49:05 - End Time 2025-04-20 05:49:05 [2025-04-20 05:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948240', 'tblTempUsageDetail_20' ) start [2025-04-20 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948240', 'tblTempUsageDetail_20' ) end [2025-04-20 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948240', 'tblTempVendorCDR_20' ) start [2025-04-20 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948240', 'tblTempVendorCDR_20' ) end [2025-04-20 05:49:18] Production.INFO: ProcessCDR(1,14948240,1,1,2) [2025-04-20 05:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948240', 'tblTempUsageDetail_20' ) start [2025-04-20 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948240', 'tblTempUsageDetail_20' ) end [2025-04-20 05:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 05:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 05:49:21] Production.INFO: ==16721== Releasing lock... [2025-04-20 05:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 05:49:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-20 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 02:50:06 [end_date_ymd] => 2025-04-20 05:50:06 [RateCDR] => 1 ) [2025-04-20 05:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 02:50:06' and `end` < '2025-04-20 05:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 05:50:18] Production.INFO: count ==248 [2025-04-20 05:50:18] Production.ERROR: pbx CDR StartTime 2025-04-20 02:50:06 - End Time 2025-04-20 05:50:06 [2025-04-20 05:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948246', 'tblTempUsageDetail_20' ) start [2025-04-20 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948246', 'tblTempUsageDetail_20' ) end [2025-04-20 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948246', 'tblTempVendorCDR_20' ) start [2025-04-20 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948246', 'tblTempVendorCDR_20' ) end [2025-04-20 05:50:18] Production.INFO: ProcessCDR(1,14948246,1,1,2) [2025-04-20 05:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948246', 'tblTempUsageDetail_20' ) start [2025-04-20 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948246', 'tblTempUsageDetail_20' ) end [2025-04-20 05:50:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 05:50:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 05:50:21] Production.INFO: ==16796== Releasing lock... [2025-04-20 05:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 05:50:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-20 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 02:51:05 [end_date_ymd] => 2025-04-20 05:51:05 [RateCDR] => 1 ) [2025-04-20 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-20 02:51:05' and `end` < '2025-04-20 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-20 05:51:19] Production.INFO: count ==228 [2025-04-20 05:51:19] Production.ERROR: pbx CDR StartTime 2025-04-20 02:51:05 - End Time 2025-04-20 05:51:05 [2025-04-20 05:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 05:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948251', 'tblTempUsageDetail_20' ) start [2025-04-20 05:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948251', 'tblTempUsageDetail_20' ) end [2025-04-20 05:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948251', 'tblTempVendorCDR_20' ) start [2025-04-20 05:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948251', 'tblTempVendorCDR_20' ) end [2025-04-20 05:51:19] Production.INFO: ProcessCDR(1,14948251,1,1,2) [2025-04-20 05:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948251', 'tblTempUsageDetail_20' ) start [2025-04-20 05:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948251', 'tblTempUsageDetail_20' ) end [2025-04-20 05:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 05:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 05:51:22] Production.INFO: ==16871== Releasing lock... [2025-04-20 05:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 05:51:22] Production.INFO: 30 MB #Memory Used# [2025-04-20 05:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 02:52:06 [end_date_ymd] => 2025-04-20 05:52:06 [RateCDR] => 1 ) [2025-04-20 05:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 02:52:06' and `end` < '2025-04-20 05:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 05:52:18] Production.INFO: count ==224 [2025-04-20 05:52:18] Production.ERROR: pbx CDR StartTime 2025-04-20 02:52:06 - End Time 2025-04-20 05:52:06 [2025-04-20 05:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948256', 'tblTempUsageDetail_20' ) start [2025-04-20 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948256', 'tblTempUsageDetail_20' ) end [2025-04-20 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948256', 'tblTempVendorCDR_20' ) start [2025-04-20 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948256', 'tblTempVendorCDR_20' ) end [2025-04-20 05:52:18] Production.INFO: ProcessCDR(1,14948256,1,1,2) [2025-04-20 05:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948256', 'tblTempUsageDetail_20' ) start [2025-04-20 05:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948256', 'tblTempUsageDetail_20' ) end [2025-04-20 05:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 05:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 05:52:22] Production.INFO: ==16946== Releasing lock... [2025-04-20 05:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 05:52:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-20 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 02:53:05 [end_date_ymd] => 2025-04-20 05:53:05 [RateCDR] => 1 ) [2025-04-20 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-20 02:53:05' and `end` < '2025-04-20 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-20 05:53:17] Production.INFO: count ==224 [2025-04-20 05:53:17] Production.ERROR: pbx CDR StartTime 2025-04-20 02:53:05 - End Time 2025-04-20 05:53:05 [2025-04-20 05:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948261', 'tblTempUsageDetail_20' ) start [2025-04-20 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948261', 'tblTempUsageDetail_20' ) end [2025-04-20 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948261', 'tblTempVendorCDR_20' ) start [2025-04-20 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948261', 'tblTempVendorCDR_20' ) end [2025-04-20 05:53:17] Production.INFO: ProcessCDR(1,14948261,1,1,2) [2025-04-20 05:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948261', 'tblTempUsageDetail_20' ) start [2025-04-20 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948261', 'tblTempUsageDetail_20' ) end [2025-04-20 05:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 05:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 05:53:21] Production.INFO: ==17018== Releasing lock... [2025-04-20 05:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 05:53:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-20 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 02:54:05 [end_date_ymd] => 2025-04-20 05:54:05 [RateCDR] => 1 ) [2025-04-20 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-20 02:54:05' and `end` < '2025-04-20 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-20 05:54:18] Production.INFO: count ==224 [2025-04-20 05:54:18] Production.ERROR: pbx CDR StartTime 2025-04-20 02:54:05 - End Time 2025-04-20 05:54:05 [2025-04-20 05:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948266', 'tblTempUsageDetail_20' ) start [2025-04-20 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948266', 'tblTempUsageDetail_20' ) end [2025-04-20 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948266', 'tblTempVendorCDR_20' ) start [2025-04-20 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948266', 'tblTempVendorCDR_20' ) end [2025-04-20 05:54:18] Production.INFO: ProcessCDR(1,14948266,1,1,2) [2025-04-20 05:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948266', 'tblTempUsageDetail_20' ) start [2025-04-20 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948266', 'tblTempUsageDetail_20' ) end [2025-04-20 05:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 05:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 05:54:21] Production.INFO: ==17091== Releasing lock... [2025-04-20 05:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 05:54:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-20 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 02:55:05 [end_date_ymd] => 2025-04-20 05:55:05 [RateCDR] => 1 ) [2025-04-20 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-20 02:55:05' and `end` < '2025-04-20 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-20 05:55:18] Production.INFO: count ==224 [2025-04-20 05:55:18] Production.ERROR: pbx CDR StartTime 2025-04-20 02:55:05 - End Time 2025-04-20 05:55:05 [2025-04-20 05:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948271', 'tblTempUsageDetail_20' ) start [2025-04-20 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948271', 'tblTempUsageDetail_20' ) end [2025-04-20 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948271', 'tblTempVendorCDR_20' ) start [2025-04-20 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948271', 'tblTempVendorCDR_20' ) end [2025-04-20 05:55:18] Production.INFO: ProcessCDR(1,14948271,1,1,2) [2025-04-20 05:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948271', 'tblTempUsageDetail_20' ) start [2025-04-20 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948271', 'tblTempUsageDetail_20' ) end [2025-04-20 05:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 05:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 05:55:21] Production.INFO: ==17163== Releasing lock... [2025-04-20 05:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 05:55:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-20 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 02:56:05 [end_date_ymd] => 2025-04-20 05:56:05 [RateCDR] => 1 ) [2025-04-20 05:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 02:56:05' and `end` < '2025-04-20 05:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 05:56:18] Production.INFO: count ==223 [2025-04-20 05:56:18] Production.ERROR: pbx CDR StartTime 2025-04-20 02:56:05 - End Time 2025-04-20 05:56:05 [2025-04-20 05:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948276', 'tblTempUsageDetail_20' ) start [2025-04-20 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948276', 'tblTempUsageDetail_20' ) end [2025-04-20 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948276', 'tblTempVendorCDR_20' ) start [2025-04-20 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948276', 'tblTempVendorCDR_20' ) end [2025-04-20 05:56:18] Production.INFO: ProcessCDR(1,14948276,1,1,2) [2025-04-20 05:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948276', 'tblTempUsageDetail_20' ) start [2025-04-20 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948276', 'tblTempUsageDetail_20' ) end [2025-04-20 05:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 05:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 05:56:21] Production.INFO: ==17234== Releasing lock... [2025-04-20 05:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 05:56:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-20 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 02:57:05 [end_date_ymd] => 2025-04-20 05:57:05 [RateCDR] => 1 ) [2025-04-20 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-20 02:57:05' and `end` < '2025-04-20 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-20 05:57:17] Production.INFO: count ==221 [2025-04-20 05:57:17] Production.ERROR: pbx CDR StartTime 2025-04-20 02:57:05 - End Time 2025-04-20 05:57:05 [2025-04-20 05:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948281', 'tblTempUsageDetail_20' ) start [2025-04-20 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948281', 'tblTempUsageDetail_20' ) end [2025-04-20 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948281', 'tblTempVendorCDR_20' ) start [2025-04-20 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948281', 'tblTempVendorCDR_20' ) end [2025-04-20 05:57:17] Production.INFO: ProcessCDR(1,14948281,1,1,2) [2025-04-20 05:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948281', 'tblTempUsageDetail_20' ) start [2025-04-20 05:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948281', 'tblTempUsageDetail_20' ) end [2025-04-20 05:57:20] Production.ERROR: pbx prc_insertCDR start [2025-04-20 05:57:20] Production.ERROR: pbx prc_insertCDR end [2025-04-20 05:57:20] Production.INFO: ==17308== Releasing lock... [2025-04-20 05:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 05:57:20] Production.INFO: 29.75 MB #Memory Used# [2025-04-20 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 02:58:05 [end_date_ymd] => 2025-04-20 05:58:05 [RateCDR] => 1 ) [2025-04-20 05:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 02:58:05' and `end` < '2025-04-20 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-20 05:58:17] Production.INFO: count ==220 [2025-04-20 05:58:17] Production.ERROR: pbx CDR StartTime 2025-04-20 02:58:05 - End Time 2025-04-20 05:58:05 [2025-04-20 05:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948286', 'tblTempUsageDetail_20' ) start [2025-04-20 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948286', 'tblTempUsageDetail_20' ) end [2025-04-20 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948286', 'tblTempVendorCDR_20' ) start [2025-04-20 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948286', 'tblTempVendorCDR_20' ) end [2025-04-20 05:58:18] Production.INFO: ProcessCDR(1,14948286,1,1,2) [2025-04-20 05:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948286', 'tblTempUsageDetail_20' ) start [2025-04-20 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948286', 'tblTempUsageDetail_20' ) end [2025-04-20 05:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 05:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 05:58:21] Production.INFO: ==17381== Releasing lock... [2025-04-20 05:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 05:58:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-20 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 02:59:05 [end_date_ymd] => 2025-04-20 05:59:05 [RateCDR] => 1 ) [2025-04-20 05:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 02:59:05' and `end` < '2025-04-20 05:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 05:59:18] Production.INFO: count ==219 [2025-04-20 05:59:18] Production.ERROR: pbx CDR StartTime 2025-04-20 02:59:05 - End Time 2025-04-20 05:59:05 [2025-04-20 05:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948291', 'tblTempUsageDetail_20' ) start [2025-04-20 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948291', 'tblTempUsageDetail_20' ) end [2025-04-20 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948291', 'tblTempVendorCDR_20' ) start [2025-04-20 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948291', 'tblTempVendorCDR_20' ) end [2025-04-20 05:59:18] Production.INFO: ProcessCDR(1,14948291,1,1,2) [2025-04-20 05:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 05:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948291', 'tblTempUsageDetail_20' ) start [2025-04-20 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948291', 'tblTempUsageDetail_20' ) end [2025-04-20 05:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 05:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 05:59:21] Production.INFO: ==17451== Releasing lock... [2025-04-20 05:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 05:59:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-20 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 03:00:06 [end_date_ymd] => 2025-04-20 06:00:06 [RateCDR] => 1 ) [2025-04-20 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-20 03:00:06' and `end` < '2025-04-20 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-20 06:00:19] Production.INFO: count ==219 [2025-04-20 06:00:19] Production.ERROR: pbx CDR StartTime 2025-04-20 03:00:06 - End Time 2025-04-20 06:00:06 [2025-04-20 06:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948297', 'tblTempUsageDetail_20' ) start [2025-04-20 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948297', 'tblTempUsageDetail_20' ) end [2025-04-20 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948297', 'tblTempVendorCDR_20' ) start [2025-04-20 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948297', 'tblTempVendorCDR_20' ) end [2025-04-20 06:00:19] Production.INFO: ProcessCDR(1,14948297,1,1,2) [2025-04-20 06:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948297', 'tblTempUsageDetail_20' ) start [2025-04-20 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948297', 'tblTempUsageDetail_20' ) end [2025-04-20 06:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 06:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 06:00:22] Production.INFO: ==17527== Releasing lock... [2025-04-20 06:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 06:00:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-20 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 03:01:05 [end_date_ymd] => 2025-04-20 06:01:05 [RateCDR] => 1 ) [2025-04-20 06:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 03:01:05' and `end` < '2025-04-20 06:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 06:01:18] Production.INFO: count ==219 [2025-04-20 06:01:18] Production.ERROR: pbx CDR StartTime 2025-04-20 03:01:05 - End Time 2025-04-20 06:01:05 [2025-04-20 06:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948302', 'tblTempUsageDetail_20' ) start [2025-04-20 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948302', 'tblTempUsageDetail_20' ) end [2025-04-20 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948302', 'tblTempVendorCDR_20' ) start [2025-04-20 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948302', 'tblTempVendorCDR_20' ) end [2025-04-20 06:01:18] Production.INFO: ProcessCDR(1,14948302,1,1,2) [2025-04-20 06:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948302', 'tblTempUsageDetail_20' ) start [2025-04-20 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948302', 'tblTempUsageDetail_20' ) end [2025-04-20 06:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 06:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 06:01:21] Production.INFO: ==17620== Releasing lock... [2025-04-20 06:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 06:01:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-20 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 03:02:05 [end_date_ymd] => 2025-04-20 06:02:05 [RateCDR] => 1 ) [2025-04-20 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-20 03:02:05' and `end` < '2025-04-20 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-20 06:02:18] Production.INFO: count ==216 [2025-04-20 06:02:18] Production.ERROR: pbx CDR StartTime 2025-04-20 03:02:05 - End Time 2025-04-20 06:02:05 [2025-04-20 06:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948307', 'tblTempUsageDetail_20' ) start [2025-04-20 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948307', 'tblTempUsageDetail_20' ) end [2025-04-20 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948307', 'tblTempVendorCDR_20' ) start [2025-04-20 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948307', 'tblTempVendorCDR_20' ) end [2025-04-20 06:02:18] Production.INFO: ProcessCDR(1,14948307,1,1,2) [2025-04-20 06:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948307', 'tblTempUsageDetail_20' ) start [2025-04-20 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948307', 'tblTempUsageDetail_20' ) end [2025-04-20 06:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 06:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 06:02:21] Production.INFO: ==17690== Releasing lock... [2025-04-20 06:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 06:02:21] Production.INFO: 30 MB #Memory Used# [2025-04-20 06:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 03:03:06 [end_date_ymd] => 2025-04-20 06:03:06 [RateCDR] => 1 ) [2025-04-20 06:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 03:03:06' and `end` < '2025-04-20 06:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 06:03:18] Production.INFO: count ==218 [2025-04-20 06:03:18] Production.ERROR: pbx CDR StartTime 2025-04-20 03:03:06 - End Time 2025-04-20 06:03:06 [2025-04-20 06:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948312', 'tblTempUsageDetail_20' ) start [2025-04-20 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948312', 'tblTempUsageDetail_20' ) end [2025-04-20 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948312', 'tblTempVendorCDR_20' ) start [2025-04-20 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948312', 'tblTempVendorCDR_20' ) end [2025-04-20 06:03:18] Production.INFO: ProcessCDR(1,14948312,1,1,2) [2025-04-20 06:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948312', 'tblTempUsageDetail_20' ) start [2025-04-20 06:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948312', 'tblTempUsageDetail_20' ) end [2025-04-20 06:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 06:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 06:03:23] Production.INFO: ==17803== Releasing lock... [2025-04-20 06:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 06:03:23] Production.INFO: 29.75 MB #Memory Used# [2025-04-20 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 03:04:05 [end_date_ymd] => 2025-04-20 06:04:05 [RateCDR] => 1 ) [2025-04-20 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-20 03:04:05' and `end` < '2025-04-20 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-20 06:04:17] Production.INFO: count ==218 [2025-04-20 06:04:17] Production.ERROR: pbx CDR StartTime 2025-04-20 03:04:05 - End Time 2025-04-20 06:04:05 [2025-04-20 06:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948317', 'tblTempUsageDetail_20' ) start [2025-04-20 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948317', 'tblTempUsageDetail_20' ) end [2025-04-20 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948317', 'tblTempVendorCDR_20' ) start [2025-04-20 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948317', 'tblTempVendorCDR_20' ) end [2025-04-20 06:04:17] Production.INFO: ProcessCDR(1,14948317,1,1,2) [2025-04-20 06:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948317', 'tblTempUsageDetail_20' ) start [2025-04-20 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948317', 'tblTempUsageDetail_20' ) end [2025-04-20 06:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 06:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 06:04:21] Production.INFO: ==17878== Releasing lock... [2025-04-20 06:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 06:04:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-20 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 03:05:05 [end_date_ymd] => 2025-04-20 06:05:05 [RateCDR] => 1 ) [2025-04-20 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-20 03:05:05' and `end` < '2025-04-20 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-20 06:05:18] Production.INFO: count ==218 [2025-04-20 06:05:18] Production.ERROR: pbx CDR StartTime 2025-04-20 03:05:05 - End Time 2025-04-20 06:05:05 [2025-04-20 06:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948322', 'tblTempUsageDetail_20' ) start [2025-04-20 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948322', 'tblTempUsageDetail_20' ) end [2025-04-20 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948322', 'tblTempVendorCDR_20' ) start [2025-04-20 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948322', 'tblTempVendorCDR_20' ) end [2025-04-20 06:05:18] Production.INFO: ProcessCDR(1,14948322,1,1,2) [2025-04-20 06:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948322', 'tblTempUsageDetail_20' ) start [2025-04-20 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948322', 'tblTempUsageDetail_20' ) end [2025-04-20 06:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 06:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 06:05:21] Production.INFO: ==17956== Releasing lock... [2025-04-20 06:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 06:05:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-20 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 03:06:05 [end_date_ymd] => 2025-04-20 06:06:05 [RateCDR] => 1 ) [2025-04-20 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-20 03:06:05' and `end` < '2025-04-20 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-20 06:06:17] Production.INFO: count ==217 [2025-04-20 06:06:17] Production.ERROR: pbx CDR StartTime 2025-04-20 03:06:05 - End Time 2025-04-20 06:06:05 [2025-04-20 06:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948327', 'tblTempUsageDetail_20' ) start [2025-04-20 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948327', 'tblTempUsageDetail_20' ) end [2025-04-20 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948327', 'tblTempVendorCDR_20' ) start [2025-04-20 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948327', 'tblTempVendorCDR_20' ) end [2025-04-20 06:06:17] Production.INFO: ProcessCDR(1,14948327,1,1,2) [2025-04-20 06:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948327', 'tblTempUsageDetail_20' ) start [2025-04-20 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948327', 'tblTempUsageDetail_20' ) end [2025-04-20 06:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 06:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 06:06:21] Production.INFO: ==18028== Releasing lock... [2025-04-20 06:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 06:06:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-20 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 03:07:05 [end_date_ymd] => 2025-04-20 06:07:05 [RateCDR] => 1 ) [2025-04-20 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-20 03:07:05' and `end` < '2025-04-20 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-20 06:07:17] Production.INFO: count ==217 [2025-04-20 06:07:18] Production.ERROR: pbx CDR StartTime 2025-04-20 03:07:05 - End Time 2025-04-20 06:07:05 [2025-04-20 06:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948332', 'tblTempUsageDetail_20' ) start [2025-04-20 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948332', 'tblTempUsageDetail_20' ) end [2025-04-20 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948332', 'tblTempVendorCDR_20' ) start [2025-04-20 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948332', 'tblTempVendorCDR_20' ) end [2025-04-20 06:07:18] Production.INFO: ProcessCDR(1,14948332,1,1,2) [2025-04-20 06:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948332', 'tblTempUsageDetail_20' ) start [2025-04-20 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948332', 'tblTempUsageDetail_20' ) end [2025-04-20 06:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 06:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 06:07:21] Production.INFO: ==18101== Releasing lock... [2025-04-20 06:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 06:07:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-20 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 03:08:05 [end_date_ymd] => 2025-04-20 06:08:05 [RateCDR] => 1 ) [2025-04-20 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-20 03:08:05' and `end` < '2025-04-20 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-20 06:08:18] Production.INFO: count ==217 [2025-04-20 06:08:18] Production.ERROR: pbx CDR StartTime 2025-04-20 03:08:05 - End Time 2025-04-20 06:08:05 [2025-04-20 06:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948337', 'tblTempUsageDetail_20' ) start [2025-04-20 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948337', 'tblTempUsageDetail_20' ) end [2025-04-20 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948337', 'tblTempVendorCDR_20' ) start [2025-04-20 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948337', 'tblTempVendorCDR_20' ) end [2025-04-20 06:08:18] Production.INFO: ProcessCDR(1,14948337,1,1,2) [2025-04-20 06:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948337', 'tblTempUsageDetail_20' ) start [2025-04-20 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948337', 'tblTempUsageDetail_20' ) end [2025-04-20 06:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 06:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 06:08:21] Production.INFO: ==18174== Releasing lock... [2025-04-20 06:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 06:08:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-20 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 03:09:05 [end_date_ymd] => 2025-04-20 06:09:05 [RateCDR] => 1 ) [2025-04-20 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-20 03:09:05' and `end` < '2025-04-20 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-20 06:09:17] Production.INFO: count ==217 [2025-04-20 06:09:17] Production.ERROR: pbx CDR StartTime 2025-04-20 03:09:05 - End Time 2025-04-20 06:09:05 [2025-04-20 06:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948342', 'tblTempUsageDetail_20' ) start [2025-04-20 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948342', 'tblTempUsageDetail_20' ) end [2025-04-20 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948342', 'tblTempVendorCDR_20' ) start [2025-04-20 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948342', 'tblTempVendorCDR_20' ) end [2025-04-20 06:09:17] Production.INFO: ProcessCDR(1,14948342,1,1,2) [2025-04-20 06:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948342', 'tblTempUsageDetail_20' ) start [2025-04-20 06:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948342', 'tblTempUsageDetail_20' ) end [2025-04-20 06:09:20] Production.ERROR: pbx prc_insertCDR start [2025-04-20 06:09:20] Production.ERROR: pbx prc_insertCDR end [2025-04-20 06:09:20] Production.INFO: ==18247== Releasing lock... [2025-04-20 06:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 06:09:20] Production.INFO: 29.75 MB #Memory Used# [2025-04-20 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 03:10:06 [end_date_ymd] => 2025-04-20 06:10:06 [RateCDR] => 1 ) [2025-04-20 06:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 03:10:06' and `end` < '2025-04-20 06:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 06:10:18] Production.INFO: count ==209 [2025-04-20 06:10:18] Production.ERROR: pbx CDR StartTime 2025-04-20 03:10:06 - End Time 2025-04-20 06:10:06 [2025-04-20 06:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948347', 'tblTempUsageDetail_20' ) start [2025-04-20 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948347', 'tblTempUsageDetail_20' ) end [2025-04-20 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948347', 'tblTempVendorCDR_20' ) start [2025-04-20 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948347', 'tblTempVendorCDR_20' ) end [2025-04-20 06:10:18] Production.INFO: ProcessCDR(1,14948347,1,1,2) [2025-04-20 06:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948347', 'tblTempUsageDetail_20' ) start [2025-04-20 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948347', 'tblTempUsageDetail_20' ) end [2025-04-20 06:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 06:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 06:10:22] Production.INFO: ==18321== Releasing lock... [2025-04-20 06:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 06:10:22] Production.INFO: 30 MB #Memory Used# [2025-04-20 06:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 03:11:04 [end_date_ymd] => 2025-04-20 06:11:04 [RateCDR] => 1 ) [2025-04-20 06: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-20 03:11:04' and `end` < '2025-04-20 06: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-20 06:11:17] Production.INFO: count ==207 [2025-04-20 06:11:17] Production.ERROR: pbx CDR StartTime 2025-04-20 03:11:04 - End Time 2025-04-20 06:11:04 [2025-04-20 06:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948353', 'tblTempUsageDetail_20' ) start [2025-04-20 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948353', 'tblTempUsageDetail_20' ) end [2025-04-20 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948353', 'tblTempVendorCDR_20' ) start [2025-04-20 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948353', 'tblTempVendorCDR_20' ) end [2025-04-20 06:11:17] Production.INFO: ProcessCDR(1,14948353,1,1,2) [2025-04-20 06:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948353', 'tblTempUsageDetail_20' ) start [2025-04-20 06:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948353', 'tblTempUsageDetail_20' ) end [2025-04-20 06:11:20] Production.ERROR: pbx prc_insertCDR start [2025-04-20 06:11:20] Production.ERROR: pbx prc_insertCDR end [2025-04-20 06:11:20] Production.INFO: ==18398== Releasing lock... [2025-04-20 06:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 06:11:20] Production.INFO: 29.75 MB #Memory Used# [2025-04-20 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 03:12:05 [end_date_ymd] => 2025-04-20 06:12:05 [RateCDR] => 1 ) [2025-04-20 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-20 03:12:05' and `end` < '2025-04-20 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-20 06:12:18] Production.INFO: count ==206 [2025-04-20 06:12:18] Production.ERROR: pbx CDR StartTime 2025-04-20 03:12:05 - End Time 2025-04-20 06:12:05 [2025-04-20 06:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948358', 'tblTempUsageDetail_20' ) start [2025-04-20 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948358', 'tblTempUsageDetail_20' ) end [2025-04-20 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948358', 'tblTempVendorCDR_20' ) start [2025-04-20 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948358', 'tblTempVendorCDR_20' ) end [2025-04-20 06:12:18] Production.INFO: ProcessCDR(1,14948358,1,1,2) [2025-04-20 06:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948358', 'tblTempUsageDetail_20' ) start [2025-04-20 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948358', 'tblTempUsageDetail_20' ) end [2025-04-20 06:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 06:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 06:12:21] Production.INFO: ==18469== Releasing lock... [2025-04-20 06:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 06:12:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-20 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 03:13:05 [end_date_ymd] => 2025-04-20 06:13:05 [RateCDR] => 1 ) [2025-04-20 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-20 03:13:05' and `end` < '2025-04-20 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-20 06:13:17] Production.INFO: count ==204 [2025-04-20 06:13:18] Production.ERROR: pbx CDR StartTime 2025-04-20 03:13:05 - End Time 2025-04-20 06:13:05 [2025-04-20 06:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948363', 'tblTempUsageDetail_20' ) start [2025-04-20 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948363', 'tblTempUsageDetail_20' ) end [2025-04-20 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948363', 'tblTempVendorCDR_20' ) start [2025-04-20 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948363', 'tblTempVendorCDR_20' ) end [2025-04-20 06:13:18] Production.INFO: ProcessCDR(1,14948363,1,1,2) [2025-04-20 06:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948363', 'tblTempUsageDetail_20' ) start [2025-04-20 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948363', 'tblTempUsageDetail_20' ) end [2025-04-20 06:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 06:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 06:13:21] Production.INFO: ==18541== Releasing lock... [2025-04-20 06:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 06:13:21] Production.INFO: 30 MB #Memory Used# [2025-04-20 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 03:14:05 [end_date_ymd] => 2025-04-20 06:14:05 [RateCDR] => 1 ) [2025-04-20 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-20 03:14:05' and `end` < '2025-04-20 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-20 06:14:18] Production.INFO: count ==204 [2025-04-20 06:14:18] Production.ERROR: pbx CDR StartTime 2025-04-20 03:14:05 - End Time 2025-04-20 06:14:05 [2025-04-20 06:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948368', 'tblTempUsageDetail_20' ) start [2025-04-20 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948368', 'tblTempUsageDetail_20' ) end [2025-04-20 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948368', 'tblTempVendorCDR_20' ) start [2025-04-20 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948368', 'tblTempVendorCDR_20' ) end [2025-04-20 06:14:18] Production.INFO: ProcessCDR(1,14948368,1,1,2) [2025-04-20 06:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948368', 'tblTempUsageDetail_20' ) start [2025-04-20 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948368', 'tblTempUsageDetail_20' ) end [2025-04-20 06:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 06:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 06:14:21] Production.INFO: ==18621== Releasing lock... [2025-04-20 06:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 06:14:21] Production.INFO: 30 MB #Memory Used# [2025-04-20 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 03:15:05 [end_date_ymd] => 2025-04-20 06:15:05 [RateCDR] => 1 ) [2025-04-20 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-20 03:15:05' and `end` < '2025-04-20 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-20 06:15:18] Production.INFO: count ==208 [2025-04-20 06:15:18] Production.ERROR: pbx CDR StartTime 2025-04-20 03:15:05 - End Time 2025-04-20 06:15:05 [2025-04-20 06:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948373', 'tblTempUsageDetail_20' ) start [2025-04-20 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948373', 'tblTempUsageDetail_20' ) end [2025-04-20 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948373', 'tblTempVendorCDR_20' ) start [2025-04-20 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948373', 'tblTempVendorCDR_20' ) end [2025-04-20 06:15:18] Production.INFO: ProcessCDR(1,14948373,1,1,2) [2025-04-20 06:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948373', 'tblTempUsageDetail_20' ) start [2025-04-20 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948373', 'tblTempUsageDetail_20' ) end [2025-04-20 06:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 06:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 06:15:21] Production.INFO: ==18692== Releasing lock... [2025-04-20 06:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 06:15:21] Production.INFO: 30 MB #Memory Used# [2025-04-20 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 03:16:05 [end_date_ymd] => 2025-04-20 06:16:05 [RateCDR] => 1 ) [2025-04-20 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-20 03:16:05' and `end` < '2025-04-20 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-20 06:16:17] Production.INFO: count ==209 [2025-04-20 06:16:17] Production.ERROR: pbx CDR StartTime 2025-04-20 03:16:05 - End Time 2025-04-20 06:16:05 [2025-04-20 06:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948378', 'tblTempUsageDetail_20' ) start [2025-04-20 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948378', 'tblTempUsageDetail_20' ) end [2025-04-20 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948378', 'tblTempVendorCDR_20' ) start [2025-04-20 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948378', 'tblTempVendorCDR_20' ) end [2025-04-20 06:16:17] Production.INFO: ProcessCDR(1,14948378,1,1,2) [2025-04-20 06:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948378', 'tblTempUsageDetail_20' ) start [2025-04-20 06:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948378', 'tblTempUsageDetail_20' ) end [2025-04-20 06:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 06:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 06:16:22] Production.INFO: ==18766== Releasing lock... [2025-04-20 06:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 06:16:22] Production.INFO: 30 MB #Memory Used# [2025-04-20 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 03:17:05 [end_date_ymd] => 2025-04-20 06:17:05 [RateCDR] => 1 ) [2025-04-20 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-20 03:17:05' and `end` < '2025-04-20 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-20 06:17:18] Production.INFO: count ==211 [2025-04-20 06:17:18] Production.ERROR: pbx CDR StartTime 2025-04-20 03:17:05 - End Time 2025-04-20 06:17:05 [2025-04-20 06:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948383', 'tblTempUsageDetail_20' ) start [2025-04-20 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948383', 'tblTempUsageDetail_20' ) end [2025-04-20 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948383', 'tblTempVendorCDR_20' ) start [2025-04-20 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948383', 'tblTempVendorCDR_20' ) end [2025-04-20 06:17:18] Production.INFO: ProcessCDR(1,14948383,1,1,2) [2025-04-20 06:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948383', 'tblTempUsageDetail_20' ) start [2025-04-20 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948383', 'tblTempUsageDetail_20' ) end [2025-04-20 06:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 06:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 06:17:21] Production.INFO: ==18841== Releasing lock... [2025-04-20 06:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 06:17:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-20 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 03:18:05 [end_date_ymd] => 2025-04-20 06:18:05 [RateCDR] => 1 ) [2025-04-20 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-20 03:18:05' and `end` < '2025-04-20 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-20 06:18:17] Production.INFO: count ==211 [2025-04-20 06:18:17] Production.ERROR: pbx CDR StartTime 2025-04-20 03:18:05 - End Time 2025-04-20 06:18:05 [2025-04-20 06:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948388', 'tblTempUsageDetail_20' ) start [2025-04-20 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948388', 'tblTempUsageDetail_20' ) end [2025-04-20 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948388', 'tblTempVendorCDR_20' ) start [2025-04-20 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948388', 'tblTempVendorCDR_20' ) end [2025-04-20 06:18:17] Production.INFO: ProcessCDR(1,14948388,1,1,2) [2025-04-20 06:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948388', 'tblTempUsageDetail_20' ) start [2025-04-20 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948388', 'tblTempUsageDetail_20' ) end [2025-04-20 06:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 06:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 06:18:21] Production.INFO: ==18949== Releasing lock... [2025-04-20 06:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 06:18:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-20 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 03:19:05 [end_date_ymd] => 2025-04-20 06:19:05 [RateCDR] => 1 ) [2025-04-20 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-20 03:19:05' and `end` < '2025-04-20 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-20 06:19:18] Production.INFO: count ==209 [2025-04-20 06:19:18] Production.ERROR: pbx CDR StartTime 2025-04-20 03:19:05 - End Time 2025-04-20 06:19:05 [2025-04-20 06:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948393', 'tblTempUsageDetail_20' ) start [2025-04-20 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948393', 'tblTempUsageDetail_20' ) end [2025-04-20 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948393', 'tblTempVendorCDR_20' ) start [2025-04-20 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948393', 'tblTempVendorCDR_20' ) end [2025-04-20 06:19:18] Production.INFO: ProcessCDR(1,14948393,1,1,2) [2025-04-20 06:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948393', 'tblTempUsageDetail_20' ) start [2025-04-20 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948393', 'tblTempUsageDetail_20' ) end [2025-04-20 06:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 06:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 06:19:21] Production.INFO: ==19022== Releasing lock... [2025-04-20 06:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 06:19:21] Production.INFO: 30 MB #Memory Used# [2025-04-20 06:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 03:20:05 [end_date_ymd] => 2025-04-20 06:20:05 [RateCDR] => 1 ) [2025-04-20 06: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-20 03:20:05' and `end` < '2025-04-20 06: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-20 06:20:18] Production.INFO: count ==200 [2025-04-20 06:20:18] Production.ERROR: pbx CDR StartTime 2025-04-20 03:20:05 - End Time 2025-04-20 06:20:05 [2025-04-20 06:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948398', 'tblTempUsageDetail_20' ) start [2025-04-20 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948398', 'tblTempUsageDetail_20' ) end [2025-04-20 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948398', 'tblTempVendorCDR_20' ) start [2025-04-20 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948398', 'tblTempVendorCDR_20' ) end [2025-04-20 06:20:18] Production.INFO: ProcessCDR(1,14948398,1,1,2) [2025-04-20 06:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948398', 'tblTempUsageDetail_20' ) start [2025-04-20 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948398', 'tblTempUsageDetail_20' ) end [2025-04-20 06:20:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 06:20:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 06:20:21] Production.INFO: ==19093== Releasing lock... [2025-04-20 06:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 06:20:21] Production.INFO: 30 MB #Memory Used# [2025-04-20 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 03:21:05 [end_date_ymd] => 2025-04-20 06:21:05 [RateCDR] => 1 ) [2025-04-20 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-20 03:21:05' and `end` < '2025-04-20 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-20 06:21:17] Production.INFO: count ==199 [2025-04-20 06:21:17] Production.ERROR: pbx CDR StartTime 2025-04-20 03:21:05 - End Time 2025-04-20 06:21:05 [2025-04-20 06:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948404', 'tblTempUsageDetail_20' ) start [2025-04-20 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948404', 'tblTempUsageDetail_20' ) end [2025-04-20 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948404', 'tblTempVendorCDR_20' ) start [2025-04-20 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948404', 'tblTempVendorCDR_20' ) end [2025-04-20 06:21:17] Production.INFO: ProcessCDR(1,14948404,1,1,2) [2025-04-20 06:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948404', 'tblTempUsageDetail_20' ) start [2025-04-20 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948404', 'tblTempUsageDetail_20' ) end [2025-04-20 06:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 06:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 06:21:21] Production.INFO: ==19175== Releasing lock... [2025-04-20 06:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 06:21:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-20 06:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 03:22:06 [end_date_ymd] => 2025-04-20 06:22:06 [RateCDR] => 1 ) [2025-04-20 06: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-20 03:22:06' and `end` < '2025-04-20 06: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-20 06:22:18] Production.INFO: count ==198 [2025-04-20 06:22:18] Production.ERROR: pbx CDR StartTime 2025-04-20 03:22:06 - End Time 2025-04-20 06:22:06 [2025-04-20 06:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948409', 'tblTempUsageDetail_20' ) start [2025-04-20 06:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948409', 'tblTempUsageDetail_20' ) end [2025-04-20 06:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948409', 'tblTempVendorCDR_20' ) start [2025-04-20 06:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948409', 'tblTempVendorCDR_20' ) end [2025-04-20 06:22:19] Production.INFO: ProcessCDR(1,14948409,1,1,2) [2025-04-20 06:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948409', 'tblTempUsageDetail_20' ) start [2025-04-20 06:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948409', 'tblTempUsageDetail_20' ) end [2025-04-20 06:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 06:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 06:22:22] Production.INFO: ==19248== Releasing lock... [2025-04-20 06:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 06:22:22] Production.INFO: 30 MB #Memory Used# [2025-04-20 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 03:23:05 [end_date_ymd] => 2025-04-20 06:23:05 [RateCDR] => 1 ) [2025-04-20 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-20 03:23:05' and `end` < '2025-04-20 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-20 06:23:17] Production.INFO: count ==198 [2025-04-20 06:23:17] Production.ERROR: pbx CDR StartTime 2025-04-20 03:23:05 - End Time 2025-04-20 06:23:05 [2025-04-20 06:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948414', 'tblTempUsageDetail_20' ) start [2025-04-20 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948414', 'tblTempUsageDetail_20' ) end [2025-04-20 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948414', 'tblTempVendorCDR_20' ) start [2025-04-20 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948414', 'tblTempVendorCDR_20' ) end [2025-04-20 06:23:18] Production.INFO: ProcessCDR(1,14948414,1,1,2) [2025-04-20 06:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948414', 'tblTempUsageDetail_20' ) start [2025-04-20 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948414', 'tblTempUsageDetail_20' ) end [2025-04-20 06:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 06:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 06:23:21] Production.INFO: ==19320== Releasing lock... [2025-04-20 06:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 06:23:21] Production.INFO: 30 MB #Memory Used# [2025-04-20 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 03:24:05 [end_date_ymd] => 2025-04-20 06:24:05 [RateCDR] => 1 ) [2025-04-20 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-20 03:24:05' and `end` < '2025-04-20 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-20 06:24:18] Production.INFO: count ==198 [2025-04-20 06:24:18] Production.ERROR: pbx CDR StartTime 2025-04-20 03:24:05 - End Time 2025-04-20 06:24:05 [2025-04-20 06:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948419', 'tblTempUsageDetail_20' ) start [2025-04-20 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948419', 'tblTempUsageDetail_20' ) end [2025-04-20 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948419', 'tblTempVendorCDR_20' ) start [2025-04-20 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948419', 'tblTempVendorCDR_20' ) end [2025-04-20 06:24:18] Production.INFO: ProcessCDR(1,14948419,1,1,2) [2025-04-20 06:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948419', 'tblTempUsageDetail_20' ) start [2025-04-20 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948419', 'tblTempUsageDetail_20' ) end [2025-04-20 06:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 06:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 06:24:21] Production.INFO: ==19394== Releasing lock... [2025-04-20 06:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 06:24:21] Production.INFO: 30 MB #Memory Used# [2025-04-20 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 03:25:05 [end_date_ymd] => 2025-04-20 06:25:05 [RateCDR] => 1 ) [2025-04-20 06:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 03:25:05' and `end` < '2025-04-20 06:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 06:25:18] Production.INFO: count ==198 [2025-04-20 06:25:18] Production.ERROR: pbx CDR StartTime 2025-04-20 03:25:05 - End Time 2025-04-20 06:25:05 [2025-04-20 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948424', 'tblTempUsageDetail_20' ) start [2025-04-20 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948424', 'tblTempUsageDetail_20' ) end [2025-04-20 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948424', 'tblTempVendorCDR_20' ) start [2025-04-20 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948424', 'tblTempVendorCDR_20' ) end [2025-04-20 06:25:18] Production.INFO: ProcessCDR(1,14948424,1,1,2) [2025-04-20 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948424', 'tblTempUsageDetail_20' ) start [2025-04-20 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948424', 'tblTempUsageDetail_20' ) end [2025-04-20 06:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 06:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 06:25:21] Production.INFO: ==19468== Releasing lock... [2025-04-20 06:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 06:25:21] Production.INFO: 30 MB #Memory Used# [2025-04-20 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 03:26:05 [end_date_ymd] => 2025-04-20 06:26:05 [RateCDR] => 1 ) [2025-04-20 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-20 03:26:05' and `end` < '2025-04-20 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-20 06:26:18] Production.INFO: count ==198 [2025-04-20 06:26:18] Production.ERROR: pbx CDR StartTime 2025-04-20 03:26:05 - End Time 2025-04-20 06:26:05 [2025-04-20 06:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948429', 'tblTempUsageDetail_20' ) start [2025-04-20 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948429', 'tblTempUsageDetail_20' ) end [2025-04-20 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948429', 'tblTempVendorCDR_20' ) start [2025-04-20 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948429', 'tblTempVendorCDR_20' ) end [2025-04-20 06:26:18] Production.INFO: ProcessCDR(1,14948429,1,1,2) [2025-04-20 06:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948429', 'tblTempUsageDetail_20' ) start [2025-04-20 06:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948429', 'tblTempUsageDetail_20' ) end [2025-04-20 06:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 06:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 06:26:22] Production.INFO: ==19539== Releasing lock... [2025-04-20 06:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 06:26:22] Production.INFO: 30 MB #Memory Used# [2025-04-20 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 03:27:05 [end_date_ymd] => 2025-04-20 06:27:05 [RateCDR] => 1 ) [2025-04-20 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-20 03:27:05' and `end` < '2025-04-20 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-20 06:27:18] Production.INFO: count ==197 [2025-04-20 06:27:18] Production.ERROR: pbx CDR StartTime 2025-04-20 03:27:05 - End Time 2025-04-20 06:27:05 [2025-04-20 06:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948434', 'tblTempUsageDetail_20' ) start [2025-04-20 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948434', 'tblTempUsageDetail_20' ) end [2025-04-20 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948434', 'tblTempVendorCDR_20' ) start [2025-04-20 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948434', 'tblTempVendorCDR_20' ) end [2025-04-20 06:27:18] Production.INFO: ProcessCDR(1,14948434,1,1,2) [2025-04-20 06:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948434', 'tblTempUsageDetail_20' ) start [2025-04-20 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948434', 'tblTempUsageDetail_20' ) end [2025-04-20 06:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 06:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 06:27:21] Production.INFO: ==19619== Releasing lock... [2025-04-20 06:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 06:27:21] Production.INFO: 30 MB #Memory Used# [2025-04-20 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 03:28:05 [end_date_ymd] => 2025-04-20 06:28:05 [RateCDR] => 1 ) [2025-04-20 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-20 03:28:05' and `end` < '2025-04-20 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-20 06:28:17] Production.INFO: count ==197 [2025-04-20 06:28:17] Production.ERROR: pbx CDR StartTime 2025-04-20 03:28:05 - End Time 2025-04-20 06:28:05 [2025-04-20 06:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948439', 'tblTempUsageDetail_20' ) start [2025-04-20 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948439', 'tblTempUsageDetail_20' ) end [2025-04-20 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948439', 'tblTempVendorCDR_20' ) start [2025-04-20 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948439', 'tblTempVendorCDR_20' ) end [2025-04-20 06:28:18] Production.INFO: ProcessCDR(1,14948439,1,1,2) [2025-04-20 06:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948439', 'tblTempUsageDetail_20' ) start [2025-04-20 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948439', 'tblTempUsageDetail_20' ) end [2025-04-20 06:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 06:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 06:28:21] Production.INFO: ==19700== Releasing lock... [2025-04-20 06:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 06:28:21] Production.INFO: 30 MB #Memory Used# [2025-04-20 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 03:29:05 [end_date_ymd] => 2025-04-20 06:29:05 [RateCDR] => 1 ) [2025-04-20 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-20 03:29:05' and `end` < '2025-04-20 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-20 06:29:18] Production.INFO: count ==196 [2025-04-20 06:29:18] Production.ERROR: pbx CDR StartTime 2025-04-20 03:29:05 - End Time 2025-04-20 06:29:05 [2025-04-20 06:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948444', 'tblTempUsageDetail_20' ) start [2025-04-20 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948444', 'tblTempUsageDetail_20' ) end [2025-04-20 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948444', 'tblTempVendorCDR_20' ) start [2025-04-20 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948444', 'tblTempVendorCDR_20' ) end [2025-04-20 06:29:18] Production.INFO: ProcessCDR(1,14948444,1,1,2) [2025-04-20 06:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948444', 'tblTempUsageDetail_20' ) start [2025-04-20 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948444', 'tblTempUsageDetail_20' ) end [2025-04-20 06:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 06:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 06:29:21] Production.INFO: ==19774== Releasing lock... [2025-04-20 06:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 06:29:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-20 06:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 03:30:06 [end_date_ymd] => 2025-04-20 06:30:06 [RateCDR] => 1 ) [2025-04-20 06:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 03:30:06' and `end` < '2025-04-20 06:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 06:30:19] Production.INFO: count ==190 [2025-04-20 06:30:19] Production.ERROR: pbx CDR StartTime 2025-04-20 03:30:06 - End Time 2025-04-20 06:30:06 [2025-04-20 06:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948450', 'tblTempUsageDetail_20' ) start [2025-04-20 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948450', 'tblTempUsageDetail_20' ) end [2025-04-20 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948450', 'tblTempVendorCDR_20' ) start [2025-04-20 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948450', 'tblTempVendorCDR_20' ) end [2025-04-20 06:30:19] Production.INFO: ProcessCDR(1,14948450,1,1,2) [2025-04-20 06:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948450', 'tblTempUsageDetail_20' ) start [2025-04-20 06:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948450', 'tblTempUsageDetail_20' ) end [2025-04-20 06:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 06:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 06:30:23] Production.INFO: ==19849== Releasing lock... [2025-04-20 06:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 06:30:23] Production.INFO: 29.75 MB #Memory Used# [2025-04-20 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 03:31:05 [end_date_ymd] => 2025-04-20 06:31:05 [RateCDR] => 1 ) [2025-04-20 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-20 03:31:05' and `end` < '2025-04-20 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-20 06:31:18] Production.INFO: count ==183 [2025-04-20 06:31:18] Production.ERROR: pbx CDR StartTime 2025-04-20 03:31:05 - End Time 2025-04-20 06:31:05 [2025-04-20 06:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948455', 'tblTempUsageDetail_20' ) start [2025-04-20 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948455', 'tblTempUsageDetail_20' ) end [2025-04-20 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948455', 'tblTempVendorCDR_20' ) start [2025-04-20 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948455', 'tblTempVendorCDR_20' ) end [2025-04-20 06:31:18] Production.INFO: ProcessCDR(1,14948455,1,1,2) [2025-04-20 06:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948455', 'tblTempUsageDetail_20' ) start [2025-04-20 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948455', 'tblTempUsageDetail_20' ) end [2025-04-20 06:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 06:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 06:31:21] Production.INFO: ==19922== Releasing lock... [2025-04-20 06:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 06:31:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-20 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 03:32:05 [end_date_ymd] => 2025-04-20 06:32:05 [RateCDR] => 1 ) [2025-04-20 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-20 03:32:05' and `end` < '2025-04-20 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-20 06:32:18] Production.INFO: count ==181 [2025-04-20 06:32:18] Production.ERROR: pbx CDR StartTime 2025-04-20 03:32:05 - End Time 2025-04-20 06:32:05 [2025-04-20 06:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948460', 'tblTempUsageDetail_20' ) start [2025-04-20 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948460', 'tblTempUsageDetail_20' ) end [2025-04-20 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948460', 'tblTempVendorCDR_20' ) start [2025-04-20 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948460', 'tblTempVendorCDR_20' ) end [2025-04-20 06:32:18] Production.INFO: ProcessCDR(1,14948460,1,1,2) [2025-04-20 06:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948460', 'tblTempUsageDetail_20' ) start [2025-04-20 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948460', 'tblTempUsageDetail_20' ) end [2025-04-20 06:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 06:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 06:32:21] Production.INFO: ==20000== Releasing lock... [2025-04-20 06:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 06:32:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-20 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 03:33:05 [end_date_ymd] => 2025-04-20 06:33:05 [RateCDR] => 1 ) [2025-04-20 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-20 03:33:05' and `end` < '2025-04-20 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-20 06:33:17] Production.INFO: count ==181 [2025-04-20 06:33:17] Production.ERROR: pbx CDR StartTime 2025-04-20 03:33:05 - End Time 2025-04-20 06:33:05 [2025-04-20 06:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948465', 'tblTempUsageDetail_20' ) start [2025-04-20 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948465', 'tblTempUsageDetail_20' ) end [2025-04-20 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948465', 'tblTempVendorCDR_20' ) start [2025-04-20 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948465', 'tblTempVendorCDR_20' ) end [2025-04-20 06:33:17] Production.INFO: ProcessCDR(1,14948465,1,1,2) [2025-04-20 06:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948465', 'tblTempUsageDetail_20' ) start [2025-04-20 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948465', 'tblTempUsageDetail_20' ) end [2025-04-20 06:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 06:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 06:33:21] Production.INFO: ==20077== Releasing lock... [2025-04-20 06:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 06:33:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-20 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 03:34:05 [end_date_ymd] => 2025-04-20 06:34:05 [RateCDR] => 1 ) [2025-04-20 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-20 03:34:05' and `end` < '2025-04-20 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-20 06:34:17] Production.INFO: count ==183 [2025-04-20 06:34:17] Production.ERROR: pbx CDR StartTime 2025-04-20 03:34:05 - End Time 2025-04-20 06:34:05 [2025-04-20 06:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948470', 'tblTempUsageDetail_20' ) start [2025-04-20 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948470', 'tblTempUsageDetail_20' ) end [2025-04-20 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948470', 'tblTempVendorCDR_20' ) start [2025-04-20 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948470', 'tblTempVendorCDR_20' ) end [2025-04-20 06:34:17] Production.INFO: ProcessCDR(1,14948470,1,1,2) [2025-04-20 06:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948470', 'tblTempUsageDetail_20' ) start [2025-04-20 06:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948470', 'tblTempUsageDetail_20' ) end [2025-04-20 06:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 06:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 06:34:22] Production.INFO: ==20190== Releasing lock... [2025-04-20 06:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 06:34:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-20 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 03:35:05 [end_date_ymd] => 2025-04-20 06:35:05 [RateCDR] => 1 ) [2025-04-20 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-20 03:35:05' and `end` < '2025-04-20 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-20 06:35:18] Production.INFO: count ==182 [2025-04-20 06:35:18] Production.ERROR: pbx CDR StartTime 2025-04-20 03:35:05 - End Time 2025-04-20 06:35:05 [2025-04-20 06:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948475', 'tblTempUsageDetail_20' ) start [2025-04-20 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948475', 'tblTempUsageDetail_20' ) end [2025-04-20 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948475', 'tblTempVendorCDR_20' ) start [2025-04-20 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948475', 'tblTempVendorCDR_20' ) end [2025-04-20 06:35:18] Production.INFO: ProcessCDR(1,14948475,1,1,2) [2025-04-20 06:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948475', 'tblTempUsageDetail_20' ) start [2025-04-20 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948475', 'tblTempUsageDetail_20' ) end [2025-04-20 06:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 06:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 06:35:21] Production.INFO: ==20265== Releasing lock... [2025-04-20 06:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 06:35:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-20 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 03:36:05 [end_date_ymd] => 2025-04-20 06:36:05 [RateCDR] => 1 ) [2025-04-20 06:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 03:36:05' and `end` < '2025-04-20 06:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 06:36:17] Production.INFO: count ==182 [2025-04-20 06:36:17] Production.ERROR: pbx CDR StartTime 2025-04-20 03:36:05 - End Time 2025-04-20 06:36:05 [2025-04-20 06:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948480', 'tblTempUsageDetail_20' ) start [2025-04-20 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948480', 'tblTempUsageDetail_20' ) end [2025-04-20 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948480', 'tblTempVendorCDR_20' ) start [2025-04-20 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948480', 'tblTempVendorCDR_20' ) end [2025-04-20 06:36:17] Production.INFO: ProcessCDR(1,14948480,1,1,2) [2025-04-20 06:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948480', 'tblTempUsageDetail_20' ) start [2025-04-20 06:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948480', 'tblTempUsageDetail_20' ) end [2025-04-20 06:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 06:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 06:36:22] Production.INFO: ==20340== Releasing lock... [2025-04-20 06:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 06:36:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-20 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 03:37:05 [end_date_ymd] => 2025-04-20 06:37:05 [RateCDR] => 1 ) [2025-04-20 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-20 03:37:05' and `end` < '2025-04-20 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-20 06:37:18] Production.INFO: count ==182 [2025-04-20 06:37:18] Production.ERROR: pbx CDR StartTime 2025-04-20 03:37:05 - End Time 2025-04-20 06:37:05 [2025-04-20 06:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948485', 'tblTempUsageDetail_20' ) start [2025-04-20 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948485', 'tblTempUsageDetail_20' ) end [2025-04-20 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948485', 'tblTempVendorCDR_20' ) start [2025-04-20 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948485', 'tblTempVendorCDR_20' ) end [2025-04-20 06:37:18] Production.INFO: ProcessCDR(1,14948485,1,1,2) [2025-04-20 06:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948485', 'tblTempUsageDetail_20' ) start [2025-04-20 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948485', 'tblTempUsageDetail_20' ) end [2025-04-20 06:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 06:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 06:37:21] Production.INFO: ==20418== Releasing lock... [2025-04-20 06:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 06:37:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-20 06:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 03:38:06 [end_date_ymd] => 2025-04-20 06:38:06 [RateCDR] => 1 ) [2025-04-20 06:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 03:38:06' and `end` < '2025-04-20 06:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 06:38:18] Production.INFO: count ==182 [2025-04-20 06:38:18] Production.ERROR: pbx CDR StartTime 2025-04-20 03:38:06 - End Time 2025-04-20 06:38:06 [2025-04-20 06:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948490', 'tblTempUsageDetail_20' ) start [2025-04-20 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948490', 'tblTempUsageDetail_20' ) end [2025-04-20 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948490', 'tblTempVendorCDR_20' ) start [2025-04-20 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948490', 'tblTempVendorCDR_20' ) end [2025-04-20 06:38:18] Production.INFO: ProcessCDR(1,14948490,1,1,2) [2025-04-20 06:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948490', 'tblTempUsageDetail_20' ) start [2025-04-20 06:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948490', 'tblTempUsageDetail_20' ) end [2025-04-20 06:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 06:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 06:38:22] Production.INFO: ==20491== Releasing lock... [2025-04-20 06:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 06:38:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-20 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 03:39:05 [end_date_ymd] => 2025-04-20 06:39:05 [RateCDR] => 1 ) [2025-04-20 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-20 03:39:05' and `end` < '2025-04-20 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-20 06:39:18] Production.INFO: count ==181 [2025-04-20 06:39:18] Production.ERROR: pbx CDR StartTime 2025-04-20 03:39:05 - End Time 2025-04-20 06:39:05 [2025-04-20 06:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948495', 'tblTempUsageDetail_20' ) start [2025-04-20 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948495', 'tblTempUsageDetail_20' ) end [2025-04-20 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948495', 'tblTempVendorCDR_20' ) start [2025-04-20 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948495', 'tblTempVendorCDR_20' ) end [2025-04-20 06:39:18] Production.INFO: ProcessCDR(1,14948495,1,1,2) [2025-04-20 06:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948495', 'tblTempUsageDetail_20' ) start [2025-04-20 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948495', 'tblTempUsageDetail_20' ) end [2025-04-20 06:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 06:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 06:39:21] Production.INFO: ==20560== Releasing lock... [2025-04-20 06:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 06:39:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-20 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 03:40:06 [end_date_ymd] => 2025-04-20 06:40:06 [RateCDR] => 1 ) [2025-04-20 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-20 03:40:06' and `end` < '2025-04-20 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-20 06:40:19] Production.INFO: count ==180 [2025-04-20 06:40:19] Production.ERROR: pbx CDR StartTime 2025-04-20 03:40:06 - End Time 2025-04-20 06:40:06 [2025-04-20 06:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948501', 'tblTempUsageDetail_20' ) start [2025-04-20 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948501', 'tblTempUsageDetail_20' ) end [2025-04-20 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948501', 'tblTempVendorCDR_20' ) start [2025-04-20 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948501', 'tblTempVendorCDR_20' ) end [2025-04-20 06:40:19] Production.INFO: ProcessCDR(1,14948501,1,1,2) [2025-04-20 06:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948501', 'tblTempUsageDetail_20' ) start [2025-04-20 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948501', 'tblTempUsageDetail_20' ) end [2025-04-20 06:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 06:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 06:40:22] Production.INFO: ==20637== Releasing lock... [2025-04-20 06:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 06:40:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-20 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 03:41:05 [end_date_ymd] => 2025-04-20 06:41:05 [RateCDR] => 1 ) [2025-04-20 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-20 03:41:05' and `end` < '2025-04-20 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-20 06:41:18] Production.INFO: count ==181 [2025-04-20 06:41:18] Production.ERROR: pbx CDR StartTime 2025-04-20 03:41:05 - End Time 2025-04-20 06:41:05 [2025-04-20 06:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948506', 'tblTempUsageDetail_20' ) start [2025-04-20 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948506', 'tblTempUsageDetail_20' ) end [2025-04-20 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948506', 'tblTempVendorCDR_20' ) start [2025-04-20 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948506', 'tblTempVendorCDR_20' ) end [2025-04-20 06:41:18] Production.INFO: ProcessCDR(1,14948506,1,1,2) [2025-04-20 06:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948506', 'tblTempUsageDetail_20' ) start [2025-04-20 06:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948506', 'tblTempUsageDetail_20' ) end [2025-04-20 06:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 06:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 06:41:22] Production.INFO: ==20718== Releasing lock... [2025-04-20 06:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 06:41:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-20 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 03:42:05 [end_date_ymd] => 2025-04-20 06:42:05 [RateCDR] => 1 ) [2025-04-20 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-20 03:42:05' and `end` < '2025-04-20 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-20 06:42:18] Production.INFO: count ==179 [2025-04-20 06:42:18] Production.ERROR: pbx CDR StartTime 2025-04-20 03:42:05 - End Time 2025-04-20 06:42:05 [2025-04-20 06:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948511', 'tblTempUsageDetail_20' ) start [2025-04-20 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948511', 'tblTempUsageDetail_20' ) end [2025-04-20 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948511', 'tblTempVendorCDR_20' ) start [2025-04-20 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948511', 'tblTempVendorCDR_20' ) end [2025-04-20 06:42:18] Production.INFO: ProcessCDR(1,14948511,1,1,2) [2025-04-20 06:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948511', 'tblTempUsageDetail_20' ) start [2025-04-20 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948511', 'tblTempUsageDetail_20' ) end [2025-04-20 06:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 06:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 06:42:21] Production.INFO: ==20791== Releasing lock... [2025-04-20 06:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 06:42:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-20 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 03:43:04 [end_date_ymd] => 2025-04-20 06:43:04 [RateCDR] => 1 ) [2025-04-20 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-20 03:43:04' and `end` < '2025-04-20 06:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 06:43:18] Production.INFO: count ==178 [2025-04-20 06:43:18] Production.ERROR: pbx CDR StartTime 2025-04-20 03:43:04 - End Time 2025-04-20 06:43:04 [2025-04-20 06:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948516', 'tblTempUsageDetail_20' ) start [2025-04-20 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948516', 'tblTempUsageDetail_20' ) end [2025-04-20 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948516', 'tblTempVendorCDR_20' ) start [2025-04-20 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948516', 'tblTempVendorCDR_20' ) end [2025-04-20 06:43:18] Production.INFO: ProcessCDR(1,14948516,1,1,2) [2025-04-20 06:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948516', 'tblTempUsageDetail_20' ) start [2025-04-20 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948516', 'tblTempUsageDetail_20' ) end [2025-04-20 06:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 06:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 06:43:21] Production.INFO: ==20870== Releasing lock... [2025-04-20 06:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 06:43:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-20 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 03:44:05 [end_date_ymd] => 2025-04-20 06:44:05 [RateCDR] => 1 ) [2025-04-20 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-20 03:44:05' and `end` < '2025-04-20 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-20 06:44:18] Production.INFO: count ==179 [2025-04-20 06:44:18] Production.ERROR: pbx CDR StartTime 2025-04-20 03:44:05 - End Time 2025-04-20 06:44:05 [2025-04-20 06:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948521', 'tblTempUsageDetail_20' ) start [2025-04-20 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948521', 'tblTempUsageDetail_20' ) end [2025-04-20 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948521', 'tblTempVendorCDR_20' ) start [2025-04-20 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948521', 'tblTempVendorCDR_20' ) end [2025-04-20 06:44:18] Production.INFO: ProcessCDR(1,14948521,1,1,2) [2025-04-20 06:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948521', 'tblTempUsageDetail_20' ) start [2025-04-20 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948521', 'tblTempUsageDetail_20' ) end [2025-04-20 06:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 06:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 06:44:21] Production.INFO: ==20947== Releasing lock... [2025-04-20 06:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 06:44:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-20 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 03:45:05 [end_date_ymd] => 2025-04-20 06:45:05 [RateCDR] => 1 ) [2025-04-20 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-20 03:45:05' and `end` < '2025-04-20 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-20 06:45:17] Production.INFO: count ==181 [2025-04-20 06:45:17] Production.ERROR: pbx CDR StartTime 2025-04-20 03:45:05 - End Time 2025-04-20 06:45:05 [2025-04-20 06:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948526', 'tblTempUsageDetail_20' ) start [2025-04-20 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948526', 'tblTempUsageDetail_20' ) end [2025-04-20 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948526', 'tblTempVendorCDR_20' ) start [2025-04-20 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948526', 'tblTempVendorCDR_20' ) end [2025-04-20 06:45:17] Production.INFO: ProcessCDR(1,14948526,1,1,2) [2025-04-20 06:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948526', 'tblTempUsageDetail_20' ) start [2025-04-20 06:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948526', 'tblTempUsageDetail_20' ) end [2025-04-20 06:45:20] Production.ERROR: pbx prc_insertCDR start [2025-04-20 06:45:20] Production.ERROR: pbx prc_insertCDR end [2025-04-20 06:45:20] Production.INFO: ==21017== Releasing lock... [2025-04-20 06:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 06:45:20] Production.INFO: 29.5 MB #Memory Used# [2025-04-20 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 03:46:05 [end_date_ymd] => 2025-04-20 06:46:05 [RateCDR] => 1 ) [2025-04-20 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-20 03:46:05' and `end` < '2025-04-20 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-20 06:46:18] Production.INFO: count ==182 [2025-04-20 06:46:18] Production.ERROR: pbx CDR StartTime 2025-04-20 03:46:05 - End Time 2025-04-20 06:46:05 [2025-04-20 06:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948531', 'tblTempUsageDetail_20' ) start [2025-04-20 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948531', 'tblTempUsageDetail_20' ) end [2025-04-20 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948531', 'tblTempVendorCDR_20' ) start [2025-04-20 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948531', 'tblTempVendorCDR_20' ) end [2025-04-20 06:46:18] Production.INFO: ProcessCDR(1,14948531,1,1,2) [2025-04-20 06:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948531', 'tblTempUsageDetail_20' ) start [2025-04-20 06:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948531', 'tblTempUsageDetail_20' ) end [2025-04-20 06:46:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 06:46:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 06:46:23] Production.INFO: ==21092== Releasing lock... [2025-04-20 06:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 06:46:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-20 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 03:47:05 [end_date_ymd] => 2025-04-20 06:47:05 [RateCDR] => 1 ) [2025-04-20 06:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 03:47:05' and `end` < '2025-04-20 06:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 06:47:18] Production.INFO: count ==182 [2025-04-20 06:47:18] Production.ERROR: pbx CDR StartTime 2025-04-20 03:47:05 - End Time 2025-04-20 06:47:05 [2025-04-20 06:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948536', 'tblTempUsageDetail_20' ) start [2025-04-20 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948536', 'tblTempUsageDetail_20' ) end [2025-04-20 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948536', 'tblTempVendorCDR_20' ) start [2025-04-20 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948536', 'tblTempVendorCDR_20' ) end [2025-04-20 06:47:18] Production.INFO: ProcessCDR(1,14948536,1,1,2) [2025-04-20 06:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948536', 'tblTempUsageDetail_20' ) start [2025-04-20 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948536', 'tblTempUsageDetail_20' ) end [2025-04-20 06:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 06:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 06:47:21] Production.INFO: ==21163== Releasing lock... [2025-04-20 06:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 06:47:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-20 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 03:48:05 [end_date_ymd] => 2025-04-20 06:48:05 [RateCDR] => 1 ) [2025-04-20 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-20 03:48:05' and `end` < '2025-04-20 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-20 06:48:18] Production.INFO: count ==181 [2025-04-20 06:48:18] Production.ERROR: pbx CDR StartTime 2025-04-20 03:48:05 - End Time 2025-04-20 06:48:05 [2025-04-20 06:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948541', 'tblTempUsageDetail_20' ) start [2025-04-20 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948541', 'tblTempUsageDetail_20' ) end [2025-04-20 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948541', 'tblTempVendorCDR_20' ) start [2025-04-20 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948541', 'tblTempVendorCDR_20' ) end [2025-04-20 06:48:18] Production.INFO: ProcessCDR(1,14948541,1,1,2) [2025-04-20 06:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948541', 'tblTempUsageDetail_20' ) start [2025-04-20 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948541', 'tblTempUsageDetail_20' ) end [2025-04-20 06:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 06:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 06:48:21] Production.INFO: ==21238== Releasing lock... [2025-04-20 06:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 06:48:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-20 06:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 03:49:06 [end_date_ymd] => 2025-04-20 06:49:06 [RateCDR] => 1 ) [2025-04-20 06:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 03:49:06' and `end` < '2025-04-20 06:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 06:49:18] Production.INFO: count ==181 [2025-04-20 06:49:18] Production.ERROR: pbx CDR StartTime 2025-04-20 03:49:06 - End Time 2025-04-20 06:49:06 [2025-04-20 06:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948546', 'tblTempUsageDetail_20' ) start [2025-04-20 06:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948546', 'tblTempUsageDetail_20' ) end [2025-04-20 06:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948546', 'tblTempVendorCDR_20' ) start [2025-04-20 06:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948546', 'tblTempVendorCDR_20' ) end [2025-04-20 06:49:19] Production.INFO: ProcessCDR(1,14948546,1,1,2) [2025-04-20 06:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948546', 'tblTempUsageDetail_20' ) start [2025-04-20 06:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948546', 'tblTempUsageDetail_20' ) end [2025-04-20 06:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 06:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 06:49:22] Production.INFO: ==21353== Releasing lock... [2025-04-20 06:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 06:49:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-20 06:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 03:50:06 [end_date_ymd] => 2025-04-20 06:50:06 [RateCDR] => 1 ) [2025-04-20 06:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 03:50:06' and `end` < '2025-04-20 06:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 06:50:18] Production.INFO: count ==180 [2025-04-20 06:50:18] Production.ERROR: pbx CDR StartTime 2025-04-20 03:50:06 - End Time 2025-04-20 06:50:06 [2025-04-20 06:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948552', 'tblTempUsageDetail_20' ) start [2025-04-20 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948552', 'tblTempUsageDetail_20' ) end [2025-04-20 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948552', 'tblTempVendorCDR_20' ) start [2025-04-20 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948552', 'tblTempVendorCDR_20' ) end [2025-04-20 06:50:18] Production.INFO: ProcessCDR(1,14948552,1,1,2) [2025-04-20 06:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948552', 'tblTempUsageDetail_20' ) start [2025-04-20 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948552', 'tblTempUsageDetail_20' ) end [2025-04-20 06:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 06:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 06:50:22] Production.INFO: ==21427== Releasing lock... [2025-04-20 06:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 06:50:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-20 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 03:51:05 [end_date_ymd] => 2025-04-20 06:51:05 [RateCDR] => 1 ) [2025-04-20 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-20 03:51:05' and `end` < '2025-04-20 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-20 06:51:18] Production.INFO: count ==191 [2025-04-20 06:51:18] Production.ERROR: pbx CDR StartTime 2025-04-20 03:51:05 - End Time 2025-04-20 06:51:05 [2025-04-20 06:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948557', 'tblTempUsageDetail_20' ) start [2025-04-20 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948557', 'tblTempUsageDetail_20' ) end [2025-04-20 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948557', 'tblTempVendorCDR_20' ) start [2025-04-20 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948557', 'tblTempVendorCDR_20' ) end [2025-04-20 06:51:18] Production.INFO: ProcessCDR(1,14948557,1,1,2) [2025-04-20 06:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948557', 'tblTempUsageDetail_20' ) start [2025-04-20 06:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948557', 'tblTempUsageDetail_20' ) end [2025-04-20 06:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 06:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 06:51:22] Production.INFO: ==21502== Releasing lock... [2025-04-20 06:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 06:51:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-20 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 03:52:05 [end_date_ymd] => 2025-04-20 06:52:05 [RateCDR] => 1 ) [2025-04-20 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-20 03:52:05' and `end` < '2025-04-20 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-20 06:52:18] Production.INFO: count ==191 [2025-04-20 06:52:18] Production.ERROR: pbx CDR StartTime 2025-04-20 03:52:05 - End Time 2025-04-20 06:52:05 [2025-04-20 06:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948562', 'tblTempUsageDetail_20' ) start [2025-04-20 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948562', 'tblTempUsageDetail_20' ) end [2025-04-20 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948562', 'tblTempVendorCDR_20' ) start [2025-04-20 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948562', 'tblTempVendorCDR_20' ) end [2025-04-20 06:52:18] Production.INFO: ProcessCDR(1,14948562,1,1,2) [2025-04-20 06:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948562', 'tblTempUsageDetail_20' ) start [2025-04-20 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948562', 'tblTempUsageDetail_20' ) end [2025-04-20 06:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 06:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 06:52:21] Production.INFO: ==21575== Releasing lock... [2025-04-20 06:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 06:52:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-20 06:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 03:53:06 [end_date_ymd] => 2025-04-20 06:53:06 [RateCDR] => 1 ) [2025-04-20 06:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 03:53:06' and `end` < '2025-04-20 06:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 06:53:18] Production.INFO: count ==193 [2025-04-20 06:53:18] Production.ERROR: pbx CDR StartTime 2025-04-20 03:53:06 - End Time 2025-04-20 06:53:06 [2025-04-20 06:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948567', 'tblTempUsageDetail_20' ) start [2025-04-20 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948567', 'tblTempUsageDetail_20' ) end [2025-04-20 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948567', 'tblTempVendorCDR_20' ) start [2025-04-20 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948567', 'tblTempVendorCDR_20' ) end [2025-04-20 06:53:18] Production.INFO: ProcessCDR(1,14948567,1,1,2) [2025-04-20 06:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948567', 'tblTempUsageDetail_20' ) start [2025-04-20 06:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948567', 'tblTempUsageDetail_20' ) end [2025-04-20 06:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 06:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 06:53:22] Production.INFO: ==21648== Releasing lock... [2025-04-20 06:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 06:53:22] Production.INFO: 30 MB #Memory Used# [2025-04-20 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 03:54:05 [end_date_ymd] => 2025-04-20 06:54:05 [RateCDR] => 1 ) [2025-04-20 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-20 03:54:05' and `end` < '2025-04-20 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-20 06:54:18] Production.INFO: count ==194 [2025-04-20 06:54:18] Production.ERROR: pbx CDR StartTime 2025-04-20 03:54:05 - End Time 2025-04-20 06:54:05 [2025-04-20 06:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948572', 'tblTempUsageDetail_20' ) start [2025-04-20 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948572', 'tblTempUsageDetail_20' ) end [2025-04-20 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948572', 'tblTempVendorCDR_20' ) start [2025-04-20 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948572', 'tblTempVendorCDR_20' ) end [2025-04-20 06:54:18] Production.INFO: ProcessCDR(1,14948572,1,1,2) [2025-04-20 06:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948572', 'tblTempUsageDetail_20' ) start [2025-04-20 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948572', 'tblTempUsageDetail_20' ) end [2025-04-20 06:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 06:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 06:54:21] Production.INFO: ==21722== Releasing lock... [2025-04-20 06:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 06:54:21] Production.INFO: 30 MB #Memory Used# [2025-04-20 06:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 03:55:06 [end_date_ymd] => 2025-04-20 06:55:06 [RateCDR] => 1 ) [2025-04-20 06:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 03:55:06' and `end` < '2025-04-20 06:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 06:55:18] Production.INFO: count ==194 [2025-04-20 06:55:18] Production.ERROR: pbx CDR StartTime 2025-04-20 03:55:06 - End Time 2025-04-20 06:55:06 [2025-04-20 06:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948577', 'tblTempUsageDetail_20' ) start [2025-04-20 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948577', 'tblTempUsageDetail_20' ) end [2025-04-20 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948577', 'tblTempVendorCDR_20' ) start [2025-04-20 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948577', 'tblTempVendorCDR_20' ) end [2025-04-20 06:55:18] Production.INFO: ProcessCDR(1,14948577,1,1,2) [2025-04-20 06:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948577', 'tblTempUsageDetail_20' ) start [2025-04-20 06:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948577', 'tblTempUsageDetail_20' ) end [2025-04-20 06:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 06:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 06:55:22] Production.INFO: ==21799== Releasing lock... [2025-04-20 06:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 06:55:22] Production.INFO: 30 MB #Memory Used# [2025-04-20 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 03:56:05 [end_date_ymd] => 2025-04-20 06:56:05 [RateCDR] => 1 ) [2025-04-20 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-20 03:56:05' and `end` < '2025-04-20 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-20 06:56:18] Production.INFO: count ==193 [2025-04-20 06:56:18] Production.ERROR: pbx CDR StartTime 2025-04-20 03:56:05 - End Time 2025-04-20 06:56:05 [2025-04-20 06:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948582', 'tblTempUsageDetail_20' ) start [2025-04-20 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948582', 'tblTempUsageDetail_20' ) end [2025-04-20 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948582', 'tblTempVendorCDR_20' ) start [2025-04-20 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948582', 'tblTempVendorCDR_20' ) end [2025-04-20 06:56:18] Production.INFO: ProcessCDR(1,14948582,1,1,2) [2025-04-20 06:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948582', 'tblTempUsageDetail_20' ) start [2025-04-20 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948582', 'tblTempUsageDetail_20' ) end [2025-04-20 06:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 06:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 06:56:21] Production.INFO: ==21872== Releasing lock... [2025-04-20 06:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 06:56:21] Production.INFO: 30 MB #Memory Used# [2025-04-20 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 03:57:05 [end_date_ymd] => 2025-04-20 06:57:05 [RateCDR] => 1 ) [2025-04-20 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-20 03:57:05' and `end` < '2025-04-20 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-20 06:57:18] Production.INFO: count ==193 [2025-04-20 06:57:18] Production.ERROR: pbx CDR StartTime 2025-04-20 03:57:05 - End Time 2025-04-20 06:57:05 [2025-04-20 06:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948587', 'tblTempUsageDetail_20' ) start [2025-04-20 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948587', 'tblTempUsageDetail_20' ) end [2025-04-20 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948587', 'tblTempVendorCDR_20' ) start [2025-04-20 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948587', 'tblTempVendorCDR_20' ) end [2025-04-20 06:57:18] Production.INFO: ProcessCDR(1,14948587,1,1,2) [2025-04-20 06:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948587', 'tblTempUsageDetail_20' ) start [2025-04-20 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948587', 'tblTempUsageDetail_20' ) end [2025-04-20 06:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 06:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 06:57:21] Production.INFO: ==21945== Releasing lock... [2025-04-20 06:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 06:57:21] Production.INFO: 30 MB #Memory Used# [2025-04-20 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 03:58:05 [end_date_ymd] => 2025-04-20 06:58:05 [RateCDR] => 1 ) [2025-04-20 06:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 03:58:05' and `end` < '2025-04-20 06:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 06:58:17] Production.INFO: count ==193 [2025-04-20 06:58:17] Production.ERROR: pbx CDR StartTime 2025-04-20 03:58:05 - End Time 2025-04-20 06:58:05 [2025-04-20 06:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948592', 'tblTempUsageDetail_20' ) start [2025-04-20 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948592', 'tblTempUsageDetail_20' ) end [2025-04-20 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948592', 'tblTempVendorCDR_20' ) start [2025-04-20 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948592', 'tblTempVendorCDR_20' ) end [2025-04-20 06:58:17] Production.INFO: ProcessCDR(1,14948592,1,1,2) [2025-04-20 06:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948592', 'tblTempUsageDetail_20' ) start [2025-04-20 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948592', 'tblTempUsageDetail_20' ) end [2025-04-20 06:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 06:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 06:58:21] Production.INFO: ==22015== Releasing lock... [2025-04-20 06:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 06:58:21] Production.INFO: 30 MB #Memory Used# [2025-04-20 06:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 03:59:04 [end_date_ymd] => 2025-04-20 06:59:04 [RateCDR] => 1 ) [2025-04-20 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-20 03:59:04' and `end` < '2025-04-20 06: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-20 06:59:17] Production.INFO: count ==192 [2025-04-20 06:59:17] Production.ERROR: pbx CDR StartTime 2025-04-20 03:59:04 - End Time 2025-04-20 06:59:04 [2025-04-20 06:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948597', 'tblTempUsageDetail_20' ) start [2025-04-20 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948597', 'tblTempUsageDetail_20' ) end [2025-04-20 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948597', 'tblTempVendorCDR_20' ) start [2025-04-20 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948597', 'tblTempVendorCDR_20' ) end [2025-04-20 06:59:17] Production.INFO: ProcessCDR(1,14948597,1,1,2) [2025-04-20 06:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 06:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948597', 'tblTempUsageDetail_20' ) start [2025-04-20 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948597', 'tblTempUsageDetail_20' ) end [2025-04-20 06:59:20] Production.ERROR: pbx prc_insertCDR start [2025-04-20 06:59:20] Production.ERROR: pbx prc_insertCDR end [2025-04-20 06:59:20] Production.INFO: ==22088== Releasing lock... [2025-04-20 06:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 06:59:20] Production.INFO: 29.75 MB #Memory Used# [2025-04-20 07:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 04:00:05 [end_date_ymd] => 2025-04-20 07:00:05 [RateCDR] => 1 ) [2025-04-20 07:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 04:00:05' and `end` < '2025-04-20 07:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 07:00:20] Production.INFO: count ==200 [2025-04-20 07:00:20] Production.ERROR: pbx CDR StartTime 2025-04-20 04:00:05 - End Time 2025-04-20 07:00:05 [2025-04-20 07:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 07:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948602', 'tblTempUsageDetail_20' ) start [2025-04-20 07:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948602', 'tblTempUsageDetail_20' ) end [2025-04-20 07:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948602', 'tblTempVendorCDR_20' ) start [2025-04-20 07:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948602', 'tblTempVendorCDR_20' ) end [2025-04-20 07:00:20] Production.INFO: ProcessCDR(1,14948602,1,1,2) [2025-04-20 07:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948602', 'tblTempUsageDetail_20' ) start [2025-04-20 07:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948602', 'tblTempUsageDetail_20' ) end [2025-04-20 07:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 07:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 07:00:23] Production.INFO: ==22163== Releasing lock... [2025-04-20 07:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 07:00:23] Production.INFO: 30 MB #Memory Used# [2025-04-20 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 04:01:05 [end_date_ymd] => 2025-04-20 07:01:05 [RateCDR] => 1 ) [2025-04-20 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-20 04:01:05' and `end` < '2025-04-20 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-20 07:01:18] Production.INFO: count ==198 [2025-04-20 07:01:18] Production.ERROR: pbx CDR StartTime 2025-04-20 04:01:05 - End Time 2025-04-20 07:01:05 [2025-04-20 07:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948608', 'tblTempUsageDetail_20' ) start [2025-04-20 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948608', 'tblTempUsageDetail_20' ) end [2025-04-20 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948608', 'tblTempVendorCDR_20' ) start [2025-04-20 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948608', 'tblTempVendorCDR_20' ) end [2025-04-20 07:01:18] Production.INFO: ProcessCDR(1,14948608,1,1,2) [2025-04-20 07:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948608', 'tblTempUsageDetail_20' ) start [2025-04-20 07:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948608', 'tblTempUsageDetail_20' ) end [2025-04-20 07:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 07:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 07:01:22] Production.INFO: ==22330== Releasing lock... [2025-04-20 07:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 07:01:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-20 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 04:02:05 [end_date_ymd] => 2025-04-20 07:02:05 [RateCDR] => 1 ) [2025-04-20 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-20 04:02:05' and `end` < '2025-04-20 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-20 07:02:17] Production.INFO: count ==198 [2025-04-20 07:02:18] Production.ERROR: pbx CDR StartTime 2025-04-20 04:02:05 - End Time 2025-04-20 07:02:05 [2025-04-20 07:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948613', 'tblTempUsageDetail_20' ) start [2025-04-20 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948613', 'tblTempUsageDetail_20' ) end [2025-04-20 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948613', 'tblTempVendorCDR_20' ) start [2025-04-20 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948613', 'tblTempVendorCDR_20' ) end [2025-04-20 07:02:18] Production.INFO: ProcessCDR(1,14948613,1,1,2) [2025-04-20 07:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948613', 'tblTempUsageDetail_20' ) start [2025-04-20 07:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948613', 'tblTempUsageDetail_20' ) end [2025-04-20 07:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 07:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 07:02:21] Production.INFO: ==22400== Releasing lock... [2025-04-20 07:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 07:02:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-20 07:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 04:03:05 [end_date_ymd] => 2025-04-20 07:03:05 [RateCDR] => 1 ) [2025-04-20 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-20 04:03:05' and `end` < '2025-04-20 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-20 07:03:18] Production.INFO: count ==196 [2025-04-20 07:03:18] Production.ERROR: pbx CDR StartTime 2025-04-20 04:03:05 - End Time 2025-04-20 07:03:05 [2025-04-20 07:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948618', 'tblTempUsageDetail_20' ) start [2025-04-20 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948618', 'tblTempUsageDetail_20' ) end [2025-04-20 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948618', 'tblTempVendorCDR_20' ) start [2025-04-20 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948618', 'tblTempVendorCDR_20' ) end [2025-04-20 07:03:18] Production.INFO: ProcessCDR(1,14948618,1,1,2) [2025-04-20 07:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948618', 'tblTempUsageDetail_20' ) start [2025-04-20 07:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948618', 'tblTempUsageDetail_20' ) end [2025-04-20 07:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 07:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 07:03:21] Production.INFO: ==22474== Releasing lock... [2025-04-20 07:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 07:03:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-20 07:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 04:04:05 [end_date_ymd] => 2025-04-20 07:04:05 [RateCDR] => 1 ) [2025-04-20 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-20 04:04:05' and `end` < '2025-04-20 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-20 07:04:18] Production.INFO: count ==196 [2025-04-20 07:04:18] Production.ERROR: pbx CDR StartTime 2025-04-20 04:04:05 - End Time 2025-04-20 07:04:05 [2025-04-20 07:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948623', 'tblTempUsageDetail_20' ) start [2025-04-20 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948623', 'tblTempUsageDetail_20' ) end [2025-04-20 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948623', 'tblTempVendorCDR_20' ) start [2025-04-20 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948623', 'tblTempVendorCDR_20' ) end [2025-04-20 07:04:18] Production.INFO: ProcessCDR(1,14948623,1,1,2) [2025-04-20 07:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948623', 'tblTempUsageDetail_20' ) start [2025-04-20 07:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948623', 'tblTempUsageDetail_20' ) end [2025-04-20 07:04:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 07:04:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 07:04:23] Production.INFO: ==22551== Releasing lock... [2025-04-20 07:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 07:04:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-20 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 04:05:05 [end_date_ymd] => 2025-04-20 07:05:05 [RateCDR] => 1 ) [2025-04-20 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-20 04:05:05' and `end` < '2025-04-20 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-20 07:05:20] Production.INFO: count ==198 [2025-04-20 07:05:20] Production.ERROR: pbx CDR StartTime 2025-04-20 04:05:05 - End Time 2025-04-20 07:05:05 [2025-04-20 07:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 07:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948628', 'tblTempUsageDetail_20' ) start [2025-04-20 07:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948628', 'tblTempUsageDetail_20' ) end [2025-04-20 07:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948628', 'tblTempVendorCDR_20' ) start [2025-04-20 07:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948628', 'tblTempVendorCDR_20' ) end [2025-04-20 07:05:20] Production.INFO: ProcessCDR(1,14948628,1,1,2) [2025-04-20 07:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948628', 'tblTempUsageDetail_20' ) start [2025-04-20 07:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948628', 'tblTempUsageDetail_20' ) end [2025-04-20 07:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 07:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 07:05:23] Production.INFO: ==22740== Releasing lock... [2025-04-20 07:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 07:05:23] Production.INFO: 30 MB #Memory Used# [2025-04-20 07:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 04:06:06 [end_date_ymd] => 2025-04-20 07:06:06 [RateCDR] => 1 ) [2025-04-20 07:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 04:06:06' and `end` < '2025-04-20 07:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 07:06:18] Production.INFO: count ==198 [2025-04-20 07:06:18] Production.ERROR: pbx CDR StartTime 2025-04-20 04:06:06 - End Time 2025-04-20 07:06:06 [2025-04-20 07:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948633', 'tblTempUsageDetail_20' ) start [2025-04-20 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948633', 'tblTempUsageDetail_20' ) end [2025-04-20 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948633', 'tblTempVendorCDR_20' ) start [2025-04-20 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948633', 'tblTempVendorCDR_20' ) end [2025-04-20 07:06:18] Production.INFO: ProcessCDR(1,14948633,1,1,2) [2025-04-20 07:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948633', 'tblTempUsageDetail_20' ) start [2025-04-20 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948633', 'tblTempUsageDetail_20' ) end [2025-04-20 07:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 07:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 07:06:22] Production.INFO: ==22814== Releasing lock... [2025-04-20 07:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 07:06:22] Production.INFO: 30 MB #Memory Used# [2025-04-20 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 04:07:05 [end_date_ymd] => 2025-04-20 07:07:05 [RateCDR] => 1 ) [2025-04-20 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-20 04:07:05' and `end` < '2025-04-20 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-20 07:07:18] Production.INFO: count ==198 [2025-04-20 07:07:18] Production.ERROR: pbx CDR StartTime 2025-04-20 04:07:05 - End Time 2025-04-20 07:07:05 [2025-04-20 07:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948638', 'tblTempUsageDetail_20' ) start [2025-04-20 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948638', 'tblTempUsageDetail_20' ) end [2025-04-20 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948638', 'tblTempVendorCDR_20' ) start [2025-04-20 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948638', 'tblTempVendorCDR_20' ) end [2025-04-20 07:07:18] Production.INFO: ProcessCDR(1,14948638,1,1,2) [2025-04-20 07:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948638', 'tblTempUsageDetail_20' ) start [2025-04-20 07:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948638', 'tblTempUsageDetail_20' ) end [2025-04-20 07:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 07:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 07:07:21] Production.INFO: ==22887== Releasing lock... [2025-04-20 07:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 07:07:21] Production.INFO: 30 MB #Memory Used# [2025-04-20 07:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 04:08:06 [end_date_ymd] => 2025-04-20 07:08:06 [RateCDR] => 1 ) [2025-04-20 07: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-20 04:08:06' and `end` < '2025-04-20 07: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-20 07:08:20] Production.INFO: count ==196 [2025-04-20 07:08:20] Production.ERROR: pbx CDR StartTime 2025-04-20 04:08:06 - End Time 2025-04-20 07:08:06 [2025-04-20 07:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948643', 'tblTempUsageDetail_20' ) start [2025-04-20 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948643', 'tblTempUsageDetail_20' ) end [2025-04-20 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948643', 'tblTempVendorCDR_20' ) start [2025-04-20 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948643', 'tblTempVendorCDR_20' ) end [2025-04-20 07:08:20] Production.INFO: ProcessCDR(1,14948643,1,1,2) [2025-04-20 07:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948643', 'tblTempUsageDetail_20' ) start [2025-04-20 07:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948643', 'tblTempUsageDetail_20' ) end [2025-04-20 07:08:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 07:08:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 07:08:23] Production.INFO: ==23036== Releasing lock... [2025-04-20 07:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 07:08:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-20 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 04:09:05 [end_date_ymd] => 2025-04-20 07:09:05 [RateCDR] => 1 ) [2025-04-20 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-20 04:09:05' and `end` < '2025-04-20 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-20 07:09:18] Production.INFO: count ==195 [2025-04-20 07:09:18] Production.ERROR: pbx CDR StartTime 2025-04-20 04:09:05 - End Time 2025-04-20 07:09:05 [2025-04-20 07:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948648', 'tblTempUsageDetail_20' ) start [2025-04-20 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948648', 'tblTempUsageDetail_20' ) end [2025-04-20 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948648', 'tblTempVendorCDR_20' ) start [2025-04-20 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948648', 'tblTempVendorCDR_20' ) end [2025-04-20 07:09:18] Production.INFO: ProcessCDR(1,14948648,1,1,2) [2025-04-20 07:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948648', 'tblTempUsageDetail_20' ) start [2025-04-20 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948648', 'tblTempUsageDetail_20' ) end [2025-04-20 07:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 07:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 07:09:21] Production.INFO: ==23120== Releasing lock... [2025-04-20 07:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 07:09:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-20 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 04:10:06 [end_date_ymd] => 2025-04-20 07:10:06 [RateCDR] => 1 ) [2025-04-20 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-20 04:10:06' and `end` < '2025-04-20 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-20 07:10:19] Production.INFO: count ==191 [2025-04-20 07:10:19] Production.ERROR: pbx CDR StartTime 2025-04-20 04:10:06 - End Time 2025-04-20 07:10:06 [2025-04-20 07:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948653', 'tblTempUsageDetail_20' ) start [2025-04-20 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948653', 'tblTempUsageDetail_20' ) end [2025-04-20 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948653', 'tblTempVendorCDR_20' ) start [2025-04-20 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948653', 'tblTempVendorCDR_20' ) end [2025-04-20 07:10:19] Production.INFO: ProcessCDR(1,14948653,1,1,2) [2025-04-20 07:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948653', 'tblTempUsageDetail_20' ) start [2025-04-20 07:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948653', 'tblTempUsageDetail_20' ) end [2025-04-20 07:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 07:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 07:10:22] Production.INFO: ==23192== Releasing lock... [2025-04-20 07:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 07:10:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-20 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 04:11:05 [end_date_ymd] => 2025-04-20 07:11:05 [RateCDR] => 1 ) [2025-04-20 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-20 04:11:05' and `end` < '2025-04-20 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-20 07:11:18] Production.INFO: count ==191 [2025-04-20 07:11:18] Production.ERROR: pbx CDR StartTime 2025-04-20 04:11:05 - End Time 2025-04-20 07:11:05 [2025-04-20 07:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948659', 'tblTempUsageDetail_20' ) start [2025-04-20 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948659', 'tblTempUsageDetail_20' ) end [2025-04-20 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948659', 'tblTempVendorCDR_20' ) start [2025-04-20 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948659', 'tblTempVendorCDR_20' ) end [2025-04-20 07:11:18] Production.INFO: ProcessCDR(1,14948659,1,1,2) [2025-04-20 07:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948659', 'tblTempUsageDetail_20' ) start [2025-04-20 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948659', 'tblTempUsageDetail_20' ) end [2025-04-20 07:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 07:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 07:11:22] Production.INFO: ==23268== Releasing lock... [2025-04-20 07:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 07:11:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-20 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 04:12:05 [end_date_ymd] => 2025-04-20 07:12:05 [RateCDR] => 1 ) [2025-04-20 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-20 04:12:05' and `end` < '2025-04-20 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-20 07:12:18] Production.INFO: count ==189 [2025-04-20 07:12:18] Production.ERROR: pbx CDR StartTime 2025-04-20 04:12:05 - End Time 2025-04-20 07:12:05 [2025-04-20 07:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948664', 'tblTempUsageDetail_20' ) start [2025-04-20 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948664', 'tblTempUsageDetail_20' ) end [2025-04-20 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948664', 'tblTempVendorCDR_20' ) start [2025-04-20 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948664', 'tblTempVendorCDR_20' ) end [2025-04-20 07:12:18] Production.INFO: ProcessCDR(1,14948664,1,1,2) [2025-04-20 07:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948664', 'tblTempUsageDetail_20' ) start [2025-04-20 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948664', 'tblTempUsageDetail_20' ) end [2025-04-20 07:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 07:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 07:12:21] Production.INFO: ==23417== Releasing lock... [2025-04-20 07:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 07:12:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-20 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 04:13:05 [end_date_ymd] => 2025-04-20 07:13:05 [RateCDR] => 1 ) [2025-04-20 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-20 04:13:05' and `end` < '2025-04-20 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-20 07:13:19] Production.INFO: count ==189 [2025-04-20 07:13:19] Production.ERROR: pbx CDR StartTime 2025-04-20 04:13:05 - End Time 2025-04-20 07:13:05 [2025-04-20 07:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948669', 'tblTempUsageDetail_20' ) start [2025-04-20 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948669', 'tblTempUsageDetail_20' ) end [2025-04-20 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948669', 'tblTempVendorCDR_20' ) start [2025-04-20 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948669', 'tblTempVendorCDR_20' ) end [2025-04-20 07:13:19] Production.INFO: ProcessCDR(1,14948669,1,1,2) [2025-04-20 07:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948669', 'tblTempUsageDetail_20' ) start [2025-04-20 07:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948669', 'tblTempUsageDetail_20' ) end [2025-04-20 07:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 07:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 07:13:22] Production.INFO: ==23493== Releasing lock... [2025-04-20 07:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 07:13:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-20 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 04:14:05 [end_date_ymd] => 2025-04-20 07:14:05 [RateCDR] => 1 ) [2025-04-20 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-20 04:14:05' and `end` < '2025-04-20 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-20 07:14:18] Production.INFO: count ==189 [2025-04-20 07:14:18] Production.ERROR: pbx CDR StartTime 2025-04-20 04:14:05 - End Time 2025-04-20 07:14:05 [2025-04-20 07:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948674', 'tblTempUsageDetail_20' ) start [2025-04-20 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948674', 'tblTempUsageDetail_20' ) end [2025-04-20 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948674', 'tblTempVendorCDR_20' ) start [2025-04-20 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948674', 'tblTempVendorCDR_20' ) end [2025-04-20 07:14:18] Production.INFO: ProcessCDR(1,14948674,1,1,2) [2025-04-20 07:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948674', 'tblTempUsageDetail_20' ) start [2025-04-20 07:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948674', 'tblTempUsageDetail_20' ) end [2025-04-20 07:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 07:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 07:14:21] Production.INFO: ==23566== Releasing lock... [2025-04-20 07:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 07:14:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-20 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 04:15:05 [end_date_ymd] => 2025-04-20 07:15:05 [RateCDR] => 1 ) [2025-04-20 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-20 04:15:05' and `end` < '2025-04-20 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-20 07:15:19] Production.INFO: count ==189 [2025-04-20 07:15:19] Production.ERROR: pbx CDR StartTime 2025-04-20 04:15:05 - End Time 2025-04-20 07:15:05 [2025-04-20 07:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948679', 'tblTempUsageDetail_20' ) start [2025-04-20 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948679', 'tblTempUsageDetail_20' ) end [2025-04-20 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948679', 'tblTempVendorCDR_20' ) start [2025-04-20 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948679', 'tblTempVendorCDR_20' ) end [2025-04-20 07:15:19] Production.INFO: ProcessCDR(1,14948679,1,1,2) [2025-04-20 07:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948679', 'tblTempUsageDetail_20' ) start [2025-04-20 07:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948679', 'tblTempUsageDetail_20' ) end [2025-04-20 07:15:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 07:15:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 07:15:23] Production.INFO: ==23719== Releasing lock... [2025-04-20 07:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 07:15:23] Production.INFO: 29.75 MB #Memory Used# [2025-04-20 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 04:16:05 [end_date_ymd] => 2025-04-20 07:16:05 [RateCDR] => 1 ) [2025-04-20 07:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 04:16:05' and `end` < '2025-04-20 07:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 07:16:19] Production.INFO: count ==186 [2025-04-20 07:16:19] Production.ERROR: pbx CDR StartTime 2025-04-20 04:16:05 - End Time 2025-04-20 07:16:05 [2025-04-20 07:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948684', 'tblTempUsageDetail_20' ) start [2025-04-20 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948684', 'tblTempUsageDetail_20' ) end [2025-04-20 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948684', 'tblTempVendorCDR_20' ) start [2025-04-20 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948684', 'tblTempVendorCDR_20' ) end [2025-04-20 07:16:19] Production.INFO: ProcessCDR(1,14948684,1,1,2) [2025-04-20 07:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948684', 'tblTempUsageDetail_20' ) start [2025-04-20 07:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948684', 'tblTempUsageDetail_20' ) end [2025-04-20 07:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 07:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 07:16:22] Production.INFO: ==23791== Releasing lock... [2025-04-20 07:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 07:16:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-20 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 04:17:05 [end_date_ymd] => 2025-04-20 07:17:05 [RateCDR] => 1 ) [2025-04-20 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-20 04:17:05' and `end` < '2025-04-20 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-20 07:17:19] Production.INFO: count ==185 [2025-04-20 07:17:19] Production.ERROR: pbx CDR StartTime 2025-04-20 04:17:05 - End Time 2025-04-20 07:17:05 [2025-04-20 07:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948689', 'tblTempUsageDetail_20' ) start [2025-04-20 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948689', 'tblTempUsageDetail_20' ) end [2025-04-20 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948689', 'tblTempVendorCDR_20' ) start [2025-04-20 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948689', 'tblTempVendorCDR_20' ) end [2025-04-20 07:17:19] Production.INFO: ProcessCDR(1,14948689,1,1,2) [2025-04-20 07:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948689', 'tblTempUsageDetail_20' ) start [2025-04-20 07:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948689', 'tblTempUsageDetail_20' ) end [2025-04-20 07:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 07:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 07:17:22] Production.INFO: ==23864== Releasing lock... [2025-04-20 07:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 07:17:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-20 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 04:18:05 [end_date_ymd] => 2025-04-20 07:18:05 [RateCDR] => 1 ) [2025-04-20 07:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 04:18:05' and `end` < '2025-04-20 07:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 07:18:17] Production.INFO: count ==189 [2025-04-20 07:18:17] Production.ERROR: pbx CDR StartTime 2025-04-20 04:18:05 - End Time 2025-04-20 07:18:05 [2025-04-20 07:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 07:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948694', 'tblTempUsageDetail_20' ) start [2025-04-20 07:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948694', 'tblTempUsageDetail_20' ) end [2025-04-20 07:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948694', 'tblTempVendorCDR_20' ) start [2025-04-20 07:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948694', 'tblTempVendorCDR_20' ) end [2025-04-20 07:18:17] Production.INFO: ProcessCDR(1,14948694,1,1,2) [2025-04-20 07:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948694', 'tblTempUsageDetail_20' ) start [2025-04-20 07:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948694', 'tblTempUsageDetail_20' ) end [2025-04-20 07:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 07:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 07:18:21] Production.INFO: ==23934== Releasing lock... [2025-04-20 07:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 07:18:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-20 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 04:19:05 [end_date_ymd] => 2025-04-20 07:19:05 [RateCDR] => 1 ) [2025-04-20 07:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 04:19:05' and `end` < '2025-04-20 07:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 07:19:18] Production.INFO: count ==189 [2025-04-20 07:19:18] Production.ERROR: pbx CDR StartTime 2025-04-20 04:19:05 - End Time 2025-04-20 07:19:05 [2025-04-20 07:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948699', 'tblTempUsageDetail_20' ) start [2025-04-20 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948699', 'tblTempUsageDetail_20' ) end [2025-04-20 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948699', 'tblTempVendorCDR_20' ) start [2025-04-20 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948699', 'tblTempVendorCDR_20' ) end [2025-04-20 07:19:18] Production.INFO: ProcessCDR(1,14948699,1,1,2) [2025-04-20 07:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948699', 'tblTempUsageDetail_20' ) start [2025-04-20 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948699', 'tblTempUsageDetail_20' ) end [2025-04-20 07:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 07:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 07:19:21] Production.INFO: ==24009== Releasing lock... [2025-04-20 07:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 07:19:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-20 07:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 04:20:07 [end_date_ymd] => 2025-04-20 07:20:07 [RateCDR] => 1 ) [2025-04-20 07: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-20 04:20:07' and `end` < '2025-04-20 07: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-20 07:20:19] Production.INFO: count ==185 [2025-04-20 07:20:19] Production.ERROR: pbx CDR StartTime 2025-04-20 04:20:07 - End Time 2025-04-20 07:20:07 [2025-04-20 07:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948705', 'tblTempUsageDetail_20' ) start [2025-04-20 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948705', 'tblTempUsageDetail_20' ) end [2025-04-20 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948705', 'tblTempVendorCDR_20' ) start [2025-04-20 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948705', 'tblTempVendorCDR_20' ) end [2025-04-20 07:20:19] Production.INFO: ProcessCDR(1,14948705,1,1,2) [2025-04-20 07:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948705', 'tblTempUsageDetail_20' ) start [2025-04-20 07:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948705', 'tblTempUsageDetail_20' ) end [2025-04-20 07:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 07:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 07:20:23] Production.INFO: ==24123== Releasing lock... [2025-04-20 07:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 07:20:23] Production.INFO: 29.75 MB #Memory Used# [2025-04-20 07:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 04:21:05 [end_date_ymd] => 2025-04-20 07:21:05 [RateCDR] => 1 ) [2025-04-20 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-20 04:21:05' and `end` < '2025-04-20 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-20 07:21:17] Production.INFO: count ==185 [2025-04-20 07:21:17] Production.ERROR: pbx CDR StartTime 2025-04-20 04:21:05 - End Time 2025-04-20 07:21:05 [2025-04-20 07:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 07:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948710', 'tblTempUsageDetail_20' ) start [2025-04-20 07:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948710', 'tblTempUsageDetail_20' ) end [2025-04-20 07:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948710', 'tblTempVendorCDR_20' ) start [2025-04-20 07:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948710', 'tblTempVendorCDR_20' ) end [2025-04-20 07:21:17] Production.INFO: ProcessCDR(1,14948710,1,1,2) [2025-04-20 07:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948710', 'tblTempUsageDetail_20' ) start [2025-04-20 07:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948710', 'tblTempUsageDetail_20' ) end [2025-04-20 07:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 07:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 07:21:21] Production.INFO: ==24202== Releasing lock... [2025-04-20 07:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 07:21:21] Production.INFO: 30 MB #Memory Used# [2025-04-20 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 04:22:05 [end_date_ymd] => 2025-04-20 07:22:05 [RateCDR] => 1 ) [2025-04-20 07:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 04:22:05' and `end` < '2025-04-20 07:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 07:22:18] Production.INFO: count ==184 [2025-04-20 07:22:18] Production.ERROR: pbx CDR StartTime 2025-04-20 04:22:05 - End Time 2025-04-20 07:22:05 [2025-04-20 07:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948715', 'tblTempUsageDetail_20' ) start [2025-04-20 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948715', 'tblTempUsageDetail_20' ) end [2025-04-20 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948715', 'tblTempVendorCDR_20' ) start [2025-04-20 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948715', 'tblTempVendorCDR_20' ) end [2025-04-20 07:22:18] Production.INFO: ProcessCDR(1,14948715,1,1,2) [2025-04-20 07:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948715', 'tblTempUsageDetail_20' ) start [2025-04-20 07:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948715', 'tblTempUsageDetail_20' ) end [2025-04-20 07:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 07:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 07:22:21] Production.INFO: ==24284== Releasing lock... [2025-04-20 07:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 07:22:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-20 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 04:23:05 [end_date_ymd] => 2025-04-20 07:23:05 [RateCDR] => 1 ) [2025-04-20 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-20 04:23:05' and `end` < '2025-04-20 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-20 07:23:17] Production.INFO: count ==184 [2025-04-20 07:23:18] Production.ERROR: pbx CDR StartTime 2025-04-20 04:23:05 - End Time 2025-04-20 07:23:05 [2025-04-20 07:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948720', 'tblTempUsageDetail_20' ) start [2025-04-20 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948720', 'tblTempUsageDetail_20' ) end [2025-04-20 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948720', 'tblTempVendorCDR_20' ) start [2025-04-20 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948720', 'tblTempVendorCDR_20' ) end [2025-04-20 07:23:18] Production.INFO: ProcessCDR(1,14948720,1,1,2) [2025-04-20 07:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948720', 'tblTempUsageDetail_20' ) start [2025-04-20 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948720', 'tblTempUsageDetail_20' ) end [2025-04-20 07:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 07:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 07:23:21] Production.INFO: ==24356== Releasing lock... [2025-04-20 07:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 07:23:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-20 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 04:24:05 [end_date_ymd] => 2025-04-20 07:24:05 [RateCDR] => 1 ) [2025-04-20 07:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 04:24:05' and `end` < '2025-04-20 07:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 07:24:18] Production.INFO: count ==184 [2025-04-20 07:24:18] Production.ERROR: pbx CDR StartTime 2025-04-20 04:24:05 - End Time 2025-04-20 07:24:05 [2025-04-20 07:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948725', 'tblTempUsageDetail_20' ) start [2025-04-20 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948725', 'tblTempUsageDetail_20' ) end [2025-04-20 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948725', 'tblTempVendorCDR_20' ) start [2025-04-20 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948725', 'tblTempVendorCDR_20' ) end [2025-04-20 07:24:18] Production.INFO: ProcessCDR(1,14948725,1,1,2) [2025-04-20 07:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948725', 'tblTempUsageDetail_20' ) start [2025-04-20 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948725', 'tblTempUsageDetail_20' ) end [2025-04-20 07:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 07:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 07:24:21] Production.INFO: ==24430== Releasing lock... [2025-04-20 07:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 07:24:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-20 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 04:25:05 [end_date_ymd] => 2025-04-20 07:25:05 [RateCDR] => 1 ) [2025-04-20 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-20 04:25:05' and `end` < '2025-04-20 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-20 07:25:17] Production.INFO: count ==182 [2025-04-20 07:25:17] Production.ERROR: pbx CDR StartTime 2025-04-20 04:25:05 - End Time 2025-04-20 07:25:05 [2025-04-20 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948730', 'tblTempUsageDetail_20' ) start [2025-04-20 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948730', 'tblTempUsageDetail_20' ) end [2025-04-20 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948730', 'tblTempVendorCDR_20' ) start [2025-04-20 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948730', 'tblTempVendorCDR_20' ) end [2025-04-20 07:25:18] Production.INFO: ProcessCDR(1,14948730,1,1,2) [2025-04-20 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948730', 'tblTempUsageDetail_20' ) start [2025-04-20 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948730', 'tblTempUsageDetail_20' ) end [2025-04-20 07:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 07:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 07:25:21] Production.INFO: ==24506== Releasing lock... [2025-04-20 07:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 07:25:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-20 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 04:26:05 [end_date_ymd] => 2025-04-20 07:26:05 [RateCDR] => 1 ) [2025-04-20 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-20 04:26:05' and `end` < '2025-04-20 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-20 07:26:17] Production.INFO: count ==177 [2025-04-20 07:26:17] Production.ERROR: pbx CDR StartTime 2025-04-20 04:26:05 - End Time 2025-04-20 07:26:05 [2025-04-20 07:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948735', 'tblTempUsageDetail_20' ) start [2025-04-20 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948735', 'tblTempUsageDetail_20' ) end [2025-04-20 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948735', 'tblTempVendorCDR_20' ) start [2025-04-20 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948735', 'tblTempVendorCDR_20' ) end [2025-04-20 07:26:18] Production.INFO: ProcessCDR(1,14948735,1,1,2) [2025-04-20 07:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948735', 'tblTempUsageDetail_20' ) start [2025-04-20 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948735', 'tblTempUsageDetail_20' ) end [2025-04-20 07:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 07:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 07:26:21] Production.INFO: ==24580== Releasing lock... [2025-04-20 07:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 07:26:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-20 07:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 04:27:06 [end_date_ymd] => 2025-04-20 07:27:06 [RateCDR] => 1 ) [2025-04-20 07:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 04:27:06' and `end` < '2025-04-20 07:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 07:27:18] Production.INFO: count ==173 [2025-04-20 07:27:18] Production.ERROR: pbx CDR StartTime 2025-04-20 04:27:06 - End Time 2025-04-20 07:27:06 [2025-04-20 07:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948740', 'tblTempUsageDetail_20' ) start [2025-04-20 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948740', 'tblTempUsageDetail_20' ) end [2025-04-20 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948740', 'tblTempVendorCDR_20' ) start [2025-04-20 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948740', 'tblTempVendorCDR_20' ) end [2025-04-20 07:27:18] Production.INFO: ProcessCDR(1,14948740,1,1,2) [2025-04-20 07:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948740', 'tblTempUsageDetail_20' ) start [2025-04-20 07:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948740', 'tblTempUsageDetail_20' ) end [2025-04-20 07:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 07:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 07:27:22] Production.INFO: ==24657== Releasing lock... [2025-04-20 07:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 07:27:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-20 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 04:28:05 [end_date_ymd] => 2025-04-20 07:28:05 [RateCDR] => 1 ) [2025-04-20 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-20 04:28:05' and `end` < '2025-04-20 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-20 07:28:17] Production.INFO: count ==173 [2025-04-20 07:28:17] Production.ERROR: pbx CDR StartTime 2025-04-20 04:28:05 - End Time 2025-04-20 07:28:05 [2025-04-20 07:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948745', 'tblTempUsageDetail_20' ) start [2025-04-20 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948745', 'tblTempUsageDetail_20' ) end [2025-04-20 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948745', 'tblTempVendorCDR_20' ) start [2025-04-20 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948745', 'tblTempVendorCDR_20' ) end [2025-04-20 07:28:17] Production.INFO: ProcessCDR(1,14948745,1,1,2) [2025-04-20 07:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948745', 'tblTempUsageDetail_20' ) start [2025-04-20 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948745', 'tblTempUsageDetail_20' ) end [2025-04-20 07:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 07:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 07:28:21] Production.INFO: ==24728== Releasing lock... [2025-04-20 07:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 07:28:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-20 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 04:29:05 [end_date_ymd] => 2025-04-20 07:29:05 [RateCDR] => 1 ) [2025-04-20 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-20 04:29:05' and `end` < '2025-04-20 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-20 07:29:18] Production.INFO: count ==171 [2025-04-20 07:29:18] Production.ERROR: pbx CDR StartTime 2025-04-20 04:29:05 - End Time 2025-04-20 07:29:05 [2025-04-20 07:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948750', 'tblTempUsageDetail_20' ) start [2025-04-20 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948750', 'tblTempUsageDetail_20' ) end [2025-04-20 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948750', 'tblTempVendorCDR_20' ) start [2025-04-20 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948750', 'tblTempVendorCDR_20' ) end [2025-04-20 07:29:18] Production.INFO: ProcessCDR(1,14948750,1,1,2) [2025-04-20 07:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948750', 'tblTempUsageDetail_20' ) start [2025-04-20 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948750', 'tblTempUsageDetail_20' ) end [2025-04-20 07:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 07:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 07:29:21] Production.INFO: ==24799== Releasing lock... [2025-04-20 07:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 07:29:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-20 07:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 04:30:06 [end_date_ymd] => 2025-04-20 07:30:06 [RateCDR] => 1 ) [2025-04-20 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-20 04:30:06' and `end` < '2025-04-20 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-20 07:30:18] Production.INFO: count ==157 [2025-04-20 07:30:18] Production.ERROR: pbx CDR StartTime 2025-04-20 04:30:06 - End Time 2025-04-20 07:30:06 [2025-04-20 07:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948756', 'tblTempUsageDetail_20' ) start [2025-04-20 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948756', 'tblTempUsageDetail_20' ) end [2025-04-20 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948756', 'tblTempVendorCDR_20' ) start [2025-04-20 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948756', 'tblTempVendorCDR_20' ) end [2025-04-20 07:30:18] Production.INFO: ProcessCDR(1,14948756,1,1,2) [2025-04-20 07:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948756', 'tblTempUsageDetail_20' ) start [2025-04-20 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948756', 'tblTempUsageDetail_20' ) end [2025-04-20 07:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 07:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 07:30:22] Production.INFO: ==24876== Releasing lock... [2025-04-20 07:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 07:30:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-20 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 04:31:05 [end_date_ymd] => 2025-04-20 07:31:05 [RateCDR] => 1 ) [2025-04-20 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-20 04:31:05' and `end` < '2025-04-20 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-20 07:31:18] Production.INFO: count ==153 [2025-04-20 07:31:18] Production.ERROR: pbx CDR StartTime 2025-04-20 04:31:05 - End Time 2025-04-20 07:31:05 [2025-04-20 07:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948761', 'tblTempUsageDetail_20' ) start [2025-04-20 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948761', 'tblTempUsageDetail_20' ) end [2025-04-20 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948761', 'tblTempVendorCDR_20' ) start [2025-04-20 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948761', 'tblTempVendorCDR_20' ) end [2025-04-20 07:31:18] Production.INFO: ProcessCDR(1,14948761,1,1,2) [2025-04-20 07:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948761', 'tblTempUsageDetail_20' ) start [2025-04-20 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948761', 'tblTempUsageDetail_20' ) end [2025-04-20 07:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 07:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 07:31:21] Production.INFO: ==24953== Releasing lock... [2025-04-20 07:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 07:31:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-20 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 04:32:05 [end_date_ymd] => 2025-04-20 07:32:05 [RateCDR] => 1 ) [2025-04-20 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-20 04:32:05' and `end` < '2025-04-20 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-20 07:32:17] Production.INFO: count ==152 [2025-04-20 07:32:17] Production.ERROR: pbx CDR StartTime 2025-04-20 04:32:05 - End Time 2025-04-20 07:32:05 [2025-04-20 07:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948766', 'tblTempUsageDetail_20' ) start [2025-04-20 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948766', 'tblTempUsageDetail_20' ) end [2025-04-20 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948766', 'tblTempVendorCDR_20' ) start [2025-04-20 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948766', 'tblTempVendorCDR_20' ) end [2025-04-20 07:32:17] Production.INFO: ProcessCDR(1,14948766,1,1,2) [2025-04-20 07:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948766', 'tblTempUsageDetail_20' ) start [2025-04-20 07:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948766', 'tblTempUsageDetail_20' ) end [2025-04-20 07:32:20] Production.ERROR: pbx prc_insertCDR start [2025-04-20 07:32:20] Production.ERROR: pbx prc_insertCDR end [2025-04-20 07:32:20] Production.INFO: ==25032== Releasing lock... [2025-04-20 07:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 07:32:20] Production.INFO: 29.25 MB #Memory Used# [2025-04-20 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 04:33:05 [end_date_ymd] => 2025-04-20 07:33:05 [RateCDR] => 1 ) [2025-04-20 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-20 04:33:05' and `end` < '2025-04-20 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-20 07:33:18] Production.INFO: count ==148 [2025-04-20 07:33:18] Production.ERROR: pbx CDR StartTime 2025-04-20 04:33:05 - End Time 2025-04-20 07:33:05 [2025-04-20 07:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948771', 'tblTempUsageDetail_20' ) start [2025-04-20 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948771', 'tblTempUsageDetail_20' ) end [2025-04-20 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948771', 'tblTempVendorCDR_20' ) start [2025-04-20 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948771', 'tblTempVendorCDR_20' ) end [2025-04-20 07:33:18] Production.INFO: ProcessCDR(1,14948771,1,1,2) [2025-04-20 07:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948771', 'tblTempUsageDetail_20' ) start [2025-04-20 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948771', 'tblTempUsageDetail_20' ) end [2025-04-20 07:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 07:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 07:33:21] Production.INFO: ==25107== Releasing lock... [2025-04-20 07:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 07:33:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-20 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 04:34:05 [end_date_ymd] => 2025-04-20 07:34:05 [RateCDR] => 1 ) [2025-04-20 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-20 04:34:05' and `end` < '2025-04-20 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-20 07:34:18] Production.INFO: count ==149 [2025-04-20 07:34:18] Production.ERROR: pbx CDR StartTime 2025-04-20 04:34:05 - End Time 2025-04-20 07:34:05 [2025-04-20 07:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948776', 'tblTempUsageDetail_20' ) start [2025-04-20 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948776', 'tblTempUsageDetail_20' ) end [2025-04-20 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948776', 'tblTempVendorCDR_20' ) start [2025-04-20 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948776', 'tblTempVendorCDR_20' ) end [2025-04-20 07:34:18] Production.INFO: ProcessCDR(1,14948776,1,1,2) [2025-04-20 07:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948776', 'tblTempUsageDetail_20' ) start [2025-04-20 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948776', 'tblTempUsageDetail_20' ) end [2025-04-20 07:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 07:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 07:34:21] Production.INFO: ==25178== Releasing lock... [2025-04-20 07:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 07:34:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-20 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 04:35:05 [end_date_ymd] => 2025-04-20 07:35:05 [RateCDR] => 1 ) [2025-04-20 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-20 04:35:05' and `end` < '2025-04-20 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-20 07:35:18] Production.INFO: count ==149 [2025-04-20 07:35:18] Production.ERROR: pbx CDR StartTime 2025-04-20 04:35:05 - End Time 2025-04-20 07:35:05 [2025-04-20 07:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948781', 'tblTempUsageDetail_20' ) start [2025-04-20 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948781', 'tblTempUsageDetail_20' ) end [2025-04-20 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948781', 'tblTempVendorCDR_20' ) start [2025-04-20 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948781', 'tblTempVendorCDR_20' ) end [2025-04-20 07:35:18] Production.INFO: ProcessCDR(1,14948781,1,1,2) [2025-04-20 07:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948781', 'tblTempUsageDetail_20' ) start [2025-04-20 07:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948781', 'tblTempUsageDetail_20' ) end [2025-04-20 07:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 07:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 07:35:22] Production.INFO: ==25258== Releasing lock... [2025-04-20 07:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 07:35:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-20 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 04:36:05 [end_date_ymd] => 2025-04-20 07:36:05 [RateCDR] => 1 ) [2025-04-20 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-20 04:36:05' and `end` < '2025-04-20 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-20 07:36:18] Production.INFO: count ==149 [2025-04-20 07:36:18] Production.ERROR: pbx CDR StartTime 2025-04-20 04:36:05 - End Time 2025-04-20 07:36:05 [2025-04-20 07:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948786', 'tblTempUsageDetail_20' ) start [2025-04-20 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948786', 'tblTempUsageDetail_20' ) end [2025-04-20 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948786', 'tblTempVendorCDR_20' ) start [2025-04-20 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948786', 'tblTempVendorCDR_20' ) end [2025-04-20 07:36:18] Production.INFO: ProcessCDR(1,14948786,1,1,2) [2025-04-20 07:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948786', 'tblTempUsageDetail_20' ) start [2025-04-20 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948786', 'tblTempUsageDetail_20' ) end [2025-04-20 07:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 07:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 07:36:21] Production.INFO: ==25377== Releasing lock... [2025-04-20 07:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 07:36:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-20 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 04:37:05 [end_date_ymd] => 2025-04-20 07:37:05 [RateCDR] => 1 ) [2025-04-20 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-20 04:37:05' and `end` < '2025-04-20 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-20 07:37:17] Production.INFO: count ==148 [2025-04-20 07:37:17] Production.ERROR: pbx CDR StartTime 2025-04-20 04:37:05 - End Time 2025-04-20 07:37:05 [2025-04-20 07:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948791', 'tblTempUsageDetail_20' ) start [2025-04-20 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948791', 'tblTempUsageDetail_20' ) end [2025-04-20 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948791', 'tblTempVendorCDR_20' ) start [2025-04-20 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948791', 'tblTempVendorCDR_20' ) end [2025-04-20 07:37:17] Production.INFO: ProcessCDR(1,14948791,1,1,2) [2025-04-20 07:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948791', 'tblTempUsageDetail_20' ) start [2025-04-20 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948791', 'tblTempUsageDetail_20' ) end [2025-04-20 07:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 07:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 07:37:21] Production.INFO: ==25458== Releasing lock... [2025-04-20 07:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 07:37:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-20 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 04:38:05 [end_date_ymd] => 2025-04-20 07:38:05 [RateCDR] => 1 ) [2025-04-20 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-20 04:38:05' and `end` < '2025-04-20 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-20 07:38:18] Production.INFO: count ==148 [2025-04-20 07:38:18] Production.ERROR: pbx CDR StartTime 2025-04-20 04:38:05 - End Time 2025-04-20 07:38:05 [2025-04-20 07:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948796', 'tblTempUsageDetail_20' ) start [2025-04-20 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948796', 'tblTempUsageDetail_20' ) end [2025-04-20 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948796', 'tblTempVendorCDR_20' ) start [2025-04-20 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948796', 'tblTempVendorCDR_20' ) end [2025-04-20 07:38:18] Production.INFO: ProcessCDR(1,14948796,1,1,2) [2025-04-20 07:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948796', 'tblTempUsageDetail_20' ) start [2025-04-20 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948796', 'tblTempUsageDetail_20' ) end [2025-04-20 07:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 07:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 07:38:21] Production.INFO: ==25573== Releasing lock... [2025-04-20 07:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 07:38:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-20 07:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 04:39:04 [end_date_ymd] => 2025-04-20 07:39:04 [RateCDR] => 1 ) [2025-04-20 07: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-20 04:39:04' and `end` < '2025-04-20 07: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-20 07:39:17] Production.INFO: count ==146 [2025-04-20 07:39:17] Production.ERROR: pbx CDR StartTime 2025-04-20 04:39:04 - End Time 2025-04-20 07:39:04 [2025-04-20 07:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948801', 'tblTempUsageDetail_20' ) start [2025-04-20 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948801', 'tblTempUsageDetail_20' ) end [2025-04-20 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948801', 'tblTempVendorCDR_20' ) start [2025-04-20 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948801', 'tblTempVendorCDR_20' ) end [2025-04-20 07:39:17] Production.INFO: ProcessCDR(1,14948801,1,1,2) [2025-04-20 07:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948801', 'tblTempUsageDetail_20' ) start [2025-04-20 07:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948801', 'tblTempUsageDetail_20' ) end [2025-04-20 07:39:20] Production.ERROR: pbx prc_insertCDR start [2025-04-20 07:39:20] Production.ERROR: pbx prc_insertCDR end [2025-04-20 07:39:20] Production.INFO: ==25689== Releasing lock... [2025-04-20 07:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 07:39:20] Production.INFO: 29.25 MB #Memory Used# [2025-04-20 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 04:40:06 [end_date_ymd] => 2025-04-20 07:40:06 [RateCDR] => 1 ) [2025-04-20 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-20 04:40:06' and `end` < '2025-04-20 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-20 07:40:19] Production.INFO: count ==138 [2025-04-20 07:40:19] Production.ERROR: pbx CDR StartTime 2025-04-20 04:40:06 - End Time 2025-04-20 07:40:06 [2025-04-20 07:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948807', 'tblTempUsageDetail_20' ) start [2025-04-20 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948807', 'tblTempUsageDetail_20' ) end [2025-04-20 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948807', 'tblTempVendorCDR_20' ) start [2025-04-20 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948807', 'tblTempVendorCDR_20' ) end [2025-04-20 07:40:19] Production.INFO: ProcessCDR(1,14948807,1,1,2) [2025-04-20 07:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948807', 'tblTempUsageDetail_20' ) start [2025-04-20 07:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948807', 'tblTempUsageDetail_20' ) end [2025-04-20 07:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 07:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 07:40:23] Production.INFO: ==25806== Releasing lock... [2025-04-20 07:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 07:40:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-20 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 04:41:05 [end_date_ymd] => 2025-04-20 07:41:05 [RateCDR] => 1 ) [2025-04-20 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-20 04:41:05' and `end` < '2025-04-20 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-20 07:41:18] Production.INFO: count ==133 [2025-04-20 07:41:18] Production.ERROR: pbx CDR StartTime 2025-04-20 04:41:05 - End Time 2025-04-20 07:41:05 [2025-04-20 07:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948812', 'tblTempUsageDetail_20' ) start [2025-04-20 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948812', 'tblTempUsageDetail_20' ) end [2025-04-20 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948812', 'tblTempVendorCDR_20' ) start [2025-04-20 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948812', 'tblTempVendorCDR_20' ) end [2025-04-20 07:41:18] Production.INFO: ProcessCDR(1,14948812,1,1,2) [2025-04-20 07:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948812', 'tblTempUsageDetail_20' ) start [2025-04-20 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948812', 'tblTempUsageDetail_20' ) end [2025-04-20 07:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 07:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 07:41:21] Production.INFO: ==25924== Releasing lock... [2025-04-20 07:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 07:41:21] Production.INFO: 29 MB #Memory Used# [2025-04-20 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 04:42:05 [end_date_ymd] => 2025-04-20 07:42:05 [RateCDR] => 1 ) [2025-04-20 07:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 04:42:05' and `end` < '2025-04-20 07:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 07:42:18] Production.INFO: count ==131 [2025-04-20 07:42:18] Production.ERROR: pbx CDR StartTime 2025-04-20 04:42:05 - End Time 2025-04-20 07:42:05 [2025-04-20 07:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948817', 'tblTempUsageDetail_20' ) start [2025-04-20 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948817', 'tblTempUsageDetail_20' ) end [2025-04-20 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948817', 'tblTempVendorCDR_20' ) start [2025-04-20 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948817', 'tblTempVendorCDR_20' ) end [2025-04-20 07:42:18] Production.INFO: ProcessCDR(1,14948817,1,1,2) [2025-04-20 07:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948817', 'tblTempUsageDetail_20' ) start [2025-04-20 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948817', 'tblTempUsageDetail_20' ) end [2025-04-20 07:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 07:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 07:42:21] Production.INFO: ==26034== Releasing lock... [2025-04-20 07:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 07:42:21] Production.INFO: 29 MB #Memory Used# [2025-04-20 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 04:43:05 [end_date_ymd] => 2025-04-20 07:43:05 [RateCDR] => 1 ) [2025-04-20 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-20 04:43:05' and `end` < '2025-04-20 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-20 07:43:17] Production.INFO: count ==126 [2025-04-20 07:43:17] Production.ERROR: pbx CDR StartTime 2025-04-20 04:43:05 - End Time 2025-04-20 07:43:05 [2025-04-20 07:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948822', 'tblTempUsageDetail_20' ) start [2025-04-20 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948822', 'tblTempUsageDetail_20' ) end [2025-04-20 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948822', 'tblTempVendorCDR_20' ) start [2025-04-20 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948822', 'tblTempVendorCDR_20' ) end [2025-04-20 07:43:17] Production.INFO: ProcessCDR(1,14948822,1,1,2) [2025-04-20 07:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948822', 'tblTempUsageDetail_20' ) start [2025-04-20 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948822', 'tblTempUsageDetail_20' ) end [2025-04-20 07:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 07:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 07:43:21] Production.INFO: ==26147== Releasing lock... [2025-04-20 07:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 07:43:21] Production.INFO: 29 MB #Memory Used# [2025-04-20 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 04:44:04 [end_date_ymd] => 2025-04-20 07:44:04 [RateCDR] => 1 ) [2025-04-20 07: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-20 04:44:04' and `end` < '2025-04-20 07:44: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-20 07:44:17] Production.INFO: count ==124 [2025-04-20 07:44:17] Production.ERROR: pbx CDR StartTime 2025-04-20 04:44:04 - End Time 2025-04-20 07:44:04 [2025-04-20 07:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948827', 'tblTempUsageDetail_20' ) start [2025-04-20 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948827', 'tblTempUsageDetail_20' ) end [2025-04-20 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948827', 'tblTempVendorCDR_20' ) start [2025-04-20 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948827', 'tblTempVendorCDR_20' ) end [2025-04-20 07:44:17] Production.INFO: ProcessCDR(1,14948827,1,1,2) [2025-04-20 07:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948827', 'tblTempUsageDetail_20' ) start [2025-04-20 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948827', 'tblTempUsageDetail_20' ) end [2025-04-20 07:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 07:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 07:44:21] Production.INFO: ==26267== Releasing lock... [2025-04-20 07:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 07:44:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-20 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 04:45:05 [end_date_ymd] => 2025-04-20 07:45:05 [RateCDR] => 1 ) [2025-04-20 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-20 04:45:05' and `end` < '2025-04-20 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-20 07:45:18] Production.INFO: count ==122 [2025-04-20 07:45:18] Production.ERROR: pbx CDR StartTime 2025-04-20 04:45:05 - End Time 2025-04-20 07:45:05 [2025-04-20 07:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948832', 'tblTempUsageDetail_20' ) start [2025-04-20 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948832', 'tblTempUsageDetail_20' ) end [2025-04-20 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948832', 'tblTempVendorCDR_20' ) start [2025-04-20 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948832', 'tblTempVendorCDR_20' ) end [2025-04-20 07:45:18] Production.INFO: ProcessCDR(1,14948832,1,1,2) [2025-04-20 07:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948832', 'tblTempUsageDetail_20' ) start [2025-04-20 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948832', 'tblTempUsageDetail_20' ) end [2025-04-20 07:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 07:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 07:45:21] Production.INFO: ==26382== Releasing lock... [2025-04-20 07:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 07:45:21] Production.INFO: 29 MB #Memory Used# [2025-04-20 07:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 04:46:04 [end_date_ymd] => 2025-04-20 07:46:04 [RateCDR] => 1 ) [2025-04-20 07:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 04:46:04' and `end` < '2025-04-20 07:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 07:46:17] Production.INFO: count ==121 [2025-04-20 07:46:17] Production.ERROR: pbx CDR StartTime 2025-04-20 04:46:04 - End Time 2025-04-20 07:46:04 [2025-04-20 07:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948837', 'tblTempUsageDetail_20' ) start [2025-04-20 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948837', 'tblTempUsageDetail_20' ) end [2025-04-20 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948837', 'tblTempVendorCDR_20' ) start [2025-04-20 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948837', 'tblTempVendorCDR_20' ) end [2025-04-20 07:46:17] Production.INFO: ProcessCDR(1,14948837,1,1,2) [2025-04-20 07:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948837', 'tblTempUsageDetail_20' ) start [2025-04-20 07:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948837', 'tblTempUsageDetail_20' ) end [2025-04-20 07:46:20] Production.ERROR: pbx prc_insertCDR start [2025-04-20 07:46:20] Production.ERROR: pbx prc_insertCDR end [2025-04-20 07:46:20] Production.INFO: ==26501== Releasing lock... [2025-04-20 07:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 07:46:20] Production.INFO: 28.75 MB #Memory Used# [2025-04-20 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 04:47:05 [end_date_ymd] => 2025-04-20 07:47:05 [RateCDR] => 1 ) [2025-04-20 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-20 04:47:05' and `end` < '2025-04-20 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-20 07:47:17] Production.INFO: count ==121 [2025-04-20 07:47:17] Production.ERROR: pbx CDR StartTime 2025-04-20 04:47:05 - End Time 2025-04-20 07:47:05 [2025-04-20 07:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948842', 'tblTempUsageDetail_20' ) start [2025-04-20 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948842', 'tblTempUsageDetail_20' ) end [2025-04-20 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948842', 'tblTempVendorCDR_20' ) start [2025-04-20 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948842', 'tblTempVendorCDR_20' ) end [2025-04-20 07:47:17] Production.INFO: ProcessCDR(1,14948842,1,1,2) [2025-04-20 07:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948842', 'tblTempUsageDetail_20' ) start [2025-04-20 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948842', 'tblTempUsageDetail_20' ) end [2025-04-20 07:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 07:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 07:47:21] Production.INFO: ==26616== Releasing lock... [2025-04-20 07:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 07:47:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-20 07:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 04:48:06 [end_date_ymd] => 2025-04-20 07:48:06 [RateCDR] => 1 ) [2025-04-20 07: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-20 04:48:06' and `end` < '2025-04-20 07: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-20 07:48:18] Production.INFO: count ==121 [2025-04-20 07:48:18] Production.ERROR: pbx CDR StartTime 2025-04-20 04:48:06 - End Time 2025-04-20 07:48:06 [2025-04-20 07:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948847', 'tblTempUsageDetail_20' ) start [2025-04-20 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948847', 'tblTempUsageDetail_20' ) end [2025-04-20 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948847', 'tblTempVendorCDR_20' ) start [2025-04-20 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948847', 'tblTempVendorCDR_20' ) end [2025-04-20 07:48:18] Production.INFO: ProcessCDR(1,14948847,1,1,2) [2025-04-20 07:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948847', 'tblTempUsageDetail_20' ) start [2025-04-20 07:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948847', 'tblTempUsageDetail_20' ) end [2025-04-20 07:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 07:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 07:48:22] Production.INFO: ==26734== Releasing lock... [2025-04-20 07:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 07:48:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-20 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 04:49:05 [end_date_ymd] => 2025-04-20 07:49:05 [RateCDR] => 1 ) [2025-04-20 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-20 04:49:05' and `end` < '2025-04-20 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-20 07:49:18] Production.INFO: count ==121 [2025-04-20 07:49:18] Production.ERROR: pbx CDR StartTime 2025-04-20 04:49:05 - End Time 2025-04-20 07:49:05 [2025-04-20 07:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948852', 'tblTempUsageDetail_20' ) start [2025-04-20 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948852', 'tblTempUsageDetail_20' ) end [2025-04-20 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948852', 'tblTempVendorCDR_20' ) start [2025-04-20 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948852', 'tblTempVendorCDR_20' ) end [2025-04-20 07:49:18] Production.INFO: ProcessCDR(1,14948852,1,1,2) [2025-04-20 07:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948852', 'tblTempUsageDetail_20' ) start [2025-04-20 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948852', 'tblTempUsageDetail_20' ) end [2025-04-20 07:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 07:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 07:49:21] Production.INFO: ==26843== Releasing lock... [2025-04-20 07:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 07:49:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-20 07:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 04:50:07 [end_date_ymd] => 2025-04-20 07:50:07 [RateCDR] => 1 ) [2025-04-20 07: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-20 04:50:07' and `end` < '2025-04-20 07: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-20 07:50:19] Production.INFO: count ==121 [2025-04-20 07:50:19] Production.ERROR: pbx CDR StartTime 2025-04-20 04:50:07 - End Time 2025-04-20 07:50:07 [2025-04-20 07:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948858', 'tblTempUsageDetail_20' ) start [2025-04-20 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948858', 'tblTempUsageDetail_20' ) end [2025-04-20 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948858', 'tblTempVendorCDR_20' ) start [2025-04-20 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948858', 'tblTempVendorCDR_20' ) end [2025-04-20 07:50:19] Production.INFO: ProcessCDR(1,14948858,1,1,2) [2025-04-20 07:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948858', 'tblTempUsageDetail_20' ) start [2025-04-20 07:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948858', 'tblTempUsageDetail_20' ) end [2025-04-20 07:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 07:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 07:50:23] Production.INFO: ==26923== Releasing lock... [2025-04-20 07:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 07:50:23] Production.INFO: 28.75 MB #Memory Used# [2025-04-20 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 04:51:05 [end_date_ymd] => 2025-04-20 07:51:05 [RateCDR] => 1 ) [2025-04-20 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-20 04:51:05' and `end` < '2025-04-20 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-20 07:51:17] Production.INFO: count ==121 [2025-04-20 07:51:17] Production.ERROR: pbx CDR StartTime 2025-04-20 04:51:05 - End Time 2025-04-20 07:51:05 [2025-04-20 07:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948863', 'tblTempUsageDetail_20' ) start [2025-04-20 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948863', 'tblTempUsageDetail_20' ) end [2025-04-20 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948863', 'tblTempVendorCDR_20' ) start [2025-04-20 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948863', 'tblTempVendorCDR_20' ) end [2025-04-20 07:51:17] Production.INFO: ProcessCDR(1,14948863,1,1,2) [2025-04-20 07:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948863', 'tblTempUsageDetail_20' ) start [2025-04-20 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948863', 'tblTempUsageDetail_20' ) end [2025-04-20 07:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 07:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 07:51:21] Production.INFO: ==27042== Releasing lock... [2025-04-20 07:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 07:51:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-20 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 04:52:05 [end_date_ymd] => 2025-04-20 07:52:05 [RateCDR] => 1 ) [2025-04-20 07:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 04:52:05' and `end` < '2025-04-20 07:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 07:52:17] Production.INFO: count ==121 [2025-04-20 07:52:17] Production.ERROR: pbx CDR StartTime 2025-04-20 04:52:05 - End Time 2025-04-20 07:52:05 [2025-04-20 07:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948868', 'tblTempUsageDetail_20' ) start [2025-04-20 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948868', 'tblTempUsageDetail_20' ) end [2025-04-20 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948868', 'tblTempVendorCDR_20' ) start [2025-04-20 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948868', 'tblTempVendorCDR_20' ) end [2025-04-20 07:52:17] Production.INFO: ProcessCDR(1,14948868,1,1,2) [2025-04-20 07:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948868', 'tblTempUsageDetail_20' ) start [2025-04-20 07:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948868', 'tblTempUsageDetail_20' ) end [2025-04-20 07:52:20] Production.ERROR: pbx prc_insertCDR start [2025-04-20 07:52:20] Production.ERROR: pbx prc_insertCDR end [2025-04-20 07:52:20] Production.INFO: ==27115== Releasing lock... [2025-04-20 07:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 07:52:20] Production.INFO: 28.75 MB #Memory Used# [2025-04-20 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 04:53:05 [end_date_ymd] => 2025-04-20 07:53:05 [RateCDR] => 1 ) [2025-04-20 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-20 04:53:05' and `end` < '2025-04-20 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-20 07:53:17] Production.INFO: count ==121 [2025-04-20 07:53:17] Production.ERROR: pbx CDR StartTime 2025-04-20 04:53:05 - End Time 2025-04-20 07:53:05 [2025-04-20 07:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948873', 'tblTempUsageDetail_20' ) start [2025-04-20 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948873', 'tblTempUsageDetail_20' ) end [2025-04-20 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948873', 'tblTempVendorCDR_20' ) start [2025-04-20 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948873', 'tblTempVendorCDR_20' ) end [2025-04-20 07:53:17] Production.INFO: ProcessCDR(1,14948873,1,1,2) [2025-04-20 07:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948873', 'tblTempUsageDetail_20' ) start [2025-04-20 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948873', 'tblTempUsageDetail_20' ) end [2025-04-20 07:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 07:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 07:53:21] Production.INFO: ==27187== Releasing lock... [2025-04-20 07:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 07:53:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-20 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 04:54:05 [end_date_ymd] => 2025-04-20 07:54:05 [RateCDR] => 1 ) [2025-04-20 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-20 04:54:05' and `end` < '2025-04-20 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-20 07:54:18] Production.INFO: count ==121 [2025-04-20 07:54:18] Production.ERROR: pbx CDR StartTime 2025-04-20 04:54:05 - End Time 2025-04-20 07:54:05 [2025-04-20 07:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948878', 'tblTempUsageDetail_20' ) start [2025-04-20 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948878', 'tblTempUsageDetail_20' ) end [2025-04-20 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948878', 'tblTempVendorCDR_20' ) start [2025-04-20 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948878', 'tblTempVendorCDR_20' ) end [2025-04-20 07:54:18] Production.INFO: ProcessCDR(1,14948878,1,1,2) [2025-04-20 07:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948878', 'tblTempUsageDetail_20' ) start [2025-04-20 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948878', 'tblTempUsageDetail_20' ) end [2025-04-20 07:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 07:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 07:54:21] Production.INFO: ==27264== Releasing lock... [2025-04-20 07:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 07:54:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-20 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 04:55:05 [end_date_ymd] => 2025-04-20 07:55:05 [RateCDR] => 1 ) [2025-04-20 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-20 04:55:05' and `end` < '2025-04-20 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-20 07:55:18] Production.INFO: count ==121 [2025-04-20 07:55:18] Production.ERROR: pbx CDR StartTime 2025-04-20 04:55:05 - End Time 2025-04-20 07:55:05 [2025-04-20 07:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948883', 'tblTempUsageDetail_20' ) start [2025-04-20 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948883', 'tblTempUsageDetail_20' ) end [2025-04-20 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948883', 'tblTempVendorCDR_20' ) start [2025-04-20 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948883', 'tblTempVendorCDR_20' ) end [2025-04-20 07:55:18] Production.INFO: ProcessCDR(1,14948883,1,1,2) [2025-04-20 07:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948883', 'tblTempUsageDetail_20' ) start [2025-04-20 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948883', 'tblTempUsageDetail_20' ) end [2025-04-20 07:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 07:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 07:55:21] Production.INFO: ==27338== Releasing lock... [2025-04-20 07:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 07:55:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-20 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 04:56:05 [end_date_ymd] => 2025-04-20 07:56:05 [RateCDR] => 1 ) [2025-04-20 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-20 04:56:05' and `end` < '2025-04-20 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-20 07:56:17] Production.INFO: count ==121 [2025-04-20 07:56:17] Production.ERROR: pbx CDR StartTime 2025-04-20 04:56:05 - End Time 2025-04-20 07:56:05 [2025-04-20 07:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948887', 'tblTempUsageDetail_20' ) start [2025-04-20 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948887', 'tblTempUsageDetail_20' ) end [2025-04-20 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948887', 'tblTempVendorCDR_20' ) start [2025-04-20 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948887', 'tblTempVendorCDR_20' ) end [2025-04-20 07:56:17] Production.INFO: ProcessCDR(1,14948887,1,1,2) [2025-04-20 07:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948887', 'tblTempUsageDetail_20' ) start [2025-04-20 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948887', 'tblTempUsageDetail_20' ) end [2025-04-20 07:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 07:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 07:56:21] Production.INFO: ==27412== Releasing lock... [2025-04-20 07:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 07:56:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-20 07:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 04:57:06 [end_date_ymd] => 2025-04-20 07:57:06 [RateCDR] => 1 ) [2025-04-20 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-20 04:57:06' and `end` < '2025-04-20 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-20 07:57:18] Production.INFO: count ==121 [2025-04-20 07:57:18] Production.ERROR: pbx CDR StartTime 2025-04-20 04:57:06 - End Time 2025-04-20 07:57:06 [2025-04-20 07:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948893', 'tblTempUsageDetail_20' ) start [2025-04-20 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948893', 'tblTempUsageDetail_20' ) end [2025-04-20 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948893', 'tblTempVendorCDR_20' ) start [2025-04-20 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948893', 'tblTempVendorCDR_20' ) end [2025-04-20 07:57:18] Production.INFO: ProcessCDR(1,14948893,1,1,2) [2025-04-20 07:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948893', 'tblTempUsageDetail_20' ) start [2025-04-20 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948893', 'tblTempUsageDetail_20' ) end [2025-04-20 07:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 07:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 07:57:22] Production.INFO: ==27490== Releasing lock... [2025-04-20 07:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 07:57:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-20 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 04:58:05 [end_date_ymd] => 2025-04-20 07:58:05 [RateCDR] => 1 ) [2025-04-20 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-20 04:58:05' and `end` < '2025-04-20 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-20 07:58:18] Production.INFO: count ==121 [2025-04-20 07:58:18] Production.ERROR: pbx CDR StartTime 2025-04-20 04:58:05 - End Time 2025-04-20 07:58:05 [2025-04-20 07:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948898', 'tblTempUsageDetail_20' ) start [2025-04-20 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948898', 'tblTempUsageDetail_20' ) end [2025-04-20 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948898', 'tblTempVendorCDR_20' ) start [2025-04-20 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948898', 'tblTempVendorCDR_20' ) end [2025-04-20 07:58:18] Production.INFO: ProcessCDR(1,14948898,1,1,2) [2025-04-20 07:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948898', 'tblTempUsageDetail_20' ) start [2025-04-20 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948898', 'tblTempUsageDetail_20' ) end [2025-04-20 07:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 07:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 07:58:21] Production.INFO: ==27564== Releasing lock... [2025-04-20 07:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 07:58:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-20 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 04:59:05 [end_date_ymd] => 2025-04-20 07:59:05 [RateCDR] => 1 ) [2025-04-20 07: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-20 04:59:05' and `end` < '2025-04-20 07: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-20 07:59:17] Production.INFO: count ==120 [2025-04-20 07:59:17] Production.ERROR: pbx CDR StartTime 2025-04-20 04:59:05 - End Time 2025-04-20 07:59:05 [2025-04-20 07:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948903', 'tblTempUsageDetail_20' ) start [2025-04-20 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948903', 'tblTempUsageDetail_20' ) end [2025-04-20 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948903', 'tblTempVendorCDR_20' ) start [2025-04-20 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948903', 'tblTempVendorCDR_20' ) end [2025-04-20 07:59:17] Production.INFO: ProcessCDR(1,14948903,1,1,2) [2025-04-20 07:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 07:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948903', 'tblTempUsageDetail_20' ) start [2025-04-20 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948903', 'tblTempUsageDetail_20' ) end [2025-04-20 07:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 07:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 07:59:21] Production.INFO: ==27635== Releasing lock... [2025-04-20 07:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 07:59:21] Production.INFO: 29 MB #Memory Used# [2025-04-20 08:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 05:00:05 [end_date_ymd] => 2025-04-20 08:00:05 [RateCDR] => 1 ) [2025-04-20 08:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 05:00:05' and `end` < '2025-04-20 08:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 08:00:18] Production.INFO: count ==114 [2025-04-20 08:00:18] Production.ERROR: pbx CDR StartTime 2025-04-20 05:00:05 - End Time 2025-04-20 08:00:05 [2025-04-20 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948908', 'tblTempUsageDetail_20' ) start [2025-04-20 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948908', 'tblTempUsageDetail_20' ) end [2025-04-20 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948908', 'tblTempVendorCDR_20' ) start [2025-04-20 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948908', 'tblTempVendorCDR_20' ) end [2025-04-20 08:00:18] Production.INFO: ProcessCDR(1,14948908,1,1,2) [2025-04-20 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948908', 'tblTempUsageDetail_20' ) start [2025-04-20 08:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948908', 'tblTempUsageDetail_20' ) end [2025-04-20 08:00:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 08:00:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 08:00:21] Production.INFO: ==27712== Releasing lock... [2025-04-20 08:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 08:00:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-20 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 05:01:05 [end_date_ymd] => 2025-04-20 08:01:05 [RateCDR] => 1 ) [2025-04-20 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-20 05:01:05' and `end` < '2025-04-20 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-20 08:01:18] Production.INFO: count ==110 [2025-04-20 08:01:18] Production.ERROR: pbx CDR StartTime 2025-04-20 05:01:05 - End Time 2025-04-20 08:01:05 [2025-04-20 08:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948914', 'tblTempUsageDetail_20' ) start [2025-04-20 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948914', 'tblTempUsageDetail_20' ) end [2025-04-20 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948914', 'tblTempVendorCDR_20' ) start [2025-04-20 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948914', 'tblTempVendorCDR_20' ) end [2025-04-20 08:01:18] Production.INFO: ProcessCDR(1,14948914,1,1,2) [2025-04-20 08:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948914', 'tblTempUsageDetail_20' ) start [2025-04-20 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948914', 'tblTempUsageDetail_20' ) end [2025-04-20 08:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 08:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 08:01:21] Production.INFO: ==27836== Releasing lock... [2025-04-20 08:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 08:01:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-20 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 05:02:05 [end_date_ymd] => 2025-04-20 08:02:05 [RateCDR] => 1 ) [2025-04-20 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-20 05:02:05' and `end` < '2025-04-20 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-20 08:02:18] Production.INFO: count ==109 [2025-04-20 08:02:18] Production.ERROR: pbx CDR StartTime 2025-04-20 05:02:05 - End Time 2025-04-20 08:02:05 [2025-04-20 08:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948919', 'tblTempUsageDetail_20' ) start [2025-04-20 08:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948919', 'tblTempUsageDetail_20' ) end [2025-04-20 08:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948919', 'tblTempVendorCDR_20' ) start [2025-04-20 08:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948919', 'tblTempVendorCDR_20' ) end [2025-04-20 08:02:19] Production.INFO: ProcessCDR(1,14948919,1,1,2) [2025-04-20 08:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948919', 'tblTempUsageDetail_20' ) start [2025-04-20 08:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948919', 'tblTempUsageDetail_20' ) end [2025-04-20 08:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 08:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 08:02:22] Production.INFO: ==27939== Releasing lock... [2025-04-20 08:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 08:02:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-20 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 05:03:05 [end_date_ymd] => 2025-04-20 08:03:05 [RateCDR] => 1 ) [2025-04-20 08:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 05:03:05' and `end` < '2025-04-20 08:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 08:03:17] Production.INFO: count ==107 [2025-04-20 08:03:17] Production.ERROR: pbx CDR StartTime 2025-04-20 05:03:05 - End Time 2025-04-20 08:03:05 [2025-04-20 08:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948924', 'tblTempUsageDetail_20' ) start [2025-04-20 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948924', 'tblTempUsageDetail_20' ) end [2025-04-20 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948924', 'tblTempVendorCDR_20' ) start [2025-04-20 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948924', 'tblTempVendorCDR_20' ) end [2025-04-20 08:03:17] Production.INFO: ProcessCDR(1,14948924,1,1,2) [2025-04-20 08:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948924', 'tblTempUsageDetail_20' ) start [2025-04-20 08:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948924', 'tblTempUsageDetail_20' ) end [2025-04-20 08:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 08:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 08:03:22] Production.INFO: ==28058== Releasing lock... [2025-04-20 08:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 08:03:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-20 08:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 05:04:04 [end_date_ymd] => 2025-04-20 08:04:04 [RateCDR] => 1 ) [2025-04-20 08: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-20 05:04:04' and `end` < '2025-04-20 08: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-20 08:04:17] Production.INFO: count ==105 [2025-04-20 08:04:17] Production.ERROR: pbx CDR StartTime 2025-04-20 05:04:04 - End Time 2025-04-20 08:04:04 [2025-04-20 08:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948929', 'tblTempUsageDetail_20' ) start [2025-04-20 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948929', 'tblTempUsageDetail_20' ) end [2025-04-20 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948929', 'tblTempVendorCDR_20' ) start [2025-04-20 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948929', 'tblTempVendorCDR_20' ) end [2025-04-20 08:04:17] Production.INFO: ProcessCDR(1,14948929,1,1,2) [2025-04-20 08:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948929', 'tblTempUsageDetail_20' ) start [2025-04-20 08:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948929', 'tblTempUsageDetail_20' ) end [2025-04-20 08:04:20] Production.ERROR: pbx prc_insertCDR start [2025-04-20 08:04:20] Production.ERROR: pbx prc_insertCDR end [2025-04-20 08:04:20] Production.INFO: ==28166== Releasing lock... [2025-04-20 08:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 08:04:20] Production.INFO: 29 MB #Memory Used# [2025-04-20 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 05:05:05 [end_date_ymd] => 2025-04-20 08:05:05 [RateCDR] => 1 ) [2025-04-20 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-20 05:05:05' and `end` < '2025-04-20 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-20 08:05:18] Production.INFO: count ==100 [2025-04-20 08:05:18] Production.ERROR: pbx CDR StartTime 2025-04-20 05:05:05 - End Time 2025-04-20 08:05:05 [2025-04-20 08:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948934', 'tblTempUsageDetail_20' ) start [2025-04-20 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948934', 'tblTempUsageDetail_20' ) end [2025-04-20 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948934', 'tblTempVendorCDR_20' ) start [2025-04-20 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948934', 'tblTempVendorCDR_20' ) end [2025-04-20 08:05:18] Production.INFO: ProcessCDR(1,14948934,1,1,2) [2025-04-20 08:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948934', 'tblTempUsageDetail_20' ) start [2025-04-20 08:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948934', 'tblTempUsageDetail_20' ) end [2025-04-20 08:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 08:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 08:05:22] Production.INFO: ==28270== Releasing lock... [2025-04-20 08:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 08:05:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-20 08:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 05:06:06 [end_date_ymd] => 2025-04-20 08:06:06 [RateCDR] => 1 ) [2025-04-20 08:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 05:06:06' and `end` < '2025-04-20 08:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 08:06:18] Production.INFO: count ==99 [2025-04-20 08:06:18] Production.ERROR: pbx CDR StartTime 2025-04-20 05:06:06 - End Time 2025-04-20 08:06:06 [2025-04-20 08:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948939', 'tblTempUsageDetail_20' ) start [2025-04-20 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948939', 'tblTempUsageDetail_20' ) end [2025-04-20 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948939', 'tblTempVendorCDR_20' ) start [2025-04-20 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948939', 'tblTempVendorCDR_20' ) end [2025-04-20 08:06:18] Production.INFO: ProcessCDR(1,14948939,1,1,2) [2025-04-20 08:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948939', 'tblTempUsageDetail_20' ) start [2025-04-20 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948939', 'tblTempUsageDetail_20' ) end [2025-04-20 08:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 08:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 08:06:22] Production.INFO: ==28363== Releasing lock... [2025-04-20 08:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 08:06:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-20 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 05:07:05 [end_date_ymd] => 2025-04-20 08:07:05 [RateCDR] => 1 ) [2025-04-20 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-20 05:07:05' and `end` < '2025-04-20 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-20 08:07:17] Production.INFO: count ==96 [2025-04-20 08:07:17] Production.ERROR: pbx CDR StartTime 2025-04-20 05:07:05 - End Time 2025-04-20 08:07:05 [2025-04-20 08:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948944', 'tblTempUsageDetail_20' ) start [2025-04-20 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948944', 'tblTempUsageDetail_20' ) end [2025-04-20 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948944', 'tblTempVendorCDR_20' ) start [2025-04-20 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948944', 'tblTempVendorCDR_20' ) end [2025-04-20 08:07:17] Production.INFO: ProcessCDR(1,14948944,1,1,2) [2025-04-20 08:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948944', 'tblTempUsageDetail_20' ) start [2025-04-20 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948944', 'tblTempUsageDetail_20' ) end [2025-04-20 08:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 08:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 08:07:21] Production.INFO: ==28474== Releasing lock... [2025-04-20 08:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 08:07:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-20 08:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 05:08:06 [end_date_ymd] => 2025-04-20 08:08:06 [RateCDR] => 1 ) [2025-04-20 08: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-20 05:08:06' and `end` < '2025-04-20 08: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-20 08:08:19] Production.INFO: count ==96 [2025-04-20 08:08:19] Production.ERROR: pbx CDR StartTime 2025-04-20 05:08:06 - End Time 2025-04-20 08:08:06 [2025-04-20 08:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948949', 'tblTempUsageDetail_20' ) start [2025-04-20 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948949', 'tblTempUsageDetail_20' ) end [2025-04-20 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948949', 'tblTempVendorCDR_20' ) start [2025-04-20 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948949', 'tblTempVendorCDR_20' ) end [2025-04-20 08:08:19] Production.INFO: ProcessCDR(1,14948949,1,1,2) [2025-04-20 08:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948949', 'tblTempUsageDetail_20' ) start [2025-04-20 08:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948949', 'tblTempUsageDetail_20' ) end [2025-04-20 08:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 08:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 08:08:22] Production.INFO: ==28552== Releasing lock... [2025-04-20 08:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 08:08:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-20 08:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 05:09:06 [end_date_ymd] => 2025-04-20 08:09:06 [RateCDR] => 1 ) [2025-04-20 08:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 05:09:06' and `end` < '2025-04-20 08:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 08:09:18] Production.INFO: count ==96 [2025-04-20 08:09:18] Production.ERROR: pbx CDR StartTime 2025-04-20 05:09:06 - End Time 2025-04-20 08:09:06 [2025-04-20 08:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948954', 'tblTempUsageDetail_20' ) start [2025-04-20 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948954', 'tblTempUsageDetail_20' ) end [2025-04-20 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948954', 'tblTempVendorCDR_20' ) start [2025-04-20 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948954', 'tblTempVendorCDR_20' ) end [2025-04-20 08:09:18] Production.INFO: ProcessCDR(1,14948954,1,1,2) [2025-04-20 08:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948954', 'tblTempUsageDetail_20' ) start [2025-04-20 08:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948954', 'tblTempUsageDetail_20' ) end [2025-04-20 08:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 08:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 08:09:22] Production.INFO: ==28627== Releasing lock... [2025-04-20 08:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 08:09:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-20 08:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 05:10:05 [end_date_ymd] => 2025-04-20 08:10:05 [RateCDR] => 1 ) [2025-04-20 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-20 05:10:05' and `end` < '2025-04-20 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-20 08:10:18] Production.INFO: count ==96 [2025-04-20 08:10:18] Production.ERROR: pbx CDR StartTime 2025-04-20 05:10:05 - End Time 2025-04-20 08:10:05 [2025-04-20 08:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948959', 'tblTempUsageDetail_20' ) start [2025-04-20 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948959', 'tblTempUsageDetail_20' ) end [2025-04-20 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948959', 'tblTempVendorCDR_20' ) start [2025-04-20 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948959', 'tblTempVendorCDR_20' ) end [2025-04-20 08:10:18] Production.INFO: ProcessCDR(1,14948959,1,1,2) [2025-04-20 08:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948959', 'tblTempUsageDetail_20' ) start [2025-04-20 08:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948959', 'tblTempUsageDetail_20' ) end [2025-04-20 08:10:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 08:10:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 08:10:21] Production.INFO: ==28702== Releasing lock... [2025-04-20 08:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 08:10:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-20 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 05:11:05 [end_date_ymd] => 2025-04-20 08:11:05 [RateCDR] => 1 ) [2025-04-20 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-20 05:11:05' and `end` < '2025-04-20 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-20 08:11:18] Production.INFO: count ==96 [2025-04-20 08:11:18] Production.ERROR: pbx CDR StartTime 2025-04-20 05:11:05 - End Time 2025-04-20 08:11:05 [2025-04-20 08:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948965', 'tblTempUsageDetail_20' ) start [2025-04-20 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948965', 'tblTempUsageDetail_20' ) end [2025-04-20 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948965', 'tblTempVendorCDR_20' ) start [2025-04-20 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948965', 'tblTempVendorCDR_20' ) end [2025-04-20 08:11:18] Production.INFO: ProcessCDR(1,14948965,1,1,2) [2025-04-20 08:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948965', 'tblTempUsageDetail_20' ) start [2025-04-20 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948965', 'tblTempUsageDetail_20' ) end [2025-04-20 08:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 08:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 08:11:21] Production.INFO: ==28784== Releasing lock... [2025-04-20 08:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 08:11:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-20 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 05:12:05 [end_date_ymd] => 2025-04-20 08:12:05 [RateCDR] => 1 ) [2025-04-20 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-20 05:12:05' and `end` < '2025-04-20 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-20 08:12:18] Production.INFO: count ==96 [2025-04-20 08:12:18] Production.ERROR: pbx CDR StartTime 2025-04-20 05:12:05 - End Time 2025-04-20 08:12:05 [2025-04-20 08:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948970', 'tblTempUsageDetail_20' ) start [2025-04-20 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948970', 'tblTempUsageDetail_20' ) end [2025-04-20 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948970', 'tblTempVendorCDR_20' ) start [2025-04-20 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948970', 'tblTempVendorCDR_20' ) end [2025-04-20 08:12:18] Production.INFO: ProcessCDR(1,14948970,1,1,2) [2025-04-20 08:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948970', 'tblTempUsageDetail_20' ) start [2025-04-20 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948970', 'tblTempUsageDetail_20' ) end [2025-04-20 08:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 08:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 08:12:21] Production.INFO: ==28859== Releasing lock... [2025-04-20 08:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 08:12:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-20 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 05:13:05 [end_date_ymd] => 2025-04-20 08:13:05 [RateCDR] => 1 ) [2025-04-20 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-20 05:13:05' and `end` < '2025-04-20 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-20 08:13:19] Production.INFO: count ==99 [2025-04-20 08:13:19] Production.ERROR: pbx CDR StartTime 2025-04-20 05:13:05 - End Time 2025-04-20 08:13:05 [2025-04-20 08:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 08:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948975', 'tblTempUsageDetail_20' ) start [2025-04-20 08:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948975', 'tblTempUsageDetail_20' ) end [2025-04-20 08:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948975', 'tblTempVendorCDR_20' ) start [2025-04-20 08:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948975', 'tblTempVendorCDR_20' ) end [2025-04-20 08:13:19] Production.INFO: ProcessCDR(1,14948975,1,1,2) [2025-04-20 08:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948975', 'tblTempUsageDetail_20' ) start [2025-04-20 08:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948975', 'tblTempUsageDetail_20' ) end [2025-04-20 08:13:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 08:13:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 08:13:24] Production.INFO: ==28934== Releasing lock... [2025-04-20 08:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 08:13:24] Production.INFO: 28.75 MB #Memory Used# [2025-04-20 08:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 05:14:05 [end_date_ymd] => 2025-04-20 08:14:05 [RateCDR] => 1 ) [2025-04-20 08: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-20 05:14:05' and `end` < '2025-04-20 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-20 08:14:18] Production.INFO: count ==100 [2025-04-20 08:14:18] Production.ERROR: pbx CDR StartTime 2025-04-20 05:14:05 - End Time 2025-04-20 08:14:05 [2025-04-20 08:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948980', 'tblTempUsageDetail_20' ) start [2025-04-20 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948980', 'tblTempUsageDetail_20' ) end [2025-04-20 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948980', 'tblTempVendorCDR_20' ) start [2025-04-20 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948980', 'tblTempVendorCDR_20' ) end [2025-04-20 08:14:18] Production.INFO: ProcessCDR(1,14948980,1,1,2) [2025-04-20 08:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948980', 'tblTempUsageDetail_20' ) start [2025-04-20 08:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948980', 'tblTempUsageDetail_20' ) end [2025-04-20 08:14:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 08:14:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 08:14:23] Production.INFO: ==29012== Releasing lock... [2025-04-20 08:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 08:14:23] Production.INFO: 28.75 MB #Memory Used# [2025-04-20 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 05:15:05 [end_date_ymd] => 2025-04-20 08:15:05 [RateCDR] => 1 ) [2025-04-20 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-20 05:15:05' and `end` < '2025-04-20 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-20 08:15:17] Production.INFO: count ==96 [2025-04-20 08:15:17] Production.ERROR: pbx CDR StartTime 2025-04-20 05:15:05 - End Time 2025-04-20 08:15:05 [2025-04-20 08:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948985', 'tblTempUsageDetail_20' ) start [2025-04-20 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948985', 'tblTempUsageDetail_20' ) end [2025-04-20 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948985', 'tblTempVendorCDR_20' ) start [2025-04-20 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948985', 'tblTempVendorCDR_20' ) end [2025-04-20 08:15:17] Production.INFO: ProcessCDR(1,14948985,1,1,2) [2025-04-20 08:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948985', 'tblTempUsageDetail_20' ) start [2025-04-20 08:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948985', 'tblTempUsageDetail_20' ) end [2025-04-20 08:15:20] Production.ERROR: pbx prc_insertCDR start [2025-04-20 08:15:20] Production.ERROR: pbx prc_insertCDR end [2025-04-20 08:15:20] Production.INFO: ==29085== Releasing lock... [2025-04-20 08:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 08:15:20] Production.INFO: 28.75 MB #Memory Used# [2025-04-20 08:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 05:16:06 [end_date_ymd] => 2025-04-20 08:16:06 [RateCDR] => 1 ) [2025-04-20 08:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 05:16:06' and `end` < '2025-04-20 08:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 08:16:18] Production.INFO: count ==93 [2025-04-20 08:16:18] Production.ERROR: pbx CDR StartTime 2025-04-20 05:16:06 - End Time 2025-04-20 08:16:06 [2025-04-20 08:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948990', 'tblTempUsageDetail_20' ) start [2025-04-20 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948990', 'tblTempUsageDetail_20' ) end [2025-04-20 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948990', 'tblTempVendorCDR_20' ) start [2025-04-20 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948990', 'tblTempVendorCDR_20' ) end [2025-04-20 08:16:18] Production.INFO: ProcessCDR(1,14948990,1,1,2) [2025-04-20 08:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948990', 'tblTempUsageDetail_20' ) start [2025-04-20 08:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948990', 'tblTempUsageDetail_20' ) end [2025-04-20 08:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 08:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 08:16:22] Production.INFO: ==29161== Releasing lock... [2025-04-20 08:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 08:16:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-20 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 05:17:05 [end_date_ymd] => 2025-04-20 08:17:05 [RateCDR] => 1 ) [2025-04-20 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-20 05:17:05' and `end` < '2025-04-20 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-20 08:17:17] Production.INFO: count ==91 [2025-04-20 08:17:17] Production.ERROR: pbx CDR StartTime 2025-04-20 05:17:05 - End Time 2025-04-20 08:17:05 [2025-04-20 08:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948995', 'tblTempUsageDetail_20' ) start [2025-04-20 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14948995', 'tblTempUsageDetail_20' ) end [2025-04-20 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948995', 'tblTempVendorCDR_20' ) start [2025-04-20 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14948995', 'tblTempVendorCDR_20' ) end [2025-04-20 08:17:17] Production.INFO: ProcessCDR(1,14948995,1,1,2) [2025-04-20 08:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14948995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14948995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14948995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14948995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948995', 'tblTempUsageDetail_20' ) start [2025-04-20 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14948995', 'tblTempUsageDetail_20' ) end [2025-04-20 08:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 08:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 08:17:21] Production.INFO: ==29240== Releasing lock... [2025-04-20 08:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 08:17:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-20 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 05:18:05 [end_date_ymd] => 2025-04-20 08:18:05 [RateCDR] => 1 ) [2025-04-20 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-20 05:18:05' and `end` < '2025-04-20 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-20 08:18:19] Production.INFO: count ==91 [2025-04-20 08:18:19] Production.ERROR: pbx CDR StartTime 2025-04-20 05:18:05 - End Time 2025-04-20 08:18:05 [2025-04-20 08:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949000', 'tblTempUsageDetail_20' ) start [2025-04-20 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949000', 'tblTempUsageDetail_20' ) end [2025-04-20 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949000', 'tblTempVendorCDR_20' ) start [2025-04-20 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949000', 'tblTempVendorCDR_20' ) end [2025-04-20 08:18:19] Production.INFO: ProcessCDR(1,14949000,1,1,2) [2025-04-20 08:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949000', 'tblTempUsageDetail_20' ) start [2025-04-20 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949000', 'tblTempUsageDetail_20' ) end [2025-04-20 08:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 08:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 08:18:22] Production.INFO: ==29312== Releasing lock... [2025-04-20 08:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 08:18:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-20 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 05:19:05 [end_date_ymd] => 2025-04-20 08:19:05 [RateCDR] => 1 ) [2025-04-20 08:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 05:19:05' and `end` < '2025-04-20 08:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 08:19:17] Production.INFO: count ==91 [2025-04-20 08:19:17] Production.ERROR: pbx CDR StartTime 2025-04-20 05:19:05 - End Time 2025-04-20 08:19:05 [2025-04-20 08:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949005', 'tblTempUsageDetail_20' ) start [2025-04-20 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949005', 'tblTempUsageDetail_20' ) end [2025-04-20 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949005', 'tblTempVendorCDR_20' ) start [2025-04-20 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949005', 'tblTempVendorCDR_20' ) end [2025-04-20 08:19:17] Production.INFO: ProcessCDR(1,14949005,1,1,2) [2025-04-20 08:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949005', 'tblTempUsageDetail_20' ) start [2025-04-20 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949005', 'tblTempUsageDetail_20' ) end [2025-04-20 08:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 08:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 08:19:21] Production.INFO: ==29384== Releasing lock... [2025-04-20 08:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 08:19:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-20 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 05:20:06 [end_date_ymd] => 2025-04-20 08:20:06 [RateCDR] => 1 ) [2025-04-20 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-20 05:20:06' and `end` < '2025-04-20 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-20 08:20:18] Production.INFO: count ==99 [2025-04-20 08:20:18] Production.ERROR: pbx CDR StartTime 2025-04-20 05:20:06 - End Time 2025-04-20 08:20:06 [2025-04-20 08:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949010', 'tblTempUsageDetail_20' ) start [2025-04-20 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949010', 'tblTempUsageDetail_20' ) end [2025-04-20 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949010', 'tblTempVendorCDR_20' ) start [2025-04-20 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949010', 'tblTempVendorCDR_20' ) end [2025-04-20 08:20:18] Production.INFO: ProcessCDR(1,14949010,1,1,2) [2025-04-20 08:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949010', 'tblTempUsageDetail_20' ) start [2025-04-20 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949010', 'tblTempUsageDetail_20' ) end [2025-04-20 08:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 08:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 08:20:22] Production.INFO: ==29463== Releasing lock... [2025-04-20 08:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 08:20:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-20 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 05:21:05 [end_date_ymd] => 2025-04-20 08:21:05 [RateCDR] => 1 ) [2025-04-20 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-20 05:21:05' and `end` < '2025-04-20 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-20 08:21:18] Production.INFO: count ==101 [2025-04-20 08:21:18] Production.ERROR: pbx CDR StartTime 2025-04-20 05:21:05 - End Time 2025-04-20 08:21:05 [2025-04-20 08:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949016', 'tblTempUsageDetail_20' ) start [2025-04-20 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949016', 'tblTempUsageDetail_20' ) end [2025-04-20 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949016', 'tblTempVendorCDR_20' ) start [2025-04-20 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949016', 'tblTempVendorCDR_20' ) end [2025-04-20 08:21:18] Production.INFO: ProcessCDR(1,14949016,1,1,2) [2025-04-20 08:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949016', 'tblTempUsageDetail_20' ) start [2025-04-20 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949016', 'tblTempUsageDetail_20' ) end [2025-04-20 08:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 08:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 08:21:21] Production.INFO: ==29552== Releasing lock... [2025-04-20 08:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 08:21:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-20 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 05:22:05 [end_date_ymd] => 2025-04-20 08:22:05 [RateCDR] => 1 ) [2025-04-20 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-20 05:22:05' and `end` < '2025-04-20 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-20 08:22:18] Production.INFO: count ==101 [2025-04-20 08:22:18] Production.ERROR: pbx CDR StartTime 2025-04-20 05:22:05 - End Time 2025-04-20 08:22:05 [2025-04-20 08:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949021', 'tblTempUsageDetail_20' ) start [2025-04-20 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949021', 'tblTempUsageDetail_20' ) end [2025-04-20 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949021', 'tblTempVendorCDR_20' ) start [2025-04-20 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949021', 'tblTempVendorCDR_20' ) end [2025-04-20 08:22:18] Production.INFO: ProcessCDR(1,14949021,1,1,2) [2025-04-20 08:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949021', 'tblTempUsageDetail_20' ) start [2025-04-20 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949021', 'tblTempUsageDetail_20' ) end [2025-04-20 08:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 08:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 08:22:21] Production.INFO: ==29666== Releasing lock... [2025-04-20 08:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 08:22:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-20 08:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 05:23:06 [end_date_ymd] => 2025-04-20 08:23:06 [RateCDR] => 1 ) [2025-04-20 08:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 05:23:06' and `end` < '2025-04-20 08:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 08:23:19] Production.INFO: count ==101 [2025-04-20 08:23:19] Production.ERROR: pbx CDR StartTime 2025-04-20 05:23:06 - End Time 2025-04-20 08:23:06 [2025-04-20 08:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949026', 'tblTempUsageDetail_20' ) start [2025-04-20 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949026', 'tblTempUsageDetail_20' ) end [2025-04-20 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949026', 'tblTempVendorCDR_20' ) start [2025-04-20 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949026', 'tblTempVendorCDR_20' ) end [2025-04-20 08:23:19] Production.INFO: ProcessCDR(1,14949026,1,1,2) [2025-04-20 08:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949026', 'tblTempUsageDetail_20' ) start [2025-04-20 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949026', 'tblTempUsageDetail_20' ) end [2025-04-20 08:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 08:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 08:23:22] Production.INFO: ==29740== Releasing lock... [2025-04-20 08:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 08:23:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-20 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 05:24:05 [end_date_ymd] => 2025-04-20 08:24:05 [RateCDR] => 1 ) [2025-04-20 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-20 05:24:05' and `end` < '2025-04-20 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-20 08:24:18] Production.INFO: count ==100 [2025-04-20 08:24:18] Production.ERROR: pbx CDR StartTime 2025-04-20 05:24:05 - End Time 2025-04-20 08:24:05 [2025-04-20 08:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949031', 'tblTempUsageDetail_20' ) start [2025-04-20 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949031', 'tblTempUsageDetail_20' ) end [2025-04-20 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949031', 'tblTempVendorCDR_20' ) start [2025-04-20 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949031', 'tblTempVendorCDR_20' ) end [2025-04-20 08:24:18] Production.INFO: ProcessCDR(1,14949031,1,1,2) [2025-04-20 08:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949031', 'tblTempUsageDetail_20' ) start [2025-04-20 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949031', 'tblTempUsageDetail_20' ) end [2025-04-20 08:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 08:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 08:24:22] Production.INFO: ==29814== Releasing lock... [2025-04-20 08:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 08:24:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-20 08:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 05:25:06 [end_date_ymd] => 2025-04-20 08:25:06 [RateCDR] => 1 ) [2025-04-20 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-20 05:25:06' and `end` < '2025-04-20 08:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 08:25:18] Production.INFO: count ==100 [2025-04-20 08:25:18] Production.ERROR: pbx CDR StartTime 2025-04-20 05:25:06 - End Time 2025-04-20 08:25:06 [2025-04-20 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949036', 'tblTempUsageDetail_20' ) start [2025-04-20 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949036', 'tblTempUsageDetail_20' ) end [2025-04-20 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949036', 'tblTempVendorCDR_20' ) start [2025-04-20 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949036', 'tblTempVendorCDR_20' ) end [2025-04-20 08:25:18] Production.INFO: ProcessCDR(1,14949036,1,1,2) [2025-04-20 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949036', 'tblTempUsageDetail_20' ) start [2025-04-20 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949036', 'tblTempUsageDetail_20' ) end [2025-04-20 08:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 08:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 08:25:21] Production.INFO: ==29887== Releasing lock... [2025-04-20 08:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 08:25:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-20 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 05:26:05 [end_date_ymd] => 2025-04-20 08:26:05 [RateCDR] => 1 ) [2025-04-20 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-20 05:26:05' and `end` < '2025-04-20 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-20 08:26:17] Production.INFO: count ==100 [2025-04-20 08:26:17] Production.ERROR: pbx CDR StartTime 2025-04-20 05:26:05 - End Time 2025-04-20 08:26:05 [2025-04-20 08:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949041', 'tblTempUsageDetail_20' ) start [2025-04-20 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949041', 'tblTempUsageDetail_20' ) end [2025-04-20 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949041', 'tblTempVendorCDR_20' ) start [2025-04-20 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949041', 'tblTempVendorCDR_20' ) end [2025-04-20 08:26:17] Production.INFO: ProcessCDR(1,14949041,1,1,2) [2025-04-20 08:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949041', 'tblTempUsageDetail_20' ) start [2025-04-20 08:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949041', 'tblTempUsageDetail_20' ) end [2025-04-20 08:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 08:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 08:26:21] Production.INFO: ==29969== Releasing lock... [2025-04-20 08:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 08:26:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-20 08:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 05:27:06 [end_date_ymd] => 2025-04-20 08:27:06 [RateCDR] => 1 ) [2025-04-20 08:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 05:27:06' and `end` < '2025-04-20 08:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 08:27:18] Production.INFO: count ==100 [2025-04-20 08:27:18] Production.ERROR: pbx CDR StartTime 2025-04-20 05:27:06 - End Time 2025-04-20 08:27:06 [2025-04-20 08:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949046', 'tblTempUsageDetail_20' ) start [2025-04-20 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949046', 'tblTempUsageDetail_20' ) end [2025-04-20 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949046', 'tblTempVendorCDR_20' ) start [2025-04-20 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949046', 'tblTempVendorCDR_20' ) end [2025-04-20 08:27:18] Production.INFO: ProcessCDR(1,14949046,1,1,2) [2025-04-20 08:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949046', 'tblTempUsageDetail_20' ) start [2025-04-20 08:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949046', 'tblTempUsageDetail_20' ) end [2025-04-20 08:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 08:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 08:27:22] Production.INFO: ==30053== Releasing lock... [2025-04-20 08:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 08:27:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-20 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 05:28:05 [end_date_ymd] => 2025-04-20 08:28:05 [RateCDR] => 1 ) [2025-04-20 08:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 05:28:05' and `end` < '2025-04-20 08:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 08:28:18] Production.INFO: count ==100 [2025-04-20 08:28:18] Production.ERROR: pbx CDR StartTime 2025-04-20 05:28:05 - End Time 2025-04-20 08:28:05 [2025-04-20 08:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949051', 'tblTempUsageDetail_20' ) start [2025-04-20 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949051', 'tblTempUsageDetail_20' ) end [2025-04-20 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949051', 'tblTempVendorCDR_20' ) start [2025-04-20 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949051', 'tblTempVendorCDR_20' ) end [2025-04-20 08:28:18] Production.INFO: ProcessCDR(1,14949051,1,1,2) [2025-04-20 08:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949051', 'tblTempUsageDetail_20' ) start [2025-04-20 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949051', 'tblTempUsageDetail_20' ) end [2025-04-20 08:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 08:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 08:28:21] Production.INFO: ==30123== Releasing lock... [2025-04-20 08:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 08:28:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-20 08:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 05:29:06 [end_date_ymd] => 2025-04-20 08:29:06 [RateCDR] => 1 ) [2025-04-20 08:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 05:29:06' and `end` < '2025-04-20 08:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 08:29:19] Production.INFO: count ==100 [2025-04-20 08:29:19] Production.ERROR: pbx CDR StartTime 2025-04-20 05:29:06 - End Time 2025-04-20 08:29:06 [2025-04-20 08:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949056', 'tblTempUsageDetail_20' ) start [2025-04-20 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949056', 'tblTempUsageDetail_20' ) end [2025-04-20 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949056', 'tblTempVendorCDR_20' ) start [2025-04-20 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949056', 'tblTempVendorCDR_20' ) end [2025-04-20 08:29:19] Production.INFO: ProcessCDR(1,14949056,1,1,2) [2025-04-20 08:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949056', 'tblTempUsageDetail_20' ) start [2025-04-20 08:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949056', 'tblTempUsageDetail_20' ) end [2025-04-20 08:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 08:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 08:29:22] Production.INFO: ==30196== Releasing lock... [2025-04-20 08:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 08:29:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-20 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 05:30:06 [end_date_ymd] => 2025-04-20 08:30:06 [RateCDR] => 1 ) [2025-04-20 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-20 05:30:06' and `end` < '2025-04-20 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-20 08:30:19] Production.INFO: count ==102 [2025-04-20 08:30:19] Production.ERROR: pbx CDR StartTime 2025-04-20 05:30:06 - End Time 2025-04-20 08:30:06 [2025-04-20 08:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949062', 'tblTempUsageDetail_20' ) start [2025-04-20 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949062', 'tblTempUsageDetail_20' ) end [2025-04-20 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949062', 'tblTempVendorCDR_20' ) start [2025-04-20 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949062', 'tblTempVendorCDR_20' ) end [2025-04-20 08:30:19] Production.INFO: ProcessCDR(1,14949062,1,1,2) [2025-04-20 08:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949062', 'tblTempUsageDetail_20' ) start [2025-04-20 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949062', 'tblTempUsageDetail_20' ) end [2025-04-20 08:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 08:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 08:30:22] Production.INFO: ==30278== Releasing lock... [2025-04-20 08:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 08:30:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-20 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 05:31:05 [end_date_ymd] => 2025-04-20 08:31:05 [RateCDR] => 1 ) [2025-04-20 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-20 05:31:05' and `end` < '2025-04-20 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-20 08:31:18] Production.INFO: count ==102 [2025-04-20 08:31:18] Production.ERROR: pbx CDR StartTime 2025-04-20 05:31:05 - End Time 2025-04-20 08:31:05 [2025-04-20 08:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949067', 'tblTempUsageDetail_20' ) start [2025-04-20 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949067', 'tblTempUsageDetail_20' ) end [2025-04-20 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949067', 'tblTempVendorCDR_20' ) start [2025-04-20 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949067', 'tblTempVendorCDR_20' ) end [2025-04-20 08:31:18] Production.INFO: ProcessCDR(1,14949067,1,1,2) [2025-04-20 08:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949067', 'tblTempUsageDetail_20' ) start [2025-04-20 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949067', 'tblTempUsageDetail_20' ) end [2025-04-20 08:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 08:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 08:31:21] Production.INFO: ==30352== Releasing lock... [2025-04-20 08:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 08:31:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-20 08:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 05:32:05 [end_date_ymd] => 2025-04-20 08:32:05 [RateCDR] => 1 ) [2025-04-20 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-20 05:32:05' and `end` < '2025-04-20 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-20 08:32:18] Production.INFO: count ==104 [2025-04-20 08:32:18] Production.ERROR: pbx CDR StartTime 2025-04-20 05:32:05 - End Time 2025-04-20 08:32:05 [2025-04-20 08:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949072', 'tblTempUsageDetail_20' ) start [2025-04-20 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949072', 'tblTempUsageDetail_20' ) end [2025-04-20 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949072', 'tblTempVendorCDR_20' ) start [2025-04-20 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949072', 'tblTempVendorCDR_20' ) end [2025-04-20 08:32:18] Production.INFO: ProcessCDR(1,14949072,1,1,2) [2025-04-20 08:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949072', 'tblTempUsageDetail_20' ) start [2025-04-20 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949072', 'tblTempUsageDetail_20' ) end [2025-04-20 08:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 08:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 08:32:21] Production.INFO: ==30425== Releasing lock... [2025-04-20 08:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 08:32:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-20 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 05:33:05 [end_date_ymd] => 2025-04-20 08:33:05 [RateCDR] => 1 ) [2025-04-20 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-20 05:33:05' and `end` < '2025-04-20 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-20 08:33:17] Production.INFO: count ==104 [2025-04-20 08:33:17] Production.ERROR: pbx CDR StartTime 2025-04-20 05:33:05 - End Time 2025-04-20 08:33:05 [2025-04-20 08:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949077', 'tblTempUsageDetail_20' ) start [2025-04-20 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949077', 'tblTempUsageDetail_20' ) end [2025-04-20 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949077', 'tblTempVendorCDR_20' ) start [2025-04-20 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949077', 'tblTempVendorCDR_20' ) end [2025-04-20 08:33:17] Production.INFO: ProcessCDR(1,14949077,1,1,2) [2025-04-20 08:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949077', 'tblTempUsageDetail_20' ) start [2025-04-20 08:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949077', 'tblTempUsageDetail_20' ) end [2025-04-20 08:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 08:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 08:33:21] Production.INFO: ==30502== Releasing lock... [2025-04-20 08:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 08:33:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-20 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 05:34:05 [end_date_ymd] => 2025-04-20 08:34:05 [RateCDR] => 1 ) [2025-04-20 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-20 05:34:05' and `end` < '2025-04-20 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-20 08:34:17] Production.INFO: count ==104 [2025-04-20 08:34:17] Production.ERROR: pbx CDR StartTime 2025-04-20 05:34:05 - End Time 2025-04-20 08:34:05 [2025-04-20 08:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949082', 'tblTempUsageDetail_20' ) start [2025-04-20 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949082', 'tblTempUsageDetail_20' ) end [2025-04-20 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949082', 'tblTempVendorCDR_20' ) start [2025-04-20 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949082', 'tblTempVendorCDR_20' ) end [2025-04-20 08:34:17] Production.INFO: ProcessCDR(1,14949082,1,1,2) [2025-04-20 08:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949082', 'tblTempUsageDetail_20' ) start [2025-04-20 08:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949082', 'tblTempUsageDetail_20' ) end [2025-04-20 08:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 08:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 08:34:21] Production.INFO: ==30579== Releasing lock... [2025-04-20 08:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 08:34:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-20 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 05:35:05 [end_date_ymd] => 2025-04-20 08:35:05 [RateCDR] => 1 ) [2025-04-20 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-20 05:35:05' and `end` < '2025-04-20 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-20 08:35:18] Production.INFO: count ==104 [2025-04-20 08:35:18] Production.ERROR: pbx CDR StartTime 2025-04-20 05:35:05 - End Time 2025-04-20 08:35:05 [2025-04-20 08:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949087', 'tblTempUsageDetail_20' ) start [2025-04-20 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949087', 'tblTempUsageDetail_20' ) end [2025-04-20 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949087', 'tblTempVendorCDR_20' ) start [2025-04-20 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949087', 'tblTempVendorCDR_20' ) end [2025-04-20 08:35:18] Production.INFO: ProcessCDR(1,14949087,1,1,2) [2025-04-20 08:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949087', 'tblTempUsageDetail_20' ) start [2025-04-20 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949087', 'tblTempUsageDetail_20' ) end [2025-04-20 08:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 08:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 08:35:21] Production.INFO: ==30656== Releasing lock... [2025-04-20 08:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 08:35:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-20 08:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 05:36:06 [end_date_ymd] => 2025-04-20 08:36:06 [RateCDR] => 1 ) [2025-04-20 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-20 05:36:06' and `end` < '2025-04-20 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-20 08:36:18] Production.INFO: count ==104 [2025-04-20 08:36:18] Production.ERROR: pbx CDR StartTime 2025-04-20 05:36:06 - End Time 2025-04-20 08:36:06 [2025-04-20 08:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949092', 'tblTempUsageDetail_20' ) start [2025-04-20 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949092', 'tblTempUsageDetail_20' ) end [2025-04-20 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949092', 'tblTempVendorCDR_20' ) start [2025-04-20 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949092', 'tblTempVendorCDR_20' ) end [2025-04-20 08:36:18] Production.INFO: ProcessCDR(1,14949092,1,1,2) [2025-04-20 08:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949092', 'tblTempUsageDetail_20' ) start [2025-04-20 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949092', 'tblTempUsageDetail_20' ) end [2025-04-20 08:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 08:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 08:36:22] Production.INFO: ==30729== Releasing lock... [2025-04-20 08:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 08:36:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-20 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 05:37:05 [end_date_ymd] => 2025-04-20 08:37:05 [RateCDR] => 1 ) [2025-04-20 08:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 05:37:05' and `end` < '2025-04-20 08:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 08:37:18] Production.INFO: count ==104 [2025-04-20 08:37:18] Production.ERROR: pbx CDR StartTime 2025-04-20 05:37:05 - End Time 2025-04-20 08:37:05 [2025-04-20 08:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949097', 'tblTempUsageDetail_20' ) start [2025-04-20 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949097', 'tblTempUsageDetail_20' ) end [2025-04-20 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949097', 'tblTempVendorCDR_20' ) start [2025-04-20 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949097', 'tblTempVendorCDR_20' ) end [2025-04-20 08:37:18] Production.INFO: ProcessCDR(1,14949097,1,1,2) [2025-04-20 08:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949097', 'tblTempUsageDetail_20' ) start [2025-04-20 08:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949097', 'tblTempUsageDetail_20' ) end [2025-04-20 08:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 08:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 08:37:22] Production.INFO: ==30843== Releasing lock... [2025-04-20 08:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 08:37:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-20 08:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 05:38:06 [end_date_ymd] => 2025-04-20 08:38:06 [RateCDR] => 1 ) [2025-04-20 08:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 05:38:06' and `end` < '2025-04-20 08:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 08:38:18] Production.INFO: count ==105 [2025-04-20 08:38:18] Production.ERROR: pbx CDR StartTime 2025-04-20 05:38:06 - End Time 2025-04-20 08:38:06 [2025-04-20 08:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949102', 'tblTempUsageDetail_20' ) start [2025-04-20 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949102', 'tblTempUsageDetail_20' ) end [2025-04-20 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949102', 'tblTempVendorCDR_20' ) start [2025-04-20 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949102', 'tblTempVendorCDR_20' ) end [2025-04-20 08:38:19] Production.INFO: ProcessCDR(1,14949102,1,1,2) [2025-04-20 08:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949102', 'tblTempUsageDetail_20' ) start [2025-04-20 08:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949102', 'tblTempUsageDetail_20' ) end [2025-04-20 08:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 08:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 08:38:23] Production.INFO: ==30921== Releasing lock... [2025-04-20 08:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 08:38:23] Production.INFO: 28.75 MB #Memory Used# [2025-04-20 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 05:39:05 [end_date_ymd] => 2025-04-20 08:39:05 [RateCDR] => 1 ) [2025-04-20 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-20 05:39:05' and `end` < '2025-04-20 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-20 08:39:17] Production.INFO: count ==105 [2025-04-20 08:39:17] Production.ERROR: pbx CDR StartTime 2025-04-20 05:39:05 - End Time 2025-04-20 08:39:05 [2025-04-20 08:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949107', 'tblTempUsageDetail_20' ) start [2025-04-20 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949107', 'tblTempUsageDetail_20' ) end [2025-04-20 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949107', 'tblTempVendorCDR_20' ) start [2025-04-20 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949107', 'tblTempVendorCDR_20' ) end [2025-04-20 08:39:17] Production.INFO: ProcessCDR(1,14949107,1,1,2) [2025-04-20 08:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949107', 'tblTempUsageDetail_20' ) start [2025-04-20 08:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949107', 'tblTempUsageDetail_20' ) end [2025-04-20 08:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 08:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 08:39:21] Production.INFO: ==30994== Releasing lock... [2025-04-20 08:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 08:39:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-20 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 05:40:06 [end_date_ymd] => 2025-04-20 08:40:06 [RateCDR] => 1 ) [2025-04-20 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-20 05:40:06' and `end` < '2025-04-20 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-20 08:40:18] Production.INFO: count ==108 [2025-04-20 08:40:18] Production.ERROR: pbx CDR StartTime 2025-04-20 05:40:06 - End Time 2025-04-20 08:40:06 [2025-04-20 08:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949112', 'tblTempUsageDetail_20' ) start [2025-04-20 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949112', 'tblTempUsageDetail_20' ) end [2025-04-20 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949112', 'tblTempVendorCDR_20' ) start [2025-04-20 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949112', 'tblTempVendorCDR_20' ) end [2025-04-20 08:40:18] Production.INFO: ProcessCDR(1,14949112,1,1,2) [2025-04-20 08:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949112', 'tblTempUsageDetail_20' ) start [2025-04-20 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949112', 'tblTempUsageDetail_20' ) end [2025-04-20 08:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 08:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 08:40:22] Production.INFO: ==31079== Releasing lock... [2025-04-20 08:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 08:40:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-20 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 05:41:05 [end_date_ymd] => 2025-04-20 08:41:05 [RateCDR] => 1 ) [2025-04-20 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-20 05:41:05' and `end` < '2025-04-20 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-20 08:41:19] Production.INFO: count ==108 [2025-04-20 08:41:19] Production.ERROR: pbx CDR StartTime 2025-04-20 05:41:05 - End Time 2025-04-20 08:41:05 [2025-04-20 08:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 08:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949118', 'tblTempUsageDetail_20' ) start [2025-04-20 08:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949118', 'tblTempUsageDetail_20' ) end [2025-04-20 08:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949118', 'tblTempVendorCDR_20' ) start [2025-04-20 08:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949118', 'tblTempVendorCDR_20' ) end [2025-04-20 08:41:19] Production.INFO: ProcessCDR(1,14949118,1,1,2) [2025-04-20 08:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949118', 'tblTempUsageDetail_20' ) start [2025-04-20 08:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949118', 'tblTempUsageDetail_20' ) end [2025-04-20 08:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 08:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 08:41:22] Production.INFO: ==31154== Releasing lock... [2025-04-20 08:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 08:41:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-20 08:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 05:42:06 [end_date_ymd] => 2025-04-20 08:42:06 [RateCDR] => 1 ) [2025-04-20 08:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 05:42:06' and `end` < '2025-04-20 08:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 08:42:18] Production.INFO: count ==108 [2025-04-20 08:42:18] Production.ERROR: pbx CDR StartTime 2025-04-20 05:42:06 - End Time 2025-04-20 08:42:06 [2025-04-20 08:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949123', 'tblTempUsageDetail_20' ) start [2025-04-20 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949123', 'tblTempUsageDetail_20' ) end [2025-04-20 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949123', 'tblTempVendorCDR_20' ) start [2025-04-20 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949123', 'tblTempVendorCDR_20' ) end [2025-04-20 08:42:18] Production.INFO: ProcessCDR(1,14949123,1,1,2) [2025-04-20 08:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949123', 'tblTempUsageDetail_20' ) start [2025-04-20 08:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949123', 'tblTempUsageDetail_20' ) end [2025-04-20 08:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 08:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 08:42:22] Production.INFO: ==31233== Releasing lock... [2025-04-20 08:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 08:42:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-20 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 05:43:05 [end_date_ymd] => 2025-04-20 08:43:05 [RateCDR] => 1 ) [2025-04-20 08:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 05:43:05' and `end` < '2025-04-20 08:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 08:43:17] Production.INFO: count ==108 [2025-04-20 08:43:17] Production.ERROR: pbx CDR StartTime 2025-04-20 05:43:05 - End Time 2025-04-20 08:43:05 [2025-04-20 08:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949128', 'tblTempUsageDetail_20' ) start [2025-04-20 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949128', 'tblTempUsageDetail_20' ) end [2025-04-20 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949128', 'tblTempVendorCDR_20' ) start [2025-04-20 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949128', 'tblTempVendorCDR_20' ) end [2025-04-20 08:43:17] Production.INFO: ProcessCDR(1,14949128,1,1,2) [2025-04-20 08:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949128', 'tblTempUsageDetail_20' ) start [2025-04-20 08:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949128', 'tblTempUsageDetail_20' ) end [2025-04-20 08:43:20] Production.ERROR: pbx prc_insertCDR start [2025-04-20 08:43:20] Production.ERROR: pbx prc_insertCDR end [2025-04-20 08:43:20] Production.INFO: ==31306== Releasing lock... [2025-04-20 08:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 08:43:20] Production.INFO: 28.75 MB #Memory Used# [2025-04-20 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 05:44:05 [end_date_ymd] => 2025-04-20 08:44:05 [RateCDR] => 1 ) [2025-04-20 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-20 05:44:05' and `end` < '2025-04-20 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-20 08:44:18] Production.INFO: count ==108 [2025-04-20 08:44:18] Production.ERROR: pbx CDR StartTime 2025-04-20 05:44:05 - End Time 2025-04-20 08:44:05 [2025-04-20 08:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949133', 'tblTempUsageDetail_20' ) start [2025-04-20 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949133', 'tblTempUsageDetail_20' ) end [2025-04-20 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949133', 'tblTempVendorCDR_20' ) start [2025-04-20 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949133', 'tblTempVendorCDR_20' ) end [2025-04-20 08:44:18] Production.INFO: ProcessCDR(1,14949133,1,1,2) [2025-04-20 08:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949133', 'tblTempUsageDetail_20' ) start [2025-04-20 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949133', 'tblTempUsageDetail_20' ) end [2025-04-20 08:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 08:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 08:44:21] Production.INFO: ==31390== Releasing lock... [2025-04-20 08:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 08:44:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-20 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 05:45:05 [end_date_ymd] => 2025-04-20 08:45:05 [RateCDR] => 1 ) [2025-04-20 08:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 05:45:05' and `end` < '2025-04-20 08:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 08:45:17] Production.INFO: count ==108 [2025-04-20 08:45:17] Production.ERROR: pbx CDR StartTime 2025-04-20 05:45:05 - End Time 2025-04-20 08:45:05 [2025-04-20 08:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949138', 'tblTempUsageDetail_20' ) start [2025-04-20 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949138', 'tblTempUsageDetail_20' ) end [2025-04-20 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949138', 'tblTempVendorCDR_20' ) start [2025-04-20 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949138', 'tblTempVendorCDR_20' ) end [2025-04-20 08:45:17] Production.INFO: ProcessCDR(1,14949138,1,1,2) [2025-04-20 08:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949138', 'tblTempUsageDetail_20' ) start [2025-04-20 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949138', 'tblTempUsageDetail_20' ) end [2025-04-20 08:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 08:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 08:45:21] Production.INFO: ==31464== Releasing lock... [2025-04-20 08:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 08:45:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-20 08:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 05:46:06 [end_date_ymd] => 2025-04-20 08:46:06 [RateCDR] => 1 ) [2025-04-20 08:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 05:46:06' and `end` < '2025-04-20 08:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 08:46:19] Production.INFO: count ==108 [2025-04-20 08:46:19] Production.ERROR: pbx CDR StartTime 2025-04-20 05:46:06 - End Time 2025-04-20 08:46:06 [2025-04-20 08:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 08:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949143', 'tblTempUsageDetail_20' ) start [2025-04-20 08:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949143', 'tblTempUsageDetail_20' ) end [2025-04-20 08:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949143', 'tblTempVendorCDR_20' ) start [2025-04-20 08:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949143', 'tblTempVendorCDR_20' ) end [2025-04-20 08:46:19] Production.INFO: ProcessCDR(1,14949143,1,1,2) [2025-04-20 08:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949143', 'tblTempUsageDetail_20' ) start [2025-04-20 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949143', 'tblTempUsageDetail_20' ) end [2025-04-20 08:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 08:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 08:46:22] Production.INFO: ==31540== Releasing lock... [2025-04-20 08:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 08:46:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-20 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 05:47:05 [end_date_ymd] => 2025-04-20 08:47:05 [RateCDR] => 1 ) [2025-04-20 08:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 05:47:05' and `end` < '2025-04-20 08:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 08:47:18] Production.INFO: count ==109 [2025-04-20 08:47:18] Production.ERROR: pbx CDR StartTime 2025-04-20 05:47:05 - End Time 2025-04-20 08:47:05 [2025-04-20 08:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949148', 'tblTempUsageDetail_20' ) start [2025-04-20 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949148', 'tblTempUsageDetail_20' ) end [2025-04-20 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949148', 'tblTempVendorCDR_20' ) start [2025-04-20 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949148', 'tblTempVendorCDR_20' ) end [2025-04-20 08:47:18] Production.INFO: ProcessCDR(1,14949148,1,1,2) [2025-04-20 08:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949148', 'tblTempUsageDetail_20' ) start [2025-04-20 08:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949148', 'tblTempUsageDetail_20' ) end [2025-04-20 08:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 08:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 08:47:22] Production.INFO: ==31618== Releasing lock... [2025-04-20 08:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 08:47:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-20 08:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 05:48:06 [end_date_ymd] => 2025-04-20 08:48:06 [RateCDR] => 1 ) [2025-04-20 08:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 05:48:06' and `end` < '2025-04-20 08:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 08:48:19] Production.INFO: count ==109 [2025-04-20 08:48:19] Production.ERROR: pbx CDR StartTime 2025-04-20 05:48:06 - End Time 2025-04-20 08:48:06 [2025-04-20 08:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949153', 'tblTempUsageDetail_20' ) start [2025-04-20 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949153', 'tblTempUsageDetail_20' ) end [2025-04-20 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949153', 'tblTempVendorCDR_20' ) start [2025-04-20 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949153', 'tblTempVendorCDR_20' ) end [2025-04-20 08:48:19] Production.INFO: ProcessCDR(1,14949153,1,1,2) [2025-04-20 08:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949153', 'tblTempUsageDetail_20' ) start [2025-04-20 08:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949153', 'tblTempUsageDetail_20' ) end [2025-04-20 08:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 08:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 08:48:22] Production.INFO: ==31693== Releasing lock... [2025-04-20 08:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 08:48:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-20 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 05:49:05 [end_date_ymd] => 2025-04-20 08:49:05 [RateCDR] => 1 ) [2025-04-20 08:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 05:49:05' and `end` < '2025-04-20 08:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 08:49:18] Production.INFO: count ==113 [2025-04-20 08:49:18] Production.ERROR: pbx CDR StartTime 2025-04-20 05:49:05 - End Time 2025-04-20 08:49:05 [2025-04-20 08:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949158', 'tblTempUsageDetail_20' ) start [2025-04-20 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949158', 'tblTempUsageDetail_20' ) end [2025-04-20 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949158', 'tblTempVendorCDR_20' ) start [2025-04-20 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949158', 'tblTempVendorCDR_20' ) end [2025-04-20 08:49:18] Production.INFO: ProcessCDR(1,14949158,1,1,2) [2025-04-20 08:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949158', 'tblTempUsageDetail_20' ) start [2025-04-20 08:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949158', 'tblTempUsageDetail_20' ) end [2025-04-20 08:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 08:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 08:49:22] Production.INFO: ==31767== Releasing lock... [2025-04-20 08:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 08:49:23] Production.INFO: 29 MB #Memory Used# [2025-04-20 08:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 05:50:06 [end_date_ymd] => 2025-04-20 08:50:06 [RateCDR] => 1 ) [2025-04-20 08: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-20 05:50:06' and `end` < '2025-04-20 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-20 08:50:19] Production.INFO: count ==113 [2025-04-20 08:50:19] Production.ERROR: pbx CDR StartTime 2025-04-20 05:50:06 - End Time 2025-04-20 08:50:06 [2025-04-20 08:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949164', 'tblTempUsageDetail_20' ) start [2025-04-20 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949164', 'tblTempUsageDetail_20' ) end [2025-04-20 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949164', 'tblTempVendorCDR_20' ) start [2025-04-20 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949164', 'tblTempVendorCDR_20' ) end [2025-04-20 08:50:19] Production.INFO: ProcessCDR(1,14949164,1,1,2) [2025-04-20 08:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949164', 'tblTempUsageDetail_20' ) start [2025-04-20 08:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949164', 'tblTempUsageDetail_20' ) end [2025-04-20 08:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 08:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 08:50:23] Production.INFO: ==31845== Releasing lock... [2025-04-20 08:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 08:50:23] Production.INFO: 29 MB #Memory Used# [2025-04-20 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 05:51:05 [end_date_ymd] => 2025-04-20 08:51:05 [RateCDR] => 1 ) [2025-04-20 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-20 05:51:05' and `end` < '2025-04-20 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-20 08:51:18] Production.INFO: count ==113 [2025-04-20 08:51:18] Production.ERROR: pbx CDR StartTime 2025-04-20 05:51:05 - End Time 2025-04-20 08:51:05 [2025-04-20 08:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949169', 'tblTempUsageDetail_20' ) start [2025-04-20 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949169', 'tblTempUsageDetail_20' ) end [2025-04-20 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949169', 'tblTempVendorCDR_20' ) start [2025-04-20 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949169', 'tblTempVendorCDR_20' ) end [2025-04-20 08:51:18] Production.INFO: ProcessCDR(1,14949169,1,1,2) [2025-04-20 08:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949169', 'tblTempUsageDetail_20' ) start [2025-04-20 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949169', 'tblTempUsageDetail_20' ) end [2025-04-20 08:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 08:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 08:51:21] Production.INFO: ==31924== Releasing lock... [2025-04-20 08:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 08:51:21] Production.INFO: 29 MB #Memory Used# [2025-04-20 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 05:52:05 [end_date_ymd] => 2025-04-20 08:52:05 [RateCDR] => 1 ) [2025-04-20 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-20 05:52:05' and `end` < '2025-04-20 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-20 08:52:18] Production.INFO: count ==113 [2025-04-20 08:52:18] Production.ERROR: pbx CDR StartTime 2025-04-20 05:52:05 - End Time 2025-04-20 08:52:05 [2025-04-20 08:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949174', 'tblTempUsageDetail_20' ) start [2025-04-20 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949174', 'tblTempUsageDetail_20' ) end [2025-04-20 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949174', 'tblTempVendorCDR_20' ) start [2025-04-20 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949174', 'tblTempVendorCDR_20' ) end [2025-04-20 08:52:18] Production.INFO: ProcessCDR(1,14949174,1,1,2) [2025-04-20 08:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949174', 'tblTempUsageDetail_20' ) start [2025-04-20 08:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949174', 'tblTempUsageDetail_20' ) end [2025-04-20 08:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 08:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 08:52:22] Production.INFO: ==31996== Releasing lock... [2025-04-20 08:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 08:52:22] Production.INFO: 29 MB #Memory Used# [2025-04-20 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 05:53:05 [end_date_ymd] => 2025-04-20 08:53:05 [RateCDR] => 1 ) [2025-04-20 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-20 05:53:05' and `end` < '2025-04-20 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-20 08:53:18] Production.INFO: count ==115 [2025-04-20 08:53:18] Production.ERROR: pbx CDR StartTime 2025-04-20 05:53:05 - End Time 2025-04-20 08:53:05 [2025-04-20 08:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949179', 'tblTempUsageDetail_20' ) start [2025-04-20 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949179', 'tblTempUsageDetail_20' ) end [2025-04-20 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949179', 'tblTempVendorCDR_20' ) start [2025-04-20 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949179', 'tblTempVendorCDR_20' ) end [2025-04-20 08:53:18] Production.INFO: ProcessCDR(1,14949179,1,1,2) [2025-04-20 08:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949179', 'tblTempUsageDetail_20' ) start [2025-04-20 08:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949179', 'tblTempUsageDetail_20' ) end [2025-04-20 08:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 08:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 08:53:22] Production.INFO: ==32115== Releasing lock... [2025-04-20 08:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 08:53:22] Production.INFO: 29 MB #Memory Used# [2025-04-20 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 05:54:05 [end_date_ymd] => 2025-04-20 08:54:05 [RateCDR] => 1 ) [2025-04-20 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-20 05:54:05' and `end` < '2025-04-20 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-20 08:54:18] Production.INFO: count ==115 [2025-04-20 08:54:18] Production.ERROR: pbx CDR StartTime 2025-04-20 05:54:05 - End Time 2025-04-20 08:54:05 [2025-04-20 08:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949184', 'tblTempUsageDetail_20' ) start [2025-04-20 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949184', 'tblTempUsageDetail_20' ) end [2025-04-20 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949184', 'tblTempVendorCDR_20' ) start [2025-04-20 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949184', 'tblTempVendorCDR_20' ) end [2025-04-20 08:54:18] Production.INFO: ProcessCDR(1,14949184,1,1,2) [2025-04-20 08:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949184', 'tblTempUsageDetail_20' ) start [2025-04-20 08:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949184', 'tblTempUsageDetail_20' ) end [2025-04-20 08:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 08:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 08:54:21] Production.INFO: ==32191== Releasing lock... [2025-04-20 08:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 08:54:21] Production.INFO: 29 MB #Memory Used# [2025-04-20 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 05:55:05 [end_date_ymd] => 2025-04-20 08:55:05 [RateCDR] => 1 ) [2025-04-20 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-20 05:55:05' and `end` < '2025-04-20 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-20 08:55:17] Production.INFO: count ==115 [2025-04-20 08:55:17] Production.ERROR: pbx CDR StartTime 2025-04-20 05:55:05 - End Time 2025-04-20 08:55:05 [2025-04-20 08:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949189', 'tblTempUsageDetail_20' ) start [2025-04-20 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949189', 'tblTempUsageDetail_20' ) end [2025-04-20 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949189', 'tblTempVendorCDR_20' ) start [2025-04-20 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949189', 'tblTempVendorCDR_20' ) end [2025-04-20 08:55:17] Production.INFO: ProcessCDR(1,14949189,1,1,2) [2025-04-20 08:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949189', 'tblTempUsageDetail_20' ) start [2025-04-20 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949189', 'tblTempUsageDetail_20' ) end [2025-04-20 08:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 08:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 08:55:21] Production.INFO: ==32265== Releasing lock... [2025-04-20 08:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 08:55:21] Production.INFO: 29 MB #Memory Used# [2025-04-20 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 05:56:05 [end_date_ymd] => 2025-04-20 08:56:05 [RateCDR] => 1 ) [2025-04-20 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-20 05:56:05' and `end` < '2025-04-20 08:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 08:56:18] Production.INFO: count ==115 [2025-04-20 08:56:18] Production.ERROR: pbx CDR StartTime 2025-04-20 05:56:05 - End Time 2025-04-20 08:56:05 [2025-04-20 08:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949194', 'tblTempUsageDetail_20' ) start [2025-04-20 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949194', 'tblTempUsageDetail_20' ) end [2025-04-20 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949194', 'tblTempVendorCDR_20' ) start [2025-04-20 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949194', 'tblTempVendorCDR_20' ) end [2025-04-20 08:56:18] Production.INFO: ProcessCDR(1,14949194,1,1,2) [2025-04-20 08:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949194', 'tblTempUsageDetail_20' ) start [2025-04-20 08:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949194', 'tblTempUsageDetail_20' ) end [2025-04-20 08:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 08:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 08:56:21] Production.INFO: ==32340== Releasing lock... [2025-04-20 08:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 08:56:21] Production.INFO: 29 MB #Memory Used# [2025-04-20 08:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 05:57:06 [end_date_ymd] => 2025-04-20 08:57:06 [RateCDR] => 1 ) [2025-04-20 08:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 05:57:06' and `end` < '2025-04-20 08:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 08:57:18] Production.INFO: count ==115 [2025-04-20 08:57:18] Production.ERROR: pbx CDR StartTime 2025-04-20 05:57:06 - End Time 2025-04-20 08:57:06 [2025-04-20 08:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949199', 'tblTempUsageDetail_20' ) start [2025-04-20 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949199', 'tblTempUsageDetail_20' ) end [2025-04-20 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949199', 'tblTempVendorCDR_20' ) start [2025-04-20 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949199', 'tblTempVendorCDR_20' ) end [2025-04-20 08:57:18] Production.INFO: ProcessCDR(1,14949199,1,1,2) [2025-04-20 08:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949199', 'tblTempUsageDetail_20' ) start [2025-04-20 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949199', 'tblTempUsageDetail_20' ) end [2025-04-20 08:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 08:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 08:57:22] Production.INFO: ==32417== Releasing lock... [2025-04-20 08:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 08:57:22] Production.INFO: 29 MB #Memory Used# [2025-04-20 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 05:58:05 [end_date_ymd] => 2025-04-20 08:58:05 [RateCDR] => 1 ) [2025-04-20 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-20 05:58:05' and `end` < '2025-04-20 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-20 08:58:18] Production.INFO: count ==115 [2025-04-20 08:58:18] Production.ERROR: pbx CDR StartTime 2025-04-20 05:58:05 - End Time 2025-04-20 08:58:05 [2025-04-20 08:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949204', 'tblTempUsageDetail_20' ) start [2025-04-20 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949204', 'tblTempUsageDetail_20' ) end [2025-04-20 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949204', 'tblTempVendorCDR_20' ) start [2025-04-20 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949204', 'tblTempVendorCDR_20' ) end [2025-04-20 08:58:18] Production.INFO: ProcessCDR(1,14949204,1,1,2) [2025-04-20 08:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949204', 'tblTempUsageDetail_20' ) start [2025-04-20 08:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949204', 'tblTempUsageDetail_20' ) end [2025-04-20 08:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 08:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 08:58:21] Production.INFO: ==32503== Releasing lock... [2025-04-20 08:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 08:58:21] Production.INFO: 29 MB #Memory Used# [2025-04-20 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 05:59:05 [end_date_ymd] => 2025-04-20 08:59:05 [RateCDR] => 1 ) [2025-04-20 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-20 05:59:05' and `end` < '2025-04-20 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-20 08:59:18] Production.INFO: count ==115 [2025-04-20 08:59:18] Production.ERROR: pbx CDR StartTime 2025-04-20 05:59:05 - End Time 2025-04-20 08:59:05 [2025-04-20 08:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949209', 'tblTempUsageDetail_20' ) start [2025-04-20 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949209', 'tblTempUsageDetail_20' ) end [2025-04-20 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949209', 'tblTempVendorCDR_20' ) start [2025-04-20 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949209', 'tblTempVendorCDR_20' ) end [2025-04-20 08:59:18] Production.INFO: ProcessCDR(1,14949209,1,1,2) [2025-04-20 08:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 08:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 08:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949209', 'tblTempUsageDetail_20' ) start [2025-04-20 08:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949209', 'tblTempUsageDetail_20' ) end [2025-04-20 08:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 08:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 08:59:21] Production.INFO: ==32587== Releasing lock... [2025-04-20 08:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 08:59:21] Production.INFO: 29 MB #Memory Used# [2025-04-20 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 06:00:06 [end_date_ymd] => 2025-04-20 09:00:06 [RateCDR] => 1 ) [2025-04-20 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-20 06:00:06' and `end` < '2025-04-20 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-20 09:00:19] Production.INFO: count ==116 [2025-04-20 09:00:19] Production.ERROR: pbx CDR StartTime 2025-04-20 06:00:06 - End Time 2025-04-20 09:00:06 [2025-04-20 09:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949215', 'tblTempUsageDetail_20' ) start [2025-04-20 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949215', 'tblTempUsageDetail_20' ) end [2025-04-20 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949215', 'tblTempVendorCDR_20' ) start [2025-04-20 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949215', 'tblTempVendorCDR_20' ) end [2025-04-20 09:00:19] Production.INFO: ProcessCDR(1,14949215,1,1,2) [2025-04-20 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949215', 'tblTempUsageDetail_20' ) start [2025-04-20 09:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949215', 'tblTempUsageDetail_20' ) end [2025-04-20 09:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 09:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 09:00:22] Production.INFO: ==32659== Releasing lock... [2025-04-20 09:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 09:00:22] Production.INFO: 29 MB #Memory Used# [2025-04-20 09:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 06:01:06 [end_date_ymd] => 2025-04-20 09:01:06 [RateCDR] => 1 ) [2025-04-20 09:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 06:01:06' and `end` < '2025-04-20 09:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 09:01:18] Production.INFO: count ==116 [2025-04-20 09:01:18] Production.ERROR: pbx CDR StartTime 2025-04-20 06:01:06 - End Time 2025-04-20 09:01:06 [2025-04-20 09:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949220', 'tblTempUsageDetail_20' ) start [2025-04-20 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949220', 'tblTempUsageDetail_20' ) end [2025-04-20 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949220', 'tblTempVendorCDR_20' ) start [2025-04-20 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949220', 'tblTempVendorCDR_20' ) end [2025-04-20 09:01:18] Production.INFO: ProcessCDR(1,14949220,1,1,2) [2025-04-20 09:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949220', 'tblTempUsageDetail_20' ) start [2025-04-20 09:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949220', 'tblTempUsageDetail_20' ) end [2025-04-20 09:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 09:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 09:01:22] Production.INFO: ==32754== Releasing lock... [2025-04-20 09:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 09:01:22] Production.INFO: 29 MB #Memory Used# [2025-04-20 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 06:02:05 [end_date_ymd] => 2025-04-20 09:02:05 [RateCDR] => 1 ) [2025-04-20 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-20 06:02:05' and `end` < '2025-04-20 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-20 09:02:18] Production.INFO: count ==116 [2025-04-20 09:02:18] Production.ERROR: pbx CDR StartTime 2025-04-20 06:02:05 - End Time 2025-04-20 09:02:05 [2025-04-20 09:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949225', 'tblTempUsageDetail_20' ) start [2025-04-20 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949225', 'tblTempUsageDetail_20' ) end [2025-04-20 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949225', 'tblTempVendorCDR_20' ) start [2025-04-20 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949225', 'tblTempVendorCDR_20' ) end [2025-04-20 09:02:18] Production.INFO: ProcessCDR(1,14949225,1,1,2) [2025-04-20 09:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949225', 'tblTempUsageDetail_20' ) start [2025-04-20 09:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949225', 'tblTempUsageDetail_20' ) end [2025-04-20 09:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 09:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 09:02:21] Production.INFO: ==379== Releasing lock... [2025-04-20 09:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 09:02:21] Production.INFO: 29 MB #Memory Used# [2025-04-20 09:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 06:03:06 [end_date_ymd] => 2025-04-20 09:03:06 [RateCDR] => 1 ) [2025-04-20 09:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 06:03:06' and `end` < '2025-04-20 09:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 09:03:18] Production.INFO: count ==115 [2025-04-20 09:03:18] Production.ERROR: pbx CDR StartTime 2025-04-20 06:03:06 - End Time 2025-04-20 09:03:06 [2025-04-20 09:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949230', 'tblTempUsageDetail_20' ) start [2025-04-20 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949230', 'tblTempUsageDetail_20' ) end [2025-04-20 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949230', 'tblTempVendorCDR_20' ) start [2025-04-20 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949230', 'tblTempVendorCDR_20' ) end [2025-04-20 09:03:18] Production.INFO: ProcessCDR(1,14949230,1,1,2) [2025-04-20 09:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949230', 'tblTempUsageDetail_20' ) start [2025-04-20 09:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949230', 'tblTempUsageDetail_20' ) end [2025-04-20 09:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 09:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 09:03:21] Production.INFO: ==457== Releasing lock... [2025-04-20 09:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 09:03:21] Production.INFO: 29 MB #Memory Used# [2025-04-20 09:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 06:04:05 [end_date_ymd] => 2025-04-20 09:04:05 [RateCDR] => 1 ) [2025-04-20 09:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 06:04:05' and `end` < '2025-04-20 09:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 09:04:18] Production.INFO: count ==115 [2025-04-20 09:04:18] Production.ERROR: pbx CDR StartTime 2025-04-20 06:04:05 - End Time 2025-04-20 09:04:05 [2025-04-20 09:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949235', 'tblTempUsageDetail_20' ) start [2025-04-20 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949235', 'tblTempUsageDetail_20' ) end [2025-04-20 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949235', 'tblTempVendorCDR_20' ) start [2025-04-20 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949235', 'tblTempVendorCDR_20' ) end [2025-04-20 09:04:18] Production.INFO: ProcessCDR(1,14949235,1,1,2) [2025-04-20 09:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949235', 'tblTempUsageDetail_20' ) start [2025-04-20 09:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949235', 'tblTempUsageDetail_20' ) end [2025-04-20 09:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 09:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 09:04:21] Production.INFO: ==538== Releasing lock... [2025-04-20 09:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 09:04:21] Production.INFO: 29 MB #Memory Used# [2025-04-20 09:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 06:05:06 [end_date_ymd] => 2025-04-20 09:05:06 [RateCDR] => 1 ) [2025-04-20 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-20 06:05:06' and `end` < '2025-04-20 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-20 09:05:18] Production.INFO: count ==115 [2025-04-20 09:05:18] Production.ERROR: pbx CDR StartTime 2025-04-20 06:05:06 - End Time 2025-04-20 09:05:06 [2025-04-20 09:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949240', 'tblTempUsageDetail_20' ) start [2025-04-20 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949240', 'tblTempUsageDetail_20' ) end [2025-04-20 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949240', 'tblTempVendorCDR_20' ) start [2025-04-20 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949240', 'tblTempVendorCDR_20' ) end [2025-04-20 09:05:18] Production.INFO: ProcessCDR(1,14949240,1,1,2) [2025-04-20 09:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949240', 'tblTempUsageDetail_20' ) start [2025-04-20 09:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949240', 'tblTempUsageDetail_20' ) end [2025-04-20 09:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 09:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 09:05:22] Production.INFO: ==619== Releasing lock... [2025-04-20 09:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 09:05:22] Production.INFO: 29 MB #Memory Used# [2025-04-20 09:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 06:06:04 [end_date_ymd] => 2025-04-20 09:06:04 [RateCDR] => 1 ) [2025-04-20 09:06: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-20 06:06:04' and `end` < '2025-04-20 09:06: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-20 09:06:18] Production.INFO: count ==115 [2025-04-20 09:06:18] Production.ERROR: pbx CDR StartTime 2025-04-20 06:06:04 - End Time 2025-04-20 09:06:04 [2025-04-20 09:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949245', 'tblTempUsageDetail_20' ) start [2025-04-20 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949245', 'tblTempUsageDetail_20' ) end [2025-04-20 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949245', 'tblTempVendorCDR_20' ) start [2025-04-20 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949245', 'tblTempVendorCDR_20' ) end [2025-04-20 09:06:18] Production.INFO: ProcessCDR(1,14949245,1,1,2) [2025-04-20 09:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949245', 'tblTempUsageDetail_20' ) start [2025-04-20 09:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949245', 'tblTempUsageDetail_20' ) end [2025-04-20 09:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 09:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 09:06:21] Production.INFO: ==719== Releasing lock... [2025-04-20 09:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 09:06:21] Production.INFO: 29 MB #Memory Used# [2025-04-20 09:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 06:07:05 [end_date_ymd] => 2025-04-20 09:07:05 [RateCDR] => 1 ) [2025-04-20 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-20 06:07:05' and `end` < '2025-04-20 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-20 09:07:17] Production.INFO: count ==115 [2025-04-20 09:07:17] Production.ERROR: pbx CDR StartTime 2025-04-20 06:07:05 - End Time 2025-04-20 09:07:05 [2025-04-20 09:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949250', 'tblTempUsageDetail_20' ) start [2025-04-20 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949250', 'tblTempUsageDetail_20' ) end [2025-04-20 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949250', 'tblTempVendorCDR_20' ) start [2025-04-20 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949250', 'tblTempVendorCDR_20' ) end [2025-04-20 09:07:18] Production.INFO: ProcessCDR(1,14949250,1,1,2) [2025-04-20 09:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949250', 'tblTempUsageDetail_20' ) start [2025-04-20 09:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949250', 'tblTempUsageDetail_20' ) end [2025-04-20 09:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 09:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 09:07:21] Production.INFO: ==800== Releasing lock... [2025-04-20 09:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 09:07:21] Production.INFO: 29 MB #Memory Used# [2025-04-20 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 06:08:05 [end_date_ymd] => 2025-04-20 09:08:05 [RateCDR] => 1 ) [2025-04-20 09:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 06:08:05' and `end` < '2025-04-20 09:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 09:08:17] Production.INFO: count ==115 [2025-04-20 09:08:17] Production.ERROR: pbx CDR StartTime 2025-04-20 06:08:05 - End Time 2025-04-20 09:08:05 [2025-04-20 09:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 09:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949255', 'tblTempUsageDetail_20' ) start [2025-04-20 09:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949255', 'tblTempUsageDetail_20' ) end [2025-04-20 09:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949255', 'tblTempVendorCDR_20' ) start [2025-04-20 09:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949255', 'tblTempVendorCDR_20' ) end [2025-04-20 09:08:17] Production.INFO: ProcessCDR(1,14949255,1,1,2) [2025-04-20 09:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949255', 'tblTempUsageDetail_20' ) start [2025-04-20 09:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949255', 'tblTempUsageDetail_20' ) end [2025-04-20 09:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 09:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 09:08:21] Production.INFO: ==918== Releasing lock... [2025-04-20 09:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 09:08:21] Production.INFO: 29 MB #Memory Used# [2025-04-20 09:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 06:09:05 [end_date_ymd] => 2025-04-20 09:09:05 [RateCDR] => 1 ) [2025-04-20 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-20 06:09:05' and `end` < '2025-04-20 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-20 09:09:18] Production.INFO: count ==115 [2025-04-20 09:09:18] Production.ERROR: pbx CDR StartTime 2025-04-20 06:09:05 - End Time 2025-04-20 09:09:05 [2025-04-20 09:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949260', 'tblTempUsageDetail_20' ) start [2025-04-20 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949260', 'tblTempUsageDetail_20' ) end [2025-04-20 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949260', 'tblTempVendorCDR_20' ) start [2025-04-20 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949260', 'tblTempVendorCDR_20' ) end [2025-04-20 09:09:18] Production.INFO: ProcessCDR(1,14949260,1,1,2) [2025-04-20 09:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949260', 'tblTempUsageDetail_20' ) start [2025-04-20 09:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949260', 'tblTempUsageDetail_20' ) end [2025-04-20 09:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 09:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 09:09:21] Production.INFO: ==1001== Releasing lock... [2025-04-20 09:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 09:09:21] Production.INFO: 29 MB #Memory Used# [2025-04-20 09:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 06:10:05 [end_date_ymd] => 2025-04-20 09:10:05 [RateCDR] => 1 ) [2025-04-20 09: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-20 06:10:05' and `end` < '2025-04-20 09: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-20 09:10:19] Production.INFO: count ==127 [2025-04-20 09:10:19] Production.ERROR: pbx CDR StartTime 2025-04-20 06:10:05 - End Time 2025-04-20 09:10:05 [2025-04-20 09:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949265', 'tblTempUsageDetail_20' ) start [2025-04-20 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949265', 'tblTempUsageDetail_20' ) end [2025-04-20 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949265', 'tblTempVendorCDR_20' ) start [2025-04-20 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949265', 'tblTempVendorCDR_20' ) end [2025-04-20 09:10:19] Production.INFO: ProcessCDR(1,14949265,1,1,2) [2025-04-20 09:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949265', 'tblTempUsageDetail_20' ) start [2025-04-20 09:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949265', 'tblTempUsageDetail_20' ) end [2025-04-20 09:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 09:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 09:10:23] Production.INFO: ==1079== Releasing lock... [2025-04-20 09:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 09:10:23] Production.INFO: 28.75 MB #Memory Used# [2025-04-20 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 06:11:05 [end_date_ymd] => 2025-04-20 09:11:05 [RateCDR] => 1 ) [2025-04-20 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-20 06:11:05' and `end` < '2025-04-20 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-20 09:11:18] Production.INFO: count ==127 [2025-04-20 09:11:18] Production.ERROR: pbx CDR StartTime 2025-04-20 06:11:05 - End Time 2025-04-20 09:11:05 [2025-04-20 09:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949271', 'tblTempUsageDetail_20' ) start [2025-04-20 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949271', 'tblTempUsageDetail_20' ) end [2025-04-20 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949271', 'tblTempVendorCDR_20' ) start [2025-04-20 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949271', 'tblTempVendorCDR_20' ) end [2025-04-20 09:11:18] Production.INFO: ProcessCDR(1,14949271,1,1,2) [2025-04-20 09:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949271', 'tblTempUsageDetail_20' ) start [2025-04-20 09:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949271', 'tblTempUsageDetail_20' ) end [2025-04-20 09:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 09:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 09:11:21] Production.INFO: ==1162== Releasing lock... [2025-04-20 09:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 09:11:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-20 09:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 06:12:06 [end_date_ymd] => 2025-04-20 09:12:06 [RateCDR] => 1 ) [2025-04-20 09:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 06:12:06' and `end` < '2025-04-20 09:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 09:12:18] Production.INFO: count ==131 [2025-04-20 09:12:18] Production.ERROR: pbx CDR StartTime 2025-04-20 06:12:06 - End Time 2025-04-20 09:12:06 [2025-04-20 09:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949276', 'tblTempUsageDetail_20' ) start [2025-04-20 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949276', 'tblTempUsageDetail_20' ) end [2025-04-20 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949276', 'tblTempVendorCDR_20' ) start [2025-04-20 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949276', 'tblTempVendorCDR_20' ) end [2025-04-20 09:12:18] Production.INFO: ProcessCDR(1,14949276,1,1,2) [2025-04-20 09:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949276', 'tblTempUsageDetail_20' ) start [2025-04-20 09:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949276', 'tblTempUsageDetail_20' ) end [2025-04-20 09:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 09:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 09:12:22] Production.INFO: ==1247== Releasing lock... [2025-04-20 09:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 09:12:22] Production.INFO: 29 MB #Memory Used# [2025-04-20 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 06:13:05 [end_date_ymd] => 2025-04-20 09:13:05 [RateCDR] => 1 ) [2025-04-20 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-20 06:13:05' and `end` < '2025-04-20 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-20 09:13:18] Production.INFO: count ==131 [2025-04-20 09:13:18] Production.ERROR: pbx CDR StartTime 2025-04-20 06:13:05 - End Time 2025-04-20 09:13:05 [2025-04-20 09:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949281', 'tblTempUsageDetail_20' ) start [2025-04-20 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949281', 'tblTempUsageDetail_20' ) end [2025-04-20 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949281', 'tblTempVendorCDR_20' ) start [2025-04-20 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949281', 'tblTempVendorCDR_20' ) end [2025-04-20 09:13:18] Production.INFO: ProcessCDR(1,14949281,1,1,2) [2025-04-20 09:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949281', 'tblTempUsageDetail_20' ) start [2025-04-20 09:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949281', 'tblTempUsageDetail_20' ) end [2025-04-20 09:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 09:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 09:13:21] Production.INFO: ==1336== Releasing lock... [2025-04-20 09:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 09:13:21] Production.INFO: 29 MB #Memory Used# [2025-04-20 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 06:14:05 [end_date_ymd] => 2025-04-20 09:14:05 [RateCDR] => 1 ) [2025-04-20 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-20 06:14:05' and `end` < '2025-04-20 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-20 09:14:18] Production.INFO: count ==132 [2025-04-20 09:14:18] Production.ERROR: pbx CDR StartTime 2025-04-20 06:14:05 - End Time 2025-04-20 09:14:05 [2025-04-20 09:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949286', 'tblTempUsageDetail_20' ) start [2025-04-20 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949286', 'tblTempUsageDetail_20' ) end [2025-04-20 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949286', 'tblTempVendorCDR_20' ) start [2025-04-20 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949286', 'tblTempVendorCDR_20' ) end [2025-04-20 09:14:18] Production.INFO: ProcessCDR(1,14949286,1,1,2) [2025-04-20 09:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949286', 'tblTempUsageDetail_20' ) start [2025-04-20 09:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949286', 'tblTempUsageDetail_20' ) end [2025-04-20 09:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 09:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 09:14:21] Production.INFO: ==1415== Releasing lock... [2025-04-20 09:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 09:14:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-20 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 06:15:05 [end_date_ymd] => 2025-04-20 09:15:05 [RateCDR] => 1 ) [2025-04-20 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-20 06:15:05' and `end` < '2025-04-20 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-20 09:15:18] Production.INFO: count ==128 [2025-04-20 09:15:18] Production.ERROR: pbx CDR StartTime 2025-04-20 06:15:05 - End Time 2025-04-20 09:15:05 [2025-04-20 09:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949291', 'tblTempUsageDetail_20' ) start [2025-04-20 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949291', 'tblTempUsageDetail_20' ) end [2025-04-20 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949291', 'tblTempVendorCDR_20' ) start [2025-04-20 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949291', 'tblTempVendorCDR_20' ) end [2025-04-20 09:15:18] Production.INFO: ProcessCDR(1,14949291,1,1,2) [2025-04-20 09:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949291', 'tblTempUsageDetail_20' ) start [2025-04-20 09:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949291', 'tblTempUsageDetail_20' ) end [2025-04-20 09:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 09:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 09:15:21] Production.INFO: ==1488== Releasing lock... [2025-04-20 09:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 09:15:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-20 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 06:16:05 [end_date_ymd] => 2025-04-20 09:16:05 [RateCDR] => 1 ) [2025-04-20 09:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 06:16:05' and `end` < '2025-04-20 09:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 09:16:18] Production.INFO: count ==127 [2025-04-20 09:16:18] Production.ERROR: pbx CDR StartTime 2025-04-20 06:16:05 - End Time 2025-04-20 09:16:05 [2025-04-20 09:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949296', 'tblTempUsageDetail_20' ) start [2025-04-20 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949296', 'tblTempUsageDetail_20' ) end [2025-04-20 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949296', 'tblTempVendorCDR_20' ) start [2025-04-20 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949296', 'tblTempVendorCDR_20' ) end [2025-04-20 09:16:18] Production.INFO: ProcessCDR(1,14949296,1,1,2) [2025-04-20 09:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949296', 'tblTempUsageDetail_20' ) start [2025-04-20 09:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949296', 'tblTempUsageDetail_20' ) end [2025-04-20 09:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 09:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 09:16:21] Production.INFO: ==1601== Releasing lock... [2025-04-20 09:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 09:16:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-20 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 06:17:05 [end_date_ymd] => 2025-04-20 09:17:05 [RateCDR] => 1 ) [2025-04-20 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-20 06:17:05' and `end` < '2025-04-20 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-20 09:17:18] Production.INFO: count ==125 [2025-04-20 09:17:18] Production.ERROR: pbx CDR StartTime 2025-04-20 06:17:05 - End Time 2025-04-20 09:17:05 [2025-04-20 09:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949301', 'tblTempUsageDetail_20' ) start [2025-04-20 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949301', 'tblTempUsageDetail_20' ) end [2025-04-20 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949301', 'tblTempVendorCDR_20' ) start [2025-04-20 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949301', 'tblTempVendorCDR_20' ) end [2025-04-20 09:17:18] Production.INFO: ProcessCDR(1,14949301,1,1,2) [2025-04-20 09:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949301', 'tblTempUsageDetail_20' ) start [2025-04-20 09:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949301', 'tblTempUsageDetail_20' ) end [2025-04-20 09:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 09:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 09:17:22] Production.INFO: ==1677== Releasing lock... [2025-04-20 09:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 09:17:22] Production.INFO: 29 MB #Memory Used# [2025-04-20 09:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 06:18:06 [end_date_ymd] => 2025-04-20 09:18:06 [RateCDR] => 1 ) [2025-04-20 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-20 06:18:06' and `end` < '2025-04-20 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-20 09:18:18] Production.INFO: count ==125 [2025-04-20 09:18:18] Production.ERROR: pbx CDR StartTime 2025-04-20 06:18:06 - End Time 2025-04-20 09:18:06 [2025-04-20 09:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949306', 'tblTempUsageDetail_20' ) start [2025-04-20 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949306', 'tblTempUsageDetail_20' ) end [2025-04-20 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949306', 'tblTempVendorCDR_20' ) start [2025-04-20 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949306', 'tblTempVendorCDR_20' ) end [2025-04-20 09:18:18] Production.INFO: ProcessCDR(1,14949306,1,1,2) [2025-04-20 09:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949306', 'tblTempUsageDetail_20' ) start [2025-04-20 09:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949306', 'tblTempUsageDetail_20' ) end [2025-04-20 09:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 09:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 09:18:22] Production.INFO: ==1762== Releasing lock... [2025-04-20 09:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 09:18:22] Production.INFO: 29 MB #Memory Used# [2025-04-20 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 06:19:05 [end_date_ymd] => 2025-04-20 09:19:05 [RateCDR] => 1 ) [2025-04-20 09:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 06:19:05' and `end` < '2025-04-20 09:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 09:19:17] Production.INFO: count ==125 [2025-04-20 09:19:17] Production.ERROR: pbx CDR StartTime 2025-04-20 06:19:05 - End Time 2025-04-20 09:19:05 [2025-04-20 09:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 09:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949311', 'tblTempUsageDetail_20' ) start [2025-04-20 09:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949311', 'tblTempUsageDetail_20' ) end [2025-04-20 09:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949311', 'tblTempVendorCDR_20' ) start [2025-04-20 09:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949311', 'tblTempVendorCDR_20' ) end [2025-04-20 09:19:17] Production.INFO: ProcessCDR(1,14949311,1,1,2) [2025-04-20 09:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949311', 'tblTempUsageDetail_20' ) start [2025-04-20 09:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949311', 'tblTempUsageDetail_20' ) end [2025-04-20 09:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 09:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 09:19:21] Production.INFO: ==1846== Releasing lock... [2025-04-20 09:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 09:19:21] Production.INFO: 29 MB #Memory Used# [2025-04-20 09:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 06:20:06 [end_date_ymd] => 2025-04-20 09:20:06 [RateCDR] => 1 ) [2025-04-20 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-20 06:20:06' and `end` < '2025-04-20 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-20 09:20:19] Production.INFO: count ==135 [2025-04-20 09:20:19] Production.ERROR: pbx CDR StartTime 2025-04-20 06:20:06 - End Time 2025-04-20 09:20:06 [2025-04-20 09:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949317', 'tblTempUsageDetail_20' ) start [2025-04-20 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949317', 'tblTempUsageDetail_20' ) end [2025-04-20 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949317', 'tblTempVendorCDR_20' ) start [2025-04-20 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949317', 'tblTempVendorCDR_20' ) end [2025-04-20 09:20:19] Production.INFO: ProcessCDR(1,14949317,1,1,2) [2025-04-20 09:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949317', 'tblTempUsageDetail_20' ) start [2025-04-20 09:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949317', 'tblTempUsageDetail_20' ) end [2025-04-20 09:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 09:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 09:20:22] Production.INFO: ==1920== Releasing lock... [2025-04-20 09:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 09:20:22] Production.INFO: 29 MB #Memory Used# [2025-04-20 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 06:21:05 [end_date_ymd] => 2025-04-20 09:21:05 [RateCDR] => 1 ) [2025-04-20 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-20 06:21:05' and `end` < '2025-04-20 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-20 09:21:18] Production.INFO: count ==137 [2025-04-20 09:21:18] Production.ERROR: pbx CDR StartTime 2025-04-20 06:21:05 - End Time 2025-04-20 09:21:05 [2025-04-20 09:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949322', 'tblTempUsageDetail_20' ) start [2025-04-20 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949322', 'tblTempUsageDetail_20' ) end [2025-04-20 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949322', 'tblTempVendorCDR_20' ) start [2025-04-20 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949322', 'tblTempVendorCDR_20' ) end [2025-04-20 09:21:18] Production.INFO: ProcessCDR(1,14949322,1,1,2) [2025-04-20 09:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949322', 'tblTempUsageDetail_20' ) start [2025-04-20 09:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949322', 'tblTempUsageDetail_20' ) end [2025-04-20 09:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 09:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 09:21:21] Production.INFO: ==1998== Releasing lock... [2025-04-20 09:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 09:21:21] Production.INFO: 29 MB #Memory Used# [2025-04-20 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 06:22:05 [end_date_ymd] => 2025-04-20 09:22:05 [RateCDR] => 1 ) [2025-04-20 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-20 06:22:05' and `end` < '2025-04-20 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-20 09:22:18] Production.INFO: count ==138 [2025-04-20 09:22:18] Production.ERROR: pbx CDR StartTime 2025-04-20 06:22:05 - End Time 2025-04-20 09:22:05 [2025-04-20 09:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949327', 'tblTempUsageDetail_20' ) start [2025-04-20 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949327', 'tblTempUsageDetail_20' ) end [2025-04-20 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949327', 'tblTempVendorCDR_20' ) start [2025-04-20 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949327', 'tblTempVendorCDR_20' ) end [2025-04-20 09:22:18] Production.INFO: ProcessCDR(1,14949327,1,1,2) [2025-04-20 09:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949327', 'tblTempUsageDetail_20' ) start [2025-04-20 09:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949327', 'tblTempUsageDetail_20' ) end [2025-04-20 09:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 09:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 09:22:21] Production.INFO: ==2080== Releasing lock... [2025-04-20 09:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 09:22:21] Production.INFO: 29 MB #Memory Used# [2025-04-20 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 06:23:05 [end_date_ymd] => 2025-04-20 09:23:05 [RateCDR] => 1 ) [2025-04-20 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-20 06:23:05' and `end` < '2025-04-20 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-20 09:23:18] Production.INFO: count ==138 [2025-04-20 09:23:18] Production.ERROR: pbx CDR StartTime 2025-04-20 06:23:05 - End Time 2025-04-20 09:23:05 [2025-04-20 09:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949332', 'tblTempUsageDetail_20' ) start [2025-04-20 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949332', 'tblTempUsageDetail_20' ) end [2025-04-20 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949332', 'tblTempVendorCDR_20' ) start [2025-04-20 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949332', 'tblTempVendorCDR_20' ) end [2025-04-20 09:23:18] Production.INFO: ProcessCDR(1,14949332,1,1,2) [2025-04-20 09:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949332', 'tblTempUsageDetail_20' ) start [2025-04-20 09:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949332', 'tblTempUsageDetail_20' ) end [2025-04-20 09:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 09:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 09:23:22] Production.INFO: ==2159== Releasing lock... [2025-04-20 09:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 09:23:22] Production.INFO: 29 MB #Memory Used# [2025-04-20 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 06:24:05 [end_date_ymd] => 2025-04-20 09:24:05 [RateCDR] => 1 ) [2025-04-20 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-20 06:24:05' and `end` < '2025-04-20 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-20 09:24:18] Production.INFO: count ==139 [2025-04-20 09:24:18] Production.ERROR: pbx CDR StartTime 2025-04-20 06:24:05 - End Time 2025-04-20 09:24:05 [2025-04-20 09:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949337', 'tblTempUsageDetail_20' ) start [2025-04-20 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949337', 'tblTempUsageDetail_20' ) end [2025-04-20 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949337', 'tblTempVendorCDR_20' ) start [2025-04-20 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949337', 'tblTempVendorCDR_20' ) end [2025-04-20 09:24:18] Production.INFO: ProcessCDR(1,14949337,1,1,2) [2025-04-20 09:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949337', 'tblTempUsageDetail_20' ) start [2025-04-20 09:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949337', 'tblTempUsageDetail_20' ) end [2025-04-20 09:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 09:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 09:24:22] Production.INFO: ==2272== Releasing lock... [2025-04-20 09:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 09:24:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-20 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 06:25:05 [end_date_ymd] => 2025-04-20 09:25:05 [RateCDR] => 1 ) [2025-04-20 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-20 06:25:05' and `end` < '2025-04-20 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-20 09:25:17] Production.INFO: count ==149 [2025-04-20 09:25:17] Production.ERROR: pbx CDR StartTime 2025-04-20 06:25:05 - End Time 2025-04-20 09:25:05 [2025-04-20 09:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949342', 'tblTempUsageDetail_20' ) start [2025-04-20 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949342', 'tblTempUsageDetail_20' ) end [2025-04-20 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949342', 'tblTempVendorCDR_20' ) start [2025-04-20 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949342', 'tblTempVendorCDR_20' ) end [2025-04-20 09:25:17] Production.INFO: ProcessCDR(1,14949342,1,1,2) [2025-04-20 09:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949342', 'tblTempUsageDetail_20' ) start [2025-04-20 09:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949342', 'tblTempUsageDetail_20' ) end [2025-04-20 09:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 09:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 09:25:21] Production.INFO: ==2353== Releasing lock... [2025-04-20 09:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 09:25:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-20 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 06:26:05 [end_date_ymd] => 2025-04-20 09:26:05 [RateCDR] => 1 ) [2025-04-20 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-20 06:26:05' and `end` < '2025-04-20 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-20 09:26:18] Production.INFO: count ==149 [2025-04-20 09:26:18] Production.ERROR: pbx CDR StartTime 2025-04-20 06:26:05 - End Time 2025-04-20 09:26:05 [2025-04-20 09:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949347', 'tblTempUsageDetail_20' ) start [2025-04-20 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949347', 'tblTempUsageDetail_20' ) end [2025-04-20 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949347', 'tblTempVendorCDR_20' ) start [2025-04-20 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949347', 'tblTempVendorCDR_20' ) end [2025-04-20 09:26:18] Production.INFO: ProcessCDR(1,14949347,1,1,2) [2025-04-20 09:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949347', 'tblTempUsageDetail_20' ) start [2025-04-20 09:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949347', 'tblTempUsageDetail_20' ) end [2025-04-20 09:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 09:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 09:26:21] Production.INFO: ==2425== Releasing lock... [2025-04-20 09:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 09:26:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-20 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 06:27:05 [end_date_ymd] => 2025-04-20 09:27:05 [RateCDR] => 1 ) [2025-04-20 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-20 06:27:05' and `end` < '2025-04-20 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-20 09:27:18] Production.INFO: count ==149 [2025-04-20 09:27:18] Production.ERROR: pbx CDR StartTime 2025-04-20 06:27:05 - End Time 2025-04-20 09:27:05 [2025-04-20 09:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949352', 'tblTempUsageDetail_20' ) start [2025-04-20 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949352', 'tblTempUsageDetail_20' ) end [2025-04-20 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949352', 'tblTempVendorCDR_20' ) start [2025-04-20 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949352', 'tblTempVendorCDR_20' ) end [2025-04-20 09:27:18] Production.INFO: ProcessCDR(1,14949352,1,1,2) [2025-04-20 09:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949352', 'tblTempUsageDetail_20' ) start [2025-04-20 09:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949352', 'tblTempUsageDetail_20' ) end [2025-04-20 09:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 09:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 09:27:21] Production.INFO: ==2507== Releasing lock... [2025-04-20 09:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 09:27:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-20 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 06:28:05 [end_date_ymd] => 2025-04-20 09:28:05 [RateCDR] => 1 ) [2025-04-20 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-20 06:28:05' and `end` < '2025-04-20 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-20 09:28:18] Production.INFO: count ==149 [2025-04-20 09:28:18] Production.ERROR: pbx CDR StartTime 2025-04-20 06:28:05 - End Time 2025-04-20 09:28:05 [2025-04-20 09:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949357', 'tblTempUsageDetail_20' ) start [2025-04-20 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949357', 'tblTempUsageDetail_20' ) end [2025-04-20 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949357', 'tblTempVendorCDR_20' ) start [2025-04-20 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949357', 'tblTempVendorCDR_20' ) end [2025-04-20 09:28:18] Production.INFO: ProcessCDR(1,14949357,1,1,2) [2025-04-20 09:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949357', 'tblTempUsageDetail_20' ) start [2025-04-20 09:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949357', 'tblTempUsageDetail_20' ) end [2025-04-20 09:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 09:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 09:28:21] Production.INFO: ==2587== Releasing lock... [2025-04-20 09:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 09:28:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-20 09:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 06:29:06 [end_date_ymd] => 2025-04-20 09:29:06 [RateCDR] => 1 ) [2025-04-20 09:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 06:29:06' and `end` < '2025-04-20 09:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 09:29:18] Production.INFO: count ==160 [2025-04-20 09:29:18] Production.ERROR: pbx CDR StartTime 2025-04-20 06:29:06 - End Time 2025-04-20 09:29:06 [2025-04-20 09:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949362', 'tblTempUsageDetail_20' ) start [2025-04-20 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949362', 'tblTempUsageDetail_20' ) end [2025-04-20 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949362', 'tblTempVendorCDR_20' ) start [2025-04-20 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949362', 'tblTempVendorCDR_20' ) end [2025-04-20 09:29:18] Production.INFO: ProcessCDR(1,14949362,1,1,2) [2025-04-20 09:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949362', 'tblTempUsageDetail_20' ) start [2025-04-20 09:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949362', 'tblTempUsageDetail_20' ) end [2025-04-20 09:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 09:29:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 09:29:23] Production.INFO: ==2659== Releasing lock... [2025-04-20 09:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 09:29:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-20 09:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 06:30:06 [end_date_ymd] => 2025-04-20 09:30:06 [RateCDR] => 1 ) [2025-04-20 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-20 06:30:06' and `end` < '2025-04-20 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-20 09:30:18] Production.INFO: count ==164 [2025-04-20 09:30:18] Production.ERROR: pbx CDR StartTime 2025-04-20 06:30:06 - End Time 2025-04-20 09:30:06 [2025-04-20 09:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 09:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949368', 'tblTempUsageDetail_20' ) start [2025-04-20 09:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949368', 'tblTempUsageDetail_20' ) end [2025-04-20 09:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949368', 'tblTempVendorCDR_20' ) start [2025-04-20 09:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949368', 'tblTempVendorCDR_20' ) end [2025-04-20 09:30:18] Production.INFO: ProcessCDR(1,14949368,1,1,2) [2025-04-20 09:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949368', 'tblTempUsageDetail_20' ) start [2025-04-20 09:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949368', 'tblTempUsageDetail_20' ) end [2025-04-20 09:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 09:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 09:30:22] Production.INFO: ==2736== Releasing lock... [2025-04-20 09:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 09:30:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-20 09:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 06:31:06 [end_date_ymd] => 2025-04-20 09:31:06 [RateCDR] => 1 ) [2025-04-20 09:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 06:31:06' and `end` < '2025-04-20 09:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 09:31:18] Production.INFO: count ==170 [2025-04-20 09:31:18] Production.ERROR: pbx CDR StartTime 2025-04-20 06:31:06 - End Time 2025-04-20 09:31:06 [2025-04-20 09:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949373', 'tblTempUsageDetail_20' ) start [2025-04-20 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949373', 'tblTempUsageDetail_20' ) end [2025-04-20 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949373', 'tblTempVendorCDR_20' ) start [2025-04-20 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949373', 'tblTempVendorCDR_20' ) end [2025-04-20 09:31:18] Production.INFO: ProcessCDR(1,14949373,1,1,2) [2025-04-20 09:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949373', 'tblTempUsageDetail_20' ) start [2025-04-20 09:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949373', 'tblTempUsageDetail_20' ) end [2025-04-20 09:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 09:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 09:31:22] Production.INFO: ==2820== Releasing lock... [2025-04-20 09:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 09:31:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-20 09:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 06:32:05 [end_date_ymd] => 2025-04-20 09:32:05 [RateCDR] => 1 ) [2025-04-20 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-20 06:32:05' and `end` < '2025-04-20 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-20 09:32:18] Production.INFO: count ==173 [2025-04-20 09:32:19] Production.ERROR: pbx CDR StartTime 2025-04-20 06:32:05 - End Time 2025-04-20 09:32:05 [2025-04-20 09:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949378', 'tblTempUsageDetail_20' ) start [2025-04-20 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949378', 'tblTempUsageDetail_20' ) end [2025-04-20 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949378', 'tblTempVendorCDR_20' ) start [2025-04-20 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949378', 'tblTempVendorCDR_20' ) end [2025-04-20 09:32:19] Production.INFO: ProcessCDR(1,14949378,1,1,2) [2025-04-20 09:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949378', 'tblTempUsageDetail_20' ) start [2025-04-20 09:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949378', 'tblTempUsageDetail_20' ) end [2025-04-20 09:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 09:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 09:32:22] Production.INFO: ==2894== Releasing lock... [2025-04-20 09:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 09:32:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-20 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 06:33:05 [end_date_ymd] => 2025-04-20 09:33:05 [RateCDR] => 1 ) [2025-04-20 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-20 06:33:05' and `end` < '2025-04-20 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-20 09:33:18] Production.INFO: count ==175 [2025-04-20 09:33:18] Production.ERROR: pbx CDR StartTime 2025-04-20 06:33:05 - End Time 2025-04-20 09:33:05 [2025-04-20 09:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949383', 'tblTempUsageDetail_20' ) start [2025-04-20 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949383', 'tblTempUsageDetail_20' ) end [2025-04-20 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949383', 'tblTempVendorCDR_20' ) start [2025-04-20 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949383', 'tblTempVendorCDR_20' ) end [2025-04-20 09:33:18] Production.INFO: ProcessCDR(1,14949383,1,1,2) [2025-04-20 09:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949383', 'tblTempUsageDetail_20' ) start [2025-04-20 09:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949383', 'tblTempUsageDetail_20' ) end [2025-04-20 09:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 09:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 09:33:23] Production.INFO: ==2970== Releasing lock... [2025-04-20 09:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 09:33:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-20 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 06:34:05 [end_date_ymd] => 2025-04-20 09:34:05 [RateCDR] => 1 ) [2025-04-20 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-20 06:34:05' and `end` < '2025-04-20 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-20 09:34:18] Production.INFO: count ==175 [2025-04-20 09:34:18] Production.ERROR: pbx CDR StartTime 2025-04-20 06:34:05 - End Time 2025-04-20 09:34:05 [2025-04-20 09:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949388', 'tblTempUsageDetail_20' ) start [2025-04-20 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949388', 'tblTempUsageDetail_20' ) end [2025-04-20 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949388', 'tblTempVendorCDR_20' ) start [2025-04-20 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949388', 'tblTempVendorCDR_20' ) end [2025-04-20 09:34:18] Production.INFO: ProcessCDR(1,14949388,1,1,2) [2025-04-20 09:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949388', 'tblTempUsageDetail_20' ) start [2025-04-20 09:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949388', 'tblTempUsageDetail_20' ) end [2025-04-20 09:34:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 09:34:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 09:34:23] Production.INFO: ==3049== Releasing lock... [2025-04-20 09:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 09:34:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-20 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 06:35:05 [end_date_ymd] => 2025-04-20 09:35:05 [RateCDR] => 1 ) [2025-04-20 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-20 06:35:05' and `end` < '2025-04-20 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-20 09:35:18] Production.INFO: count ==175 [2025-04-20 09:35:18] Production.ERROR: pbx CDR StartTime 2025-04-20 06:35:05 - End Time 2025-04-20 09:35:05 [2025-04-20 09:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949393', 'tblTempUsageDetail_20' ) start [2025-04-20 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949393', 'tblTempUsageDetail_20' ) end [2025-04-20 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949393', 'tblTempVendorCDR_20' ) start [2025-04-20 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949393', 'tblTempVendorCDR_20' ) end [2025-04-20 09:35:18] Production.INFO: ProcessCDR(1,14949393,1,1,2) [2025-04-20 09:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949393', 'tblTempUsageDetail_20' ) start [2025-04-20 09:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949393', 'tblTempUsageDetail_20' ) end [2025-04-20 09:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 09:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 09:35:22] Production.INFO: ==3123== Releasing lock... [2025-04-20 09:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 09:35:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-20 09:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 06:36:05 [end_date_ymd] => 2025-04-20 09:36:05 [RateCDR] => 1 ) [2025-04-20 09:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 06:36:05' and `end` < '2025-04-20 09:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 09:36:18] Production.INFO: count ==175 [2025-04-20 09:36:18] Production.ERROR: pbx CDR StartTime 2025-04-20 06:36:05 - End Time 2025-04-20 09:36:05 [2025-04-20 09:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949398', 'tblTempUsageDetail_20' ) start [2025-04-20 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949398', 'tblTempUsageDetail_20' ) end [2025-04-20 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949398', 'tblTempVendorCDR_20' ) start [2025-04-20 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949398', 'tblTempVendorCDR_20' ) end [2025-04-20 09:36:18] Production.INFO: ProcessCDR(1,14949398,1,1,2) [2025-04-20 09:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949398', 'tblTempUsageDetail_20' ) start [2025-04-20 09:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949398', 'tblTempUsageDetail_20' ) end [2025-04-20 09:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 09:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 09:36:21] Production.INFO: ==3213== Releasing lock... [2025-04-20 09:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 09:36:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-20 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 06:37:05 [end_date_ymd] => 2025-04-20 09:37:05 [RateCDR] => 1 ) [2025-04-20 09:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 06:37:05' and `end` < '2025-04-20 09:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 09:37:18] Production.INFO: count ==176 [2025-04-20 09:37:18] Production.ERROR: pbx CDR StartTime 2025-04-20 06:37:05 - End Time 2025-04-20 09:37:05 [2025-04-20 09:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949403', 'tblTempUsageDetail_20' ) start [2025-04-20 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949403', 'tblTempUsageDetail_20' ) end [2025-04-20 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949403', 'tblTempVendorCDR_20' ) start [2025-04-20 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949403', 'tblTempVendorCDR_20' ) end [2025-04-20 09:37:18] Production.INFO: ProcessCDR(1,14949403,1,1,2) [2025-04-20 09:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949403', 'tblTempUsageDetail_20' ) start [2025-04-20 09:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949403', 'tblTempUsageDetail_20' ) end [2025-04-20 09:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 09:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 09:37:21] Production.INFO: ==3296== Releasing lock... [2025-04-20 09:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 09:37:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-20 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 06:38:05 [end_date_ymd] => 2025-04-20 09:38:05 [RateCDR] => 1 ) [2025-04-20 09:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 06:38:05' and `end` < '2025-04-20 09:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 09:38:18] Production.INFO: count ==176 [2025-04-20 09:38:18] Production.ERROR: pbx CDR StartTime 2025-04-20 06:38:05 - End Time 2025-04-20 09:38:05 [2025-04-20 09:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949408', 'tblTempUsageDetail_20' ) start [2025-04-20 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949408', 'tblTempUsageDetail_20' ) end [2025-04-20 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949408', 'tblTempVendorCDR_20' ) start [2025-04-20 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949408', 'tblTempVendorCDR_20' ) end [2025-04-20 09:38:18] Production.INFO: ProcessCDR(1,14949408,1,1,2) [2025-04-20 09:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949408', 'tblTempUsageDetail_20' ) start [2025-04-20 09:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949408', 'tblTempUsageDetail_20' ) end [2025-04-20 09:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 09:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 09:38:21] Production.INFO: ==3393== Releasing lock... [2025-04-20 09:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 09:38:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-20 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 06:39:05 [end_date_ymd] => 2025-04-20 09:39:05 [RateCDR] => 1 ) [2025-04-20 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-20 06:39:05' and `end` < '2025-04-20 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-20 09:39:18] Production.INFO: count ==178 [2025-04-20 09:39:18] Production.ERROR: pbx CDR StartTime 2025-04-20 06:39:05 - End Time 2025-04-20 09:39:05 [2025-04-20 09:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949413', 'tblTempUsageDetail_20' ) start [2025-04-20 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949413', 'tblTempUsageDetail_20' ) end [2025-04-20 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949413', 'tblTempVendorCDR_20' ) start [2025-04-20 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949413', 'tblTempVendorCDR_20' ) end [2025-04-20 09:39:18] Production.INFO: ProcessCDR(1,14949413,1,1,2) [2025-04-20 09:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949413', 'tblTempUsageDetail_20' ) start [2025-04-20 09:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949413', 'tblTempUsageDetail_20' ) end [2025-04-20 09:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 09:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 09:39:21] Production.INFO: ==3532== Releasing lock... [2025-04-20 09:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 09:39:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-20 09:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 06:40:07 [end_date_ymd] => 2025-04-20 09:40:07 [RateCDR] => 1 ) [2025-04-20 09:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 06:40:07' and `end` < '2025-04-20 09:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 09:40:19] Production.INFO: count ==169 [2025-04-20 09:40:19] Production.ERROR: pbx CDR StartTime 2025-04-20 06:40:07 - End Time 2025-04-20 09:40:07 [2025-04-20 09:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949419', 'tblTempUsageDetail_20' ) start [2025-04-20 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949419', 'tblTempUsageDetail_20' ) end [2025-04-20 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949419', 'tblTempVendorCDR_20' ) start [2025-04-20 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949419', 'tblTempVendorCDR_20' ) end [2025-04-20 09:40:19] Production.INFO: ProcessCDR(1,14949419,1,1,2) [2025-04-20 09:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949419', 'tblTempUsageDetail_20' ) start [2025-04-20 09:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949419', 'tblTempUsageDetail_20' ) end [2025-04-20 09:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 09:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 09:40:22] Production.INFO: ==3644== Releasing lock... [2025-04-20 09:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 09:40:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-20 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 06:41:05 [end_date_ymd] => 2025-04-20 09:41:05 [RateCDR] => 1 ) [2025-04-20 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-20 06:41:05' and `end` < '2025-04-20 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-20 09:41:18] Production.INFO: count ==168 [2025-04-20 09:41:18] Production.ERROR: pbx CDR StartTime 2025-04-20 06:41:05 - End Time 2025-04-20 09:41:05 [2025-04-20 09:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949424', 'tblTempUsageDetail_20' ) start [2025-04-20 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949424', 'tblTempUsageDetail_20' ) end [2025-04-20 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949424', 'tblTempVendorCDR_20' ) start [2025-04-20 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949424', 'tblTempVendorCDR_20' ) end [2025-04-20 09:41:18] Production.INFO: ProcessCDR(1,14949424,1,1,2) [2025-04-20 09:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949424', 'tblTempUsageDetail_20' ) start [2025-04-20 09:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949424', 'tblTempUsageDetail_20' ) end [2025-04-20 09:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 09:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 09:41:22] Production.INFO: ==3732== Releasing lock... [2025-04-20 09:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 09:41:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-20 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 06:42:05 [end_date_ymd] => 2025-04-20 09:42:05 [RateCDR] => 1 ) [2025-04-20 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-20 06:42:05' and `end` < '2025-04-20 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-20 09:42:18] Production.INFO: count ==169 [2025-04-20 09:42:18] Production.ERROR: pbx CDR StartTime 2025-04-20 06:42:05 - End Time 2025-04-20 09:42:05 [2025-04-20 09:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949429', 'tblTempUsageDetail_20' ) start [2025-04-20 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949429', 'tblTempUsageDetail_20' ) end [2025-04-20 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949429', 'tblTempVendorCDR_20' ) start [2025-04-20 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949429', 'tblTempVendorCDR_20' ) end [2025-04-20 09:42:18] Production.INFO: ProcessCDR(1,14949429,1,1,2) [2025-04-20 09:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949429', 'tblTempUsageDetail_20' ) start [2025-04-20 09:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949429', 'tblTempUsageDetail_20' ) end [2025-04-20 09:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 09:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 09:42:21] Production.INFO: ==3805== Releasing lock... [2025-04-20 09:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 09:42:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-20 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 06:43:05 [end_date_ymd] => 2025-04-20 09:43:05 [RateCDR] => 1 ) [2025-04-20 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-20 06:43:05' and `end` < '2025-04-20 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-20 09:43:18] Production.INFO: count ==167 [2025-04-20 09:43:18] Production.ERROR: pbx CDR StartTime 2025-04-20 06:43:05 - End Time 2025-04-20 09:43:05 [2025-04-20 09:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949434', 'tblTempUsageDetail_20' ) start [2025-04-20 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949434', 'tblTempUsageDetail_20' ) end [2025-04-20 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949434', 'tblTempVendorCDR_20' ) start [2025-04-20 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949434', 'tblTempVendorCDR_20' ) end [2025-04-20 09:43:18] Production.INFO: ProcessCDR(1,14949434,1,1,2) [2025-04-20 09:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949434', 'tblTempUsageDetail_20' ) start [2025-04-20 09:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949434', 'tblTempUsageDetail_20' ) end [2025-04-20 09:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 09:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 09:43:21] Production.INFO: ==3887== Releasing lock... [2025-04-20 09:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 09:43:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-20 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 06:44:05 [end_date_ymd] => 2025-04-20 09:44:05 [RateCDR] => 1 ) [2025-04-20 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-20 06:44:05' and `end` < '2025-04-20 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-20 09:44:18] Production.INFO: count ==165 [2025-04-20 09:44:18] Production.ERROR: pbx CDR StartTime 2025-04-20 06:44:05 - End Time 2025-04-20 09:44:05 [2025-04-20 09:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949439', 'tblTempUsageDetail_20' ) start [2025-04-20 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949439', 'tblTempUsageDetail_20' ) end [2025-04-20 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949439', 'tblTempVendorCDR_20' ) start [2025-04-20 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949439', 'tblTempVendorCDR_20' ) end [2025-04-20 09:44:18] Production.INFO: ProcessCDR(1,14949439,1,1,2) [2025-04-20 09:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949439', 'tblTempUsageDetail_20' ) start [2025-04-20 09:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949439', 'tblTempUsageDetail_20' ) end [2025-04-20 09:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 09:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 09:44:21] Production.INFO: ==3967== Releasing lock... [2025-04-20 09:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 09:44:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-20 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 06:45:05 [end_date_ymd] => 2025-04-20 09:45:05 [RateCDR] => 1 ) [2025-04-20 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-20 06:45:05' and `end` < '2025-04-20 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-20 09:45:17] Production.INFO: count ==163 [2025-04-20 09:45:17] Production.ERROR: pbx CDR StartTime 2025-04-20 06:45:05 - End Time 2025-04-20 09:45:05 [2025-04-20 09:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 09:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949444', 'tblTempUsageDetail_20' ) start [2025-04-20 09:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949444', 'tblTempUsageDetail_20' ) end [2025-04-20 09:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949444', 'tblTempVendorCDR_20' ) start [2025-04-20 09:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949444', 'tblTempVendorCDR_20' ) end [2025-04-20 09:45:17] Production.INFO: ProcessCDR(1,14949444,1,1,2) [2025-04-20 09:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949444', 'tblTempUsageDetail_20' ) start [2025-04-20 09:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949444', 'tblTempUsageDetail_20' ) end [2025-04-20 09:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 09:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 09:45:21] Production.INFO: ==4045== Releasing lock... [2025-04-20 09:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 09:45:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-20 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 06:46:05 [end_date_ymd] => 2025-04-20 09:46:05 [RateCDR] => 1 ) [2025-04-20 09:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 06:46:05' and `end` < '2025-04-20 09:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 09:46:18] Production.INFO: count ==162 [2025-04-20 09:46:18] Production.ERROR: pbx CDR StartTime 2025-04-20 06:46:05 - End Time 2025-04-20 09:46:05 [2025-04-20 09:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949449', 'tblTempUsageDetail_20' ) start [2025-04-20 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949449', 'tblTempUsageDetail_20' ) end [2025-04-20 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949449', 'tblTempVendorCDR_20' ) start [2025-04-20 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949449', 'tblTempVendorCDR_20' ) end [2025-04-20 09:46:18] Production.INFO: ProcessCDR(1,14949449,1,1,2) [2025-04-20 09:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949449', 'tblTempUsageDetail_20' ) start [2025-04-20 09:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949449', 'tblTempUsageDetail_20' ) end [2025-04-20 09:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 09:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 09:46:21] Production.INFO: ==4125== Releasing lock... [2025-04-20 09:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 09:46:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-20 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 06:47:05 [end_date_ymd] => 2025-04-20 09:47:05 [RateCDR] => 1 ) [2025-04-20 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-20 06:47:05' and `end` < '2025-04-20 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-20 09:47:17] Production.INFO: count ==162 [2025-04-20 09:47:17] Production.ERROR: pbx CDR StartTime 2025-04-20 06:47:05 - End Time 2025-04-20 09:47:05 [2025-04-20 09:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 09:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949454', 'tblTempUsageDetail_20' ) start [2025-04-20 09:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949454', 'tblTempUsageDetail_20' ) end [2025-04-20 09:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949454', 'tblTempVendorCDR_20' ) start [2025-04-20 09:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949454', 'tblTempVendorCDR_20' ) end [2025-04-20 09:47:17] Production.INFO: ProcessCDR(1,14949454,1,1,2) [2025-04-20 09:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949454', 'tblTempUsageDetail_20' ) start [2025-04-20 09:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949454', 'tblTempUsageDetail_20' ) end [2025-04-20 09:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 09:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 09:47:21] Production.INFO: ==4197== Releasing lock... [2025-04-20 09:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 09:47:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-20 09:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 06:48:06 [end_date_ymd] => 2025-04-20 09:48:06 [RateCDR] => 1 ) [2025-04-20 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-20 06:48:06' and `end` < '2025-04-20 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-20 09:48:18] Production.INFO: count ==165 [2025-04-20 09:48:18] Production.ERROR: pbx CDR StartTime 2025-04-20 06:48:06 - End Time 2025-04-20 09:48:06 [2025-04-20 09:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949459', 'tblTempUsageDetail_20' ) start [2025-04-20 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949459', 'tblTempUsageDetail_20' ) end [2025-04-20 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949459', 'tblTempVendorCDR_20' ) start [2025-04-20 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949459', 'tblTempVendorCDR_20' ) end [2025-04-20 09:48:18] Production.INFO: ProcessCDR(1,14949459,1,1,2) [2025-04-20 09:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949459', 'tblTempUsageDetail_20' ) start [2025-04-20 09:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949459', 'tblTempUsageDetail_20' ) end [2025-04-20 09:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 09:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 09:48:22] Production.INFO: ==4274== Releasing lock... [2025-04-20 09:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 09:48:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-20 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 06:49:05 [end_date_ymd] => 2025-04-20 09:49:05 [RateCDR] => 1 ) [2025-04-20 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-20 06:49:05' and `end` < '2025-04-20 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-20 09:49:18] Production.INFO: count ==166 [2025-04-20 09:49:18] Production.ERROR: pbx CDR StartTime 2025-04-20 06:49:05 - End Time 2025-04-20 09:49:05 [2025-04-20 09:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949464', 'tblTempUsageDetail_20' ) start [2025-04-20 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949464', 'tblTempUsageDetail_20' ) end [2025-04-20 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949464', 'tblTempVendorCDR_20' ) start [2025-04-20 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949464', 'tblTempVendorCDR_20' ) end [2025-04-20 09:49:18] Production.INFO: ProcessCDR(1,14949464,1,1,2) [2025-04-20 09:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949464', 'tblTempUsageDetail_20' ) start [2025-04-20 09:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949464', 'tblTempUsageDetail_20' ) end [2025-04-20 09:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 09:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 09:49:22] Production.INFO: ==4352== Releasing lock... [2025-04-20 09:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 09:49:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-20 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 06:50:05 [end_date_ymd] => 2025-04-20 09:50:05 [RateCDR] => 1 ) [2025-04-20 09:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 06:50:05' and `end` < '2025-04-20 09: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-20 09:50:18] Production.INFO: count ==160 [2025-04-20 09:50:18] Production.ERROR: pbx CDR StartTime 2025-04-20 06:50:05 - End Time 2025-04-20 09:50:05 [2025-04-20 09:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 09:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949470', 'tblTempUsageDetail_20' ) start [2025-04-20 09:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949470', 'tblTempUsageDetail_20' ) end [2025-04-20 09:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949470', 'tblTempVendorCDR_20' ) start [2025-04-20 09:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949470', 'tblTempVendorCDR_20' ) end [2025-04-20 09:50:18] Production.INFO: ProcessCDR(1,14949470,1,1,2) [2025-04-20 09:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949470', 'tblTempUsageDetail_20' ) start [2025-04-20 09:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949470', 'tblTempUsageDetail_20' ) end [2025-04-20 09:50:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 09:50:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 09:50:21] Production.INFO: ==4435== Releasing lock... [2025-04-20 09:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 09:50:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-20 09:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 06:51:04 [end_date_ymd] => 2025-04-20 09:51:04 [RateCDR] => 1 ) [2025-04-20 09: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-20 06:51:04' and `end` < '2025-04-20 09: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-20 09:51:17] Production.INFO: count ==147 [2025-04-20 09:51:17] Production.ERROR: pbx CDR StartTime 2025-04-20 06:51:04 - End Time 2025-04-20 09:51:04 [2025-04-20 09:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 09:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949475', 'tblTempUsageDetail_20' ) start [2025-04-20 09:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949475', 'tblTempUsageDetail_20' ) end [2025-04-20 09:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949475', 'tblTempVendorCDR_20' ) start [2025-04-20 09:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949475', 'tblTempVendorCDR_20' ) end [2025-04-20 09:51:17] Production.INFO: ProcessCDR(1,14949475,1,1,2) [2025-04-20 09:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949475', 'tblTempUsageDetail_20' ) start [2025-04-20 09:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949475', 'tblTempUsageDetail_20' ) end [2025-04-20 09:51:20] Production.ERROR: pbx prc_insertCDR start [2025-04-20 09:51:20] Production.ERROR: pbx prc_insertCDR end [2025-04-20 09:51:20] Production.INFO: ==4513== Releasing lock... [2025-04-20 09:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 09:51:20] Production.INFO: 29.25 MB #Memory Used# [2025-04-20 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 06:52:05 [end_date_ymd] => 2025-04-20 09:52:05 [RateCDR] => 1 ) [2025-04-20 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-20 06:52:05' and `end` < '2025-04-20 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-20 09:52:18] Production.INFO: count ==149 [2025-04-20 09:52:18] Production.ERROR: pbx CDR StartTime 2025-04-20 06:52:05 - End Time 2025-04-20 09:52:05 [2025-04-20 09:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949480', 'tblTempUsageDetail_20' ) start [2025-04-20 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949480', 'tblTempUsageDetail_20' ) end [2025-04-20 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949480', 'tblTempVendorCDR_20' ) start [2025-04-20 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949480', 'tblTempVendorCDR_20' ) end [2025-04-20 09:52:18] Production.INFO: ProcessCDR(1,14949480,1,1,2) [2025-04-20 09:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949480', 'tblTempUsageDetail_20' ) start [2025-04-20 09:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949480', 'tblTempUsageDetail_20' ) end [2025-04-20 09:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 09:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 09:52:23] Production.INFO: ==4602== Releasing lock... [2025-04-20 09:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 09:52:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-20 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 06:53:05 [end_date_ymd] => 2025-04-20 09:53:05 [RateCDR] => 1 ) [2025-04-20 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-20 06:53:05' and `end` < '2025-04-20 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-20 09:53:17] Production.INFO: count ==147 [2025-04-20 09:53:17] Production.ERROR: pbx CDR StartTime 2025-04-20 06:53:05 - End Time 2025-04-20 09:53:05 [2025-04-20 09:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 09:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949485', 'tblTempUsageDetail_20' ) start [2025-04-20 09:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949485', 'tblTempUsageDetail_20' ) end [2025-04-20 09:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949485', 'tblTempVendorCDR_20' ) start [2025-04-20 09:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949485', 'tblTempVendorCDR_20' ) end [2025-04-20 09:53:17] Production.INFO: ProcessCDR(1,14949485,1,1,2) [2025-04-20 09:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949485', 'tblTempUsageDetail_20' ) start [2025-04-20 09:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949485', 'tblTempUsageDetail_20' ) end [2025-04-20 09:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 09:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 09:53:21] Production.INFO: ==4676== Releasing lock... [2025-04-20 09:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 09:53:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-20 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 06:54:05 [end_date_ymd] => 2025-04-20 09:54:05 [RateCDR] => 1 ) [2025-04-20 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-20 06:54:05' and `end` < '2025-04-20 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-20 09:54:18] Production.INFO: count ==145 [2025-04-20 09:54:18] Production.ERROR: pbx CDR StartTime 2025-04-20 06:54:05 - End Time 2025-04-20 09:54:05 [2025-04-20 09:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949490', 'tblTempUsageDetail_20' ) start [2025-04-20 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949490', 'tblTempUsageDetail_20' ) end [2025-04-20 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949490', 'tblTempVendorCDR_20' ) start [2025-04-20 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949490', 'tblTempVendorCDR_20' ) end [2025-04-20 09:54:18] Production.INFO: ProcessCDR(1,14949490,1,1,2) [2025-04-20 09:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949490', 'tblTempUsageDetail_20' ) start [2025-04-20 09:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949490', 'tblTempUsageDetail_20' ) end [2025-04-20 09:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 09:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 09:54:22] Production.INFO: ==4755== Releasing lock... [2025-04-20 09:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 09:54:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-20 09:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 06:55:06 [end_date_ymd] => 2025-04-20 09:55:06 [RateCDR] => 1 ) [2025-04-20 09:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 06:55:06' and `end` < '2025-04-20 09:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 09:55:18] Production.INFO: count ==145 [2025-04-20 09:55:18] Production.ERROR: pbx CDR StartTime 2025-04-20 06:55:06 - End Time 2025-04-20 09:55:06 [2025-04-20 09:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949495', 'tblTempUsageDetail_20' ) start [2025-04-20 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949495', 'tblTempUsageDetail_20' ) end [2025-04-20 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949495', 'tblTempVendorCDR_20' ) start [2025-04-20 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949495', 'tblTempVendorCDR_20' ) end [2025-04-20 09:55:18] Production.INFO: ProcessCDR(1,14949495,1,1,2) [2025-04-20 09:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949495', 'tblTempUsageDetail_20' ) start [2025-04-20 09:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949495', 'tblTempUsageDetail_20' ) end [2025-04-20 09:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 09:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 09:55:22] Production.INFO: ==4868== Releasing lock... [2025-04-20 09:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 09:55:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-20 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 06:56:05 [end_date_ymd] => 2025-04-20 09:56:05 [RateCDR] => 1 ) [2025-04-20 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-20 06:56:05' and `end` < '2025-04-20 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-20 09:56:17] Production.INFO: count ==147 [2025-04-20 09:56:17] Production.ERROR: pbx CDR StartTime 2025-04-20 06:56:05 - End Time 2025-04-20 09:56:05 [2025-04-20 09:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 09:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949500', 'tblTempUsageDetail_20' ) start [2025-04-20 09:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949500', 'tblTempUsageDetail_20' ) end [2025-04-20 09:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949500', 'tblTempVendorCDR_20' ) start [2025-04-20 09:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949500', 'tblTempVendorCDR_20' ) end [2025-04-20 09:56:17] Production.INFO: ProcessCDR(1,14949500,1,1,2) [2025-04-20 09:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949500', 'tblTempUsageDetail_20' ) start [2025-04-20 09:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949500', 'tblTempUsageDetail_20' ) end [2025-04-20 09:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 09:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 09:56:22] Production.INFO: ==4946== Releasing lock... [2025-04-20 09:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 09:56:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-20 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 06:57:05 [end_date_ymd] => 2025-04-20 09:57:05 [RateCDR] => 1 ) [2025-04-20 09:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 06:57:05' and `end` < '2025-04-20 09:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 09:57:18] Production.INFO: count ==147 [2025-04-20 09:57:18] Production.ERROR: pbx CDR StartTime 2025-04-20 06:57:05 - End Time 2025-04-20 09:57:05 [2025-04-20 09:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949505', 'tblTempUsageDetail_20' ) start [2025-04-20 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949505', 'tblTempUsageDetail_20' ) end [2025-04-20 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949505', 'tblTempVendorCDR_20' ) start [2025-04-20 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949505', 'tblTempVendorCDR_20' ) end [2025-04-20 09:57:18] Production.INFO: ProcessCDR(1,14949505,1,1,2) [2025-04-20 09:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949505', 'tblTempUsageDetail_20' ) start [2025-04-20 09:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949505', 'tblTempUsageDetail_20' ) end [2025-04-20 09:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 09:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 09:57:22] Production.INFO: ==5025== Releasing lock... [2025-04-20 09:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 09:57:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-20 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 06:58:05 [end_date_ymd] => 2025-04-20 09:58:05 [RateCDR] => 1 ) [2025-04-20 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-20 06:58:05' and `end` < '2025-04-20 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-20 09:58:17] Production.INFO: count ==147 [2025-04-20 09:58:17] Production.ERROR: pbx CDR StartTime 2025-04-20 06:58:05 - End Time 2025-04-20 09:58:05 [2025-04-20 09:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 09:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949510', 'tblTempUsageDetail_20' ) start [2025-04-20 09:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949510', 'tblTempUsageDetail_20' ) end [2025-04-20 09:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949510', 'tblTempVendorCDR_20' ) start [2025-04-20 09:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949510', 'tblTempVendorCDR_20' ) end [2025-04-20 09:58:17] Production.INFO: ProcessCDR(1,14949510,1,1,2) [2025-04-20 09:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949510', 'tblTempUsageDetail_20' ) start [2025-04-20 09:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949510', 'tblTempUsageDetail_20' ) end [2025-04-20 09:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 09:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 09:58:21] Production.INFO: ==5109== Releasing lock... [2025-04-20 09:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 09:58:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-20 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 06:59:05 [end_date_ymd] => 2025-04-20 09:59:05 [RateCDR] => 1 ) [2025-04-20 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-20 06:59:05' and `end` < '2025-04-20 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-20 09:59:18] Production.INFO: count ==147 [2025-04-20 09:59:18] Production.ERROR: pbx CDR StartTime 2025-04-20 06:59:05 - End Time 2025-04-20 09:59:05 [2025-04-20 09:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949515', 'tblTempUsageDetail_20' ) start [2025-04-20 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949515', 'tblTempUsageDetail_20' ) end [2025-04-20 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949515', 'tblTempVendorCDR_20' ) start [2025-04-20 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949515', 'tblTempVendorCDR_20' ) end [2025-04-20 09:59:18] Production.INFO: ProcessCDR(1,14949515,1,1,2) [2025-04-20 09:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 09:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 09:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949515', 'tblTempUsageDetail_20' ) start [2025-04-20 09:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949515', 'tblTempUsageDetail_20' ) end [2025-04-20 09:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 09:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 09:59:21] Production.INFO: ==5188== Releasing lock... [2025-04-20 09:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 09:59:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-20 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 07:00:06 [end_date_ymd] => 2025-04-20 10:00:06 [RateCDR] => 1 ) [2025-04-20 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-20 07:00:06' and `end` < '2025-04-20 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-20 10:00:19] Production.INFO: count ==150 [2025-04-20 10:00:19] Production.ERROR: pbx CDR StartTime 2025-04-20 07:00:06 - End Time 2025-04-20 10:00:06 [2025-04-20 10:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949521', 'tblTempUsageDetail_20' ) start [2025-04-20 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949521', 'tblTempUsageDetail_20' ) end [2025-04-20 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949521', 'tblTempVendorCDR_20' ) start [2025-04-20 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949521', 'tblTempVendorCDR_20' ) end [2025-04-20 10:00:19] Production.INFO: ProcessCDR(1,14949521,1,1,2) [2025-04-20 10:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949521', 'tblTempUsageDetail_20' ) start [2025-04-20 10:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949521', 'tblTempUsageDetail_20' ) end [2025-04-20 10:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 10:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 10:00:24] Production.INFO: ==5268== Releasing lock... [2025-04-20 10:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 10:00:24] Production.INFO: 29.5 MB #Memory Used# [2025-04-20 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 07:01:05 [end_date_ymd] => 2025-04-20 10:01:05 [RateCDR] => 1 ) [2025-04-20 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-20 07:01:05' and `end` < '2025-04-20 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-20 10:01:18] Production.INFO: count ==150 [2025-04-20 10:01:18] Production.ERROR: pbx CDR StartTime 2025-04-20 07:01:05 - End Time 2025-04-20 10:01:05 [2025-04-20 10:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949526', 'tblTempUsageDetail_20' ) start [2025-04-20 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949526', 'tblTempUsageDetail_20' ) end [2025-04-20 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949526', 'tblTempVendorCDR_20' ) start [2025-04-20 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949526', 'tblTempVendorCDR_20' ) end [2025-04-20 10:01:18] Production.INFO: ProcessCDR(1,14949526,1,1,2) [2025-04-20 10:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949526', 'tblTempUsageDetail_20' ) start [2025-04-20 10:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949526', 'tblTempUsageDetail_20' ) end [2025-04-20 10:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 10:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 10:01:21] Production.INFO: ==5361== Releasing lock... [2025-04-20 10:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 10:01:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-20 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 07:02:05 [end_date_ymd] => 2025-04-20 10:02:05 [RateCDR] => 1 ) [2025-04-20 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-20 07:02:05' and `end` < '2025-04-20 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-20 10:02:18] Production.INFO: count ==150 [2025-04-20 10:02:18] Production.ERROR: pbx CDR StartTime 2025-04-20 07:02:05 - End Time 2025-04-20 10:02:05 [2025-04-20 10:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949531', 'tblTempUsageDetail_20' ) start [2025-04-20 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949531', 'tblTempUsageDetail_20' ) end [2025-04-20 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949531', 'tblTempVendorCDR_20' ) start [2025-04-20 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949531', 'tblTempVendorCDR_20' ) end [2025-04-20 10:02:18] Production.INFO: ProcessCDR(1,14949531,1,1,2) [2025-04-20 10:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949531', 'tblTempUsageDetail_20' ) start [2025-04-20 10:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949531', 'tblTempUsageDetail_20' ) end [2025-04-20 10:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 10:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 10:02:21] Production.INFO: ==5434== Releasing lock... [2025-04-20 10:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 10:02:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-20 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 07:03:05 [end_date_ymd] => 2025-04-20 10:03:05 [RateCDR] => 1 ) [2025-04-20 10:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 07:03:05' and `end` < '2025-04-20 10:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 10:03:18] Production.INFO: count ==154 [2025-04-20 10:03:18] Production.ERROR: pbx CDR StartTime 2025-04-20 07:03:05 - End Time 2025-04-20 10:03:05 [2025-04-20 10:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949536', 'tblTempUsageDetail_20' ) start [2025-04-20 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949536', 'tblTempUsageDetail_20' ) end [2025-04-20 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949536', 'tblTempVendorCDR_20' ) start [2025-04-20 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949536', 'tblTempVendorCDR_20' ) end [2025-04-20 10:03:18] Production.INFO: ProcessCDR(1,14949536,1,1,2) [2025-04-20 10:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949536', 'tblTempUsageDetail_20' ) start [2025-04-20 10:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949536', 'tblTempUsageDetail_20' ) end [2025-04-20 10:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 10:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 10:03:21] Production.INFO: ==5513== Releasing lock... [2025-04-20 10:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 10:03:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-20 10:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 07:04:05 [end_date_ymd] => 2025-04-20 10:04:05 [RateCDR] => 1 ) [2025-04-20 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-20 07:04:05' and `end` < '2025-04-20 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-20 10:04:17] Production.INFO: count ==153 [2025-04-20 10:04:18] Production.ERROR: pbx CDR StartTime 2025-04-20 07:04:05 - End Time 2025-04-20 10:04:05 [2025-04-20 10:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949541', 'tblTempUsageDetail_20' ) start [2025-04-20 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949541', 'tblTempUsageDetail_20' ) end [2025-04-20 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949541', 'tblTempVendorCDR_20' ) start [2025-04-20 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949541', 'tblTempVendorCDR_20' ) end [2025-04-20 10:04:18] Production.INFO: ProcessCDR(1,14949541,1,1,2) [2025-04-20 10:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949541', 'tblTempUsageDetail_20' ) start [2025-04-20 10:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949541', 'tblTempUsageDetail_20' ) end [2025-04-20 10:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 10:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 10:04:21] Production.INFO: ==5594== Releasing lock... [2025-04-20 10:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 10:04:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-20 10:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 07:05:06 [end_date_ymd] => 2025-04-20 10:05:06 [RateCDR] => 1 ) [2025-04-20 10:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 07:05:06' and `end` < '2025-04-20 10:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 10:05:18] Production.INFO: count ==153 [2025-04-20 10:05:19] Production.ERROR: pbx CDR StartTime 2025-04-20 07:05:06 - End Time 2025-04-20 10:05:06 [2025-04-20 10:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949546', 'tblTempUsageDetail_20' ) start [2025-04-20 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949546', 'tblTempUsageDetail_20' ) end [2025-04-20 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949546', 'tblTempVendorCDR_20' ) start [2025-04-20 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949546', 'tblTempVendorCDR_20' ) end [2025-04-20 10:05:19] Production.INFO: ProcessCDR(1,14949546,1,1,2) [2025-04-20 10:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949546', 'tblTempUsageDetail_20' ) start [2025-04-20 10:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949546', 'tblTempUsageDetail_20' ) end [2025-04-20 10:05:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 10:05:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 10:05:24] Production.INFO: ==5668== Releasing lock... [2025-04-20 10:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 10:05:24] Production.INFO: 29.25 MB #Memory Used# [2025-04-20 10:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 07:06:05 [end_date_ymd] => 2025-04-20 10:06:05 [RateCDR] => 1 ) [2025-04-20 10:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 07:06:05' and `end` < '2025-04-20 10:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 10:06:18] Production.INFO: count ==158 [2025-04-20 10:06:18] Production.ERROR: pbx CDR StartTime 2025-04-20 07:06:05 - End Time 2025-04-20 10:06:05 [2025-04-20 10:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949551', 'tblTempUsageDetail_20' ) start [2025-04-20 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949551', 'tblTempUsageDetail_20' ) end [2025-04-20 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949551', 'tblTempVendorCDR_20' ) start [2025-04-20 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949551', 'tblTempVendorCDR_20' ) end [2025-04-20 10:06:18] Production.INFO: ProcessCDR(1,14949551,1,1,2) [2025-04-20 10:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949551', 'tblTempUsageDetail_20' ) start [2025-04-20 10:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949551', 'tblTempUsageDetail_20' ) end [2025-04-20 10:06:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 10:06:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 10:06:23] Production.INFO: ==5750== Releasing lock... [2025-04-20 10:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 10:06:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-20 10:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 07:07:05 [end_date_ymd] => 2025-04-20 10:07:05 [RateCDR] => 1 ) [2025-04-20 10:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 07:07:05' and `end` < '2025-04-20 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-20 10:07:18] Production.INFO: count ==161 [2025-04-20 10:07:18] Production.ERROR: pbx CDR StartTime 2025-04-20 07:07:05 - End Time 2025-04-20 10:07:05 [2025-04-20 10:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949556', 'tblTempUsageDetail_20' ) start [2025-04-20 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949556', 'tblTempUsageDetail_20' ) end [2025-04-20 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949556', 'tblTempVendorCDR_20' ) start [2025-04-20 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949556', 'tblTempVendorCDR_20' ) end [2025-04-20 10:07:18] Production.INFO: ProcessCDR(1,14949556,1,1,2) [2025-04-20 10:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949556', 'tblTempUsageDetail_20' ) start [2025-04-20 10:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949556', 'tblTempUsageDetail_20' ) end [2025-04-20 10:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 10:07:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 10:07:23] Production.INFO: ==5826== Releasing lock... [2025-04-20 10:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 10:07:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-20 10:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 07:08:05 [end_date_ymd] => 2025-04-20 10:08:05 [RateCDR] => 1 ) [2025-04-20 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-20 07:08:05' and `end` < '2025-04-20 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-20 10:08:17] Production.INFO: count ==162 [2025-04-20 10:08:17] Production.ERROR: pbx CDR StartTime 2025-04-20 07:08:05 - End Time 2025-04-20 10:08:05 [2025-04-20 10:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 10:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949561', 'tblTempUsageDetail_20' ) start [2025-04-20 10:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949561', 'tblTempUsageDetail_20' ) end [2025-04-20 10:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949561', 'tblTempVendorCDR_20' ) start [2025-04-20 10:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949561', 'tblTempVendorCDR_20' ) end [2025-04-20 10:08:17] Production.INFO: ProcessCDR(1,14949561,1,1,2) [2025-04-20 10:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949561', 'tblTempUsageDetail_20' ) start [2025-04-20 10:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949561', 'tblTempUsageDetail_20' ) end [2025-04-20 10:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 10:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 10:08:22] Production.INFO: ==5903== Releasing lock... [2025-04-20 10:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 10:08:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-20 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 07:09:05 [end_date_ymd] => 2025-04-20 10:09:05 [RateCDR] => 1 ) [2025-04-20 10:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 07:09:05' and `end` < '2025-04-20 10:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 10:09:18] Production.INFO: count ==167 [2025-04-20 10:09:18] Production.ERROR: pbx CDR StartTime 2025-04-20 07:09:05 - End Time 2025-04-20 10:09:05 [2025-04-20 10:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949566', 'tblTempUsageDetail_20' ) start [2025-04-20 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949566', 'tblTempUsageDetail_20' ) end [2025-04-20 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949566', 'tblTempVendorCDR_20' ) start [2025-04-20 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949566', 'tblTempVendorCDR_20' ) end [2025-04-20 10:09:18] Production.INFO: ProcessCDR(1,14949566,1,1,2) [2025-04-20 10:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949566', 'tblTempUsageDetail_20' ) start [2025-04-20 10:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949566', 'tblTempUsageDetail_20' ) end [2025-04-20 10:09:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 10:09:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 10:09:23] Production.INFO: ==5981== Releasing lock... [2025-04-20 10:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 10:09:23] Production.INFO: 29.75 MB #Memory Used# [2025-04-20 10:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 07:10:06 [end_date_ymd] => 2025-04-20 10:10:06 [RateCDR] => 1 ) [2025-04-20 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-20 07:10:06' and `end` < '2025-04-20 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-20 10:10:18] Production.INFO: count ==183 [2025-04-20 10:10:18] Production.ERROR: pbx CDR StartTime 2025-04-20 07:10:06 - End Time 2025-04-20 10:10:06 [2025-04-20 10:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 10:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949572', 'tblTempUsageDetail_20' ) start [2025-04-20 10:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949572', 'tblTempUsageDetail_20' ) end [2025-04-20 10:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949572', 'tblTempVendorCDR_20' ) start [2025-04-20 10:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949572', 'tblTempVendorCDR_20' ) end [2025-04-20 10:10:18] Production.INFO: ProcessCDR(1,14949572,1,1,2) [2025-04-20 10:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949572', 'tblTempUsageDetail_20' ) start [2025-04-20 10:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949572', 'tblTempUsageDetail_20' ) end [2025-04-20 10:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 10:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 10:10:24] Production.INFO: ==6097== Releasing lock... [2025-04-20 10:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 10:10:24] Production.INFO: 29.25 MB #Memory Used# [2025-04-20 10:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 07:11:05 [end_date_ymd] => 2025-04-20 10:11:05 [RateCDR] => 1 ) [2025-04-20 10:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 07:11:05' and `end` < '2025-04-20 10:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 10:11:18] Production.INFO: count ==188 [2025-04-20 10:11:18] Production.ERROR: pbx CDR StartTime 2025-04-20 07:11:05 - End Time 2025-04-20 10:11:05 [2025-04-20 10:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949577', 'tblTempUsageDetail_20' ) start [2025-04-20 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949577', 'tblTempUsageDetail_20' ) end [2025-04-20 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949577', 'tblTempVendorCDR_20' ) start [2025-04-20 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949577', 'tblTempVendorCDR_20' ) end [2025-04-20 10:11:18] Production.INFO: ProcessCDR(1,14949577,1,1,2) [2025-04-20 10:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949577', 'tblTempUsageDetail_20' ) start [2025-04-20 10:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949577', 'tblTempUsageDetail_20' ) end [2025-04-20 10:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 10:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 10:11:23] Production.INFO: ==6179== Releasing lock... [2025-04-20 10:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 10:11:23] Production.INFO: 29.75 MB #Memory Used# [2025-04-20 10:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 07:12:06 [end_date_ymd] => 2025-04-20 10:12:06 [RateCDR] => 1 ) [2025-04-20 10:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 07:12:06' and `end` < '2025-04-20 10:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 10:12:18] Production.INFO: count ==189 [2025-04-20 10:12:18] Production.ERROR: pbx CDR StartTime 2025-04-20 07:12:06 - End Time 2025-04-20 10:12:06 [2025-04-20 10:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949582', 'tblTempUsageDetail_20' ) start [2025-04-20 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949582', 'tblTempUsageDetail_20' ) end [2025-04-20 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949582', 'tblTempVendorCDR_20' ) start [2025-04-20 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949582', 'tblTempVendorCDR_20' ) end [2025-04-20 10:12:18] Production.INFO: ProcessCDR(1,14949582,1,1,2) [2025-04-20 10:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949582', 'tblTempUsageDetail_20' ) start [2025-04-20 10:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949582', 'tblTempUsageDetail_20' ) end [2025-04-20 10:12:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 10:12:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 10:12:23] Production.INFO: ==6259== Releasing lock... [2025-04-20 10:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 10:12:23] Production.INFO: 29.75 MB #Memory Used# [2025-04-20 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 07:13:05 [end_date_ymd] => 2025-04-20 10:13:05 [RateCDR] => 1 ) [2025-04-20 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-20 07:13:05' and `end` < '2025-04-20 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-20 10:13:17] Production.INFO: count ==194 [2025-04-20 10:13:17] Production.ERROR: pbx CDR StartTime 2025-04-20 07:13:05 - End Time 2025-04-20 10:13:05 [2025-04-20 10:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 10:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949587', 'tblTempUsageDetail_20' ) start [2025-04-20 10:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949587', 'tblTempUsageDetail_20' ) end [2025-04-20 10:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949587', 'tblTempVendorCDR_20' ) start [2025-04-20 10:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949587', 'tblTempVendorCDR_20' ) end [2025-04-20 10:13:17] Production.INFO: ProcessCDR(1,14949587,1,1,2) [2025-04-20 10:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949587', 'tblTempUsageDetail_20' ) start [2025-04-20 10:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949587', 'tblTempUsageDetail_20' ) end [2025-04-20 10:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 10:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 10:13:22] Production.INFO: ==6334== Releasing lock... [2025-04-20 10:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 10:13:22] Production.INFO: 30 MB #Memory Used# [2025-04-20 10:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 07:14:05 [end_date_ymd] => 2025-04-20 10:14:05 [RateCDR] => 1 ) [2025-04-20 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-20 07:14:05' and `end` < '2025-04-20 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-20 10:14:18] Production.INFO: count ==195 [2025-04-20 10:14:18] Production.ERROR: pbx CDR StartTime 2025-04-20 07:14:05 - End Time 2025-04-20 10:14:05 [2025-04-20 10:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949592', 'tblTempUsageDetail_20' ) start [2025-04-20 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949592', 'tblTempUsageDetail_20' ) end [2025-04-20 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949592', 'tblTempVendorCDR_20' ) start [2025-04-20 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949592', 'tblTempVendorCDR_20' ) end [2025-04-20 10:14:18] Production.INFO: ProcessCDR(1,14949592,1,1,2) [2025-04-20 10:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949592', 'tblTempUsageDetail_20' ) start [2025-04-20 10:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949592', 'tblTempUsageDetail_20' ) end [2025-04-20 10:14:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 10:14:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 10:14:23] Production.INFO: ==6410== Releasing lock... [2025-04-20 10:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 10:14:23] Production.INFO: 30 MB #Memory Used# [2025-04-20 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 07:15:05 [end_date_ymd] => 2025-04-20 10:15:05 [RateCDR] => 1 ) [2025-04-20 10:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 07:15:05' and `end` < '2025-04-20 10:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 10:15:18] Production.INFO: count ==196 [2025-04-20 10:15:18] Production.ERROR: pbx CDR StartTime 2025-04-20 07:15:05 - End Time 2025-04-20 10:15:05 [2025-04-20 10:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 10:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949597', 'tblTempUsageDetail_20' ) start [2025-04-20 10:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949597', 'tblTempUsageDetail_20' ) end [2025-04-20 10:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949597', 'tblTempVendorCDR_20' ) start [2025-04-20 10:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949597', 'tblTempVendorCDR_20' ) end [2025-04-20 10:15:18] Production.INFO: ProcessCDR(1,14949597,1,1,2) [2025-04-20 10:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949597', 'tblTempUsageDetail_20' ) start [2025-04-20 10:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949597', 'tblTempUsageDetail_20' ) end [2025-04-20 10:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 10:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 10:15:22] Production.INFO: ==6486== Releasing lock... [2025-04-20 10:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 10:15:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-20 10:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 07:16:05 [end_date_ymd] => 2025-04-20 10:16:05 [RateCDR] => 1 ) [2025-04-20 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-20 07:16:05' and `end` < '2025-04-20 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-20 10:16:18] Production.INFO: count ==194 [2025-04-20 10:16:18] Production.ERROR: pbx CDR StartTime 2025-04-20 07:16:05 - End Time 2025-04-20 10:16:05 [2025-04-20 10:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949602', 'tblTempUsageDetail_20' ) start [2025-04-20 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949602', 'tblTempUsageDetail_20' ) end [2025-04-20 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949602', 'tblTempVendorCDR_20' ) start [2025-04-20 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949602', 'tblTempVendorCDR_20' ) end [2025-04-20 10:16:18] Production.INFO: ProcessCDR(1,14949602,1,1,2) [2025-04-20 10:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949602', 'tblTempUsageDetail_20' ) start [2025-04-20 10:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949602', 'tblTempUsageDetail_20' ) end [2025-04-20 10:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 10:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 10:16:21] Production.INFO: ==6568== Releasing lock... [2025-04-20 10:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 10:16:21] Production.INFO: 30 MB #Memory Used# [2025-04-20 10:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 07:17:05 [end_date_ymd] => 2025-04-20 10:17:05 [RateCDR] => 1 ) [2025-04-20 10:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 07:17:05' and `end` < '2025-04-20 10:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 10:17:17] Production.INFO: count ==194 [2025-04-20 10:17:17] Production.ERROR: pbx CDR StartTime 2025-04-20 07:17:05 - End Time 2025-04-20 10:17:05 [2025-04-20 10:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 10:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949607', 'tblTempUsageDetail_20' ) start [2025-04-20 10:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949607', 'tblTempUsageDetail_20' ) end [2025-04-20 10:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949607', 'tblTempVendorCDR_20' ) start [2025-04-20 10:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949607', 'tblTempVendorCDR_20' ) end [2025-04-20 10:17:17] Production.INFO: ProcessCDR(1,14949607,1,1,2) [2025-04-20 10:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949607', 'tblTempUsageDetail_20' ) start [2025-04-20 10:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949607', 'tblTempUsageDetail_20' ) end [2025-04-20 10:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 10:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 10:17:21] Production.INFO: ==6644== Releasing lock... [2025-04-20 10:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 10:17:21] Production.INFO: 30 MB #Memory Used# [2025-04-20 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 07:18:05 [end_date_ymd] => 2025-04-20 10:18:05 [RateCDR] => 1 ) [2025-04-20 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-20 07:18:05' and `end` < '2025-04-20 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-20 10:18:18] Production.INFO: count ==196 [2025-04-20 10:18:18] Production.ERROR: pbx CDR StartTime 2025-04-20 07:18:05 - End Time 2025-04-20 10:18:05 [2025-04-20 10:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949612', 'tblTempUsageDetail_20' ) start [2025-04-20 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949612', 'tblTempUsageDetail_20' ) end [2025-04-20 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949612', 'tblTempVendorCDR_20' ) start [2025-04-20 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949612', 'tblTempVendorCDR_20' ) end [2025-04-20 10:18:18] Production.INFO: ProcessCDR(1,14949612,1,1,2) [2025-04-20 10:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949612', 'tblTempUsageDetail_20' ) start [2025-04-20 10:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949612', 'tblTempUsageDetail_20' ) end [2025-04-20 10:18:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 10:18:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 10:18:23] Production.INFO: ==6728== Releasing lock... [2025-04-20 10:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 10:18:23] Production.INFO: 29.75 MB #Memory Used# [2025-04-20 10:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 07:19:06 [end_date_ymd] => 2025-04-20 10:19:06 [RateCDR] => 1 ) [2025-04-20 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-20 07:19:06' and `end` < '2025-04-20 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-20 10:19:18] Production.INFO: count ==197 [2025-04-20 10:19:19] Production.ERROR: pbx CDR StartTime 2025-04-20 07:19:06 - End Time 2025-04-20 10:19:06 [2025-04-20 10:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949617', 'tblTempUsageDetail_20' ) start [2025-04-20 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949617', 'tblTempUsageDetail_20' ) end [2025-04-20 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949617', 'tblTempVendorCDR_20' ) start [2025-04-20 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949617', 'tblTempVendorCDR_20' ) end [2025-04-20 10:19:19] Production.INFO: ProcessCDR(1,14949617,1,1,2) [2025-04-20 10:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949617', 'tblTempUsageDetail_20' ) start [2025-04-20 10:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949617', 'tblTempUsageDetail_20' ) end [2025-04-20 10:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 10:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 10:19:22] Production.INFO: ==6811== Releasing lock... [2025-04-20 10:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 10:19:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-20 10:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 07:20:06 [end_date_ymd] => 2025-04-20 10:20:06 [RateCDR] => 1 ) [2025-04-20 10:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 07:20:06' and `end` < '2025-04-20 10:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 10:20:18] Production.INFO: count ==202 [2025-04-20 10:20:18] Production.ERROR: pbx CDR StartTime 2025-04-20 07:20:06 - End Time 2025-04-20 10:20:06 [2025-04-20 10:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 10:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949622', 'tblTempUsageDetail_20' ) start [2025-04-20 10:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949622', 'tblTempUsageDetail_20' ) end [2025-04-20 10:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949622', 'tblTempVendorCDR_20' ) start [2025-04-20 10:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949622', 'tblTempVendorCDR_20' ) end [2025-04-20 10:20:18] Production.INFO: ProcessCDR(1,14949622,1,1,2) [2025-04-20 10:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949622', 'tblTempUsageDetail_20' ) start [2025-04-20 10:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949622', 'tblTempUsageDetail_20' ) end [2025-04-20 10:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 10:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 10:20:22] Production.INFO: ==6892== Releasing lock... [2025-04-20 10:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 10:20:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-20 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 07:21:05 [end_date_ymd] => 2025-04-20 10:21:05 [RateCDR] => 1 ) [2025-04-20 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-20 07:21:05' and `end` < '2025-04-20 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-20 10:21:17] Production.INFO: count ==210 [2025-04-20 10:21:18] Production.ERROR: pbx CDR StartTime 2025-04-20 07:21:05 - End Time 2025-04-20 10:21:05 [2025-04-20 10:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949628', 'tblTempUsageDetail_20' ) start [2025-04-20 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949628', 'tblTempUsageDetail_20' ) end [2025-04-20 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949628', 'tblTempVendorCDR_20' ) start [2025-04-20 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949628', 'tblTempVendorCDR_20' ) end [2025-04-20 10:21:18] Production.INFO: ProcessCDR(1,14949628,1,1,2) [2025-04-20 10:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949628', 'tblTempUsageDetail_20' ) start [2025-04-20 10:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949628', 'tblTempUsageDetail_20' ) end [2025-04-20 10:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 10:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 10:21:21] Production.INFO: ==6973== Releasing lock... [2025-04-20 10:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 10:21:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-20 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 07:22:05 [end_date_ymd] => 2025-04-20 10:22:05 [RateCDR] => 1 ) [2025-04-20 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-20 07:22:05' and `end` < '2025-04-20 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-20 10:22:18] Production.INFO: count ==210 [2025-04-20 10:22:18] Production.ERROR: pbx CDR StartTime 2025-04-20 07:22:05 - End Time 2025-04-20 10:22:05 [2025-04-20 10:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949633', 'tblTempUsageDetail_20' ) start [2025-04-20 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949633', 'tblTempUsageDetail_20' ) end [2025-04-20 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949633', 'tblTempVendorCDR_20' ) start [2025-04-20 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949633', 'tblTempVendorCDR_20' ) end [2025-04-20 10:22:18] Production.INFO: ProcessCDR(1,14949633,1,1,2) [2025-04-20 10:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949633', 'tblTempUsageDetail_20' ) start [2025-04-20 10:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949633', 'tblTempUsageDetail_20' ) end [2025-04-20 10:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 10:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 10:22:21] Production.INFO: ==7051== Releasing lock... [2025-04-20 10:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 10:22:21] Production.INFO: 30 MB #Memory Used# [2025-04-20 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 07:23:05 [end_date_ymd] => 2025-04-20 10:23:05 [RateCDR] => 1 ) [2025-04-20 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-20 07:23:05' and `end` < '2025-04-20 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-20 10:23:18] Production.INFO: count ==212 [2025-04-20 10:23:18] Production.ERROR: pbx CDR StartTime 2025-04-20 07:23:05 - End Time 2025-04-20 10:23:05 [2025-04-20 10:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 10:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949638', 'tblTempUsageDetail_20' ) start [2025-04-20 10:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949638', 'tblTempUsageDetail_20' ) end [2025-04-20 10:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949638', 'tblTempVendorCDR_20' ) start [2025-04-20 10:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949638', 'tblTempVendorCDR_20' ) end [2025-04-20 10:23:18] Production.INFO: ProcessCDR(1,14949638,1,1,2) [2025-04-20 10:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949638', 'tblTempUsageDetail_20' ) start [2025-04-20 10:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949638', 'tblTempUsageDetail_20' ) end [2025-04-20 10:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 10:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 10:23:21] Production.INFO: ==7122== Releasing lock... [2025-04-20 10:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 10:23:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-20 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 07:24:05 [end_date_ymd] => 2025-04-20 10:24:05 [RateCDR] => 1 ) [2025-04-20 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-20 07:24:05' and `end` < '2025-04-20 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-20 10:24:18] Production.INFO: count ==212 [2025-04-20 10:24:18] Production.ERROR: pbx CDR StartTime 2025-04-20 07:24:05 - End Time 2025-04-20 10:24:05 [2025-04-20 10:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 10:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949643', 'tblTempUsageDetail_20' ) start [2025-04-20 10:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949643', 'tblTempUsageDetail_20' ) end [2025-04-20 10:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949643', 'tblTempVendorCDR_20' ) start [2025-04-20 10:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949643', 'tblTempVendorCDR_20' ) end [2025-04-20 10:24:18] Production.INFO: ProcessCDR(1,14949643,1,1,2) [2025-04-20 10:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949643', 'tblTempUsageDetail_20' ) start [2025-04-20 10:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949643', 'tblTempUsageDetail_20' ) end [2025-04-20 10:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 10:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 10:24:22] Production.INFO: ==7198== Releasing lock... [2025-04-20 10:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 10:24:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-20 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 07:25:05 [end_date_ymd] => 2025-04-20 10:25:05 [RateCDR] => 1 ) [2025-04-20 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-20 07:25:05' and `end` < '2025-04-20 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-20 10:25:18] Production.INFO: count ==212 [2025-04-20 10:25:18] Production.ERROR: pbx CDR StartTime 2025-04-20 07:25:05 - End Time 2025-04-20 10:25:05 [2025-04-20 10:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949648', 'tblTempUsageDetail_20' ) start [2025-04-20 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949648', 'tblTempUsageDetail_20' ) end [2025-04-20 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949648', 'tblTempVendorCDR_20' ) start [2025-04-20 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949648', 'tblTempVendorCDR_20' ) end [2025-04-20 10:25:18] Production.INFO: ProcessCDR(1,14949648,1,1,2) [2025-04-20 10:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949648', 'tblTempUsageDetail_20' ) start [2025-04-20 10:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949648', 'tblTempUsageDetail_20' ) end [2025-04-20 10:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 10:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 10:25:21] Production.INFO: ==7321== Releasing lock... [2025-04-20 10:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 10:25:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-20 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 07:26:05 [end_date_ymd] => 2025-04-20 10:26:05 [RateCDR] => 1 ) [2025-04-20 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-20 07:26:05' and `end` < '2025-04-20 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-20 10:26:17] Production.INFO: count ==212 [2025-04-20 10:26:17] Production.ERROR: pbx CDR StartTime 2025-04-20 07:26:05 - End Time 2025-04-20 10:26:05 [2025-04-20 10:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 10:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949653', 'tblTempUsageDetail_20' ) start [2025-04-20 10:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949653', 'tblTempUsageDetail_20' ) end [2025-04-20 10:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949653', 'tblTempVendorCDR_20' ) start [2025-04-20 10:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949653', 'tblTempVendorCDR_20' ) end [2025-04-20 10:26:17] Production.INFO: ProcessCDR(1,14949653,1,1,2) [2025-04-20 10:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949653', 'tblTempUsageDetail_20' ) start [2025-04-20 10:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949653', 'tblTempUsageDetail_20' ) end [2025-04-20 10:26:20] Production.ERROR: pbx prc_insertCDR start [2025-04-20 10:26:20] Production.ERROR: pbx prc_insertCDR end [2025-04-20 10:26:20] Production.INFO: ==7398== Releasing lock... [2025-04-20 10:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 10:26:20] Production.INFO: 29.75 MB #Memory Used# [2025-04-20 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 07:27:05 [end_date_ymd] => 2025-04-20 10:27:05 [RateCDR] => 1 ) [2025-04-20 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-20 07:27:05' and `end` < '2025-04-20 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-20 10:27:17] Production.INFO: count ==212 [2025-04-20 10:27:17] Production.ERROR: pbx CDR StartTime 2025-04-20 07:27:05 - End Time 2025-04-20 10:27:05 [2025-04-20 10:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 10:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949658', 'tblTempUsageDetail_20' ) start [2025-04-20 10:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949658', 'tblTempUsageDetail_20' ) end [2025-04-20 10:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949658', 'tblTempVendorCDR_20' ) start [2025-04-20 10:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949658', 'tblTempVendorCDR_20' ) end [2025-04-20 10:27:17] Production.INFO: ProcessCDR(1,14949658,1,1,2) [2025-04-20 10:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949658', 'tblTempUsageDetail_20' ) start [2025-04-20 10:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949658', 'tblTempUsageDetail_20' ) end [2025-04-20 10:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 10:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 10:27:21] Production.INFO: ==7477== Releasing lock... [2025-04-20 10:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 10:27:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-20 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 07:28:05 [end_date_ymd] => 2025-04-20 10:28:05 [RateCDR] => 1 ) [2025-04-20 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-20 07:28:05' and `end` < '2025-04-20 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-20 10:28:19] Production.INFO: count ==211 [2025-04-20 10:28:19] Production.ERROR: pbx CDR StartTime 2025-04-20 07:28:05 - End Time 2025-04-20 10:28:05 [2025-04-20 10:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949663', 'tblTempUsageDetail_20' ) start [2025-04-20 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949663', 'tblTempUsageDetail_20' ) end [2025-04-20 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949663', 'tblTempVendorCDR_20' ) start [2025-04-20 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949663', 'tblTempVendorCDR_20' ) end [2025-04-20 10:28:19] Production.INFO: ProcessCDR(1,14949663,1,1,2) [2025-04-20 10:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949663', 'tblTempUsageDetail_20' ) start [2025-04-20 10:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949663', 'tblTempUsageDetail_20' ) end [2025-04-20 10:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 10:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 10:28:23] Production.INFO: ==7552== Releasing lock... [2025-04-20 10:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 10:28:23] Production.INFO: 30 MB #Memory Used# [2025-04-20 10:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 07:29:05 [end_date_ymd] => 2025-04-20 10:29:05 [RateCDR] => 1 ) [2025-04-20 10:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 07:29:05' and `end` < '2025-04-20 10:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 10:29:18] Production.INFO: count ==211 [2025-04-20 10:29:18] Production.ERROR: pbx CDR StartTime 2025-04-20 07:29:05 - End Time 2025-04-20 10:29:05 [2025-04-20 10:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949668', 'tblTempUsageDetail_20' ) start [2025-04-20 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949668', 'tblTempUsageDetail_20' ) end [2025-04-20 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949668', 'tblTempVendorCDR_20' ) start [2025-04-20 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949668', 'tblTempVendorCDR_20' ) end [2025-04-20 10:29:18] Production.INFO: ProcessCDR(1,14949668,1,1,2) [2025-04-20 10:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949668', 'tblTempUsageDetail_20' ) start [2025-04-20 10:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949668', 'tblTempUsageDetail_20' ) end [2025-04-20 10:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 10:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 10:29:21] Production.INFO: ==7632== Releasing lock... [2025-04-20 10:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 10:29:21] Production.INFO: 30 MB #Memory Used# [2025-04-20 10:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 07:30:06 [end_date_ymd] => 2025-04-20 10:30:06 [RateCDR] => 1 ) [2025-04-20 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-20 07:30:06' and `end` < '2025-04-20 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-20 10:30:19] Production.INFO: count ==211 [2025-04-20 10:30:19] Production.ERROR: pbx CDR StartTime 2025-04-20 07:30:06 - End Time 2025-04-20 10:30:06 [2025-04-20 10:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949673', 'tblTempUsageDetail_20' ) start [2025-04-20 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949673', 'tblTempUsageDetail_20' ) end [2025-04-20 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949673', 'tblTempVendorCDR_20' ) start [2025-04-20 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949673', 'tblTempVendorCDR_20' ) end [2025-04-20 10:30:19] Production.INFO: ProcessCDR(1,14949673,1,1,2) [2025-04-20 10:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949673', 'tblTempUsageDetail_20' ) start [2025-04-20 10:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949673', 'tblTempUsageDetail_20' ) end [2025-04-20 10:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 10:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 10:30:22] Production.INFO: ==7715== Releasing lock... [2025-04-20 10:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 10:30:22] Production.INFO: 30 MB #Memory Used# [2025-04-20 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 07:31:05 [end_date_ymd] => 2025-04-20 10:31:05 [RateCDR] => 1 ) [2025-04-20 10:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 07:31:05' and `end` < '2025-04-20 10:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 10:31:17] Production.INFO: count ==211 [2025-04-20 10:31:17] Production.ERROR: pbx CDR StartTime 2025-04-20 07:31:05 - End Time 2025-04-20 10:31:05 [2025-04-20 10:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 10:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949679', 'tblTempUsageDetail_20' ) start [2025-04-20 10:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949679', 'tblTempUsageDetail_20' ) end [2025-04-20 10:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949679', 'tblTempVendorCDR_20' ) start [2025-04-20 10:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949679', 'tblTempVendorCDR_20' ) end [2025-04-20 10:31:17] Production.INFO: ProcessCDR(1,14949679,1,1,2) [2025-04-20 10:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949679', 'tblTempUsageDetail_20' ) start [2025-04-20 10:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949679', 'tblTempUsageDetail_20' ) end [2025-04-20 10:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 10:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 10:31:21] Production.INFO: ==7805== Releasing lock... [2025-04-20 10:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 10:31:21] Production.INFO: 30 MB #Memory Used# [2025-04-20 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 07:32:05 [end_date_ymd] => 2025-04-20 10:32:05 [RateCDR] => 1 ) [2025-04-20 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-20 07:32:05' and `end` < '2025-04-20 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-20 10:32:18] Production.INFO: count ==211 [2025-04-20 10:32:18] Production.ERROR: pbx CDR StartTime 2025-04-20 07:32:05 - End Time 2025-04-20 10:32:05 [2025-04-20 10:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 10:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949684', 'tblTempUsageDetail_20' ) start [2025-04-20 10:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949684', 'tblTempUsageDetail_20' ) end [2025-04-20 10:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949684', 'tblTempVendorCDR_20' ) start [2025-04-20 10:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949684', 'tblTempVendorCDR_20' ) end [2025-04-20 10:32:18] Production.INFO: ProcessCDR(1,14949684,1,1,2) [2025-04-20 10:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949684', 'tblTempUsageDetail_20' ) start [2025-04-20 10:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949684', 'tblTempUsageDetail_20' ) end [2025-04-20 10:32:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 10:32:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 10:32:23] Production.INFO: ==7880== Releasing lock... [2025-04-20 10:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 10:32:23] Production.INFO: 30 MB #Memory Used# [2025-04-20 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 07:33:05 [end_date_ymd] => 2025-04-20 10:33:05 [RateCDR] => 1 ) [2025-04-20 10:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 07:33:05' and `end` < '2025-04-20 10:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 10:33:17] Production.INFO: count ==212 [2025-04-20 10:33:18] Production.ERROR: pbx CDR StartTime 2025-04-20 07:33:05 - End Time 2025-04-20 10:33:05 [2025-04-20 10:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 10:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949689', 'tblTempUsageDetail_20' ) start [2025-04-20 10:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949689', 'tblTempUsageDetail_20' ) end [2025-04-20 10:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949689', 'tblTempVendorCDR_20' ) start [2025-04-20 10:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949689', 'tblTempVendorCDR_20' ) end [2025-04-20 10:33:18] Production.INFO: ProcessCDR(1,14949689,1,1,2) [2025-04-20 10:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949689', 'tblTempUsageDetail_20' ) start [2025-04-20 10:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949689', 'tblTempUsageDetail_20' ) end [2025-04-20 10:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 10:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 10:33:21] Production.INFO: ==7962== Releasing lock... [2025-04-20 10:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 10:33:21] Production.INFO: 30 MB #Memory Used# [2025-04-20 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 07:34:05 [end_date_ymd] => 2025-04-20 10:34:05 [RateCDR] => 1 ) [2025-04-20 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-20 07:34:05' and `end` < '2025-04-20 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-20 10:34:18] Production.INFO: count ==212 [2025-04-20 10:34:18] Production.ERROR: pbx CDR StartTime 2025-04-20 07:34:05 - End Time 2025-04-20 10:34:05 [2025-04-20 10:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 10:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949694', 'tblTempUsageDetail_20' ) start [2025-04-20 10:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949694', 'tblTempUsageDetail_20' ) end [2025-04-20 10:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949694', 'tblTempVendorCDR_20' ) start [2025-04-20 10:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949694', 'tblTempVendorCDR_20' ) end [2025-04-20 10:34:18] Production.INFO: ProcessCDR(1,14949694,1,1,2) [2025-04-20 10:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949694', 'tblTempUsageDetail_20' ) start [2025-04-20 10:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949694', 'tblTempUsageDetail_20' ) end [2025-04-20 10:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 10:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 10:34:21] Production.INFO: ==8037== Releasing lock... [2025-04-20 10:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 10:34:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-20 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 07:35:05 [end_date_ymd] => 2025-04-20 10:35:05 [RateCDR] => 1 ) [2025-04-20 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-20 07:35:05' and `end` < '2025-04-20 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-20 10:35:17] Production.INFO: count ==213 [2025-04-20 10:35:17] Production.ERROR: pbx CDR StartTime 2025-04-20 07:35:05 - End Time 2025-04-20 10:35:05 [2025-04-20 10:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 10:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949699', 'tblTempUsageDetail_20' ) start [2025-04-20 10:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949699', 'tblTempUsageDetail_20' ) end [2025-04-20 10:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949699', 'tblTempVendorCDR_20' ) start [2025-04-20 10:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949699', 'tblTempVendorCDR_20' ) end [2025-04-20 10:35:17] Production.INFO: ProcessCDR(1,14949699,1,1,2) [2025-04-20 10:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949699', 'tblTempUsageDetail_20' ) start [2025-04-20 10:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949699', 'tblTempUsageDetail_20' ) end [2025-04-20 10:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 10:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 10:35:22] Production.INFO: ==8116== Releasing lock... [2025-04-20 10:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 10:35:22] Production.INFO: 30 MB #Memory Used# [2025-04-20 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 07:36:05 [end_date_ymd] => 2025-04-20 10:36:05 [RateCDR] => 1 ) [2025-04-20 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-20 07:36:05' and `end` < '2025-04-20 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-20 10:36:18] Production.INFO: count ==213 [2025-04-20 10:36:18] Production.ERROR: pbx CDR StartTime 2025-04-20 07:36:05 - End Time 2025-04-20 10:36:05 [2025-04-20 10:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 10:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949704', 'tblTempUsageDetail_20' ) start [2025-04-20 10:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949704', 'tblTempUsageDetail_20' ) end [2025-04-20 10:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949704', 'tblTempVendorCDR_20' ) start [2025-04-20 10:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949704', 'tblTempVendorCDR_20' ) end [2025-04-20 10:36:18] Production.INFO: ProcessCDR(1,14949704,1,1,2) [2025-04-20 10:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949704', 'tblTempUsageDetail_20' ) start [2025-04-20 10:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949704', 'tblTempUsageDetail_20' ) end [2025-04-20 10:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 10:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 10:36:21] Production.INFO: ==8197== Releasing lock... [2025-04-20 10:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 10:36:21] Production.INFO: 30 MB #Memory Used# [2025-04-20 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 07:37:05 [end_date_ymd] => 2025-04-20 10:37:05 [RateCDR] => 1 ) [2025-04-20 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-20 07:37:05' and `end` < '2025-04-20 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-20 10:37:17] Production.INFO: count ==215 [2025-04-20 10:37:17] Production.ERROR: pbx CDR StartTime 2025-04-20 07:37:05 - End Time 2025-04-20 10:37:05 [2025-04-20 10:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 10:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949709', 'tblTempUsageDetail_20' ) start [2025-04-20 10:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949709', 'tblTempUsageDetail_20' ) end [2025-04-20 10:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949709', 'tblTempVendorCDR_20' ) start [2025-04-20 10:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949709', 'tblTempVendorCDR_20' ) end [2025-04-20 10:37:17] Production.INFO: ProcessCDR(1,14949709,1,1,2) [2025-04-20 10:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949709', 'tblTempUsageDetail_20' ) start [2025-04-20 10:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949709', 'tblTempUsageDetail_20' ) end [2025-04-20 10:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 10:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 10:37:21] Production.INFO: ==8272== Releasing lock... [2025-04-20 10:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 10:37:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-20 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 07:38:05 [end_date_ymd] => 2025-04-20 10:38:05 [RateCDR] => 1 ) [2025-04-20 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-20 07:38:05' and `end` < '2025-04-20 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-20 10:38:18] Production.INFO: count ==215 [2025-04-20 10:38:18] Production.ERROR: pbx CDR StartTime 2025-04-20 07:38:05 - End Time 2025-04-20 10:38:05 [2025-04-20 10:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949714', 'tblTempUsageDetail_20' ) start [2025-04-20 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949714', 'tblTempUsageDetail_20' ) end [2025-04-20 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949714', 'tblTempVendorCDR_20' ) start [2025-04-20 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949714', 'tblTempVendorCDR_20' ) end [2025-04-20 10:38:18] Production.INFO: ProcessCDR(1,14949714,1,1,2) [2025-04-20 10:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949714', 'tblTempUsageDetail_20' ) start [2025-04-20 10:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949714', 'tblTempUsageDetail_20' ) end [2025-04-20 10:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 10:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 10:38:21] Production.INFO: ==8350== Releasing lock... [2025-04-20 10:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 10:38:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-20 10:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 07:39:04 [end_date_ymd] => 2025-04-20 10:39:04 [RateCDR] => 1 ) [2025-04-20 10: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-20 07:39:04' and `end` < '2025-04-20 10: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-20 10:39:17] Production.INFO: count ==217 [2025-04-20 10:39:17] Production.ERROR: pbx CDR StartTime 2025-04-20 07:39:04 - End Time 2025-04-20 10:39:04 [2025-04-20 10:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 10:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949719', 'tblTempUsageDetail_20' ) start [2025-04-20 10:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949719', 'tblTempUsageDetail_20' ) end [2025-04-20 10:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949719', 'tblTempVendorCDR_20' ) start [2025-04-20 10:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949719', 'tblTempVendorCDR_20' ) end [2025-04-20 10:39:17] Production.INFO: ProcessCDR(1,14949719,1,1,2) [2025-04-20 10:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949719', 'tblTempUsageDetail_20' ) start [2025-04-20 10:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949719', 'tblTempUsageDetail_20' ) end [2025-04-20 10:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 10:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 10:39:22] Production.INFO: ==8428== Releasing lock... [2025-04-20 10:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 10:39:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-20 10:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 07:40:06 [end_date_ymd] => 2025-04-20 10:40:06 [RateCDR] => 1 ) [2025-04-20 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-20 07:40:06' and `end` < '2025-04-20 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-20 10:40:19] Production.INFO: count ==227 [2025-04-20 10:40:19] Production.ERROR: pbx CDR StartTime 2025-04-20 07:40:06 - End Time 2025-04-20 10:40:06 [2025-04-20 10:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 10:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949724', 'tblTempUsageDetail_20' ) start [2025-04-20 10:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949724', 'tblTempUsageDetail_20' ) end [2025-04-20 10:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949724', 'tblTempVendorCDR_20' ) start [2025-04-20 10:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949724', 'tblTempVendorCDR_20' ) end [2025-04-20 10:40:19] Production.INFO: ProcessCDR(1,14949724,1,1,2) [2025-04-20 10:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949724', 'tblTempUsageDetail_20' ) start [2025-04-20 10:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949724', 'tblTempUsageDetail_20' ) end [2025-04-20 10:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 10:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 10:40:22] Production.INFO: ==8514== Releasing lock... [2025-04-20 10:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 10:40:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-20 10:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 07:41:06 [end_date_ymd] => 2025-04-20 10:41:06 [RateCDR] => 1 ) [2025-04-20 10:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 07:41:06' and `end` < '2025-04-20 10:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 10:41:18] Production.INFO: count ==248 [2025-04-20 10:41:18] Production.ERROR: pbx CDR StartTime 2025-04-20 07:41:06 - End Time 2025-04-20 10:41:06 [2025-04-20 10:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 10:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949730', 'tblTempUsageDetail_20' ) start [2025-04-20 10:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949730', 'tblTempUsageDetail_20' ) end [2025-04-20 10:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949730', 'tblTempVendorCDR_20' ) start [2025-04-20 10:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949730', 'tblTempVendorCDR_20' ) end [2025-04-20 10:41:18] Production.INFO: ProcessCDR(1,14949730,1,1,2) [2025-04-20 10:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949730', 'tblTempUsageDetail_20' ) start [2025-04-20 10:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949730', 'tblTempUsageDetail_20' ) end [2025-04-20 10:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 10:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 10:41:22] Production.INFO: ==8634== Releasing lock... [2025-04-20 10:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 10:41:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-20 10:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 07:42:05 [end_date_ymd] => 2025-04-20 10:42:05 [RateCDR] => 1 ) [2025-04-20 10:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 07:42:05' and `end` < '2025-04-20 10:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 10:42:17] Production.INFO: count ==251 [2025-04-20 10:42:18] Production.ERROR: pbx CDR StartTime 2025-04-20 07:42:05 - End Time 2025-04-20 10:42:05 [2025-04-20 10:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 10:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949735', 'tblTempUsageDetail_20' ) start [2025-04-20 10:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949735', 'tblTempUsageDetail_20' ) end [2025-04-20 10:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949735', 'tblTempVendorCDR_20' ) start [2025-04-20 10:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949735', 'tblTempVendorCDR_20' ) end [2025-04-20 10:42:18] Production.INFO: ProcessCDR(1,14949735,1,1,2) [2025-04-20 10:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949735', 'tblTempUsageDetail_20' ) start [2025-04-20 10:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949735', 'tblTempUsageDetail_20' ) end [2025-04-20 10:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 10:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 10:42:21] Production.INFO: ==8717== Releasing lock... [2025-04-20 10:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 10:42:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-20 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 07:43:05 [end_date_ymd] => 2025-04-20 10:43:05 [RateCDR] => 1 ) [2025-04-20 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-20 07:43:05' and `end` < '2025-04-20 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-20 10:43:18] Production.INFO: count ==253 [2025-04-20 10:43:18] Production.ERROR: pbx CDR StartTime 2025-04-20 07:43:05 - End Time 2025-04-20 10:43:05 [2025-04-20 10:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 10:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949740', 'tblTempUsageDetail_20' ) start [2025-04-20 10:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949740', 'tblTempUsageDetail_20' ) end [2025-04-20 10:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949740', 'tblTempVendorCDR_20' ) start [2025-04-20 10:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949740', 'tblTempVendorCDR_20' ) end [2025-04-20 10:43:18] Production.INFO: ProcessCDR(1,14949740,1,1,2) [2025-04-20 10:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949740', 'tblTempUsageDetail_20' ) start [2025-04-20 10:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949740', 'tblTempUsageDetail_20' ) end [2025-04-20 10:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 10:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 10:43:21] Production.INFO: ==8797== Releasing lock... [2025-04-20 10:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 10:43:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-20 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 07:44:05 [end_date_ymd] => 2025-04-20 10:44:05 [RateCDR] => 1 ) [2025-04-20 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-20 07:44:05' and `end` < '2025-04-20 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-20 10:44:18] Production.INFO: count ==253 [2025-04-20 10:44:18] Production.ERROR: pbx CDR StartTime 2025-04-20 07:44:05 - End Time 2025-04-20 10:44:05 [2025-04-20 10:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 10:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949745', 'tblTempUsageDetail_20' ) start [2025-04-20 10:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949745', 'tblTempUsageDetail_20' ) end [2025-04-20 10:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949745', 'tblTempVendorCDR_20' ) start [2025-04-20 10:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949745', 'tblTempVendorCDR_20' ) end [2025-04-20 10:44:18] Production.INFO: ProcessCDR(1,14949745,1,1,2) [2025-04-20 10:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949745', 'tblTempUsageDetail_20' ) start [2025-04-20 10:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949745', 'tblTempUsageDetail_20' ) end [2025-04-20 10:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 10:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 10:44:21] Production.INFO: ==8875== Releasing lock... [2025-04-20 10:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 10:44:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-20 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 07:45:05 [end_date_ymd] => 2025-04-20 10:45:05 [RateCDR] => 1 ) [2025-04-20 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-20 07:45:05' and `end` < '2025-04-20 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-20 10:45:18] Production.INFO: count ==257 [2025-04-20 10:45:18] Production.ERROR: pbx CDR StartTime 2025-04-20 07:45:05 - End Time 2025-04-20 10:45:05 [2025-04-20 10:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 10:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949750', 'tblTempUsageDetail_20' ) start [2025-04-20 10:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949750', 'tblTempUsageDetail_20' ) end [2025-04-20 10:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949750', 'tblTempVendorCDR_20' ) start [2025-04-20 10:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949750', 'tblTempVendorCDR_20' ) end [2025-04-20 10:45:18] Production.INFO: ProcessCDR(1,14949750,1,1,2) [2025-04-20 10:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949750', 'tblTempUsageDetail_20' ) start [2025-04-20 10:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949750', 'tblTempUsageDetail_20' ) end [2025-04-20 10:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 10:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 10:45:22] Production.INFO: ==8966== Releasing lock... [2025-04-20 10:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 10:45:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-20 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 07:46:05 [end_date_ymd] => 2025-04-20 10:46:05 [RateCDR] => 1 ) [2025-04-20 10:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 07:46:05' and `end` < '2025-04-20 10:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 10:46:18] Production.INFO: count ==258 [2025-04-20 10:46:18] Production.ERROR: pbx CDR StartTime 2025-04-20 07:46:05 - End Time 2025-04-20 10:46:05 [2025-04-20 10:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949755', 'tblTempUsageDetail_20' ) start [2025-04-20 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949755', 'tblTempUsageDetail_20' ) end [2025-04-20 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949755', 'tblTempVendorCDR_20' ) start [2025-04-20 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949755', 'tblTempVendorCDR_20' ) end [2025-04-20 10:46:18] Production.INFO: ProcessCDR(1,14949755,1,1,2) [2025-04-20 10:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949755', 'tblTempUsageDetail_20' ) start [2025-04-20 10:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949755', 'tblTempUsageDetail_20' ) end [2025-04-20 10:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 10:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 10:46:21] Production.INFO: ==9046== Releasing lock... [2025-04-20 10:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 10:46:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-20 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 07:47:05 [end_date_ymd] => 2025-04-20 10:47:05 [RateCDR] => 1 ) [2025-04-20 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-20 07:47:05' and `end` < '2025-04-20 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-20 10:47:18] Production.INFO: count ==261 [2025-04-20 10:47:18] Production.ERROR: pbx CDR StartTime 2025-04-20 07:47:05 - End Time 2025-04-20 10:47:05 [2025-04-20 10:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 10:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949760', 'tblTempUsageDetail_20' ) start [2025-04-20 10:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949760', 'tblTempUsageDetail_20' ) end [2025-04-20 10:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949760', 'tblTempVendorCDR_20' ) start [2025-04-20 10:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949760', 'tblTempVendorCDR_20' ) end [2025-04-20 10:47:18] Production.INFO: ProcessCDR(1,14949760,1,1,2) [2025-04-20 10:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949760', 'tblTempUsageDetail_20' ) start [2025-04-20 10:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949760', 'tblTempUsageDetail_20' ) end [2025-04-20 10:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 10:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 10:47:22] Production.INFO: ==9132== Releasing lock... [2025-04-20 10:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 10:47:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-20 10:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 07:48:04 [end_date_ymd] => 2025-04-20 10:48:04 [RateCDR] => 1 ) [2025-04-20 10: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-20 07:48:04' and `end` < '2025-04-20 10: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-20 10:48:17] Production.INFO: count ==262 [2025-04-20 10:48:17] Production.ERROR: pbx CDR StartTime 2025-04-20 07:48:04 - End Time 2025-04-20 10:48:04 [2025-04-20 10:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 10:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949762', 'tblTempUsageDetail_20' ) start [2025-04-20 10:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949762', 'tblTempUsageDetail_20' ) end [2025-04-20 10:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949762', 'tblTempVendorCDR_20' ) start [2025-04-20 10:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949762', 'tblTempVendorCDR_20' ) end [2025-04-20 10:48:17] Production.INFO: ProcessCDR(1,14949762,1,1,2) [2025-04-20 10:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949762', 'tblTempUsageDetail_20' ) start [2025-04-20 10:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949762', 'tblTempUsageDetail_20' ) end [2025-04-20 10:48:20] Production.ERROR: pbx prc_insertCDR start [2025-04-20 10:48:20] Production.ERROR: pbx prc_insertCDR end [2025-04-20 10:48:20] Production.INFO: ==9211== Releasing lock... [2025-04-20 10:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 10:48:20] Production.INFO: 30.5 MB #Memory Used# [2025-04-20 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 07:49:05 [end_date_ymd] => 2025-04-20 10:49:05 [RateCDR] => 1 ) [2025-04-20 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-20 07:49:05' and `end` < '2025-04-20 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-20 10:49:17] Production.INFO: count ==263 [2025-04-20 10:49:17] Production.ERROR: pbx CDR StartTime 2025-04-20 07:49:05 - End Time 2025-04-20 10:49:05 [2025-04-20 10:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 10:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949770', 'tblTempUsageDetail_20' ) start [2025-04-20 10:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949770', 'tblTempUsageDetail_20' ) end [2025-04-20 10:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949770', 'tblTempVendorCDR_20' ) start [2025-04-20 10:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949770', 'tblTempVendorCDR_20' ) end [2025-04-20 10:49:18] Production.INFO: ProcessCDR(1,14949770,1,1,2) [2025-04-20 10:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949770', 'tblTempUsageDetail_20' ) start [2025-04-20 10:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949770', 'tblTempUsageDetail_20' ) end [2025-04-20 10:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 10:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 10:49:21] Production.INFO: ==9293== Releasing lock... [2025-04-20 10:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 10:49:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-20 10:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 07:50:06 [end_date_ymd] => 2025-04-20 10:50:06 [RateCDR] => 1 ) [2025-04-20 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-20 07:50:06' and `end` < '2025-04-20 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-20 10:50:19] Production.INFO: count ==273 [2025-04-20 10:50:19] Production.ERROR: pbx CDR StartTime 2025-04-20 07:50:06 - End Time 2025-04-20 10:50:06 [2025-04-20 10:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 10:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949776', 'tblTempUsageDetail_20' ) start [2025-04-20 10:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949776', 'tblTempUsageDetail_20' ) end [2025-04-20 10:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949776', 'tblTempVendorCDR_20' ) start [2025-04-20 10:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949776', 'tblTempVendorCDR_20' ) end [2025-04-20 10:50:19] Production.INFO: ProcessCDR(1,14949776,1,1,2) [2025-04-20 10:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949776', 'tblTempUsageDetail_20' ) start [2025-04-20 10:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949776', 'tblTempUsageDetail_20' ) end [2025-04-20 10:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 10:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 10:50:23] Production.INFO: ==9378== Releasing lock... [2025-04-20 10:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 10:50:23] Production.INFO: 30.75 MB #Memory Used# [2025-04-20 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 07:51:05 [end_date_ymd] => 2025-04-20 10:51:05 [RateCDR] => 1 ) [2025-04-20 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-20 07:51:05' and `end` < '2025-04-20 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-20 10:51:18] Production.INFO: count ==287 [2025-04-20 10:51:18] Production.ERROR: pbx CDR StartTime 2025-04-20 07:51:05 - End Time 2025-04-20 10:51:05 [2025-04-20 10:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 10:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949781', 'tblTempUsageDetail_20' ) start [2025-04-20 10:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949781', 'tblTempUsageDetail_20' ) end [2025-04-20 10:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949781', 'tblTempVendorCDR_20' ) start [2025-04-20 10:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949781', 'tblTempVendorCDR_20' ) end [2025-04-20 10:51:18] Production.INFO: ProcessCDR(1,14949781,1,1,2) [2025-04-20 10:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949781', 'tblTempUsageDetail_20' ) start [2025-04-20 10:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949781', 'tblTempUsageDetail_20' ) end [2025-04-20 10:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 10:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 10:51:21] Production.INFO: ==9479== Releasing lock... [2025-04-20 10:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 10:51:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-20 10:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 07:52:06 [end_date_ymd] => 2025-04-20 10:52:06 [RateCDR] => 1 ) [2025-04-20 10:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 07:52:06' and `end` < '2025-04-20 10:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 10:52:18] Production.INFO: count ==293 [2025-04-20 10:52:18] Production.ERROR: pbx CDR StartTime 2025-04-20 07:52:06 - End Time 2025-04-20 10:52:06 [2025-04-20 10:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 10:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949786', 'tblTempUsageDetail_20' ) start [2025-04-20 10:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949786', 'tblTempUsageDetail_20' ) end [2025-04-20 10:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949786', 'tblTempVendorCDR_20' ) start [2025-04-20 10:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949786', 'tblTempVendorCDR_20' ) end [2025-04-20 10:52:18] Production.INFO: ProcessCDR(1,14949786,1,1,2) [2025-04-20 10:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949786', 'tblTempUsageDetail_20' ) start [2025-04-20 10:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949786', 'tblTempUsageDetail_20' ) end [2025-04-20 10:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 10:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 10:52:21] Production.INFO: ==9571== Releasing lock... [2025-04-20 10:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 10:52:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-20 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 07:53:05 [end_date_ymd] => 2025-04-20 10:53:05 [RateCDR] => 1 ) [2025-04-20 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-20 07:53:05' and `end` < '2025-04-20 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-20 10:53:18] Production.INFO: count ==296 [2025-04-20 10:53:18] Production.ERROR: pbx CDR StartTime 2025-04-20 07:53:05 - End Time 2025-04-20 10:53:05 [2025-04-20 10:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 10:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949791', 'tblTempUsageDetail_20' ) start [2025-04-20 10:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949791', 'tblTempUsageDetail_20' ) end [2025-04-20 10:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949791', 'tblTempVendorCDR_20' ) start [2025-04-20 10:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949791', 'tblTempVendorCDR_20' ) end [2025-04-20 10:53:18] Production.INFO: ProcessCDR(1,14949791,1,1,2) [2025-04-20 10:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949791', 'tblTempUsageDetail_20' ) start [2025-04-20 10:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949791', 'tblTempUsageDetail_20' ) end [2025-04-20 10:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 10:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 10:53:23] Production.INFO: ==9661== Releasing lock... [2025-04-20 10:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 10:53:23] Production.INFO: 30.5 MB #Memory Used# [2025-04-20 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 07:54:05 [end_date_ymd] => 2025-04-20 10:54:05 [RateCDR] => 1 ) [2025-04-20 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-20 07:54:05' and `end` < '2025-04-20 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-20 10:54:18] Production.INFO: count ==296 [2025-04-20 10:54:18] Production.ERROR: pbx CDR StartTime 2025-04-20 07:54:05 - End Time 2025-04-20 10:54:05 [2025-04-20 10:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 10:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949796', 'tblTempUsageDetail_20' ) start [2025-04-20 10:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949796', 'tblTempUsageDetail_20' ) end [2025-04-20 10:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949796', 'tblTempVendorCDR_20' ) start [2025-04-20 10:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949796', 'tblTempVendorCDR_20' ) end [2025-04-20 10:54:18] Production.INFO: ProcessCDR(1,14949796,1,1,2) [2025-04-20 10:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949796', 'tblTempUsageDetail_20' ) start [2025-04-20 10:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949796', 'tblTempUsageDetail_20' ) end [2025-04-20 10:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 10:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 10:54:21] Production.INFO: ==9754== Releasing lock... [2025-04-20 10:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 10:54:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-20 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 07:55:05 [end_date_ymd] => 2025-04-20 10:55:05 [RateCDR] => 1 ) [2025-04-20 10:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 07:55:05' and `end` < '2025-04-20 10:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 10:55:17] Production.INFO: count ==296 [2025-04-20 10:55:17] Production.ERROR: pbx CDR StartTime 2025-04-20 07:55:05 - End Time 2025-04-20 10:55:05 [2025-04-20 10:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 10:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949801', 'tblTempUsageDetail_20' ) start [2025-04-20 10:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949801', 'tblTempUsageDetail_20' ) end [2025-04-20 10:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949801', 'tblTempVendorCDR_20' ) start [2025-04-20 10:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949801', 'tblTempVendorCDR_20' ) end [2025-04-20 10:55:18] Production.INFO: ProcessCDR(1,14949801,1,1,2) [2025-04-20 10:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949801', 'tblTempUsageDetail_20' ) start [2025-04-20 10:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949801', 'tblTempUsageDetail_20' ) end [2025-04-20 10:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 10:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 10:55:21] Production.INFO: ==9843== Releasing lock... [2025-04-20 10:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 10:55:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-20 10:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 07:56:06 [end_date_ymd] => 2025-04-20 10:56:06 [RateCDR] => 1 ) [2025-04-20 10:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 07:56:06' and `end` < '2025-04-20 10:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 10:56:19] Production.INFO: count ==300 [2025-04-20 10:56:19] Production.ERROR: pbx CDR StartTime 2025-04-20 07:56:06 - End Time 2025-04-20 10:56:06 [2025-04-20 10:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949806', 'tblTempUsageDetail_20' ) start [2025-04-20 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949806', 'tblTempUsageDetail_20' ) end [2025-04-20 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949806', 'tblTempVendorCDR_20' ) start [2025-04-20 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949806', 'tblTempVendorCDR_20' ) end [2025-04-20 10:56:19] Production.INFO: ProcessCDR(1,14949806,1,1,2) [2025-04-20 10:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949806', 'tblTempUsageDetail_20' ) start [2025-04-20 10:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949806', 'tblTempUsageDetail_20' ) end [2025-04-20 10:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 10:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 10:56:22] Production.INFO: ==9970== Releasing lock... [2025-04-20 10:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 10:56:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-20 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 07:57:05 [end_date_ymd] => 2025-04-20 10:57:05 [RateCDR] => 1 ) [2025-04-20 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-20 07:57:05' and `end` < '2025-04-20 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-20 10:57:18] Production.INFO: count ==300 [2025-04-20 10:57:18] Production.ERROR: pbx CDR StartTime 2025-04-20 07:57:05 - End Time 2025-04-20 10:57:05 [2025-04-20 10:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 10:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949811', 'tblTempUsageDetail_20' ) start [2025-04-20 10:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949811', 'tblTempUsageDetail_20' ) end [2025-04-20 10:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949811', 'tblTempVendorCDR_20' ) start [2025-04-20 10:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949811', 'tblTempVendorCDR_20' ) end [2025-04-20 10:57:18] Production.INFO: ProcessCDR(1,14949811,1,1,2) [2025-04-20 10:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949811', 'tblTempUsageDetail_20' ) start [2025-04-20 10:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949811', 'tblTempUsageDetail_20' ) end [2025-04-20 10:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 10:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 10:57:21] Production.INFO: ==10070== Releasing lock... [2025-04-20 10:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 10:57:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-20 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 07:58:05 [end_date_ymd] => 2025-04-20 10:58:05 [RateCDR] => 1 ) [2025-04-20 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-20 07:58:05' and `end` < '2025-04-20 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-20 10:58:18] Production.INFO: count ==302 [2025-04-20 10:58:18] Production.ERROR: pbx CDR StartTime 2025-04-20 07:58:05 - End Time 2025-04-20 10:58:05 [2025-04-20 10:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 10:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949816', 'tblTempUsageDetail_20' ) start [2025-04-20 10:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949816', 'tblTempUsageDetail_20' ) end [2025-04-20 10:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949816', 'tblTempVendorCDR_20' ) start [2025-04-20 10:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949816', 'tblTempVendorCDR_20' ) end [2025-04-20 10:58:18] Production.INFO: ProcessCDR(1,14949816,1,1,2) [2025-04-20 10:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949816', 'tblTempUsageDetail_20' ) start [2025-04-20 10:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949816', 'tblTempUsageDetail_20' ) end [2025-04-20 10:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 10:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 10:58:21] Production.INFO: ==10159== Releasing lock... [2025-04-20 10:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 10:58:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-20 10:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 07:59:05 [end_date_ymd] => 2025-04-20 10:59:05 [RateCDR] => 1 ) [2025-04-20 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-20 07:59:05' and `end` < '2025-04-20 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-20 10:59:17] Production.INFO: count ==302 [2025-04-20 10:59:18] Production.ERROR: pbx CDR StartTime 2025-04-20 07:59:05 - End Time 2025-04-20 10:59:05 [2025-04-20 10:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 10:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949821', 'tblTempUsageDetail_20' ) start [2025-04-20 10:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949821', 'tblTempUsageDetail_20' ) end [2025-04-20 10:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949821', 'tblTempVendorCDR_20' ) start [2025-04-20 10:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949821', 'tblTempVendorCDR_20' ) end [2025-04-20 10:59:18] Production.INFO: ProcessCDR(1,14949821,1,1,2) [2025-04-20 10:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 10:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 10:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949821', 'tblTempUsageDetail_20' ) start [2025-04-20 10:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949821', 'tblTempUsageDetail_20' ) end [2025-04-20 10:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 10:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 10:59:21] Production.INFO: ==10254== Releasing lock... [2025-04-20 10:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 10:59:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-20 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 08:00:06 [end_date_ymd] => 2025-04-20 11:00:06 [RateCDR] => 1 ) [2025-04-20 11:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 08:00:06' and `end` < '2025-04-20 11:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 11:00:19] Production.INFO: count ==312 [2025-04-20 11:00:19] Production.ERROR: pbx CDR StartTime 2025-04-20 08:00:06 - End Time 2025-04-20 11:00:06 [2025-04-20 11:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949827', 'tblTempUsageDetail_20' ) start [2025-04-20 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949827', 'tblTempUsageDetail_20' ) end [2025-04-20 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949827', 'tblTempVendorCDR_20' ) start [2025-04-20 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949827', 'tblTempVendorCDR_20' ) end [2025-04-20 11:00:19] Production.INFO: ProcessCDR(1,14949827,1,1,2) [2025-04-20 11:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949827', 'tblTempUsageDetail_20' ) start [2025-04-20 11:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949827', 'tblTempUsageDetail_20' ) end [2025-04-20 11:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 11:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 11:00:24] Production.INFO: ==10354== Releasing lock... [2025-04-20 11:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 11:00:24] Production.INFO: 31 MB #Memory Used# [2025-04-20 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 08:01:05 [end_date_ymd] => 2025-04-20 11:01:05 [RateCDR] => 1 ) [2025-04-20 11:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 08:01:05' and `end` < '2025-04-20 11:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 11:01:17] Production.INFO: count ==320 [2025-04-20 11:01:17] Production.ERROR: pbx CDR StartTime 2025-04-20 08:01:05 - End Time 2025-04-20 11:01:05 [2025-04-20 11:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 11:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949832', 'tblTempUsageDetail_20' ) start [2025-04-20 11:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949832', 'tblTempUsageDetail_20' ) end [2025-04-20 11:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949832', 'tblTempVendorCDR_20' ) start [2025-04-20 11:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949832', 'tblTempVendorCDR_20' ) end [2025-04-20 11:01:17] Production.INFO: ProcessCDR(1,14949832,1,1,2) [2025-04-20 11:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949832', 'tblTempUsageDetail_20' ) start [2025-04-20 11:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949832', 'tblTempUsageDetail_20' ) end [2025-04-20 11:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 11:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 11:01:21] Production.INFO: ==10499== Releasing lock... [2025-04-20 11:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 11:01:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-20 11:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 08:02:05 [end_date_ymd] => 2025-04-20 11:02:05 [RateCDR] => 1 ) [2025-04-20 11:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 08:02:05' and `end` < '2025-04-20 11:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 11:02:18] Production.INFO: count ==320 [2025-04-20 11:02:18] Production.ERROR: pbx CDR StartTime 2025-04-20 08:02:05 - End Time 2025-04-20 11:02:05 [2025-04-20 11:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 11:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949837', 'tblTempUsageDetail_20' ) start [2025-04-20 11:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949837', 'tblTempUsageDetail_20' ) end [2025-04-20 11:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949837', 'tblTempVendorCDR_20' ) start [2025-04-20 11:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949837', 'tblTempVendorCDR_20' ) end [2025-04-20 11:02:18] Production.INFO: ProcessCDR(1,14949837,1,1,2) [2025-04-20 11:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949837', 'tblTempUsageDetail_20' ) start [2025-04-20 11:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949837', 'tblTempUsageDetail_20' ) end [2025-04-20 11:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 11:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 11:02:22] Production.INFO: ==10635== Releasing lock... [2025-04-20 11:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 11:02:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-20 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 08:03:05 [end_date_ymd] => 2025-04-20 11:03:05 [RateCDR] => 1 ) [2025-04-20 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-20 08:03:05' and `end` < '2025-04-20 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-20 11:03:17] Production.INFO: count ==319 [2025-04-20 11:03:17] Production.ERROR: pbx CDR StartTime 2025-04-20 08:03:05 - End Time 2025-04-20 11:03:05 [2025-04-20 11:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 11:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949842', 'tblTempUsageDetail_20' ) start [2025-04-20 11:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949842', 'tblTempUsageDetail_20' ) end [2025-04-20 11:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949842', 'tblTempVendorCDR_20' ) start [2025-04-20 11:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949842', 'tblTempVendorCDR_20' ) end [2025-04-20 11:03:17] Production.INFO: ProcessCDR(1,14949842,1,1,2) [2025-04-20 11:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949842', 'tblTempUsageDetail_20' ) start [2025-04-20 11:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949842', 'tblTempUsageDetail_20' ) end [2025-04-20 11:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 11:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 11:03:21] Production.INFO: ==10720== Releasing lock... [2025-04-20 11:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 11:03:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-20 11:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 08:04:05 [end_date_ymd] => 2025-04-20 11:04:05 [RateCDR] => 1 ) [2025-04-20 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-20 08:04:05' and `end` < '2025-04-20 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-20 11:04:17] Production.INFO: count ==319 [2025-04-20 11:04:17] Production.ERROR: pbx CDR StartTime 2025-04-20 08:04:05 - End Time 2025-04-20 11:04:05 [2025-04-20 11:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 11:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949847', 'tblTempUsageDetail_20' ) start [2025-04-20 11:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949847', 'tblTempUsageDetail_20' ) end [2025-04-20 11:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949847', 'tblTempVendorCDR_20' ) start [2025-04-20 11:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949847', 'tblTempVendorCDR_20' ) end [2025-04-20 11:04:17] Production.INFO: ProcessCDR(1,14949847,1,1,2) [2025-04-20 11:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949847', 'tblTempUsageDetail_20' ) start [2025-04-20 11:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949847', 'tblTempUsageDetail_20' ) end [2025-04-20 11:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 11:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 11:04:21] Production.INFO: ==10798== Releasing lock... [2025-04-20 11:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 11:04:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-20 11:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 08:05:04 [end_date_ymd] => 2025-04-20 11:05:04 [RateCDR] => 1 ) [2025-04-20 11:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 08:05:04' and `end` < '2025-04-20 11:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 11:05:17] Production.INFO: count ==320 [2025-04-20 11:05:17] Production.ERROR: pbx CDR StartTime 2025-04-20 08:05:04 - End Time 2025-04-20 11:05:04 [2025-04-20 11:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 11:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949852', 'tblTempUsageDetail_20' ) start [2025-04-20 11:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949852', 'tblTempUsageDetail_20' ) end [2025-04-20 11:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949852', 'tblTempVendorCDR_20' ) start [2025-04-20 11:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949852', 'tblTempVendorCDR_20' ) end [2025-04-20 11:05:17] Production.INFO: ProcessCDR(1,14949852,1,1,2) [2025-04-20 11:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949852', 'tblTempUsageDetail_20' ) start [2025-04-20 11:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949852', 'tblTempUsageDetail_20' ) end [2025-04-20 11:05:20] Production.ERROR: pbx prc_insertCDR start [2025-04-20 11:05:20] Production.ERROR: pbx prc_insertCDR end [2025-04-20 11:05:20] Production.INFO: ==10962== Releasing lock... [2025-04-20 11:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 11:05:20] Production.INFO: 30.5 MB #Memory Used# [2025-04-20 11:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 08:06:05 [end_date_ymd] => 2025-04-20 11:06:05 [RateCDR] => 1 ) [2025-04-20 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-20 08:06:05' and `end` < '2025-04-20 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-20 11:06:17] Production.INFO: count ==321 [2025-04-20 11:06:17] Production.ERROR: pbx CDR StartTime 2025-04-20 08:06:05 - End Time 2025-04-20 11:06:05 [2025-04-20 11:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 11:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949857', 'tblTempUsageDetail_20' ) start [2025-04-20 11:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949857', 'tblTempUsageDetail_20' ) end [2025-04-20 11:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949857', 'tblTempVendorCDR_20' ) start [2025-04-20 11:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949857', 'tblTempVendorCDR_20' ) end [2025-04-20 11:06:17] Production.INFO: ProcessCDR(1,14949857,1,1,2) [2025-04-20 11:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949857', 'tblTempUsageDetail_20' ) start [2025-04-20 11:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949857', 'tblTempUsageDetail_20' ) end [2025-04-20 11:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 11:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 11:06:21] Production.INFO: ==11053== Releasing lock... [2025-04-20 11:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 11:06:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-20 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 08:07:05 [end_date_ymd] => 2025-04-20 11:07:05 [RateCDR] => 1 ) [2025-04-20 11:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 08:07:05' and `end` < '2025-04-20 11:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 11:07:18] Production.INFO: count ==321 [2025-04-20 11:07:18] Production.ERROR: pbx CDR StartTime 2025-04-20 08:07:05 - End Time 2025-04-20 11:07:05 [2025-04-20 11:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 11:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949862', 'tblTempUsageDetail_20' ) start [2025-04-20 11:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949862', 'tblTempUsageDetail_20' ) end [2025-04-20 11:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949862', 'tblTempVendorCDR_20' ) start [2025-04-20 11:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949862', 'tblTempVendorCDR_20' ) end [2025-04-20 11:07:18] Production.INFO: ProcessCDR(1,14949862,1,1,2) [2025-04-20 11:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949862', 'tblTempUsageDetail_20' ) start [2025-04-20 11:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949862', 'tblTempUsageDetail_20' ) end [2025-04-20 11:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 11:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 11:07:21] Production.INFO: ==11146== Releasing lock... [2025-04-20 11:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 11:07:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-20 11:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 08:08:05 [end_date_ymd] => 2025-04-20 11:08:05 [RateCDR] => 1 ) [2025-04-20 11:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 08:08:05' and `end` < '2025-04-20 11:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 11:08:17] Production.INFO: count ==322 [2025-04-20 11:08:17] Production.ERROR: pbx CDR StartTime 2025-04-20 08:08:05 - End Time 2025-04-20 11:08:05 [2025-04-20 11:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 11:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949867', 'tblTempUsageDetail_20' ) start [2025-04-20 11:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949867', 'tblTempUsageDetail_20' ) end [2025-04-20 11:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949867', 'tblTempVendorCDR_20' ) start [2025-04-20 11:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949867', 'tblTempVendorCDR_20' ) end [2025-04-20 11:08:17] Production.INFO: ProcessCDR(1,14949867,1,1,2) [2025-04-20 11:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949867', 'tblTempUsageDetail_20' ) start [2025-04-20 11:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949867', 'tblTempUsageDetail_20' ) end [2025-04-20 11:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 11:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 11:08:21] Production.INFO: ==11319== Releasing lock... [2025-04-20 11:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 11:08:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-20 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 08:09:05 [end_date_ymd] => 2025-04-20 11:09:05 [RateCDR] => 1 ) [2025-04-20 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-20 08:09:05' and `end` < '2025-04-20 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-20 11:09:18] Production.INFO: count ==330 [2025-04-20 11:09:18] Production.ERROR: pbx CDR StartTime 2025-04-20 08:09:05 - End Time 2025-04-20 11:09:05 [2025-04-20 11:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 11:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949872', 'tblTempUsageDetail_20' ) start [2025-04-20 11:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949872', 'tblTempUsageDetail_20' ) end [2025-04-20 11:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949872', 'tblTempVendorCDR_20' ) start [2025-04-20 11:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949872', 'tblTempVendorCDR_20' ) end [2025-04-20 11:09:18] Production.INFO: ProcessCDR(1,14949872,1,1,2) [2025-04-20 11:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949872', 'tblTempUsageDetail_20' ) start [2025-04-20 11:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949872', 'tblTempUsageDetail_20' ) end [2025-04-20 11:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 11:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 11:09:21] Production.INFO: ==11416== Releasing lock... [2025-04-20 11:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 11:09:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-20 11:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 08:10:06 [end_date_ymd] => 2025-04-20 11:10:06 [RateCDR] => 1 ) [2025-04-20 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-20 08:10:06' and `end` < '2025-04-20 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-20 11:10:18] Production.INFO: count ==343 [2025-04-20 11:10:18] Production.ERROR: pbx CDR StartTime 2025-04-20 08:10:06 - End Time 2025-04-20 11:10:06 [2025-04-20 11:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 11:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949877', 'tblTempUsageDetail_20' ) start [2025-04-20 11:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949877', 'tblTempUsageDetail_20' ) end [2025-04-20 11:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949877', 'tblTempVendorCDR_20' ) start [2025-04-20 11:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949877', 'tblTempVendorCDR_20' ) end [2025-04-20 11:10:18] Production.INFO: ProcessCDR(1,14949877,1,1,2) [2025-04-20 11:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949877', 'tblTempUsageDetail_20' ) start [2025-04-20 11:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949877', 'tblTempUsageDetail_20' ) end [2025-04-20 11:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 11:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 11:10:22] Production.INFO: ==11526== Releasing lock... [2025-04-20 11:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 11:10:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-20 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 08:11:05 [end_date_ymd] => 2025-04-20 11:11:05 [RateCDR] => 1 ) [2025-04-20 11:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 08:11:05' and `end` < '2025-04-20 11:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 11:11:18] Production.INFO: count ==348 [2025-04-20 11:11:18] Production.ERROR: pbx CDR StartTime 2025-04-20 08:11:05 - End Time 2025-04-20 11:11:05 [2025-04-20 11:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 11:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949883', 'tblTempUsageDetail_20' ) start [2025-04-20 11:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949883', 'tblTempUsageDetail_20' ) end [2025-04-20 11:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949883', 'tblTempVendorCDR_20' ) start [2025-04-20 11:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949883', 'tblTempVendorCDR_20' ) end [2025-04-20 11:11:18] Production.INFO: ProcessCDR(1,14949883,1,1,2) [2025-04-20 11:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949883', 'tblTempUsageDetail_20' ) start [2025-04-20 11:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949883', 'tblTempUsageDetail_20' ) end [2025-04-20 11:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 11:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 11:11:22] Production.INFO: ==11624== Releasing lock... [2025-04-20 11:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 11:11:22] Production.INFO: 31 MB #Memory Used# [2025-04-20 11:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 08:12:04 [end_date_ymd] => 2025-04-20 11:12:04 [RateCDR] => 1 ) [2025-04-20 11:12: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-20 08:12:04' and `end` < '2025-04-20 11:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 11:12:17] Production.INFO: count ==349 [2025-04-20 11:12:17] Production.ERROR: pbx CDR StartTime 2025-04-20 08:12:04 - End Time 2025-04-20 11:12:04 [2025-04-20 11:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 11:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949888', 'tblTempUsageDetail_20' ) start [2025-04-20 11:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949888', 'tblTempUsageDetail_20' ) end [2025-04-20 11:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949888', 'tblTempVendorCDR_20' ) start [2025-04-20 11:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949888', 'tblTempVendorCDR_20' ) end [2025-04-20 11:12:17] Production.INFO: ProcessCDR(1,14949888,1,1,2) [2025-04-20 11:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949888', 'tblTempUsageDetail_20' ) start [2025-04-20 11:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949888', 'tblTempUsageDetail_20' ) end [2025-04-20 11:12:20] Production.ERROR: pbx prc_insertCDR start [2025-04-20 11:12:20] Production.ERROR: pbx prc_insertCDR end [2025-04-20 11:12:20] Production.INFO: ==11842== Releasing lock... [2025-04-20 11:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 11:12:20] Production.INFO: 31 MB #Memory Used# [2025-04-20 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 08:13:05 [end_date_ymd] => 2025-04-20 11:13:05 [RateCDR] => 1 ) [2025-04-20 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-20 08:13:05' and `end` < '2025-04-20 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-20 11:13:19] Production.INFO: count ==347 [2025-04-20 11:13:19] Production.ERROR: pbx CDR StartTime 2025-04-20 08:13:05 - End Time 2025-04-20 11:13:05 [2025-04-20 11:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 11:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949893', 'tblTempUsageDetail_20' ) start [2025-04-20 11:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949893', 'tblTempUsageDetail_20' ) end [2025-04-20 11:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949893', 'tblTempVendorCDR_20' ) start [2025-04-20 11:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949893', 'tblTempVendorCDR_20' ) end [2025-04-20 11:13:19] Production.INFO: ProcessCDR(1,14949893,1,1,2) [2025-04-20 11:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949893', 'tblTempUsageDetail_20' ) start [2025-04-20 11:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949893', 'tblTempUsageDetail_20' ) end [2025-04-20 11:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 11:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 11:13:22] Production.INFO: ==11946== Releasing lock... [2025-04-20 11:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 11:13:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-20 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 08:14:05 [end_date_ymd] => 2025-04-20 11:14:05 [RateCDR] => 1 ) [2025-04-20 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-20 08:14:05' and `end` < '2025-04-20 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-20 11:14:18] Production.INFO: count ==346 [2025-04-20 11:14:18] Production.ERROR: pbx CDR StartTime 2025-04-20 08:14:05 - End Time 2025-04-20 11:14:05 [2025-04-20 11:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 11:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949898', 'tblTempUsageDetail_20' ) start [2025-04-20 11:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949898', 'tblTempUsageDetail_20' ) end [2025-04-20 11:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949898', 'tblTempVendorCDR_20' ) start [2025-04-20 11:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949898', 'tblTempVendorCDR_20' ) end [2025-04-20 11:14:18] Production.INFO: ProcessCDR(1,14949898,1,1,2) [2025-04-20 11:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949898', 'tblTempUsageDetail_20' ) start [2025-04-20 11:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949898', 'tblTempUsageDetail_20' ) end [2025-04-20 11:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 11:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 11:14:21] Production.INFO: ==12043== Releasing lock... [2025-04-20 11:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 11:14:21] Production.INFO: 31 MB #Memory Used# [2025-04-20 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 08:15:05 [end_date_ymd] => 2025-04-20 11:15:05 [RateCDR] => 1 ) [2025-04-20 11:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 08:15:05' and `end` < '2025-04-20 11:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 11:15:18] Production.INFO: count ==352 [2025-04-20 11:15:18] Production.ERROR: pbx CDR StartTime 2025-04-20 08:15:05 - End Time 2025-04-20 11:15:05 [2025-04-20 11:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 11:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949903', 'tblTempUsageDetail_20' ) start [2025-04-20 11:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949903', 'tblTempUsageDetail_20' ) end [2025-04-20 11:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949903', 'tblTempVendorCDR_20' ) start [2025-04-20 11:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949903', 'tblTempVendorCDR_20' ) end [2025-04-20 11:15:18] Production.INFO: ProcessCDR(1,14949903,1,1,2) [2025-04-20 11:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949903', 'tblTempUsageDetail_20' ) start [2025-04-20 11:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949903', 'tblTempUsageDetail_20' ) end [2025-04-20 11:15:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 11:15:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 11:15:23] Production.INFO: ==12226== Releasing lock... [2025-04-20 11:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 11:15:23] Production.INFO: 31 MB #Memory Used# [2025-04-20 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 08:16:05 [end_date_ymd] => 2025-04-20 11:16:05 [RateCDR] => 1 ) [2025-04-20 11:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 08:16:05' and `end` < '2025-04-20 11:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 11:16:17] Production.INFO: count ==353 [2025-04-20 11:16:17] Production.ERROR: pbx CDR StartTime 2025-04-20 08:16:05 - End Time 2025-04-20 11:16:05 [2025-04-20 11:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 11:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949908', 'tblTempUsageDetail_20' ) start [2025-04-20 11:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949908', 'tblTempUsageDetail_20' ) end [2025-04-20 11:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949908', 'tblTempVendorCDR_20' ) start [2025-04-20 11:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949908', 'tblTempVendorCDR_20' ) end [2025-04-20 11:16:17] Production.INFO: ProcessCDR(1,14949908,1,1,2) [2025-04-20 11:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949908', 'tblTempUsageDetail_20' ) start [2025-04-20 11:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949908', 'tblTempUsageDetail_20' ) end [2025-04-20 11:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 11:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 11:16:21] Production.INFO: ==12335== Releasing lock... [2025-04-20 11:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 11:16:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-20 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 08:17:05 [end_date_ymd] => 2025-04-20 11:17:05 [RateCDR] => 1 ) [2025-04-20 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-20 08:17:05' and `end` < '2025-04-20 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-20 11:17:18] Production.INFO: count ==354 [2025-04-20 11:17:18] Production.ERROR: pbx CDR StartTime 2025-04-20 08:17:05 - End Time 2025-04-20 11:17:05 [2025-04-20 11:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 11:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949913', 'tblTempUsageDetail_20' ) start [2025-04-20 11:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949913', 'tblTempUsageDetail_20' ) end [2025-04-20 11:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949913', 'tblTempVendorCDR_20' ) start [2025-04-20 11:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949913', 'tblTempVendorCDR_20' ) end [2025-04-20 11:17:18] Production.INFO: ProcessCDR(1,14949913,1,1,2) [2025-04-20 11:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949913', 'tblTempUsageDetail_20' ) start [2025-04-20 11:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949913', 'tblTempUsageDetail_20' ) end [2025-04-20 11:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 11:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 11:17:21] Production.INFO: ==12446== Releasing lock... [2025-04-20 11:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 11:17:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-20 11:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 08:18:06 [end_date_ymd] => 2025-04-20 11:18:06 [RateCDR] => 1 ) [2025-04-20 11:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 08:18:06' and `end` < '2025-04-20 11:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 11:18:18] Production.INFO: count ==354 [2025-04-20 11:18:18] Production.ERROR: pbx CDR StartTime 2025-04-20 08:18:06 - End Time 2025-04-20 11:18:06 [2025-04-20 11:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 11:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949918', 'tblTempUsageDetail_20' ) start [2025-04-20 11:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949918', 'tblTempUsageDetail_20' ) end [2025-04-20 11:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949918', 'tblTempVendorCDR_20' ) start [2025-04-20 11:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949918', 'tblTempVendorCDR_20' ) end [2025-04-20 11:18:18] Production.INFO: ProcessCDR(1,14949918,1,1,2) [2025-04-20 11:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949918', 'tblTempUsageDetail_20' ) start [2025-04-20 11:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949918', 'tblTempUsageDetail_20' ) end [2025-04-20 11:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 11:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 11:18:22] Production.INFO: ==12554== Releasing lock... [2025-04-20 11:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 11:18:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-20 11:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 08:19:05 [end_date_ymd] => 2025-04-20 11:19:05 [RateCDR] => 1 ) [2025-04-20 11:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 08:19:05' and `end` < '2025-04-20 11: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-20 11:19:18] Production.INFO: count ==357 [2025-04-20 11:19:18] Production.ERROR: pbx CDR StartTime 2025-04-20 08:19:05 - End Time 2025-04-20 11:19:05 [2025-04-20 11:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 11:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949923', 'tblTempUsageDetail_20' ) start [2025-04-20 11:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949923', 'tblTempUsageDetail_20' ) end [2025-04-20 11:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949923', 'tblTempVendorCDR_20' ) start [2025-04-20 11:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949923', 'tblTempVendorCDR_20' ) end [2025-04-20 11:19:18] Production.INFO: ProcessCDR(1,14949923,1,1,2) [2025-04-20 11:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949923', 'tblTempUsageDetail_20' ) start [2025-04-20 11:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949923', 'tblTempUsageDetail_20' ) end [2025-04-20 11:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 11:19:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 11:19:23] Production.INFO: ==12651== Releasing lock... [2025-04-20 11:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 11:19:23] Production.INFO: 31 MB #Memory Used# [2025-04-20 11:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 08:20:06 [end_date_ymd] => 2025-04-20 11:20:06 [RateCDR] => 1 ) [2025-04-20 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-20 08:20:06' and `end` < '2025-04-20 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-20 11:20:19] Production.INFO: count ==360 [2025-04-20 11:20:19] Production.ERROR: pbx CDR StartTime 2025-04-20 08:20:06 - End Time 2025-04-20 11:20:06 [2025-04-20 11:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 11:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949929', 'tblTempUsageDetail_20' ) start [2025-04-20 11:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949929', 'tblTempUsageDetail_20' ) end [2025-04-20 11:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949929', 'tblTempVendorCDR_20' ) start [2025-04-20 11:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949929', 'tblTempVendorCDR_20' ) end [2025-04-20 11:20:19] Production.INFO: ProcessCDR(1,14949929,1,1,2) [2025-04-20 11:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949929', 'tblTempUsageDetail_20' ) start [2025-04-20 11:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949929', 'tblTempUsageDetail_20' ) end [2025-04-20 11:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 11:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 11:20:23] Production.INFO: ==12760== Releasing lock... [2025-04-20 11:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 11:20:23] Production.INFO: 31 MB #Memory Used# [2025-04-20 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 08:21:05 [end_date_ymd] => 2025-04-20 11:21:05 [RateCDR] => 1 ) [2025-04-20 11:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 08:21:05' and `end` < '2025-04-20 11:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 11:21:17] Production.INFO: count ==401 [2025-04-20 11:21:17] Production.ERROR: pbx CDR StartTime 2025-04-20 08:21:05 - End Time 2025-04-20 11:21:05 [2025-04-20 11:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 11:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949934', 'tblTempUsageDetail_20' ) start [2025-04-20 11:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949934', 'tblTempUsageDetail_20' ) end [2025-04-20 11:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949934', 'tblTempVendorCDR_20' ) start [2025-04-20 11:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949934', 'tblTempVendorCDR_20' ) end [2025-04-20 11:21:17] Production.INFO: ProcessCDR(1,14949934,1,1,2) [2025-04-20 11:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949934', 'tblTempUsageDetail_20' ) start [2025-04-20 11:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949934', 'tblTempUsageDetail_20' ) end [2025-04-20 11:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 11:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 11:21:21] Production.INFO: ==12853== Releasing lock... [2025-04-20 11:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 11:21:21] Production.INFO: 32 MB #Memory Used# [2025-04-20 11:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 08:22:05 [end_date_ymd] => 2025-04-20 11:22:05 [RateCDR] => 1 ) [2025-04-20 11:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 08:22:05' and `end` < '2025-04-20 11:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 11:22:18] Production.INFO: count ==405 [2025-04-20 11:22:18] Production.ERROR: pbx CDR StartTime 2025-04-20 08:22:05 - End Time 2025-04-20 11:22:05 [2025-04-20 11:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 11:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949939', 'tblTempUsageDetail_20' ) start [2025-04-20 11:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949939', 'tblTempUsageDetail_20' ) end [2025-04-20 11:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949939', 'tblTempVendorCDR_20' ) start [2025-04-20 11:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949939', 'tblTempVendorCDR_20' ) end [2025-04-20 11:22:18] Production.INFO: ProcessCDR(1,14949939,1,1,2) [2025-04-20 11:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949939', 'tblTempUsageDetail_20' ) start [2025-04-20 11:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949939', 'tblTempUsageDetail_20' ) end [2025-04-20 11:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 11:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 11:22:22] Production.INFO: ==12939== Releasing lock... [2025-04-20 11:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 11:22:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-20 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 08:23:05 [end_date_ymd] => 2025-04-20 11:23:05 [RateCDR] => 1 ) [2025-04-20 11: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-20 08:23:05' and `end` < '2025-04-20 11: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-20 11:23:18] Production.INFO: count ==407 [2025-04-20 11:23:18] Production.ERROR: pbx CDR StartTime 2025-04-20 08:23:05 - End Time 2025-04-20 11:23:05 [2025-04-20 11:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 11:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949944', 'tblTempUsageDetail_20' ) start [2025-04-20 11:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949944', 'tblTempUsageDetail_20' ) end [2025-04-20 11:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949944', 'tblTempVendorCDR_20' ) start [2025-04-20 11:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949944', 'tblTempVendorCDR_20' ) end [2025-04-20 11:23:18] Production.INFO: ProcessCDR(1,14949944,1,1,2) [2025-04-20 11:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949944', 'tblTempUsageDetail_20' ) start [2025-04-20 11:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949944', 'tblTempUsageDetail_20' ) end [2025-04-20 11:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 11:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 11:23:21] Production.INFO: ==13034== Releasing lock... [2025-04-20 11:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 11:23:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-20 11:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 08:24:06 [end_date_ymd] => 2025-04-20 11:24:06 [RateCDR] => 1 ) [2025-04-20 11:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 08:24:06' and `end` < '2025-04-20 11:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 11:24:18] Production.INFO: count ==410 [2025-04-20 11:24:18] Production.ERROR: pbx CDR StartTime 2025-04-20 08:24:06 - End Time 2025-04-20 11:24:06 [2025-04-20 11:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 11:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949949', 'tblTempUsageDetail_20' ) start [2025-04-20 11:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949949', 'tblTempUsageDetail_20' ) end [2025-04-20 11:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949949', 'tblTempVendorCDR_20' ) start [2025-04-20 11:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949949', 'tblTempVendorCDR_20' ) end [2025-04-20 11:24:19] Production.INFO: ProcessCDR(1,14949949,1,1,2) [2025-04-20 11:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949949', 'tblTempUsageDetail_20' ) start [2025-04-20 11:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949949', 'tblTempUsageDetail_20' ) end [2025-04-20 11:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 11:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 11:24:22] Production.INFO: ==13129== Releasing lock... [2025-04-20 11:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 11:24:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-20 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 08:25:05 [end_date_ymd] => 2025-04-20 11:25:05 [RateCDR] => 1 ) [2025-04-20 11:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 08:25:05' and `end` < '2025-04-20 11:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 11:25:17] Production.INFO: count ==415 [2025-04-20 11:25:18] Production.ERROR: pbx CDR StartTime 2025-04-20 08:25:05 - End Time 2025-04-20 11:25:05 [2025-04-20 11:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949954', 'tblTempUsageDetail_20' ) start [2025-04-20 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949954', 'tblTempUsageDetail_20' ) end [2025-04-20 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949954', 'tblTempVendorCDR_20' ) start [2025-04-20 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949954', 'tblTempVendorCDR_20' ) end [2025-04-20 11:25:18] Production.INFO: ProcessCDR(1,14949954,1,1,2) [2025-04-20 11:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949954', 'tblTempUsageDetail_20' ) start [2025-04-20 11:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949954', 'tblTempUsageDetail_20' ) end [2025-04-20 11:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 11:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 11:25:21] Production.INFO: ==13217== Releasing lock... [2025-04-20 11:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 11:25:21] Production.INFO: 31 MB #Memory Used# [2025-04-20 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 08:26:05 [end_date_ymd] => 2025-04-20 11:26:05 [RateCDR] => 1 ) [2025-04-20 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-20 08:26:05' and `end` < '2025-04-20 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-20 11:26:18] Production.INFO: count ==418 [2025-04-20 11:26:18] Production.ERROR: pbx CDR StartTime 2025-04-20 08:26:05 - End Time 2025-04-20 11:26:05 [2025-04-20 11:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949959', 'tblTempUsageDetail_20' ) start [2025-04-20 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949959', 'tblTempUsageDetail_20' ) end [2025-04-20 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949959', 'tblTempVendorCDR_20' ) start [2025-04-20 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949959', 'tblTempVendorCDR_20' ) end [2025-04-20 11:26:18] Production.INFO: ProcessCDR(1,14949959,1,1,2) [2025-04-20 11:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949959', 'tblTempUsageDetail_20' ) start [2025-04-20 11:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949959', 'tblTempUsageDetail_20' ) end [2025-04-20 11:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 11:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 11:26:21] Production.INFO: ==13305== Releasing lock... [2025-04-20 11:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 11:26:21] Production.INFO: 31 MB #Memory Used# [2025-04-20 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 08:27:05 [end_date_ymd] => 2025-04-20 11:27:05 [RateCDR] => 1 ) [2025-04-20 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-20 08:27:05' and `end` < '2025-04-20 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-20 11:27:18] Production.INFO: count ==420 [2025-04-20 11:27:18] Production.ERROR: pbx CDR StartTime 2025-04-20 08:27:05 - End Time 2025-04-20 11:27:05 [2025-04-20 11:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 11:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949964', 'tblTempUsageDetail_20' ) start [2025-04-20 11:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949964', 'tblTempUsageDetail_20' ) end [2025-04-20 11:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949964', 'tblTempVendorCDR_20' ) start [2025-04-20 11:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949964', 'tblTempVendorCDR_20' ) end [2025-04-20 11:27:18] Production.INFO: ProcessCDR(1,14949964,1,1,2) [2025-04-20 11:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949964', 'tblTempUsageDetail_20' ) start [2025-04-20 11:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949964', 'tblTempUsageDetail_20' ) end [2025-04-20 11:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 11:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 11:27:23] Production.INFO: ==13434== Releasing lock... [2025-04-20 11:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 11:27:23] Production.INFO: 31.75 MB #Memory Used# [2025-04-20 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 08:28:05 [end_date_ymd] => 2025-04-20 11:28:05 [RateCDR] => 1 ) [2025-04-20 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-20 08:28:05' and `end` < '2025-04-20 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-20 11:28:17] Production.INFO: count ==421 [2025-04-20 11:28:18] Production.ERROR: pbx CDR StartTime 2025-04-20 08:28:05 - End Time 2025-04-20 11:28:05 [2025-04-20 11:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949969', 'tblTempUsageDetail_20' ) start [2025-04-20 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949969', 'tblTempUsageDetail_20' ) end [2025-04-20 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949969', 'tblTempVendorCDR_20' ) start [2025-04-20 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949969', 'tblTempVendorCDR_20' ) end [2025-04-20 11:28:18] Production.INFO: ProcessCDR(1,14949969,1,1,2) [2025-04-20 11:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949969', 'tblTempUsageDetail_20' ) start [2025-04-20 11:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949969', 'tblTempUsageDetail_20' ) end [2025-04-20 11:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 11:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 11:28:21] Production.INFO: ==13526== Releasing lock... [2025-04-20 11:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 11:28:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-20 11:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 08:29:06 [end_date_ymd] => 2025-04-20 11:29:06 [RateCDR] => 1 ) [2025-04-20 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-20 08:29:06' and `end` < '2025-04-20 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-20 11:29:18] Production.INFO: count ==423 [2025-04-20 11:29:18] Production.ERROR: pbx CDR StartTime 2025-04-20 08:29:06 - End Time 2025-04-20 11:29:06 [2025-04-20 11:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 11:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949974', 'tblTempUsageDetail_20' ) start [2025-04-20 11:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949974', 'tblTempUsageDetail_20' ) end [2025-04-20 11:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949974', 'tblTempVendorCDR_20' ) start [2025-04-20 11:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949974', 'tblTempVendorCDR_20' ) end [2025-04-20 11:29:18] Production.INFO: ProcessCDR(1,14949974,1,1,2) [2025-04-20 11:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949974', 'tblTempUsageDetail_20' ) start [2025-04-20 11:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949974', 'tblTempUsageDetail_20' ) end [2025-04-20 11:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 11:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 11:29:22] Production.INFO: ==13625== Releasing lock... [2025-04-20 11:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 11:29:22] Production.INFO: 32 MB #Memory Used# [2025-04-20 11:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 08:30:06 [end_date_ymd] => 2025-04-20 11:30:06 [RateCDR] => 1 ) [2025-04-20 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-20 08:30:06' and `end` < '2025-04-20 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-20 11:30:18] Production.INFO: count ==433 [2025-04-20 11:30:18] Production.ERROR: pbx CDR StartTime 2025-04-20 08:30:06 - End Time 2025-04-20 11:30:06 [2025-04-20 11:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 11:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949980', 'tblTempUsageDetail_20' ) start [2025-04-20 11:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949980', 'tblTempUsageDetail_20' ) end [2025-04-20 11:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949980', 'tblTempVendorCDR_20' ) start [2025-04-20 11:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949980', 'tblTempVendorCDR_20' ) end [2025-04-20 11:30:18] Production.INFO: ProcessCDR(1,14949980,1,1,2) [2025-04-20 11:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949980', 'tblTempUsageDetail_20' ) start [2025-04-20 11:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949980', 'tblTempUsageDetail_20' ) end [2025-04-20 11:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 11:30:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 11:30:24] Production.INFO: ==13718== Releasing lock... [2025-04-20 11:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 11:30:24] Production.INFO: 31.75 MB #Memory Used# [2025-04-20 11:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 08:31:06 [end_date_ymd] => 2025-04-20 11:31:06 [RateCDR] => 1 ) [2025-04-20 11:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 08:31:06' and `end` < '2025-04-20 11:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 11:31:18] Production.INFO: count ==442 [2025-04-20 11:31:18] Production.ERROR: pbx CDR StartTime 2025-04-20 08:31:06 - End Time 2025-04-20 11:31:06 [2025-04-20 11:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 11:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949985', 'tblTempUsageDetail_20' ) start [2025-04-20 11:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949985', 'tblTempUsageDetail_20' ) end [2025-04-20 11:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949985', 'tblTempVendorCDR_20' ) start [2025-04-20 11:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949985', 'tblTempVendorCDR_20' ) end [2025-04-20 11:31:18] Production.INFO: ProcessCDR(1,14949985,1,1,2) [2025-04-20 11:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949985', 'tblTempUsageDetail_20' ) start [2025-04-20 11:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949985', 'tblTempUsageDetail_20' ) end [2025-04-20 11:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 11:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 11:31:23] Production.INFO: ==13804== Releasing lock... [2025-04-20 11:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 11:31:23] Production.INFO: 31.5 MB #Memory Used# [2025-04-20 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 08:32:05 [end_date_ymd] => 2025-04-20 11:32:05 [RateCDR] => 1 ) [2025-04-20 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-20 08:32:05' and `end` < '2025-04-20 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-20 11:32:18] Production.INFO: count ==441 [2025-04-20 11:32:18] Production.ERROR: pbx CDR StartTime 2025-04-20 08:32:05 - End Time 2025-04-20 11:32:05 [2025-04-20 11:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949990', 'tblTempUsageDetail_20' ) start [2025-04-20 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949990', 'tblTempUsageDetail_20' ) end [2025-04-20 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949990', 'tblTempVendorCDR_20' ) start [2025-04-20 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949990', 'tblTempVendorCDR_20' ) end [2025-04-20 11:32:18] Production.INFO: ProcessCDR(1,14949990,1,1,2) [2025-04-20 11:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949990', 'tblTempUsageDetail_20' ) start [2025-04-20 11:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949990', 'tblTempUsageDetail_20' ) end [2025-04-20 11:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 11:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 11:32:21] Production.INFO: ==13901== Releasing lock... [2025-04-20 11:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 11:32:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-20 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 08:33:05 [end_date_ymd] => 2025-04-20 11:33:05 [RateCDR] => 1 ) [2025-04-20 11:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 08:33:05' and `end` < '2025-04-20 11:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 11:33:18] Production.INFO: count ==444 [2025-04-20 11:33:18] Production.ERROR: pbx CDR StartTime 2025-04-20 08:33:05 - End Time 2025-04-20 11:33:05 [2025-04-20 11:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 11:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949995', 'tblTempUsageDetail_20' ) start [2025-04-20 11:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14949995', 'tblTempUsageDetail_20' ) end [2025-04-20 11:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949995', 'tblTempVendorCDR_20' ) start [2025-04-20 11:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14949995', 'tblTempVendorCDR_20' ) end [2025-04-20 11:33:18] Production.INFO: ProcessCDR(1,14949995,1,1,2) [2025-04-20 11:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14949995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14949995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14949995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14949995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949995', 'tblTempUsageDetail_20' ) start [2025-04-20 11:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14949995', 'tblTempUsageDetail_20' ) end [2025-04-20 11:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 11:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 11:33:23] Production.INFO: ==13997== Releasing lock... [2025-04-20 11:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 11:33:23] Production.INFO: 31.5 MB #Memory Used# [2025-04-20 11:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 08:34:05 [end_date_ymd] => 2025-04-20 11:34:05 [RateCDR] => 1 ) [2025-04-20 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-20 08:34:05' and `end` < '2025-04-20 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-20 11:34:17] Production.INFO: count ==446 [2025-04-20 11:34:17] Production.ERROR: pbx CDR StartTime 2025-04-20 08:34:05 - End Time 2025-04-20 11:34:05 [2025-04-20 11:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 11:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950000', 'tblTempUsageDetail_20' ) start [2025-04-20 11:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950000', 'tblTempUsageDetail_20' ) end [2025-04-20 11:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950000', 'tblTempVendorCDR_20' ) start [2025-04-20 11:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950000', 'tblTempVendorCDR_20' ) end [2025-04-20 11:34:17] Production.INFO: ProcessCDR(1,14950000,1,1,2) [2025-04-20 11:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950000', 'tblTempUsageDetail_20' ) start [2025-04-20 11:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950000', 'tblTempUsageDetail_20' ) end [2025-04-20 11:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 11:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 11:34:22] Production.INFO: ==14090== Releasing lock... [2025-04-20 11:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 11:34:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-20 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 08:35:05 [end_date_ymd] => 2025-04-20 11:35:05 [RateCDR] => 1 ) [2025-04-20 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-20 08:35:05' and `end` < '2025-04-20 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-20 11:35:18] Production.INFO: count ==446 [2025-04-20 11:35:18] Production.ERROR: pbx CDR StartTime 2025-04-20 08:35:05 - End Time 2025-04-20 11:35:05 [2025-04-20 11:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950005', 'tblTempUsageDetail_20' ) start [2025-04-20 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950005', 'tblTempUsageDetail_20' ) end [2025-04-20 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950005', 'tblTempVendorCDR_20' ) start [2025-04-20 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950005', 'tblTempVendorCDR_20' ) end [2025-04-20 11:35:18] Production.INFO: ProcessCDR(1,14950005,1,1,2) [2025-04-20 11:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950005', 'tblTempUsageDetail_20' ) start [2025-04-20 11:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950005', 'tblTempUsageDetail_20' ) end [2025-04-20 11:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 11:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 11:35:21] Production.INFO: ==14188== Releasing lock... [2025-04-20 11:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 11:35:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-20 11:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 08:36:05 [end_date_ymd] => 2025-04-20 11:36:05 [RateCDR] => 1 ) [2025-04-20 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-20 08:36:05' and `end` < '2025-04-20 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-20 11:36:18] Production.INFO: count ==449 [2025-04-20 11:36:18] Production.ERROR: pbx CDR StartTime 2025-04-20 08:36:05 - End Time 2025-04-20 11:36:05 [2025-04-20 11:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 11:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950010', 'tblTempUsageDetail_20' ) start [2025-04-20 11:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950010', 'tblTempUsageDetail_20' ) end [2025-04-20 11:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950010', 'tblTempVendorCDR_20' ) start [2025-04-20 11:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950010', 'tblTempVendorCDR_20' ) end [2025-04-20 11:36:18] Production.INFO: ProcessCDR(1,14950010,1,1,2) [2025-04-20 11:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950010', 'tblTempUsageDetail_20' ) start [2025-04-20 11:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950010', 'tblTempUsageDetail_20' ) end [2025-04-20 11:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 11:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 11:36:21] Production.INFO: ==14275== Releasing lock... [2025-04-20 11:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 11:36:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-20 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 08:37:05 [end_date_ymd] => 2025-04-20 11:37:05 [RateCDR] => 1 ) [2025-04-20 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-20 08:37:05' and `end` < '2025-04-20 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-20 11:37:18] Production.INFO: count ==449 [2025-04-20 11:37:18] Production.ERROR: pbx CDR StartTime 2025-04-20 08:37:05 - End Time 2025-04-20 11:37:05 [2025-04-20 11:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950015', 'tblTempUsageDetail_20' ) start [2025-04-20 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950015', 'tblTempUsageDetail_20' ) end [2025-04-20 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950015', 'tblTempVendorCDR_20' ) start [2025-04-20 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950015', 'tblTempVendorCDR_20' ) end [2025-04-20 11:37:18] Production.INFO: ProcessCDR(1,14950015,1,1,2) [2025-04-20 11:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950015', 'tblTempUsageDetail_20' ) start [2025-04-20 11:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950015', 'tblTempUsageDetail_20' ) end [2025-04-20 11:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 11:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 11:37:21] Production.INFO: ==14368== Releasing lock... [2025-04-20 11:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 11:37:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-20 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 08:38:05 [end_date_ymd] => 2025-04-20 11:38:05 [RateCDR] => 1 ) [2025-04-20 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-20 08:38:05' and `end` < '2025-04-20 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-20 11:38:18] Production.INFO: count ==449 [2025-04-20 11:38:18] Production.ERROR: pbx CDR StartTime 2025-04-20 08:38:05 - End Time 2025-04-20 11:38:05 [2025-04-20 11:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 11:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950020', 'tblTempUsageDetail_20' ) start [2025-04-20 11:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950020', 'tblTempUsageDetail_20' ) end [2025-04-20 11:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950020', 'tblTempVendorCDR_20' ) start [2025-04-20 11:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950020', 'tblTempVendorCDR_20' ) end [2025-04-20 11:38:18] Production.INFO: ProcessCDR(1,14950020,1,1,2) [2025-04-20 11:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950020', 'tblTempUsageDetail_20' ) start [2025-04-20 11:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950020', 'tblTempUsageDetail_20' ) end [2025-04-20 11:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 11:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 11:38:21] Production.INFO: ==14442== Releasing lock... [2025-04-20 11:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 11:38:21] Production.INFO: 32 MB #Memory Used# [2025-04-20 11:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 08:39:06 [end_date_ymd] => 2025-04-20 11:39:06 [RateCDR] => 1 ) [2025-04-20 11:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 08:39:06' and `end` < '2025-04-20 11:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 11:39:19] Production.INFO: count ==450 [2025-04-20 11:39:19] Production.ERROR: pbx CDR StartTime 2025-04-20 08:39:06 - End Time 2025-04-20 11:39:06 [2025-04-20 11:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 11:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950025', 'tblTempUsageDetail_20' ) start [2025-04-20 11:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950025', 'tblTempUsageDetail_20' ) end [2025-04-20 11:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950025', 'tblTempVendorCDR_20' ) start [2025-04-20 11:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950025', 'tblTempVendorCDR_20' ) end [2025-04-20 11:39:19] Production.INFO: ProcessCDR(1,14950025,1,1,2) [2025-04-20 11:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950025', 'tblTempUsageDetail_20' ) start [2025-04-20 11:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950025', 'tblTempUsageDetail_20' ) end [2025-04-20 11:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 11:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 11:39:22] Production.INFO: ==14522== Releasing lock... [2025-04-20 11:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 11:39:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-20 11:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 08:40:06 [end_date_ymd] => 2025-04-20 11:40:06 [RateCDR] => 1 ) [2025-04-20 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-20 08:40:06' and `end` < '2025-04-20 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-20 11:40:18] Production.INFO: count ==457 [2025-04-20 11:40:18] Production.ERROR: pbx CDR StartTime 2025-04-20 08:40:06 - End Time 2025-04-20 11:40:06 [2025-04-20 11:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 11:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950031', 'tblTempUsageDetail_20' ) start [2025-04-20 11:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950031', 'tblTempUsageDetail_20' ) end [2025-04-20 11:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950031', 'tblTempVendorCDR_20' ) start [2025-04-20 11:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950031', 'tblTempVendorCDR_20' ) end [2025-04-20 11:40:18] Production.INFO: ProcessCDR(1,14950031,1,1,2) [2025-04-20 11:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950031', 'tblTempUsageDetail_20' ) start [2025-04-20 11:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950031', 'tblTempUsageDetail_20' ) end [2025-04-20 11:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 11:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 11:40:22] Production.INFO: ==14600== Releasing lock... [2025-04-20 11:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 11:40:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-20 11:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 08:41:05 [end_date_ymd] => 2025-04-20 11:41:05 [RateCDR] => 1 ) [2025-04-20 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-20 08:41:05' and `end` < '2025-04-20 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-20 11:41:18] Production.INFO: count ==478 [2025-04-20 11:41:18] Production.ERROR: pbx CDR StartTime 2025-04-20 08:41:05 - End Time 2025-04-20 11:41:05 [2025-04-20 11:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950036', 'tblTempUsageDetail_20' ) start [2025-04-20 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950036', 'tblTempUsageDetail_20' ) end [2025-04-20 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950036', 'tblTempVendorCDR_20' ) start [2025-04-20 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950036', 'tblTempVendorCDR_20' ) end [2025-04-20 11:41:18] Production.INFO: ProcessCDR(1,14950036,1,1,2) [2025-04-20 11:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950036', 'tblTempUsageDetail_20' ) start [2025-04-20 11:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950036', 'tblTempUsageDetail_20' ) end [2025-04-20 11:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 11:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 11:41:22] Production.INFO: ==14680== Releasing lock... [2025-04-20 11:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 11:41:22] Production.INFO: 32 MB #Memory Used# [2025-04-20 11:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 08:42:06 [end_date_ymd] => 2025-04-20 11:42:06 [RateCDR] => 1 ) [2025-04-20 11:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 08:42:06' and `end` < '2025-04-20 11:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 11:42:18] Production.INFO: count ==479 [2025-04-20 11:42:18] Production.ERROR: pbx CDR StartTime 2025-04-20 08:42:06 - End Time 2025-04-20 11:42:06 [2025-04-20 11:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 11:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950041', 'tblTempUsageDetail_20' ) start [2025-04-20 11:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950041', 'tblTempUsageDetail_20' ) end [2025-04-20 11:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950041', 'tblTempVendorCDR_20' ) start [2025-04-20 11:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950041', 'tblTempVendorCDR_20' ) end [2025-04-20 11:42:18] Production.INFO: ProcessCDR(1,14950041,1,1,2) [2025-04-20 11:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950041', 'tblTempUsageDetail_20' ) start [2025-04-20 11:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950041', 'tblTempUsageDetail_20' ) end [2025-04-20 11:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 11:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 11:42:22] Production.INFO: ==14759== Releasing lock... [2025-04-20 11:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 11:42:22] Production.INFO: 32 MB #Memory Used# [2025-04-20 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 08:43:05 [end_date_ymd] => 2025-04-20 11:43:05 [RateCDR] => 1 ) [2025-04-20 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-20 08:43:05' and `end` < '2025-04-20 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-20 11:43:18] Production.INFO: count ==481 [2025-04-20 11:43:18] Production.ERROR: pbx CDR StartTime 2025-04-20 08:43:05 - End Time 2025-04-20 11:43:05 [2025-04-20 11:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 11:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950046', 'tblTempUsageDetail_20' ) start [2025-04-20 11:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950046', 'tblTempUsageDetail_20' ) end [2025-04-20 11:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950046', 'tblTempVendorCDR_20' ) start [2025-04-20 11:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950046', 'tblTempVendorCDR_20' ) end [2025-04-20 11:43:18] Production.INFO: ProcessCDR(1,14950046,1,1,2) [2025-04-20 11:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950046', 'tblTempUsageDetail_20' ) start [2025-04-20 11:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950046', 'tblTempUsageDetail_20' ) end [2025-04-20 11:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 11:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 11:43:23] Production.INFO: ==14874== Releasing lock... [2025-04-20 11:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 11:43:23] Production.INFO: 32 MB #Memory Used# [2025-04-20 11:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 08:44:06 [end_date_ymd] => 2025-04-20 11:44:06 [RateCDR] => 1 ) [2025-04-20 11:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 08:44:06' and `end` < '2025-04-20 11:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 11:44:18] Production.INFO: count ==483 [2025-04-20 11:44:18] Production.ERROR: pbx CDR StartTime 2025-04-20 08:44:06 - End Time 2025-04-20 11:44:06 [2025-04-20 11:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 11:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950051', 'tblTempUsageDetail_20' ) start [2025-04-20 11:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950051', 'tblTempUsageDetail_20' ) end [2025-04-20 11:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950051', 'tblTempVendorCDR_20' ) start [2025-04-20 11:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950051', 'tblTempVendorCDR_20' ) end [2025-04-20 11:44:18] Production.INFO: ProcessCDR(1,14950051,1,1,2) [2025-04-20 11:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950051', 'tblTempUsageDetail_20' ) start [2025-04-20 11:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950051', 'tblTempUsageDetail_20' ) end [2025-04-20 11:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 11:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 11:44:23] Production.INFO: ==14951== Releasing lock... [2025-04-20 11:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 11:44:23] Production.INFO: 32 MB #Memory Used# [2025-04-20 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 08:45:05 [end_date_ymd] => 2025-04-20 11:45:05 [RateCDR] => 1 ) [2025-04-20 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-20 08:45:05' and `end` < '2025-04-20 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-20 11:45:18] Production.INFO: count ==486 [2025-04-20 11:45:18] Production.ERROR: pbx CDR StartTime 2025-04-20 08:45:05 - End Time 2025-04-20 11:45:05 [2025-04-20 11:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 11:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950056', 'tblTempUsageDetail_20' ) start [2025-04-20 11:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950056', 'tblTempUsageDetail_20' ) end [2025-04-20 11:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950056', 'tblTempVendorCDR_20' ) start [2025-04-20 11:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950056', 'tblTempVendorCDR_20' ) end [2025-04-20 11:45:18] Production.INFO: ProcessCDR(1,14950056,1,1,2) [2025-04-20 11:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950056', 'tblTempUsageDetail_20' ) start [2025-04-20 11:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950056', 'tblTempUsageDetail_20' ) end [2025-04-20 11:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 11:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 11:45:22] Production.INFO: ==15032== Releasing lock... [2025-04-20 11:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 11:45:22] Production.INFO: 32 MB #Memory Used# [2025-04-20 11:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 08:46:05 [end_date_ymd] => 2025-04-20 11:46:05 [RateCDR] => 1 ) [2025-04-20 11:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 08:46:05' and `end` < '2025-04-20 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-20 11:46:18] Production.INFO: count ==486 [2025-04-20 11:46:18] Production.ERROR: pbx CDR StartTime 2025-04-20 08:46:05 - End Time 2025-04-20 11:46:05 [2025-04-20 11:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 11:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950061', 'tblTempUsageDetail_20' ) start [2025-04-20 11:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950061', 'tblTempUsageDetail_20' ) end [2025-04-20 11:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950061', 'tblTempVendorCDR_20' ) start [2025-04-20 11:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950061', 'tblTempVendorCDR_20' ) end [2025-04-20 11:46:18] Production.INFO: ProcessCDR(1,14950061,1,1,2) [2025-04-20 11:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950061', 'tblTempUsageDetail_20' ) start [2025-04-20 11:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950061', 'tblTempUsageDetail_20' ) end [2025-04-20 11:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 11:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 11:46:22] Production.INFO: ==15106== Releasing lock... [2025-04-20 11:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 11:46:22] Production.INFO: 32 MB #Memory Used# [2025-04-20 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 08:47:05 [end_date_ymd] => 2025-04-20 11:47:05 [RateCDR] => 1 ) [2025-04-20 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-20 08:47:05' and `end` < '2025-04-20 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-20 11:47:17] Production.INFO: count ==490 [2025-04-20 11:47:17] Production.ERROR: pbx CDR StartTime 2025-04-20 08:47:05 - End Time 2025-04-20 11:47:05 [2025-04-20 11:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 11:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950066', 'tblTempUsageDetail_20' ) start [2025-04-20 11:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950066', 'tblTempUsageDetail_20' ) end [2025-04-20 11:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950066', 'tblTempVendorCDR_20' ) start [2025-04-20 11:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950066', 'tblTempVendorCDR_20' ) end [2025-04-20 11:47:17] Production.INFO: ProcessCDR(1,14950066,1,1,2) [2025-04-20 11:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950066', 'tblTempUsageDetail_20' ) start [2025-04-20 11:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950066', 'tblTempUsageDetail_20' ) end [2025-04-20 11:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 11:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 11:47:21] Production.INFO: ==15186== Releasing lock... [2025-04-20 11:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 11:47:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-20 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 08:48:05 [end_date_ymd] => 2025-04-20 11:48:05 [RateCDR] => 1 ) [2025-04-20 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-20 08:48:05' and `end` < '2025-04-20 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-20 11:48:18] Production.INFO: count ==492 [2025-04-20 11:48:18] Production.ERROR: pbx CDR StartTime 2025-04-20 08:48:05 - End Time 2025-04-20 11:48:05 [2025-04-20 11:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950071', 'tblTempUsageDetail_20' ) start [2025-04-20 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950071', 'tblTempUsageDetail_20' ) end [2025-04-20 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950071', 'tblTempVendorCDR_20' ) start [2025-04-20 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950071', 'tblTempVendorCDR_20' ) end [2025-04-20 11:48:18] Production.INFO: ProcessCDR(1,14950071,1,1,2) [2025-04-20 11:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950071', 'tblTempUsageDetail_20' ) start [2025-04-20 11:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950071', 'tblTempUsageDetail_20' ) end [2025-04-20 11:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 11:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 11:48:22] Production.INFO: ==15265== Releasing lock... [2025-04-20 11:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 11:48:22] Production.INFO: 32 MB #Memory Used# [2025-04-20 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 08:49:05 [end_date_ymd] => 2025-04-20 11:49:05 [RateCDR] => 1 ) [2025-04-20 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-20 08:49:05' and `end` < '2025-04-20 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-20 11:49:17] Production.INFO: count ==489 [2025-04-20 11:49:17] Production.ERROR: pbx CDR StartTime 2025-04-20 08:49:05 - End Time 2025-04-20 11:49:05 [2025-04-20 11:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 11:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950076', 'tblTempUsageDetail_20' ) start [2025-04-20 11:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950076', 'tblTempUsageDetail_20' ) end [2025-04-20 11:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950076', 'tblTempVendorCDR_20' ) start [2025-04-20 11:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950076', 'tblTempVendorCDR_20' ) end [2025-04-20 11:49:17] Production.INFO: ProcessCDR(1,14950076,1,1,2) [2025-04-20 11:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950076', 'tblTempUsageDetail_20' ) start [2025-04-20 11:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950076', 'tblTempUsageDetail_20' ) end [2025-04-20 11:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 11:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 11:49:22] Production.INFO: ==15339== Releasing lock... [2025-04-20 11:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 11:49:22] Production.INFO: 32 MB #Memory Used# [2025-04-20 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 08:50:06 [end_date_ymd] => 2025-04-20 11:50:06 [RateCDR] => 1 ) [2025-04-20 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-20 08:50:06' and `end` < '2025-04-20 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-20 11:50:18] Production.INFO: count ==499 [2025-04-20 11:50:19] Production.ERROR: pbx CDR StartTime 2025-04-20 08:50:06 - End Time 2025-04-20 11:50:06 [2025-04-20 11:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950081', 'tblTempUsageDetail_20' ) start [2025-04-20 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950081', 'tblTempUsageDetail_20' ) end [2025-04-20 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950081', 'tblTempVendorCDR_20' ) start [2025-04-20 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950081', 'tblTempVendorCDR_20' ) end [2025-04-20 11:50:19] Production.INFO: ProcessCDR(1,14950081,1,1,2) [2025-04-20 11:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950081', 'tblTempUsageDetail_20' ) start [2025-04-20 11:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950081', 'tblTempUsageDetail_20' ) end [2025-04-20 11:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 11:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 11:50:24] Production.INFO: ==15420== Releasing lock... [2025-04-20 11:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 11:50:24] Production.INFO: 32 MB #Memory Used# [2025-04-20 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 08:51:05 [end_date_ymd] => 2025-04-20 11:51:05 [RateCDR] => 1 ) [2025-04-20 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-20 08:51:05' and `end` < '2025-04-20 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-20 11:51:17] Production.INFO: count ==521 [2025-04-20 11:51:17] Production.ERROR: pbx CDR StartTime 2025-04-20 08:51:05 - End Time 2025-04-20 11:51:05 [2025-04-20 11:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 11:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950087', 'tblTempUsageDetail_20' ) start [2025-04-20 11:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950087', 'tblTempUsageDetail_20' ) end [2025-04-20 11:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950087', 'tblTempVendorCDR_20' ) start [2025-04-20 11:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950087', 'tblTempVendorCDR_20' ) end [2025-04-20 11:51:17] Production.INFO: ProcessCDR(1,14950087,1,1,2) [2025-04-20 11:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950087', 'tblTempUsageDetail_20' ) start [2025-04-20 11:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950087', 'tblTempUsageDetail_20' ) end [2025-04-20 11:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 11:51:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 11:51:23] Production.INFO: ==15501== Releasing lock... [2025-04-20 11:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 11:51:23] Production.INFO: 32 MB #Memory Used# [2025-04-20 11:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 08:52:05 [end_date_ymd] => 2025-04-20 11:52:05 [RateCDR] => 1 ) [2025-04-20 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-20 08:52:05' and `end` < '2025-04-20 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-20 11:52:18] Production.INFO: count ==523 [2025-04-20 11:52:18] Production.ERROR: pbx CDR StartTime 2025-04-20 08:52:05 - End Time 2025-04-20 11:52:05 [2025-04-20 11:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950092', 'tblTempUsageDetail_20' ) start [2025-04-20 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950092', 'tblTempUsageDetail_20' ) end [2025-04-20 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950092', 'tblTempVendorCDR_20' ) start [2025-04-20 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950092', 'tblTempVendorCDR_20' ) end [2025-04-20 11:52:18] Production.INFO: ProcessCDR(1,14950092,1,1,2) [2025-04-20 11:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950092', 'tblTempUsageDetail_20' ) start [2025-04-20 11:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950092', 'tblTempUsageDetail_20' ) end [2025-04-20 11:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 11:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 11:52:23] Production.INFO: ==15578== Releasing lock... [2025-04-20 11:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 11:52:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-20 11:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 08:53:06 [end_date_ymd] => 2025-04-20 11:53:06 [RateCDR] => 1 ) [2025-04-20 11: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-20 08:53:06' and `end` < '2025-04-20 11: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-20 11:53:19] Production.INFO: count ==523 [2025-04-20 11:53:19] Production.ERROR: pbx CDR StartTime 2025-04-20 08:53:06 - End Time 2025-04-20 11:53:06 [2025-04-20 11:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 11:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950097', 'tblTempUsageDetail_20' ) start [2025-04-20 11:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950097', 'tblTempUsageDetail_20' ) end [2025-04-20 11:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950097', 'tblTempVendorCDR_20' ) start [2025-04-20 11:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950097', 'tblTempVendorCDR_20' ) end [2025-04-20 11:53:19] Production.INFO: ProcessCDR(1,14950097,1,1,2) [2025-04-20 11:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950097', 'tblTempUsageDetail_20' ) start [2025-04-20 11:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950097', 'tblTempUsageDetail_20' ) end [2025-04-20 11:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 11:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 11:53:22] Production.INFO: ==15650== Releasing lock... [2025-04-20 11:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 11:53:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-20 11:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 08:54:06 [end_date_ymd] => 2025-04-20 11:54:06 [RateCDR] => 1 ) [2025-04-20 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-20 08:54:06' and `end` < '2025-04-20 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-20 11:54:18] Production.INFO: count ==523 [2025-04-20 11:54:18] Production.ERROR: pbx CDR StartTime 2025-04-20 08:54:06 - End Time 2025-04-20 11:54:06 [2025-04-20 11:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 11:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950102', 'tblTempUsageDetail_20' ) start [2025-04-20 11:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950102', 'tblTempUsageDetail_20' ) end [2025-04-20 11:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950102', 'tblTempVendorCDR_20' ) start [2025-04-20 11:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950102', 'tblTempVendorCDR_20' ) end [2025-04-20 11:54:18] Production.INFO: ProcessCDR(1,14950102,1,1,2) [2025-04-20 11:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950102', 'tblTempUsageDetail_20' ) start [2025-04-20 11:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950102', 'tblTempUsageDetail_20' ) end [2025-04-20 11:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 11:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 11:54:22] Production.INFO: ==15727== Releasing lock... [2025-04-20 11:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 11:54:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-20 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 08:55:05 [end_date_ymd] => 2025-04-20 11:55:05 [RateCDR] => 1 ) [2025-04-20 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-20 08:55:05' and `end` < '2025-04-20 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-20 11:55:17] Production.INFO: count ==525 [2025-04-20 11:55:18] Production.ERROR: pbx CDR StartTime 2025-04-20 08:55:05 - End Time 2025-04-20 11:55:05 [2025-04-20 11:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 11:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950107', 'tblTempUsageDetail_20' ) start [2025-04-20 11:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950107', 'tblTempUsageDetail_20' ) end [2025-04-20 11:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950107', 'tblTempVendorCDR_20' ) start [2025-04-20 11:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950107', 'tblTempVendorCDR_20' ) end [2025-04-20 11:55:18] Production.INFO: ProcessCDR(1,14950107,1,1,2) [2025-04-20 11:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950107', 'tblTempUsageDetail_20' ) start [2025-04-20 11:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950107', 'tblTempUsageDetail_20' ) end [2025-04-20 11:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 11:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 11:55:21] Production.INFO: ==15811== Releasing lock... [2025-04-20 11:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 11:55:21] Production.INFO: 32 MB #Memory Used# [2025-04-20 11:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 08:56:05 [end_date_ymd] => 2025-04-20 11:56:05 [RateCDR] => 1 ) [2025-04-20 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-20 08:56:05' and `end` < '2025-04-20 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-20 11:56:18] Production.INFO: count ==526 [2025-04-20 11:56:19] Production.ERROR: pbx CDR StartTime 2025-04-20 08:56:05 - End Time 2025-04-20 11:56:05 [2025-04-20 11:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 11:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950112', 'tblTempUsageDetail_20' ) start [2025-04-20 11:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950112', 'tblTempUsageDetail_20' ) end [2025-04-20 11:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950112', 'tblTempVendorCDR_20' ) start [2025-04-20 11:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950112', 'tblTempVendorCDR_20' ) end [2025-04-20 11:56:19] Production.INFO: ProcessCDR(1,14950112,1,1,2) [2025-04-20 11:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950112', 'tblTempUsageDetail_20' ) start [2025-04-20 11:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950112', 'tblTempUsageDetail_20' ) end [2025-04-20 11:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 11:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 11:56:23] Production.INFO: ==15896== Releasing lock... [2025-04-20 11:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 11:56:23] Production.INFO: 32 MB #Memory Used# [2025-04-20 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 08:57:05 [end_date_ymd] => 2025-04-20 11:57:05 [RateCDR] => 1 ) [2025-04-20 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-20 08:57:05' and `end` < '2025-04-20 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-20 11:57:18] Production.INFO: count ==530 [2025-04-20 11:57:18] Production.ERROR: pbx CDR StartTime 2025-04-20 08:57:05 - End Time 2025-04-20 11:57:05 [2025-04-20 11:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950117', 'tblTempUsageDetail_20' ) start [2025-04-20 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950117', 'tblTempUsageDetail_20' ) end [2025-04-20 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950117', 'tblTempVendorCDR_20' ) start [2025-04-20 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950117', 'tblTempVendorCDR_20' ) end [2025-04-20 11:57:18] Production.INFO: ProcessCDR(1,14950117,1,1,2) [2025-04-20 11:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950117', 'tblTempUsageDetail_20' ) start [2025-04-20 11:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950117', 'tblTempUsageDetail_20' ) end [2025-04-20 11:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 11:57:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 11:57:23] Production.INFO: ==15972== Releasing lock... [2025-04-20 11:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 11:57:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-20 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 08:58:05 [end_date_ymd] => 2025-04-20 11:58:05 [RateCDR] => 1 ) [2025-04-20 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-20 08:58:05' and `end` < '2025-04-20 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-20 11:58:17] Production.INFO: count ==530 [2025-04-20 11:58:17] Production.ERROR: pbx CDR StartTime 2025-04-20 08:58:05 - End Time 2025-04-20 11:58:05 [2025-04-20 11:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 11:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950122', 'tblTempUsageDetail_20' ) start [2025-04-20 11:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950122', 'tblTempUsageDetail_20' ) end [2025-04-20 11:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950122', 'tblTempVendorCDR_20' ) start [2025-04-20 11:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950122', 'tblTempVendorCDR_20' ) end [2025-04-20 11:58:18] Production.INFO: ProcessCDR(1,14950122,1,1,2) [2025-04-20 11:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950122', 'tblTempUsageDetail_20' ) start [2025-04-20 11:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950122', 'tblTempUsageDetail_20' ) end [2025-04-20 11:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 11:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 11:58:21] Production.INFO: ==16083== Releasing lock... [2025-04-20 11:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 11:58:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-20 11:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 08:59:06 [end_date_ymd] => 2025-04-20 11:59:06 [RateCDR] => 1 ) [2025-04-20 11: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-20 08:59:06' and `end` < '2025-04-20 11: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-20 11:59:18] Production.INFO: count ==532 [2025-04-20 11:59:18] Production.ERROR: pbx CDR StartTime 2025-04-20 08:59:06 - End Time 2025-04-20 11:59:06 [2025-04-20 11:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 11:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950127', 'tblTempUsageDetail_20' ) start [2025-04-20 11:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950127', 'tblTempUsageDetail_20' ) end [2025-04-20 11:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950127', 'tblTempVendorCDR_20' ) start [2025-04-20 11:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950127', 'tblTempVendorCDR_20' ) end [2025-04-20 11:59:18] Production.INFO: ProcessCDR(1,14950127,1,1,2) [2025-04-20 11:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 11:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 11:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950127', 'tblTempUsageDetail_20' ) start [2025-04-20 11:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950127', 'tblTempUsageDetail_20' ) end [2025-04-20 11:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 11:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 11:59:22] Production.INFO: ==16158== Releasing lock... [2025-04-20 11:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 11:59:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-20 12:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 09:00:05 [end_date_ymd] => 2025-04-20 12:00:05 [RateCDR] => 1 ) [2025-04-20 12: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-20 09:00:05' and `end` < '2025-04-20 12: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-20 12:00:18] Production.INFO: count ==541 [2025-04-20 12:00:18] Production.ERROR: pbx CDR StartTime 2025-04-20 09:00:05 - End Time 2025-04-20 12:00:05 [2025-04-20 12:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 12:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950133', 'tblTempUsageDetail_20' ) start [2025-04-20 12:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950133', 'tblTempUsageDetail_20' ) end [2025-04-20 12:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950133', 'tblTempVendorCDR_20' ) start [2025-04-20 12:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950133', 'tblTempVendorCDR_20' ) end [2025-04-20 12:00:18] Production.INFO: ProcessCDR(1,14950133,1,1,2) [2025-04-20 12:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950133', 'tblTempUsageDetail_20' ) start [2025-04-20 12:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950133', 'tblTempUsageDetail_20' ) end [2025-04-20 12:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 12:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 12:00:22] Production.INFO: ==16239== Releasing lock... [2025-04-20 12:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 12:00:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-20 12:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 09:01:06 [end_date_ymd] => 2025-04-20 12:01:06 [RateCDR] => 1 ) [2025-04-20 12: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-20 09:01:06' and `end` < '2025-04-20 12: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-20 12:01:18] Production.INFO: count ==567 [2025-04-20 12:01:19] Production.ERROR: pbx CDR StartTime 2025-04-20 09:01:06 - End Time 2025-04-20 12:01:06 [2025-04-20 12:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 12:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950138', 'tblTempUsageDetail_20' ) start [2025-04-20 12:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950138', 'tblTempUsageDetail_20' ) end [2025-04-20 12:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950138', 'tblTempVendorCDR_20' ) start [2025-04-20 12:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950138', 'tblTempVendorCDR_20' ) end [2025-04-20 12:01:19] Production.INFO: ProcessCDR(1,14950138,1,1,2) [2025-04-20 12:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950138', 'tblTempUsageDetail_20' ) start [2025-04-20 12:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950138', 'tblTempUsageDetail_20' ) end [2025-04-20 12:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 12:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 12:01:22] Production.INFO: ==16333== Releasing lock... [2025-04-20 12:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 12:01:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-20 12:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 09:02:04 [end_date_ymd] => 2025-04-20 12:02:04 [RateCDR] => 1 ) [2025-04-20 12: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-20 09:02:04' and `end` < '2025-04-20 12: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-20 12:02:17] Production.INFO: count ==568 [2025-04-20 12:02:17] Production.ERROR: pbx CDR StartTime 2025-04-20 09:02:04 - End Time 2025-04-20 12:02:04 [2025-04-20 12:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 12:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950143', 'tblTempUsageDetail_20' ) start [2025-04-20 12:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950143', 'tblTempUsageDetail_20' ) end [2025-04-20 12:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950143', 'tblTempVendorCDR_20' ) start [2025-04-20 12:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950143', 'tblTempVendorCDR_20' ) end [2025-04-20 12:02:17] Production.INFO: ProcessCDR(1,14950143,1,1,2) [2025-04-20 12:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950143', 'tblTempUsageDetail_20' ) start [2025-04-20 12:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950143', 'tblTempUsageDetail_20' ) end [2025-04-20 12:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 12:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 12:02:21] Production.INFO: ==16415== Releasing lock... [2025-04-20 12:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 12:02:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-20 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 09:03:05 [end_date_ymd] => 2025-04-20 12:03:05 [RateCDR] => 1 ) [2025-04-20 12:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 09:03:05' and `end` < '2025-04-20 12:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 12:03:18] Production.INFO: count ==578 [2025-04-20 12:03:18] Production.ERROR: pbx CDR StartTime 2025-04-20 09:03:05 - End Time 2025-04-20 12:03:05 [2025-04-20 12:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 12:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950148', 'tblTempUsageDetail_20' ) start [2025-04-20 12:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950148', 'tblTempUsageDetail_20' ) end [2025-04-20 12:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950148', 'tblTempVendorCDR_20' ) start [2025-04-20 12:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950148', 'tblTempVendorCDR_20' ) end [2025-04-20 12:03:18] Production.INFO: ProcessCDR(1,14950148,1,1,2) [2025-04-20 12:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950148', 'tblTempUsageDetail_20' ) start [2025-04-20 12:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950148', 'tblTempUsageDetail_20' ) end [2025-04-20 12:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 12:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 12:03:23] Production.INFO: ==16488== Releasing lock... [2025-04-20 12:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 12:03:23] Production.INFO: 33 MB #Memory Used# [2025-04-20 12:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 09:04:06 [end_date_ymd] => 2025-04-20 12:04:06 [RateCDR] => 1 ) [2025-04-20 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-20 09:04:06' and `end` < '2025-04-20 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-20 12:04:18] Production.INFO: count ==581 [2025-04-20 12:04:19] Production.ERROR: pbx CDR StartTime 2025-04-20 09:04:06 - End Time 2025-04-20 12:04:06 [2025-04-20 12:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 12:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950153', 'tblTempUsageDetail_20' ) start [2025-04-20 12:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950153', 'tblTempUsageDetail_20' ) end [2025-04-20 12:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950153', 'tblTempVendorCDR_20' ) start [2025-04-20 12:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950153', 'tblTempVendorCDR_20' ) end [2025-04-20 12:04:19] Production.INFO: ProcessCDR(1,14950153,1,1,2) [2025-04-20 12:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950153', 'tblTempUsageDetail_20' ) start [2025-04-20 12:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950153', 'tblTempUsageDetail_20' ) end [2025-04-20 12:04:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 12:04:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 12:04:24] Production.INFO: ==16560== Releasing lock... [2025-04-20 12:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 12:04:24] Production.INFO: 32.75 MB #Memory Used# [2025-04-20 12:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 09:05:06 [end_date_ymd] => 2025-04-20 12:05:06 [RateCDR] => 1 ) [2025-04-20 12: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-20 09:05:06' and `end` < '2025-04-20 12: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-20 12:05:18] Production.INFO: count ==583 [2025-04-20 12:05:18] Production.ERROR: pbx CDR StartTime 2025-04-20 09:05:06 - End Time 2025-04-20 12:05:06 [2025-04-20 12:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 12:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950158', 'tblTempUsageDetail_20' ) start [2025-04-20 12:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950158', 'tblTempUsageDetail_20' ) end [2025-04-20 12:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950158', 'tblTempVendorCDR_20' ) start [2025-04-20 12:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950158', 'tblTempVendorCDR_20' ) end [2025-04-20 12:05:18] Production.INFO: ProcessCDR(1,14950158,1,1,2) [2025-04-20 12:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950158', 'tblTempUsageDetail_20' ) start [2025-04-20 12:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950158', 'tblTempUsageDetail_20' ) end [2025-04-20 12:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 12:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 12:05:23] Production.INFO: ==16637== Releasing lock... [2025-04-20 12:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 12:05:23] Production.INFO: 33 MB #Memory Used# [2025-04-20 12:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 09:06:06 [end_date_ymd] => 2025-04-20 12:06:06 [RateCDR] => 1 ) [2025-04-20 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-20 09:06:06' and `end` < '2025-04-20 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-20 12:06:19] Production.INFO: count ==608 [2025-04-20 12:06:19] Production.ERROR: pbx CDR StartTime 2025-04-20 09:06:06 - End Time 2025-04-20 12:06:06 [2025-04-20 12:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 12:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950163', 'tblTempUsageDetail_20' ) start [2025-04-20 12:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950163', 'tblTempUsageDetail_20' ) end [2025-04-20 12:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950163', 'tblTempVendorCDR_20' ) start [2025-04-20 12:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950163', 'tblTempVendorCDR_20' ) end [2025-04-20 12:06:19] Production.INFO: ProcessCDR(1,14950163,1,1,2) [2025-04-20 12:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950163', 'tblTempUsageDetail_20' ) start [2025-04-20 12:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950163', 'tblTempUsageDetail_20' ) end [2025-04-20 12:06:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 12:06:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 12:06:24] Production.INFO: ==16712== Releasing lock... [2025-04-20 12:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 12:06:24] Production.INFO: 33 MB #Memory Used# [2025-04-20 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 09:07:05 [end_date_ymd] => 2025-04-20 12:07:05 [RateCDR] => 1 ) [2025-04-20 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-20 09:07:05' and `end` < '2025-04-20 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-20 12:07:18] Production.INFO: count ==610 [2025-04-20 12:07:18] Production.ERROR: pbx CDR StartTime 2025-04-20 09:07:05 - End Time 2025-04-20 12:07:05 [2025-04-20 12:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 12:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950168', 'tblTempUsageDetail_20' ) start [2025-04-20 12:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950168', 'tblTempUsageDetail_20' ) end [2025-04-20 12:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950168', 'tblTempVendorCDR_20' ) start [2025-04-20 12:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950168', 'tblTempVendorCDR_20' ) end [2025-04-20 12:07:18] Production.INFO: ProcessCDR(1,14950168,1,1,2) [2025-04-20 12:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950168', 'tblTempUsageDetail_20' ) start [2025-04-20 12:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950168', 'tblTempUsageDetail_20' ) end [2025-04-20 12:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 12:07:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 12:07:23] Production.INFO: ==16799== Releasing lock... [2025-04-20 12:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 12:07:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-20 12:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 09:08:05 [end_date_ymd] => 2025-04-20 12:08:05 [RateCDR] => 1 ) [2025-04-20 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-20 09:08:05' and `end` < '2025-04-20 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-20 12:08:18] Production.INFO: count ==611 [2025-04-20 12:08:18] Production.ERROR: pbx CDR StartTime 2025-04-20 09:08:05 - End Time 2025-04-20 12:08:05 [2025-04-20 12:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 12:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950173', 'tblTempUsageDetail_20' ) start [2025-04-20 12:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950173', 'tblTempUsageDetail_20' ) end [2025-04-20 12:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950173', 'tblTempVendorCDR_20' ) start [2025-04-20 12:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950173', 'tblTempVendorCDR_20' ) end [2025-04-20 12:08:18] Production.INFO: ProcessCDR(1,14950173,1,1,2) [2025-04-20 12:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950173', 'tblTempUsageDetail_20' ) start [2025-04-20 12:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950173', 'tblTempUsageDetail_20' ) end [2025-04-20 12:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 12:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 12:08:22] Production.INFO: ==16876== Releasing lock... [2025-04-20 12:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 12:08:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-20 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 09:09:05 [end_date_ymd] => 2025-04-20 12:09:05 [RateCDR] => 1 ) [2025-04-20 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-20 09:09:05' and `end` < '2025-04-20 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-20 12:09:18] Production.INFO: count ==611 [2025-04-20 12:09:18] Production.ERROR: pbx CDR StartTime 2025-04-20 09:09:05 - End Time 2025-04-20 12:09:05 [2025-04-20 12:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 12:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950178', 'tblTempUsageDetail_20' ) start [2025-04-20 12:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950178', 'tblTempUsageDetail_20' ) end [2025-04-20 12:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950178', 'tblTempVendorCDR_20' ) start [2025-04-20 12:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950178', 'tblTempVendorCDR_20' ) end [2025-04-20 12:09:18] Production.INFO: ProcessCDR(1,14950178,1,1,2) [2025-04-20 12:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950178', 'tblTempUsageDetail_20' ) start [2025-04-20 12:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950178', 'tblTempUsageDetail_20' ) end [2025-04-20 12:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 12:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 12:09:22] Production.INFO: ==16949== Releasing lock... [2025-04-20 12:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 12:09:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-20 12:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 09:10:06 [end_date_ymd] => 2025-04-20 12:10:06 [RateCDR] => 1 ) [2025-04-20 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-20 09:10:06' and `end` < '2025-04-20 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-20 12:10:19] Production.INFO: count ==609 [2025-04-20 12:10:19] Production.ERROR: pbx CDR StartTime 2025-04-20 09:10:06 - End Time 2025-04-20 12:10:06 [2025-04-20 12:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 12:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950183', 'tblTempUsageDetail_20' ) start [2025-04-20 12:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950183', 'tblTempUsageDetail_20' ) end [2025-04-20 12:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950183', 'tblTempVendorCDR_20' ) start [2025-04-20 12:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950183', 'tblTempVendorCDR_20' ) end [2025-04-20 12:10:19] Production.INFO: ProcessCDR(1,14950183,1,1,2) [2025-04-20 12:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950183', 'tblTempUsageDetail_20' ) start [2025-04-20 12:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950183', 'tblTempUsageDetail_20' ) end [2025-04-20 12:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 12:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 12:10:24] Production.INFO: ==17029== Releasing lock... [2025-04-20 12:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 12:10:24] Production.INFO: 33.5 MB #Memory Used# [2025-04-20 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 09:11:05 [end_date_ymd] => 2025-04-20 12:11:05 [RateCDR] => 1 ) [2025-04-20 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-20 09:11:05' and `end` < '2025-04-20 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-20 12:11:17] Production.INFO: count ==609 [2025-04-20 12:11:17] Production.ERROR: pbx CDR StartTime 2025-04-20 09:11:05 - End Time 2025-04-20 12:11:05 [2025-04-20 12:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 12:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950189', 'tblTempUsageDetail_20' ) start [2025-04-20 12:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950189', 'tblTempUsageDetail_20' ) end [2025-04-20 12:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950189', 'tblTempVendorCDR_20' ) start [2025-04-20 12:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950189', 'tblTempVendorCDR_20' ) end [2025-04-20 12:11:17] Production.INFO: ProcessCDR(1,14950189,1,1,2) [2025-04-20 12:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950189', 'tblTempUsageDetail_20' ) start [2025-04-20 12:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950189', 'tblTempUsageDetail_20' ) end [2025-04-20 12:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 12:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 12:11:21] Production.INFO: ==17107== Releasing lock... [2025-04-20 12:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 12:11:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-20 12:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 09:12:06 [end_date_ymd] => 2025-04-20 12:12:06 [RateCDR] => 1 ) [2025-04-20 12:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 09:12:06' and `end` < '2025-04-20 12:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 12:12:18] Production.INFO: count ==606 [2025-04-20 12:12:18] Production.ERROR: pbx CDR StartTime 2025-04-20 09:12:06 - End Time 2025-04-20 12:12:06 [2025-04-20 12:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 12:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950194', 'tblTempUsageDetail_20' ) start [2025-04-20 12:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950194', 'tblTempUsageDetail_20' ) end [2025-04-20 12:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950194', 'tblTempVendorCDR_20' ) start [2025-04-20 12:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950194', 'tblTempVendorCDR_20' ) end [2025-04-20 12:12:19] Production.INFO: ProcessCDR(1,14950194,1,1,2) [2025-04-20 12:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950194', 'tblTempUsageDetail_20' ) start [2025-04-20 12:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950194', 'tblTempUsageDetail_20' ) end [2025-04-20 12:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 12:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 12:12:22] Production.INFO: ==17189== Releasing lock... [2025-04-20 12:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 12:12:22] Production.INFO: 33 MB #Memory Used# [2025-04-20 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 09:13:05 [end_date_ymd] => 2025-04-20 12:13:05 [RateCDR] => 1 ) [2025-04-20 12:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 09:13:05' and `end` < '2025-04-20 12:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 12:13:18] Production.INFO: count ==606 [2025-04-20 12:13:18] Production.ERROR: pbx CDR StartTime 2025-04-20 09:13:05 - End Time 2025-04-20 12:13:05 [2025-04-20 12:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950199', 'tblTempUsageDetail_20' ) start [2025-04-20 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950199', 'tblTempUsageDetail_20' ) end [2025-04-20 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950199', 'tblTempVendorCDR_20' ) start [2025-04-20 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950199', 'tblTempVendorCDR_20' ) end [2025-04-20 12:13:18] Production.INFO: ProcessCDR(1,14950199,1,1,2) [2025-04-20 12:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950199', 'tblTempUsageDetail_20' ) start [2025-04-20 12:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950199', 'tblTempUsageDetail_20' ) end [2025-04-20 12:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 12:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 12:13:22] Production.INFO: ==17305== Releasing lock... [2025-04-20 12:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 12:13:22] Production.INFO: 33 MB #Memory Used# [2025-04-20 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 09:14:05 [end_date_ymd] => 2025-04-20 12:14:05 [RateCDR] => 1 ) [2025-04-20 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-20 09:14:05' and `end` < '2025-04-20 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-20 12:14:18] Production.INFO: count ==606 [2025-04-20 12:14:18] Production.ERROR: pbx CDR StartTime 2025-04-20 09:14:05 - End Time 2025-04-20 12:14:05 [2025-04-20 12:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 12:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950204', 'tblTempUsageDetail_20' ) start [2025-04-20 12:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950204', 'tblTempUsageDetail_20' ) end [2025-04-20 12:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950204', 'tblTempVendorCDR_20' ) start [2025-04-20 12:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950204', 'tblTempVendorCDR_20' ) end [2025-04-20 12:14:18] Production.INFO: ProcessCDR(1,14950204,1,1,2) [2025-04-20 12:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950204', 'tblTempUsageDetail_20' ) start [2025-04-20 12:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950204', 'tblTempUsageDetail_20' ) end [2025-04-20 12:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 12:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 12:14:22] Production.INFO: ==17374== Releasing lock... [2025-04-20 12:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 12:14:22] Production.INFO: 33 MB #Memory Used# [2025-04-20 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 09:15:05 [end_date_ymd] => 2025-04-20 12:15:05 [RateCDR] => 1 ) [2025-04-20 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-20 09:15:05' and `end` < '2025-04-20 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-20 12:15:18] Production.INFO: count ==610 [2025-04-20 12:15:18] Production.ERROR: pbx CDR StartTime 2025-04-20 09:15:05 - End Time 2025-04-20 12:15:05 [2025-04-20 12:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 12:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950209', 'tblTempUsageDetail_20' ) start [2025-04-20 12:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950209', 'tblTempUsageDetail_20' ) end [2025-04-20 12:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950209', 'tblTempVendorCDR_20' ) start [2025-04-20 12:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950209', 'tblTempVendorCDR_20' ) end [2025-04-20 12:15:18] Production.INFO: ProcessCDR(1,14950209,1,1,2) [2025-04-20 12:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950209', 'tblTempUsageDetail_20' ) start [2025-04-20 12:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950209', 'tblTempUsageDetail_20' ) end [2025-04-20 12:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 12:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 12:15:22] Production.INFO: ==17455== Releasing lock... [2025-04-20 12:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 12:15:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-20 12:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 09:16:05 [end_date_ymd] => 2025-04-20 12:16:05 [RateCDR] => 1 ) [2025-04-20 12:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 09:16:05' and `end` < '2025-04-20 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-20 12:16:18] Production.INFO: count ==610 [2025-04-20 12:16:18] Production.ERROR: pbx CDR StartTime 2025-04-20 09:16:05 - End Time 2025-04-20 12:16:05 [2025-04-20 12:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 12:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950214', 'tblTempUsageDetail_20' ) start [2025-04-20 12:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950214', 'tblTempUsageDetail_20' ) end [2025-04-20 12:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950214', 'tblTempVendorCDR_20' ) start [2025-04-20 12:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950214', 'tblTempVendorCDR_20' ) end [2025-04-20 12:16:18] Production.INFO: ProcessCDR(1,14950214,1,1,2) [2025-04-20 12:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950214', 'tblTempUsageDetail_20' ) start [2025-04-20 12:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950214', 'tblTempUsageDetail_20' ) end [2025-04-20 12:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 12:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 12:16:22] Production.INFO: ==17538== Releasing lock... [2025-04-20 12:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 12:16:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-20 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 09:17:05 [end_date_ymd] => 2025-04-20 12:17:05 [RateCDR] => 1 ) [2025-04-20 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-20 09:17:05' and `end` < '2025-04-20 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-20 12:17:18] Production.INFO: count ==610 [2025-04-20 12:17:18] Production.ERROR: pbx CDR StartTime 2025-04-20 09:17:05 - End Time 2025-04-20 12:17:05 [2025-04-20 12:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 12:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950219', 'tblTempUsageDetail_20' ) start [2025-04-20 12:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950219', 'tblTempUsageDetail_20' ) end [2025-04-20 12:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950219', 'tblTempVendorCDR_20' ) start [2025-04-20 12:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950219', 'tblTempVendorCDR_20' ) end [2025-04-20 12:17:18] Production.INFO: ProcessCDR(1,14950219,1,1,2) [2025-04-20 12:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950219', 'tblTempUsageDetail_20' ) start [2025-04-20 12:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950219', 'tblTempUsageDetail_20' ) end [2025-04-20 12:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 12:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 12:17:21] Production.INFO: ==17614== Releasing lock... [2025-04-20 12:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 12:17:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-20 12:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 09:18:06 [end_date_ymd] => 2025-04-20 12:18:06 [RateCDR] => 1 ) [2025-04-20 12:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 09:18:06' and `end` < '2025-04-20 12:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 12:18:18] Production.INFO: count ==612 [2025-04-20 12:18:18] Production.ERROR: pbx CDR StartTime 2025-04-20 09:18:06 - End Time 2025-04-20 12:18:06 [2025-04-20 12:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 12:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950224', 'tblTempUsageDetail_20' ) start [2025-04-20 12:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950224', 'tblTempUsageDetail_20' ) end [2025-04-20 12:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950224', 'tblTempVendorCDR_20' ) start [2025-04-20 12:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950224', 'tblTempVendorCDR_20' ) end [2025-04-20 12:18:19] Production.INFO: ProcessCDR(1,14950224,1,1,2) [2025-04-20 12:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950224', 'tblTempUsageDetail_20' ) start [2025-04-20 12:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950224', 'tblTempUsageDetail_20' ) end [2025-04-20 12:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 12:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 12:18:22] Production.INFO: ==17694== Releasing lock... [2025-04-20 12:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 12:18:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-20 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 09:19:05 [end_date_ymd] => 2025-04-20 12:19:05 [RateCDR] => 1 ) [2025-04-20 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-20 09:19:05' and `end` < '2025-04-20 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-20 12:19:18] Production.INFO: count ==612 [2025-04-20 12:19:18] Production.ERROR: pbx CDR StartTime 2025-04-20 09:19:05 - End Time 2025-04-20 12:19:05 [2025-04-20 12:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950229', 'tblTempUsageDetail_20' ) start [2025-04-20 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950229', 'tblTempUsageDetail_20' ) end [2025-04-20 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950229', 'tblTempVendorCDR_20' ) start [2025-04-20 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950229', 'tblTempVendorCDR_20' ) end [2025-04-20 12:19:18] Production.INFO: ProcessCDR(1,14950229,1,1,2) [2025-04-20 12:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950229', 'tblTempUsageDetail_20' ) start [2025-04-20 12:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950229', 'tblTempUsageDetail_20' ) end [2025-04-20 12:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 12:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 12:19:21] Production.INFO: ==17774== Releasing lock... [2025-04-20 12:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 12:19:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-20 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 09:20:06 [end_date_ymd] => 2025-04-20 12:20:06 [RateCDR] => 1 ) [2025-04-20 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-20 09:20:06' and `end` < '2025-04-20 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-20 12:20:19] Production.INFO: count ==617 [2025-04-20 12:20:19] Production.ERROR: pbx CDR StartTime 2025-04-20 09:20:06 - End Time 2025-04-20 12:20:06 [2025-04-20 12:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 12:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950235', 'tblTempUsageDetail_20' ) start [2025-04-20 12:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950235', 'tblTempUsageDetail_20' ) end [2025-04-20 12:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950235', 'tblTempVendorCDR_20' ) start [2025-04-20 12:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950235', 'tblTempVendorCDR_20' ) end [2025-04-20 12:20:19] Production.INFO: ProcessCDR(1,14950235,1,1,2) [2025-04-20 12:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950235', 'tblTempUsageDetail_20' ) start [2025-04-20 12:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950235', 'tblTempUsageDetail_20' ) end [2025-04-20 12:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 12:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 12:20:24] Production.INFO: ==17857== Releasing lock... [2025-04-20 12:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 12:20:24] Production.INFO: 33 MB #Memory Used# [2025-04-20 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 09:21:05 [end_date_ymd] => 2025-04-20 12:21:05 [RateCDR] => 1 ) [2025-04-20 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-20 09:21:05' and `end` < '2025-04-20 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-20 12:21:18] Production.INFO: count ==630 [2025-04-20 12:21:18] Production.ERROR: pbx CDR StartTime 2025-04-20 09:21:05 - End Time 2025-04-20 12:21:05 [2025-04-20 12:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 12:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950240', 'tblTempUsageDetail_20' ) start [2025-04-20 12:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950240', 'tblTempUsageDetail_20' ) end [2025-04-20 12:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950240', 'tblTempVendorCDR_20' ) start [2025-04-20 12:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950240', 'tblTempVendorCDR_20' ) end [2025-04-20 12:21:18] Production.INFO: ProcessCDR(1,14950240,1,1,2) [2025-04-20 12:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950240', 'tblTempUsageDetail_20' ) start [2025-04-20 12:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950240', 'tblTempUsageDetail_20' ) end [2025-04-20 12:21:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 12:21:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 12:21:23] Production.INFO: ==17936== Releasing lock... [2025-04-20 12:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 12:21:23] Production.INFO: 33.25 MB #Memory Used# [2025-04-20 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 09:22:05 [end_date_ymd] => 2025-04-20 12:22:05 [RateCDR] => 1 ) [2025-04-20 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-20 09:22:05' and `end` < '2025-04-20 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-20 12:22:19] Production.INFO: count ==630 [2025-04-20 12:22:19] Production.ERROR: pbx CDR StartTime 2025-04-20 09:22:05 - End Time 2025-04-20 12:22:05 [2025-04-20 12:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 12:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950245', 'tblTempUsageDetail_20' ) start [2025-04-20 12:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950245', 'tblTempUsageDetail_20' ) end [2025-04-20 12:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950245', 'tblTempVendorCDR_20' ) start [2025-04-20 12:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950245', 'tblTempVendorCDR_20' ) end [2025-04-20 12:22:19] Production.INFO: ProcessCDR(1,14950245,1,1,2) [2025-04-20 12:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950245', 'tblTempUsageDetail_20' ) start [2025-04-20 12:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950245', 'tblTempUsageDetail_20' ) end [2025-04-20 12:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 12:22:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 12:22:24] Production.INFO: ==18039== Releasing lock... [2025-04-20 12:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 12:22:24] Production.INFO: 33.25 MB #Memory Used# [2025-04-20 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 09:23:05 [end_date_ymd] => 2025-04-20 12:23:05 [RateCDR] => 1 ) [2025-04-20 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-20 09:23:05' and `end` < '2025-04-20 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-20 12:23:18] Production.INFO: count ==629 [2025-04-20 12:23:18] Production.ERROR: pbx CDR StartTime 2025-04-20 09:23:05 - End Time 2025-04-20 12:23:05 [2025-04-20 12:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 12:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950250', 'tblTempUsageDetail_20' ) start [2025-04-20 12:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950250', 'tblTempUsageDetail_20' ) end [2025-04-20 12:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950250', 'tblTempVendorCDR_20' ) start [2025-04-20 12:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950250', 'tblTempVendorCDR_20' ) end [2025-04-20 12:23:18] Production.INFO: ProcessCDR(1,14950250,1,1,2) [2025-04-20 12:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950250', 'tblTempUsageDetail_20' ) start [2025-04-20 12:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950250', 'tblTempUsageDetail_20' ) end [2025-04-20 12:23:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 12:23:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 12:23:23] Production.INFO: ==18117== Releasing lock... [2025-04-20 12:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 12:23:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-20 12:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 09:24:05 [end_date_ymd] => 2025-04-20 12:24:05 [RateCDR] => 1 ) [2025-04-20 12:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 09:24:05' and `end` < '2025-04-20 12:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 12:24:18] Production.INFO: count ==635 [2025-04-20 12:24:18] Production.ERROR: pbx CDR StartTime 2025-04-20 09:24:05 - End Time 2025-04-20 12:24:05 [2025-04-20 12:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 12:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950255', 'tblTempUsageDetail_20' ) start [2025-04-20 12:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950255', 'tblTempUsageDetail_20' ) end [2025-04-20 12:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950255', 'tblTempVendorCDR_20' ) start [2025-04-20 12:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950255', 'tblTempVendorCDR_20' ) end [2025-04-20 12:24:18] Production.INFO: ProcessCDR(1,14950255,1,1,2) [2025-04-20 12:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950255', 'tblTempUsageDetail_20' ) start [2025-04-20 12:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950255', 'tblTempUsageDetail_20' ) end [2025-04-20 12:24:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 12:24:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 12:24:23] Production.INFO: ==18189== Releasing lock... [2025-04-20 12:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 12:24:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-20 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 09:25:05 [end_date_ymd] => 2025-04-20 12:25:05 [RateCDR] => 1 ) [2025-04-20 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-20 09:25:05' and `end` < '2025-04-20 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-20 12:25:19] Production.INFO: count ==639 [2025-04-20 12:25:19] Production.ERROR: pbx CDR StartTime 2025-04-20 09:25:05 - End Time 2025-04-20 12:25:05 [2025-04-20 12:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950260', 'tblTempUsageDetail_20' ) start [2025-04-20 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950260', 'tblTempUsageDetail_20' ) end [2025-04-20 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950260', 'tblTempVendorCDR_20' ) start [2025-04-20 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950260', 'tblTempVendorCDR_20' ) end [2025-04-20 12:25:19] Production.INFO: ProcessCDR(1,14950260,1,1,2) [2025-04-20 12:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950260', 'tblTempUsageDetail_20' ) start [2025-04-20 12:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950260', 'tblTempUsageDetail_20' ) end [2025-04-20 12:25:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 12:25:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 12:25:24] Production.INFO: ==18269== Releasing lock... [2025-04-20 12:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 12:25:24] Production.INFO: 33.25 MB #Memory Used# [2025-04-20 12:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 09:26:06 [end_date_ymd] => 2025-04-20 12:26:06 [RateCDR] => 1 ) [2025-04-20 12: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-20 09:26:06' and `end` < '2025-04-20 12: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-20 12:26:18] Production.INFO: count ==640 [2025-04-20 12:26:18] Production.ERROR: pbx CDR StartTime 2025-04-20 09:26:06 - End Time 2025-04-20 12:26:06 [2025-04-20 12:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 12:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950265', 'tblTempUsageDetail_20' ) start [2025-04-20 12:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950265', 'tblTempUsageDetail_20' ) end [2025-04-20 12:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950265', 'tblTempVendorCDR_20' ) start [2025-04-20 12:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950265', 'tblTempVendorCDR_20' ) end [2025-04-20 12:26:18] Production.INFO: ProcessCDR(1,14950265,1,1,2) [2025-04-20 12:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950265', 'tblTempUsageDetail_20' ) start [2025-04-20 12:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950265', 'tblTempUsageDetail_20' ) end [2025-04-20 12:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 12:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 12:26:22] Production.INFO: ==18343== Releasing lock... [2025-04-20 12:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 12:26:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-20 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 09:27:05 [end_date_ymd] => 2025-04-20 12:27:05 [RateCDR] => 1 ) [2025-04-20 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-20 09:27:05' and `end` < '2025-04-20 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-20 12:27:18] Production.INFO: count ==640 [2025-04-20 12:27:18] Production.ERROR: pbx CDR StartTime 2025-04-20 09:27:05 - End Time 2025-04-20 12:27:05 [2025-04-20 12:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 12:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950270', 'tblTempUsageDetail_20' ) start [2025-04-20 12:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950270', 'tblTempUsageDetail_20' ) end [2025-04-20 12:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950270', 'tblTempVendorCDR_20' ) start [2025-04-20 12:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950270', 'tblTempVendorCDR_20' ) end [2025-04-20 12:27:18] Production.INFO: ProcessCDR(1,14950270,1,1,2) [2025-04-20 12:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950270', 'tblTempUsageDetail_20' ) start [2025-04-20 12:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950270', 'tblTempUsageDetail_20' ) end [2025-04-20 12:27:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 12:27:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 12:27:23] Production.INFO: ==18419== Releasing lock... [2025-04-20 12:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 12:27:23] Production.INFO: 33.25 MB #Memory Used# [2025-04-20 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 09:28:05 [end_date_ymd] => 2025-04-20 12:28:05 [RateCDR] => 1 ) [2025-04-20 12:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 09:28:05' and `end` < '2025-04-20 12:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 12:28:18] Production.INFO: count ==644 [2025-04-20 12:28:18] Production.ERROR: pbx CDR StartTime 2025-04-20 09:28:05 - End Time 2025-04-20 12:28:05 [2025-04-20 12:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 12:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950275', 'tblTempUsageDetail_20' ) start [2025-04-20 12:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950275', 'tblTempUsageDetail_20' ) end [2025-04-20 12:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950275', 'tblTempVendorCDR_20' ) start [2025-04-20 12:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950275', 'tblTempVendorCDR_20' ) end [2025-04-20 12:28:18] Production.INFO: ProcessCDR(1,14950275,1,1,2) [2025-04-20 12:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950275', 'tblTempUsageDetail_20' ) start [2025-04-20 12:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950275', 'tblTempUsageDetail_20' ) end [2025-04-20 12:28:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 12:28:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 12:28:23] Production.INFO: ==18493== Releasing lock... [2025-04-20 12:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 12:28:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-20 12:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 09:29:04 [end_date_ymd] => 2025-04-20 12:29:04 [RateCDR] => 1 ) [2025-04-20 12:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 09:29:04' and `end` < '2025-04-20 12:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 12:29:17] Production.INFO: count ==643 [2025-04-20 12:29:17] Production.ERROR: pbx CDR StartTime 2025-04-20 09:29:04 - End Time 2025-04-20 12:29:04 [2025-04-20 12:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 12:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950280', 'tblTempUsageDetail_20' ) start [2025-04-20 12:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950280', 'tblTempUsageDetail_20' ) end [2025-04-20 12:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950280', 'tblTempVendorCDR_20' ) start [2025-04-20 12:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950280', 'tblTempVendorCDR_20' ) end [2025-04-20 12:29:17] Production.INFO: ProcessCDR(1,14950280,1,1,2) [2025-04-20 12:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950280', 'tblTempUsageDetail_20' ) start [2025-04-20 12:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950280', 'tblTempUsageDetail_20' ) end [2025-04-20 12:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 12:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 12:29:22] Production.INFO: ==18610== Releasing lock... [2025-04-20 12:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 12:29:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-20 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 09:30:06 [end_date_ymd] => 2025-04-20 12:30:06 [RateCDR] => 1 ) [2025-04-20 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-20 09:30:06' and `end` < '2025-04-20 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-20 12:30:19] Production.INFO: count ==646 [2025-04-20 12:30:19] Production.ERROR: pbx CDR StartTime 2025-04-20 09:30:06 - End Time 2025-04-20 12:30:06 [2025-04-20 12:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950286', 'tblTempUsageDetail_20' ) start [2025-04-20 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950286', 'tblTempUsageDetail_20' ) end [2025-04-20 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950286', 'tblTempVendorCDR_20' ) start [2025-04-20 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950286', 'tblTempVendorCDR_20' ) end [2025-04-20 12:30:19] Production.INFO: ProcessCDR(1,14950286,1,1,2) [2025-04-20 12:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950286', 'tblTempUsageDetail_20' ) start [2025-04-20 12:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950286', 'tblTempUsageDetail_20' ) end [2025-04-20 12:30:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 12:30:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 12:30:24] Production.INFO: ==18686== Releasing lock... [2025-04-20 12:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 12:30:24] Production.INFO: 33.5 MB #Memory Used# [2025-04-20 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 09:31:05 [end_date_ymd] => 2025-04-20 12:31:05 [RateCDR] => 1 ) [2025-04-20 12: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-20 09:31:05' and `end` < '2025-04-20 12:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 12:31:17] Production.INFO: count ==667 [2025-04-20 12:31:17] Production.ERROR: pbx CDR StartTime 2025-04-20 09:31:05 - End Time 2025-04-20 12:31:05 [2025-04-20 12:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 12:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950291', 'tblTempUsageDetail_20' ) start [2025-04-20 12:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950291', 'tblTempUsageDetail_20' ) end [2025-04-20 12:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950291', 'tblTempVendorCDR_20' ) start [2025-04-20 12:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950291', 'tblTempVendorCDR_20' ) end [2025-04-20 12:31:17] Production.INFO: ProcessCDR(1,14950291,1,1,2) [2025-04-20 12:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950291', 'tblTempUsageDetail_20' ) start [2025-04-20 12:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950291', 'tblTempUsageDetail_20' ) end [2025-04-20 12:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 12:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 12:31:22] Production.INFO: ==18767== Releasing lock... [2025-04-20 12:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 12:31:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-20 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 09:32:05 [end_date_ymd] => 2025-04-20 12:32:05 [RateCDR] => 1 ) [2025-04-20 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-20 09:32:05' and `end` < '2025-04-20 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-20 12:32:18] Production.INFO: count ==669 [2025-04-20 12:32:18] Production.ERROR: pbx CDR StartTime 2025-04-20 09:32:05 - End Time 2025-04-20 12:32:05 [2025-04-20 12:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 12:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950296', 'tblTempUsageDetail_20' ) start [2025-04-20 12:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950296', 'tblTempUsageDetail_20' ) end [2025-04-20 12:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950296', 'tblTempVendorCDR_20' ) start [2025-04-20 12:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950296', 'tblTempVendorCDR_20' ) end [2025-04-20 12:32:18] Production.INFO: ProcessCDR(1,14950296,1,1,2) [2025-04-20 12:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950296', 'tblTempUsageDetail_20' ) start [2025-04-20 12:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950296', 'tblTempUsageDetail_20' ) end [2025-04-20 12:32:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 12:32:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 12:32:23] Production.INFO: ==18845== Releasing lock... [2025-04-20 12:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 12:32:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-20 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 09:33:05 [end_date_ymd] => 2025-04-20 12:33:05 [RateCDR] => 1 ) [2025-04-20 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-20 09:33:05' and `end` < '2025-04-20 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-20 12:33:17] Production.INFO: count ==669 [2025-04-20 12:33:18] Production.ERROR: pbx CDR StartTime 2025-04-20 09:33:05 - End Time 2025-04-20 12:33:05 [2025-04-20 12:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 12:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950301', 'tblTempUsageDetail_20' ) start [2025-04-20 12:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950301', 'tblTempUsageDetail_20' ) end [2025-04-20 12:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950301', 'tblTempVendorCDR_20' ) start [2025-04-20 12:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950301', 'tblTempVendorCDR_20' ) end [2025-04-20 12:33:18] Production.INFO: ProcessCDR(1,14950301,1,1,2) [2025-04-20 12:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950301', 'tblTempUsageDetail_20' ) start [2025-04-20 12:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950301', 'tblTempUsageDetail_20' ) end [2025-04-20 12:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 12:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 12:33:23] Production.INFO: ==18919== Releasing lock... [2025-04-20 12:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 12:33:23] Production.INFO: 34 MB #Memory Used# [2025-04-20 12:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 09:34:05 [end_date_ymd] => 2025-04-20 12:34:05 [RateCDR] => 1 ) [2025-04-20 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-20 09:34:05' and `end` < '2025-04-20 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-20 12:34:18] Production.INFO: count ==670 [2025-04-20 12:34:18] Production.ERROR: pbx CDR StartTime 2025-04-20 09:34:05 - End Time 2025-04-20 12:34:05 [2025-04-20 12:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 12:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950306', 'tblTempUsageDetail_20' ) start [2025-04-20 12:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950306', 'tblTempUsageDetail_20' ) end [2025-04-20 12:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950306', 'tblTempVendorCDR_20' ) start [2025-04-20 12:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950306', 'tblTempVendorCDR_20' ) end [2025-04-20 12:34:18] Production.INFO: ProcessCDR(1,14950306,1,1,2) [2025-04-20 12:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950306', 'tblTempUsageDetail_20' ) start [2025-04-20 12:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950306', 'tblTempUsageDetail_20' ) end [2025-04-20 12:34:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 12:34:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 12:34:23] Production.INFO: ==18998== Releasing lock... [2025-04-20 12:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 12:34:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-20 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 09:35:05 [end_date_ymd] => 2025-04-20 12:35:05 [RateCDR] => 1 ) [2025-04-20 12:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 09:35:05' and `end` < '2025-04-20 12:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 12:35:18] Production.INFO: count ==672 [2025-04-20 12:35:18] Production.ERROR: pbx CDR StartTime 2025-04-20 09:35:05 - End Time 2025-04-20 12:35:05 [2025-04-20 12:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 12:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950311', 'tblTempUsageDetail_20' ) start [2025-04-20 12:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950311', 'tblTempUsageDetail_20' ) end [2025-04-20 12:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950311', 'tblTempVendorCDR_20' ) start [2025-04-20 12:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950311', 'tblTempVendorCDR_20' ) end [2025-04-20 12:35:18] Production.INFO: ProcessCDR(1,14950311,1,1,2) [2025-04-20 12:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950311', 'tblTempUsageDetail_20' ) start [2025-04-20 12:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950311', 'tblTempUsageDetail_20' ) end [2025-04-20 12:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 12:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 12:35:23] Production.INFO: ==19074== Releasing lock... [2025-04-20 12:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 12:35:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-20 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 09:36:05 [end_date_ymd] => 2025-04-20 12:36:05 [RateCDR] => 1 ) [2025-04-20 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-20 09:36:05' and `end` < '2025-04-20 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-20 12:36:18] Production.INFO: count ==672 [2025-04-20 12:36:18] Production.ERROR: pbx CDR StartTime 2025-04-20 09:36:05 - End Time 2025-04-20 12:36:05 [2025-04-20 12:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 12:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950316', 'tblTempUsageDetail_20' ) start [2025-04-20 12:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950316', 'tblTempUsageDetail_20' ) end [2025-04-20 12:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950316', 'tblTempVendorCDR_20' ) start [2025-04-20 12:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950316', 'tblTempVendorCDR_20' ) end [2025-04-20 12:36:18] Production.INFO: ProcessCDR(1,14950316,1,1,2) [2025-04-20 12:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950316', 'tblTempUsageDetail_20' ) start [2025-04-20 12:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950316', 'tblTempUsageDetail_20' ) end [2025-04-20 12:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 12:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 12:36:21] Production.INFO: ==19148== Releasing lock... [2025-04-20 12:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 12:36:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-20 12:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 09:37:04 [end_date_ymd] => 2025-04-20 12:37:04 [RateCDR] => 1 ) [2025-04-20 12: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-20 09:37:04' and `end` < '2025-04-20 12: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-20 12:37:17] Production.INFO: count ==672 [2025-04-20 12:37:17] Production.ERROR: pbx CDR StartTime 2025-04-20 09:37:04 - End Time 2025-04-20 12:37:04 [2025-04-20 12:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 12:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950321', 'tblTempUsageDetail_20' ) start [2025-04-20 12:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950321', 'tblTempUsageDetail_20' ) end [2025-04-20 12:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950321', 'tblTempVendorCDR_20' ) start [2025-04-20 12:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950321', 'tblTempVendorCDR_20' ) end [2025-04-20 12:37:17] Production.INFO: ProcessCDR(1,14950321,1,1,2) [2025-04-20 12:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950321', 'tblTempUsageDetail_20' ) start [2025-04-20 12:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950321', 'tblTempUsageDetail_20' ) end [2025-04-20 12:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 12:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 12:37:21] Production.INFO: ==19222== Releasing lock... [2025-04-20 12:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 12:37:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-20 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 09:38:05 [end_date_ymd] => 2025-04-20 12:38:05 [RateCDR] => 1 ) [2025-04-20 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-20 09:38:05' and `end` < '2025-04-20 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-20 12:38:18] Production.INFO: count ==672 [2025-04-20 12:38:18] Production.ERROR: pbx CDR StartTime 2025-04-20 09:38:05 - End Time 2025-04-20 12:38:05 [2025-04-20 12:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 12:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950326', 'tblTempUsageDetail_20' ) start [2025-04-20 12:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950326', 'tblTempUsageDetail_20' ) end [2025-04-20 12:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950326', 'tblTempVendorCDR_20' ) start [2025-04-20 12:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950326', 'tblTempVendorCDR_20' ) end [2025-04-20 12:38:18] Production.INFO: ProcessCDR(1,14950326,1,1,2) [2025-04-20 12:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950326', 'tblTempUsageDetail_20' ) start [2025-04-20 12:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950326', 'tblTempUsageDetail_20' ) end [2025-04-20 12:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 12:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 12:38:21] Production.INFO: ==19302== Releasing lock... [2025-04-20 12:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 12:38:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-20 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 09:39:05 [end_date_ymd] => 2025-04-20 12:39:05 [RateCDR] => 1 ) [2025-04-20 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-20 09:39:05' and `end` < '2025-04-20 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-20 12:39:18] Production.INFO: count ==671 [2025-04-20 12:39:18] Production.ERROR: pbx CDR StartTime 2025-04-20 09:39:05 - End Time 2025-04-20 12:39:05 [2025-04-20 12:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 12:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950331', 'tblTempUsageDetail_20' ) start [2025-04-20 12:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950331', 'tblTempUsageDetail_20' ) end [2025-04-20 12:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950331', 'tblTempVendorCDR_20' ) start [2025-04-20 12:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950331', 'tblTempVendorCDR_20' ) end [2025-04-20 12:39:18] Production.INFO: ProcessCDR(1,14950331,1,1,2) [2025-04-20 12:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950331', 'tblTempUsageDetail_20' ) start [2025-04-20 12:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950331', 'tblTempUsageDetail_20' ) end [2025-04-20 12:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 12:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 12:39:22] Production.INFO: ==19379== Releasing lock... [2025-04-20 12:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 12:39:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-20 12:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 09:40:05 [end_date_ymd] => 2025-04-20 12:40:05 [RateCDR] => 1 ) [2025-04-20 12:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 09:40:05' and `end` < '2025-04-20 12:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 12:40:18] Production.INFO: count ==678 [2025-04-20 12:40:18] Production.ERROR: pbx CDR StartTime 2025-04-20 09:40:05 - End Time 2025-04-20 12:40:05 [2025-04-20 12:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 12:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950337', 'tblTempUsageDetail_20' ) start [2025-04-20 12:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950337', 'tblTempUsageDetail_20' ) end [2025-04-20 12:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950337', 'tblTempVendorCDR_20' ) start [2025-04-20 12:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950337', 'tblTempVendorCDR_20' ) end [2025-04-20 12:40:18] Production.INFO: ProcessCDR(1,14950337,1,1,2) [2025-04-20 12:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950337', 'tblTempUsageDetail_20' ) start [2025-04-20 12:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950337', 'tblTempUsageDetail_20' ) end [2025-04-20 12:40:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 12:40:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 12:40:21] Production.INFO: ==19458== Releasing lock... [2025-04-20 12:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 12:40:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-20 12:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 09:41:06 [end_date_ymd] => 2025-04-20 12:41:06 [RateCDR] => 1 ) [2025-04-20 12:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 09:41:06' and `end` < '2025-04-20 12:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 12:41:19] Production.INFO: count ==691 [2025-04-20 12:41:19] Production.ERROR: pbx CDR StartTime 2025-04-20 09:41:06 - End Time 2025-04-20 12:41:06 [2025-04-20 12:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 12:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950342', 'tblTempUsageDetail_20' ) start [2025-04-20 12:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950342', 'tblTempUsageDetail_20' ) end [2025-04-20 12:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950342', 'tblTempVendorCDR_20' ) start [2025-04-20 12:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950342', 'tblTempVendorCDR_20' ) end [2025-04-20 12:41:19] Production.INFO: ProcessCDR(1,14950342,1,1,2) [2025-04-20 12:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950342', 'tblTempUsageDetail_20' ) start [2025-04-20 12:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950342', 'tblTempUsageDetail_20' ) end [2025-04-20 12:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 12:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 12:41:22] Production.INFO: ==19533== Releasing lock... [2025-04-20 12:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 12:41:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-20 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 09:42:05 [end_date_ymd] => 2025-04-20 12:42:05 [RateCDR] => 1 ) [2025-04-20 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-20 09:42:05' and `end` < '2025-04-20 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-20 12:42:18] Production.INFO: count ==690 [2025-04-20 12:42:18] Production.ERROR: pbx CDR StartTime 2025-04-20 09:42:05 - End Time 2025-04-20 12:42:05 [2025-04-20 12:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 12:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950347', 'tblTempUsageDetail_20' ) start [2025-04-20 12:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950347', 'tblTempUsageDetail_20' ) end [2025-04-20 12:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950347', 'tblTempVendorCDR_20' ) start [2025-04-20 12:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950347', 'tblTempVendorCDR_20' ) end [2025-04-20 12:42:18] Production.INFO: ProcessCDR(1,14950347,1,1,2) [2025-04-20 12:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950347', 'tblTempUsageDetail_20' ) start [2025-04-20 12:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950347', 'tblTempUsageDetail_20' ) end [2025-04-20 12:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 12:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 12:42:21] Production.INFO: ==19607== Releasing lock... [2025-04-20 12:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 12:42:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-20 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 09:43:05 [end_date_ymd] => 2025-04-20 12:43:05 [RateCDR] => 1 ) [2025-04-20 12:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 09:43:05' and `end` < '2025-04-20 12:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 12:43:18] Production.INFO: count ==691 [2025-04-20 12:43:18] Production.ERROR: pbx CDR StartTime 2025-04-20 09:43:05 - End Time 2025-04-20 12:43:05 [2025-04-20 12:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 12:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950352', 'tblTempUsageDetail_20' ) start [2025-04-20 12:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950352', 'tblTempUsageDetail_20' ) end [2025-04-20 12:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950352', 'tblTempVendorCDR_20' ) start [2025-04-20 12:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950352', 'tblTempVendorCDR_20' ) end [2025-04-20 12:43:18] Production.INFO: ProcessCDR(1,14950352,1,1,2) [2025-04-20 12:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950352', 'tblTempUsageDetail_20' ) start [2025-04-20 12:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950352', 'tblTempUsageDetail_20' ) end [2025-04-20 12:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 12:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 12:43:21] Production.INFO: ==19680== Releasing lock... [2025-04-20 12:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 12:43:21] Production.INFO: 34 MB #Memory Used# [2025-04-20 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 09:44:05 [end_date_ymd] => 2025-04-20 12:44:05 [RateCDR] => 1 ) [2025-04-20 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-20 09:44:05' and `end` < '2025-04-20 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-20 12:44:18] Production.INFO: count ==698 [2025-04-20 12:44:18] Production.ERROR: pbx CDR StartTime 2025-04-20 09:44:05 - End Time 2025-04-20 12:44:05 [2025-04-20 12:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 12:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950357', 'tblTempUsageDetail_20' ) start [2025-04-20 12:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950357', 'tblTempUsageDetail_20' ) end [2025-04-20 12:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950357', 'tblTempVendorCDR_20' ) start [2025-04-20 12:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950357', 'tblTempVendorCDR_20' ) end [2025-04-20 12:44:18] Production.INFO: ProcessCDR(1,14950357,1,1,2) [2025-04-20 12:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950357', 'tblTempUsageDetail_20' ) start [2025-04-20 12:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950357', 'tblTempUsageDetail_20' ) end [2025-04-20 12:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 12:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 12:44:23] Production.INFO: ==19795== Releasing lock... [2025-04-20 12:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 12:44:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-20 12:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 09:45:06 [end_date_ymd] => 2025-04-20 12:45:06 [RateCDR] => 1 ) [2025-04-20 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-20 09:45:06' and `end` < '2025-04-20 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-20 12:45:18] Production.INFO: count ==704 [2025-04-20 12:45:19] Production.ERROR: pbx CDR StartTime 2025-04-20 09:45:06 - End Time 2025-04-20 12:45:06 [2025-04-20 12:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 12:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950362', 'tblTempUsageDetail_20' ) start [2025-04-20 12:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950362', 'tblTempUsageDetail_20' ) end [2025-04-20 12:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950362', 'tblTempVendorCDR_20' ) start [2025-04-20 12:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950362', 'tblTempVendorCDR_20' ) end [2025-04-20 12:45:19] Production.INFO: ProcessCDR(1,14950362,1,1,2) [2025-04-20 12:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950362', 'tblTempUsageDetail_20' ) start [2025-04-20 12:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950362', 'tblTempUsageDetail_20' ) end [2025-04-20 12:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 12:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 12:45:22] Production.INFO: ==19869== Releasing lock... [2025-04-20 12:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 12:45:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-20 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 09:46:05 [end_date_ymd] => 2025-04-20 12:46:05 [RateCDR] => 1 ) [2025-04-20 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-20 09:46:05' and `end` < '2025-04-20 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-20 12:46:18] Production.INFO: count ==707 [2025-04-20 12:46:18] Production.ERROR: pbx CDR StartTime 2025-04-20 09:46:05 - End Time 2025-04-20 12:46:05 [2025-04-20 12:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 12:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950367', 'tblTempUsageDetail_20' ) start [2025-04-20 12:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950367', 'tblTempUsageDetail_20' ) end [2025-04-20 12:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950367', 'tblTempVendorCDR_20' ) start [2025-04-20 12:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950367', 'tblTempVendorCDR_20' ) end [2025-04-20 12:46:18] Production.INFO: ProcessCDR(1,14950367,1,1,2) [2025-04-20 12:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950367', 'tblTempUsageDetail_20' ) start [2025-04-20 12:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950367', 'tblTempUsageDetail_20' ) end [2025-04-20 12:46:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 12:46:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 12:46:23] Production.INFO: ==19940== Releasing lock... [2025-04-20 12:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 12:46:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-20 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 09:47:05 [end_date_ymd] => 2025-04-20 12:47:05 [RateCDR] => 1 ) [2025-04-20 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-20 09:47:05' and `end` < '2025-04-20 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-20 12:47:18] Production.INFO: count ==708 [2025-04-20 12:47:18] Production.ERROR: pbx CDR StartTime 2025-04-20 09:47:05 - End Time 2025-04-20 12:47:05 [2025-04-20 12:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 12:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950372', 'tblTempUsageDetail_20' ) start [2025-04-20 12:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950372', 'tblTempUsageDetail_20' ) end [2025-04-20 12:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950372', 'tblTempVendorCDR_20' ) start [2025-04-20 12:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950372', 'tblTempVendorCDR_20' ) end [2025-04-20 12:47:18] Production.INFO: ProcessCDR(1,14950372,1,1,2) [2025-04-20 12:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950372', 'tblTempUsageDetail_20' ) start [2025-04-20 12:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950372', 'tblTempUsageDetail_20' ) end [2025-04-20 12:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 12:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 12:47:22] Production.INFO: ==20020== Releasing lock... [2025-04-20 12:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 12:47:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-20 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 09:48:05 [end_date_ymd] => 2025-04-20 12:48:05 [RateCDR] => 1 ) [2025-04-20 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-20 09:48:05' and `end` < '2025-04-20 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-20 12:48:18] Production.INFO: count ==709 [2025-04-20 12:48:18] Production.ERROR: pbx CDR StartTime 2025-04-20 09:48:05 - End Time 2025-04-20 12:48:05 [2025-04-20 12:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 12:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950377', 'tblTempUsageDetail_20' ) start [2025-04-20 12:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950377', 'tblTempUsageDetail_20' ) end [2025-04-20 12:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950377', 'tblTempVendorCDR_20' ) start [2025-04-20 12:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950377', 'tblTempVendorCDR_20' ) end [2025-04-20 12:48:18] Production.INFO: ProcessCDR(1,14950377,1,1,2) [2025-04-20 12:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950377', 'tblTempUsageDetail_20' ) start [2025-04-20 12:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950377', 'tblTempUsageDetail_20' ) end [2025-04-20 12:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 12:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 12:48:22] Production.INFO: ==20100== Releasing lock... [2025-04-20 12:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 12:48:22] Production.INFO: 34 MB #Memory Used# [2025-04-20 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 09:49:05 [end_date_ymd] => 2025-04-20 12:49:05 [RateCDR] => 1 ) [2025-04-20 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-20 09:49:05' and `end` < '2025-04-20 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-20 12:49:18] Production.INFO: count ==709 [2025-04-20 12:49:18] Production.ERROR: pbx CDR StartTime 2025-04-20 09:49:05 - End Time 2025-04-20 12:49:05 [2025-04-20 12:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 12:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950382', 'tblTempUsageDetail_20' ) start [2025-04-20 12:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950382', 'tblTempUsageDetail_20' ) end [2025-04-20 12:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950382', 'tblTempVendorCDR_20' ) start [2025-04-20 12:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950382', 'tblTempVendorCDR_20' ) end [2025-04-20 12:49:18] Production.INFO: ProcessCDR(1,14950382,1,1,2) [2025-04-20 12:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950382', 'tblTempUsageDetail_20' ) start [2025-04-20 12:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950382', 'tblTempUsageDetail_20' ) end [2025-04-20 12:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 12:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 12:49:22] Production.INFO: ==20182== Releasing lock... [2025-04-20 12:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 12:49:22] Production.INFO: 34 MB #Memory Used# [2025-04-20 12:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 09:50:05 [end_date_ymd] => 2025-04-20 12:50:05 [RateCDR] => 1 ) [2025-04-20 12: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-20 09:50:05' and `end` < '2025-04-20 12: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-20 12:50:18] Production.INFO: count ==721 [2025-04-20 12:50:18] Production.ERROR: pbx CDR StartTime 2025-04-20 09:50:05 - End Time 2025-04-20 12:50:05 [2025-04-20 12:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 12:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950387', 'tblTempUsageDetail_20' ) start [2025-04-20 12:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950387', 'tblTempUsageDetail_20' ) end [2025-04-20 12:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950387', 'tblTempVendorCDR_20' ) start [2025-04-20 12:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950387', 'tblTempVendorCDR_20' ) end [2025-04-20 12:50:18] Production.INFO: ProcessCDR(1,14950387,1,1,2) [2025-04-20 12:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950387', 'tblTempUsageDetail_20' ) start [2025-04-20 12:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950387', 'tblTempUsageDetail_20' ) end [2025-04-20 12:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 12:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 12:50:23] Production.INFO: ==20261== Releasing lock... [2025-04-20 12:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 12:50:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-20 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 09:51:05 [end_date_ymd] => 2025-04-20 12:51:05 [RateCDR] => 1 ) [2025-04-20 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-20 09:51:05' and `end` < '2025-04-20 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-20 12:51:18] Production.INFO: count ==761 [2025-04-20 12:51:19] Production.ERROR: pbx CDR StartTime 2025-04-20 09:51:05 - End Time 2025-04-20 12:51:05 [2025-04-20 12:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 12:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950393', 'tblTempUsageDetail_20' ) start [2025-04-20 12:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950393', 'tblTempUsageDetail_20' ) end [2025-04-20 12:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950393', 'tblTempVendorCDR_20' ) start [2025-04-20 12:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950393', 'tblTempVendorCDR_20' ) end [2025-04-20 12:51:19] Production.INFO: ProcessCDR(1,14950393,1,1,2) [2025-04-20 12:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950393', 'tblTempUsageDetail_20' ) start [2025-04-20 12:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950393', 'tblTempUsageDetail_20' ) end [2025-04-20 12:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 12:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 12:51:22] Production.INFO: ==20337== Releasing lock... [2025-04-20 12:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 12:51:22] Production.INFO: 34 MB #Memory Used# [2025-04-20 12:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 09:52:06 [end_date_ymd] => 2025-04-20 12:52:06 [RateCDR] => 1 ) [2025-04-20 12: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-20 09:52:06' and `end` < '2025-04-20 12: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-20 12:52:18] Production.INFO: count ==765 [2025-04-20 12:52:18] Production.ERROR: pbx CDR StartTime 2025-04-20 09:52:06 - End Time 2025-04-20 12:52:06 [2025-04-20 12:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 12:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950398', 'tblTempUsageDetail_20' ) start [2025-04-20 12:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950398', 'tblTempUsageDetail_20' ) end [2025-04-20 12:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950398', 'tblTempVendorCDR_20' ) start [2025-04-20 12:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950398', 'tblTempVendorCDR_20' ) end [2025-04-20 12:52:18] Production.INFO: ProcessCDR(1,14950398,1,1,2) [2025-04-20 12:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950398', 'tblTempUsageDetail_20' ) start [2025-04-20 12:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950398', 'tblTempUsageDetail_20' ) end [2025-04-20 12:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 12:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 12:52:23] Production.INFO: ==20412== Releasing lock... [2025-04-20 12:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 12:52:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-20 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 09:53:05 [end_date_ymd] => 2025-04-20 12:53:05 [RateCDR] => 1 ) [2025-04-20 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-20 09:53:05' and `end` < '2025-04-20 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-20 12:53:19] Production.INFO: count ==766 [2025-04-20 12:53:19] Production.ERROR: pbx CDR StartTime 2025-04-20 09:53:05 - End Time 2025-04-20 12:53:05 [2025-04-20 12:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 12:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950403', 'tblTempUsageDetail_20' ) start [2025-04-20 12:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950403', 'tblTempUsageDetail_20' ) end [2025-04-20 12:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950403', 'tblTempVendorCDR_20' ) start [2025-04-20 12:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950403', 'tblTempVendorCDR_20' ) end [2025-04-20 12:53:19] Production.INFO: ProcessCDR(1,14950403,1,1,2) [2025-04-20 12:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950403', 'tblTempUsageDetail_20' ) start [2025-04-20 12:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950403', 'tblTempUsageDetail_20' ) end [2025-04-20 12:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 12:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 12:53:22] Production.INFO: ==20491== Releasing lock... [2025-04-20 12:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 12:53:22] Production.INFO: 34 MB #Memory Used# [2025-04-20 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 09:54:05 [end_date_ymd] => 2025-04-20 12:54:05 [RateCDR] => 1 ) [2025-04-20 12:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 09:54:05' and `end` < '2025-04-20 12:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 12:54:19] Production.INFO: count ==766 [2025-04-20 12:54:19] Production.ERROR: pbx CDR StartTime 2025-04-20 09:54:05 - End Time 2025-04-20 12:54:05 [2025-04-20 12:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 12:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950408', 'tblTempUsageDetail_20' ) start [2025-04-20 12:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950408', 'tblTempUsageDetail_20' ) end [2025-04-20 12:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950408', 'tblTempVendorCDR_20' ) start [2025-04-20 12:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950408', 'tblTempVendorCDR_20' ) end [2025-04-20 12:54:19] Production.INFO: ProcessCDR(1,14950408,1,1,2) [2025-04-20 12:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950408', 'tblTempUsageDetail_20' ) start [2025-04-20 12:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950408', 'tblTempUsageDetail_20' ) end [2025-04-20 12:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 12:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 12:54:22] Production.INFO: ==20564== Releasing lock... [2025-04-20 12:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 12:54:22] Production.INFO: 34 MB #Memory Used# [2025-04-20 12:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 09:55:06 [end_date_ymd] => 2025-04-20 12:55:06 [RateCDR] => 1 ) [2025-04-20 12:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 09:55:06' and `end` < '2025-04-20 12:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 12:55:18] Production.INFO: count ==767 [2025-04-20 12:55:18] Production.ERROR: pbx CDR StartTime 2025-04-20 09:55:06 - End Time 2025-04-20 12:55:06 [2025-04-20 12:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 12:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950413', 'tblTempUsageDetail_20' ) start [2025-04-20 12:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950413', 'tblTempUsageDetail_20' ) end [2025-04-20 12:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950413', 'tblTempVendorCDR_20' ) start [2025-04-20 12:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950413', 'tblTempVendorCDR_20' ) end [2025-04-20 12:55:18] Production.INFO: ProcessCDR(1,14950413,1,1,2) [2025-04-20 12:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950413', 'tblTempUsageDetail_20' ) start [2025-04-20 12:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950413', 'tblTempUsageDetail_20' ) end [2025-04-20 12:55:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 12:55:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 12:55:24] Production.INFO: ==20633== Releasing lock... [2025-04-20 12:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 12:55:24] Production.INFO: 34 MB #Memory Used# [2025-04-20 12:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 09:56:05 [end_date_ymd] => 2025-04-20 12:56:05 [RateCDR] => 1 ) [2025-04-20 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-20 09:56:05' and `end` < '2025-04-20 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-20 12:56:18] Production.INFO: count ==767 [2025-04-20 12:56:18] Production.ERROR: pbx CDR StartTime 2025-04-20 09:56:05 - End Time 2025-04-20 12:56:05 [2025-04-20 12:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 12:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950418', 'tblTempUsageDetail_20' ) start [2025-04-20 12:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950418', 'tblTempUsageDetail_20' ) end [2025-04-20 12:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950418', 'tblTempVendorCDR_20' ) start [2025-04-20 12:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950418', 'tblTempVendorCDR_20' ) end [2025-04-20 12:56:18] Production.INFO: ProcessCDR(1,14950418,1,1,2) [2025-04-20 12:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950418', 'tblTempUsageDetail_20' ) start [2025-04-20 12:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950418', 'tblTempUsageDetail_20' ) end [2025-04-20 12:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 12:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 12:56:22] Production.INFO: ==20709== Releasing lock... [2025-04-20 12:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 12:56:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-20 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 09:57:05 [end_date_ymd] => 2025-04-20 12:57:05 [RateCDR] => 1 ) [2025-04-20 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-20 09:57:05' and `end` < '2025-04-20 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-20 12:57:18] Production.INFO: count ==778 [2025-04-20 12:57:18] Production.ERROR: pbx CDR StartTime 2025-04-20 09:57:05 - End Time 2025-04-20 12:57:05 [2025-04-20 12:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 12:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950423', 'tblTempUsageDetail_20' ) start [2025-04-20 12:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950423', 'tblTempUsageDetail_20' ) end [2025-04-20 12:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950423', 'tblTempVendorCDR_20' ) start [2025-04-20 12:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950423', 'tblTempVendorCDR_20' ) end [2025-04-20 12:57:18] Production.INFO: ProcessCDR(1,14950423,1,1,2) [2025-04-20 12:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950423', 'tblTempUsageDetail_20' ) start [2025-04-20 12:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950423', 'tblTempUsageDetail_20' ) end [2025-04-20 12:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 12:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 12:57:21] Production.INFO: ==20786== Releasing lock... [2025-04-20 12:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 12:57:21] Production.INFO: 34.25 MB #Memory Used# [2025-04-20 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 09:58:05 [end_date_ymd] => 2025-04-20 12:58:05 [RateCDR] => 1 ) [2025-04-20 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-20 09:58:05' and `end` < '2025-04-20 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-20 12:58:18] Production.INFO: count ==781 [2025-04-20 12:58:18] Production.ERROR: pbx CDR StartTime 2025-04-20 09:58:05 - End Time 2025-04-20 12:58:05 [2025-04-20 12:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950428', 'tblTempUsageDetail_20' ) start [2025-04-20 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950428', 'tblTempUsageDetail_20' ) end [2025-04-20 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950428', 'tblTempVendorCDR_20' ) start [2025-04-20 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950428', 'tblTempVendorCDR_20' ) end [2025-04-20 12:58:18] Production.INFO: ProcessCDR(1,14950428,1,1,2) [2025-04-20 12:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950428', 'tblTempUsageDetail_20' ) start [2025-04-20 12:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950428', 'tblTempUsageDetail_20' ) end [2025-04-20 12:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 12:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 12:58:22] Production.INFO: ==20865== Releasing lock... [2025-04-20 12:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 12:58:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-20 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 09:59:05 [end_date_ymd] => 2025-04-20 12:59:05 [RateCDR] => 1 ) [2025-04-20 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-20 09:59:05' and `end` < '2025-04-20 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-20 12:59:18] Production.INFO: count ==787 [2025-04-20 12:59:18] Production.ERROR: pbx CDR StartTime 2025-04-20 09:59:05 - End Time 2025-04-20 12:59:05 [2025-04-20 12:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 12:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950433', 'tblTempUsageDetail_20' ) start [2025-04-20 12:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950433', 'tblTempUsageDetail_20' ) end [2025-04-20 12:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950433', 'tblTempVendorCDR_20' ) start [2025-04-20 12:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950433', 'tblTempVendorCDR_20' ) end [2025-04-20 12:59:18] Production.INFO: ProcessCDR(1,14950433,1,1,2) [2025-04-20 12:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 12:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 12:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950433', 'tblTempUsageDetail_20' ) start [2025-04-20 12:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950433', 'tblTempUsageDetail_20' ) end [2025-04-20 12:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 12:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 12:59:23] Production.INFO: ==20938== Releasing lock... [2025-04-20 12:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 12:59:23] Production.INFO: 34.25 MB #Memory Used# [2025-04-20 13:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 10:00:05 [end_date_ymd] => 2025-04-20 13:00:05 [RateCDR] => 1 ) [2025-04-20 13: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-20 10:00:05' and `end` < '2025-04-20 13: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-20 13:00:18] Production.INFO: count ==787 [2025-04-20 13:00:18] Production.ERROR: pbx CDR StartTime 2025-04-20 10:00:05 - End Time 2025-04-20 13:00:05 [2025-04-20 13:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 13:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950439', 'tblTempUsageDetail_20' ) start [2025-04-20 13:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950439', 'tblTempUsageDetail_20' ) end [2025-04-20 13:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950439', 'tblTempVendorCDR_20' ) start [2025-04-20 13:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950439', 'tblTempVendorCDR_20' ) end [2025-04-20 13:00:18] Production.INFO: ProcessCDR(1,14950439,1,1,2) [2025-04-20 13:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950439', 'tblTempUsageDetail_20' ) start [2025-04-20 13:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950439', 'tblTempUsageDetail_20' ) end [2025-04-20 13:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 13:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 13:00:22] Production.INFO: ==21051== Releasing lock... [2025-04-20 13:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 13:00:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-20 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 10:01:05 [end_date_ymd] => 2025-04-20 13:01:05 [RateCDR] => 1 ) [2025-04-20 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-20 10:01:05' and `end` < '2025-04-20 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-20 13:01:18] Production.INFO: count ==804 [2025-04-20 13:01:18] Production.ERROR: pbx CDR StartTime 2025-04-20 10:01:05 - End Time 2025-04-20 13:01:05 [2025-04-20 13:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 13:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950444', 'tblTempUsageDetail_20' ) start [2025-04-20 13:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950444', 'tblTempUsageDetail_20' ) end [2025-04-20 13:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950444', 'tblTempVendorCDR_20' ) start [2025-04-20 13:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950444', 'tblTempVendorCDR_20' ) end [2025-04-20 13:01:18] Production.INFO: ProcessCDR(1,14950444,1,1,2) [2025-04-20 13:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950444', 'tblTempUsageDetail_20' ) start [2025-04-20 13:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950444', 'tblTempUsageDetail_20' ) end [2025-04-20 13:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 13:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 13:01:21] Production.INFO: ==21137== Releasing lock... [2025-04-20 13:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 13:01:21] Production.INFO: 34.5 MB #Memory Used# [2025-04-20 13:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 10:02:05 [end_date_ymd] => 2025-04-20 13:02:05 [RateCDR] => 1 ) [2025-04-20 13:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 10:02:05' and `end` < '2025-04-20 13:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 13:02:18] Production.INFO: count ==803 [2025-04-20 13:02:18] Production.ERROR: pbx CDR StartTime 2025-04-20 10:02:05 - End Time 2025-04-20 13:02:05 [2025-04-20 13:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 13:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950449', 'tblTempUsageDetail_20' ) start [2025-04-20 13:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950449', 'tblTempUsageDetail_20' ) end [2025-04-20 13:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950449', 'tblTempVendorCDR_20' ) start [2025-04-20 13:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950449', 'tblTempVendorCDR_20' ) end [2025-04-20 13:02:18] Production.INFO: ProcessCDR(1,14950449,1,1,2) [2025-04-20 13:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950449', 'tblTempUsageDetail_20' ) start [2025-04-20 13:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950449', 'tblTempUsageDetail_20' ) end [2025-04-20 13:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 13:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 13:02:22] Production.INFO: ==21215== Releasing lock... [2025-04-20 13:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 13:02:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-20 13:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 10:03:05 [end_date_ymd] => 2025-04-20 13:03:05 [RateCDR] => 1 ) [2025-04-20 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-20 10:03:05' and `end` < '2025-04-20 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-20 13:03:17] Production.INFO: count ==802 [2025-04-20 13:03:18] Production.ERROR: pbx CDR StartTime 2025-04-20 10:03:05 - End Time 2025-04-20 13:03:05 [2025-04-20 13:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 13:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950454', 'tblTempUsageDetail_20' ) start [2025-04-20 13:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950454', 'tblTempUsageDetail_20' ) end [2025-04-20 13:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950454', 'tblTempVendorCDR_20' ) start [2025-04-20 13:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950454', 'tblTempVendorCDR_20' ) end [2025-04-20 13:03:18] Production.INFO: ProcessCDR(1,14950454,1,1,2) [2025-04-20 13:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950454', 'tblTempUsageDetail_20' ) start [2025-04-20 13:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950454', 'tblTempUsageDetail_20' ) end [2025-04-20 13:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 13:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 13:03:21] Production.INFO: ==21298== Releasing lock... [2025-04-20 13:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 13:03:21] Production.INFO: 35 MB #Memory Used# [2025-04-20 13:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 10:04:05 [end_date_ymd] => 2025-04-20 13:04:05 [RateCDR] => 1 ) [2025-04-20 13:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 10:04:05' and `end` < '2025-04-20 13:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 13:04:18] Production.INFO: count ==805 [2025-04-20 13:04:18] Production.ERROR: pbx CDR StartTime 2025-04-20 10:04:05 - End Time 2025-04-20 13:04:05 [2025-04-20 13:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 13:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950459', 'tblTempUsageDetail_20' ) start [2025-04-20 13:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950459', 'tblTempUsageDetail_20' ) end [2025-04-20 13:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950459', 'tblTempVendorCDR_20' ) start [2025-04-20 13:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950459', 'tblTempVendorCDR_20' ) end [2025-04-20 13:04:18] Production.INFO: ProcessCDR(1,14950459,1,1,2) [2025-04-20 13:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950459', 'tblTempUsageDetail_20' ) start [2025-04-20 13:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950459', 'tblTempUsageDetail_20' ) end [2025-04-20 13:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 13:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 13:04:21] Production.INFO: ==21381== Releasing lock... [2025-04-20 13:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 13:04:21] Production.INFO: 34.5 MB #Memory Used# [2025-04-20 13:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 10:05:05 [end_date_ymd] => 2025-04-20 13:05:05 [RateCDR] => 1 ) [2025-04-20 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-20 10:05:05' and `end` < '2025-04-20 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-20 13:05:18] Production.INFO: count ==808 [2025-04-20 13:05:18] Production.ERROR: pbx CDR StartTime 2025-04-20 10:05:05 - End Time 2025-04-20 13:05:05 [2025-04-20 13:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 13:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950464', 'tblTempUsageDetail_20' ) start [2025-04-20 13:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950464', 'tblTempUsageDetail_20' ) end [2025-04-20 13:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950464', 'tblTempVendorCDR_20' ) start [2025-04-20 13:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950464', 'tblTempVendorCDR_20' ) end [2025-04-20 13:05:18] Production.INFO: ProcessCDR(1,14950464,1,1,2) [2025-04-20 13:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950464', 'tblTempUsageDetail_20' ) start [2025-04-20 13:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950464', 'tblTempUsageDetail_20' ) end [2025-04-20 13:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 13:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 13:05:23] Production.INFO: ==21456== Releasing lock... [2025-04-20 13:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 13:05:23] Production.INFO: 34.25 MB #Memory Used# [2025-04-20 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 10:06:05 [end_date_ymd] => 2025-04-20 13:06:05 [RateCDR] => 1 ) [2025-04-20 13:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 10:06:05' and `end` < '2025-04-20 13:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 13:06:18] Production.INFO: count ==808 [2025-04-20 13:06:18] Production.ERROR: pbx CDR StartTime 2025-04-20 10:06:05 - End Time 2025-04-20 13:06:05 [2025-04-20 13:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 13:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950469', 'tblTempUsageDetail_20' ) start [2025-04-20 13:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950469', 'tblTempUsageDetail_20' ) end [2025-04-20 13:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950469', 'tblTempVendorCDR_20' ) start [2025-04-20 13:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950469', 'tblTempVendorCDR_20' ) end [2025-04-20 13:06:18] Production.INFO: ProcessCDR(1,14950469,1,1,2) [2025-04-20 13:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950469', 'tblTempUsageDetail_20' ) start [2025-04-20 13:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950469', 'tblTempUsageDetail_20' ) end [2025-04-20 13:06:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 13:06:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 13:06:23] Production.INFO: ==21530== Releasing lock... [2025-04-20 13:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 13:06:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-20 13:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 10:07:05 [end_date_ymd] => 2025-04-20 13:07:05 [RateCDR] => 1 ) [2025-04-20 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-20 10:07:05' and `end` < '2025-04-20 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-20 13:07:18] Production.INFO: count ==805 [2025-04-20 13:07:18] Production.ERROR: pbx CDR StartTime 2025-04-20 10:07:05 - End Time 2025-04-20 13:07:05 [2025-04-20 13:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 13:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950474', 'tblTempUsageDetail_20' ) start [2025-04-20 13:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950474', 'tblTempUsageDetail_20' ) end [2025-04-20 13:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950474', 'tblTempVendorCDR_20' ) start [2025-04-20 13:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950474', 'tblTempVendorCDR_20' ) end [2025-04-20 13:07:18] Production.INFO: ProcessCDR(1,14950474,1,1,2) [2025-04-20 13:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950474', 'tblTempUsageDetail_20' ) start [2025-04-20 13:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950474', 'tblTempUsageDetail_20' ) end [2025-04-20 13:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 13:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 13:07:22] Production.INFO: ==21612== Releasing lock... [2025-04-20 13:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 13:07:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-20 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 10:08:05 [end_date_ymd] => 2025-04-20 13:08:05 [RateCDR] => 1 ) [2025-04-20 13:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 10:08:05' and `end` < '2025-04-20 13:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 13:08:18] Production.INFO: count ==808 [2025-04-20 13:08:18] Production.ERROR: pbx CDR StartTime 2025-04-20 10:08:05 - End Time 2025-04-20 13:08:05 [2025-04-20 13:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 13:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950479', 'tblTempUsageDetail_20' ) start [2025-04-20 13:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950479', 'tblTempUsageDetail_20' ) end [2025-04-20 13:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950479', 'tblTempVendorCDR_20' ) start [2025-04-20 13:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950479', 'tblTempVendorCDR_20' ) end [2025-04-20 13:08:18] Production.INFO: ProcessCDR(1,14950479,1,1,2) [2025-04-20 13:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950479', 'tblTempUsageDetail_20' ) start [2025-04-20 13:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950479', 'tblTempUsageDetail_20' ) end [2025-04-20 13:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 13:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 13:08:22] Production.INFO: ==21692== Releasing lock... [2025-04-20 13:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 13:08:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-20 13:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 10:09:05 [end_date_ymd] => 2025-04-20 13:09:05 [RateCDR] => 1 ) [2025-04-20 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-20 10:09:05' and `end` < '2025-04-20 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-20 13:09:18] Production.INFO: count ==805 [2025-04-20 13:09:18] Production.ERROR: pbx CDR StartTime 2025-04-20 10:09:05 - End Time 2025-04-20 13:09:05 [2025-04-20 13:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 13:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950484', 'tblTempUsageDetail_20' ) start [2025-04-20 13:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950484', 'tblTempUsageDetail_20' ) end [2025-04-20 13:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950484', 'tblTempVendorCDR_20' ) start [2025-04-20 13:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950484', 'tblTempVendorCDR_20' ) end [2025-04-20 13:09:18] Production.INFO: ProcessCDR(1,14950484,1,1,2) [2025-04-20 13:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950484', 'tblTempUsageDetail_20' ) start [2025-04-20 13:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950484', 'tblTempUsageDetail_20' ) end [2025-04-20 13:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 13:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 13:09:22] Production.INFO: ==21769== Releasing lock... [2025-04-20 13:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 13:09:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-20 13:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 10:10:06 [end_date_ymd] => 2025-04-20 13:10:06 [RateCDR] => 1 ) [2025-04-20 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-20 10:10:06' and `end` < '2025-04-20 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-20 13:10:19] Production.INFO: count ==794 [2025-04-20 13:10:19] Production.ERROR: pbx CDR StartTime 2025-04-20 10:10:06 - End Time 2025-04-20 13:10:06 [2025-04-20 13:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 13:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950490', 'tblTempUsageDetail_20' ) start [2025-04-20 13:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950490', 'tblTempUsageDetail_20' ) end [2025-04-20 13:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950490', 'tblTempVendorCDR_20' ) start [2025-04-20 13:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950490', 'tblTempVendorCDR_20' ) end [2025-04-20 13:10:19] Production.INFO: ProcessCDR(1,14950490,1,1,2) [2025-04-20 13:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950490', 'tblTempUsageDetail_20' ) start [2025-04-20 13:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950490', 'tblTempUsageDetail_20' ) end [2025-04-20 13:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 13:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 13:10:22] Production.INFO: ==21849== Releasing lock... [2025-04-20 13:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 13:10:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-20 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 10:11:05 [end_date_ymd] => 2025-04-20 13:11:05 [RateCDR] => 1 ) [2025-04-20 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-20 10:11:05' and `end` < '2025-04-20 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-20 13:11:18] Production.INFO: count ==792 [2025-04-20 13:11:18] Production.ERROR: pbx CDR StartTime 2025-04-20 10:11:05 - End Time 2025-04-20 13:11:05 [2025-04-20 13:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 13:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950495', 'tblTempUsageDetail_20' ) start [2025-04-20 13:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950495', 'tblTempUsageDetail_20' ) end [2025-04-20 13:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950495', 'tblTempVendorCDR_20' ) start [2025-04-20 13:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950495', 'tblTempVendorCDR_20' ) end [2025-04-20 13:11:18] Production.INFO: ProcessCDR(1,14950495,1,1,2) [2025-04-20 13:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950495', 'tblTempUsageDetail_20' ) start [2025-04-20 13:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950495', 'tblTempUsageDetail_20' ) end [2025-04-20 13:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 13:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 13:11:21] Production.INFO: ==21921== Releasing lock... [2025-04-20 13:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 13:11:21] Production.INFO: 34.5 MB #Memory Used# [2025-04-20 13:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 10:12:06 [end_date_ymd] => 2025-04-20 13:12:06 [RateCDR] => 1 ) [2025-04-20 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-20 10:12:06' and `end` < '2025-04-20 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-20 13:12:18] Production.INFO: count ==792 [2025-04-20 13:12:18] Production.ERROR: pbx CDR StartTime 2025-04-20 10:12:06 - End Time 2025-04-20 13:12:06 [2025-04-20 13:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 13:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950500', 'tblTempUsageDetail_20' ) start [2025-04-20 13:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950500', 'tblTempUsageDetail_20' ) end [2025-04-20 13:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950500', 'tblTempVendorCDR_20' ) start [2025-04-20 13:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950500', 'tblTempVendorCDR_20' ) end [2025-04-20 13:12:18] Production.INFO: ProcessCDR(1,14950500,1,1,2) [2025-04-20 13:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950500', 'tblTempUsageDetail_20' ) start [2025-04-20 13:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950500', 'tblTempUsageDetail_20' ) end [2025-04-20 13:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 13:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 13:12:22] Production.INFO: ==22002== Releasing lock... [2025-04-20 13:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 13:12:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-20 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 10:13:05 [end_date_ymd] => 2025-04-20 13:13:05 [RateCDR] => 1 ) [2025-04-20 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-20 10:13:05' and `end` < '2025-04-20 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-20 13:13:18] Production.INFO: count ==792 [2025-04-20 13:13:18] Production.ERROR: pbx CDR StartTime 2025-04-20 10:13:05 - End Time 2025-04-20 13:13:05 [2025-04-20 13:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 13:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950505', 'tblTempUsageDetail_20' ) start [2025-04-20 13:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950505', 'tblTempUsageDetail_20' ) end [2025-04-20 13:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950505', 'tblTempVendorCDR_20' ) start [2025-04-20 13:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950505', 'tblTempVendorCDR_20' ) end [2025-04-20 13:13:18] Production.INFO: ProcessCDR(1,14950505,1,1,2) [2025-04-20 13:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950505', 'tblTempUsageDetail_20' ) start [2025-04-20 13:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950505', 'tblTempUsageDetail_20' ) end [2025-04-20 13:13:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 13:13:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 13:13:23] Production.INFO: ==22073== Releasing lock... [2025-04-20 13:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 13:13:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-20 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 10:14:05 [end_date_ymd] => 2025-04-20 13:14:05 [RateCDR] => 1 ) [2025-04-20 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-20 10:14:05' and `end` < '2025-04-20 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-20 13:14:18] Production.INFO: count ==793 [2025-04-20 13:14:18] Production.ERROR: pbx CDR StartTime 2025-04-20 10:14:05 - End Time 2025-04-20 13:14:05 [2025-04-20 13:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 13:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950510', 'tblTempUsageDetail_20' ) start [2025-04-20 13:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950510', 'tblTempUsageDetail_20' ) end [2025-04-20 13:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950510', 'tblTempVendorCDR_20' ) start [2025-04-20 13:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950510', 'tblTempVendorCDR_20' ) end [2025-04-20 13:14:18] Production.INFO: ProcessCDR(1,14950510,1,1,2) [2025-04-20 13:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950510', 'tblTempUsageDetail_20' ) start [2025-04-20 13:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950510', 'tblTempUsageDetail_20' ) end [2025-04-20 13:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 13:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 13:14:22] Production.INFO: ==22148== Releasing lock... [2025-04-20 13:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 13:14:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-20 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 10:15:05 [end_date_ymd] => 2025-04-20 13:15:05 [RateCDR] => 1 ) [2025-04-20 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-20 10:15:05' and `end` < '2025-04-20 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-20 13:15:17] Production.INFO: count ==795 [2025-04-20 13:15:18] Production.ERROR: pbx CDR StartTime 2025-04-20 10:15:05 - End Time 2025-04-20 13:15:05 [2025-04-20 13:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 13:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950515', 'tblTempUsageDetail_20' ) start [2025-04-20 13:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950515', 'tblTempUsageDetail_20' ) end [2025-04-20 13:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950515', 'tblTempVendorCDR_20' ) start [2025-04-20 13:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950515', 'tblTempVendorCDR_20' ) end [2025-04-20 13:15:18] Production.INFO: ProcessCDR(1,14950515,1,1,2) [2025-04-20 13:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950515', 'tblTempUsageDetail_20' ) start [2025-04-20 13:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950515', 'tblTempUsageDetail_20' ) end [2025-04-20 13:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 13:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 13:15:21] Production.INFO: ==22261== Releasing lock... [2025-04-20 13:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 13:15:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-20 13:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 10:16:05 [end_date_ymd] => 2025-04-20 13:16:05 [RateCDR] => 1 ) [2025-04-20 13:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 10:16:05' and `end` < '2025-04-20 13:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 13:16:18] Production.INFO: count ==796 [2025-04-20 13:16:18] Production.ERROR: pbx CDR StartTime 2025-04-20 10:16:05 - End Time 2025-04-20 13:16:05 [2025-04-20 13:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 13:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950520', 'tblTempUsageDetail_20' ) start [2025-04-20 13:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950520', 'tblTempUsageDetail_20' ) end [2025-04-20 13:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950520', 'tblTempVendorCDR_20' ) start [2025-04-20 13:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950520', 'tblTempVendorCDR_20' ) end [2025-04-20 13:16:18] Production.INFO: ProcessCDR(1,14950520,1,1,2) [2025-04-20 13:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950520', 'tblTempUsageDetail_20' ) start [2025-04-20 13:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950520', 'tblTempUsageDetail_20' ) end [2025-04-20 13:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 13:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 13:16:22] Production.INFO: ==22350== Releasing lock... [2025-04-20 13:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 13:16:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-20 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 10:17:05 [end_date_ymd] => 2025-04-20 13:17:05 [RateCDR] => 1 ) [2025-04-20 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-20 10:17:05' and `end` < '2025-04-20 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-20 13:17:18] Production.INFO: count ==796 [2025-04-20 13:17:18] Production.ERROR: pbx CDR StartTime 2025-04-20 10:17:05 - End Time 2025-04-20 13:17:05 [2025-04-20 13:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 13:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950525', 'tblTempUsageDetail_20' ) start [2025-04-20 13:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950525', 'tblTempUsageDetail_20' ) end [2025-04-20 13:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950525', 'tblTempVendorCDR_20' ) start [2025-04-20 13:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950525', 'tblTempVendorCDR_20' ) end [2025-04-20 13:17:18] Production.INFO: ProcessCDR(1,14950525,1,1,2) [2025-04-20 13:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950525', 'tblTempUsageDetail_20' ) start [2025-04-20 13:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950525', 'tblTempUsageDetail_20' ) end [2025-04-20 13:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 13:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 13:17:21] Production.INFO: ==22430== Releasing lock... [2025-04-20 13:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 13:17:21] Production.INFO: 34.5 MB #Memory Used# [2025-04-20 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 10:18:05 [end_date_ymd] => 2025-04-20 13:18:05 [RateCDR] => 1 ) [2025-04-20 13:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 10:18:05' and `end` < '2025-04-20 13:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 13:18:18] Production.INFO: count ==795 [2025-04-20 13:18:18] Production.ERROR: pbx CDR StartTime 2025-04-20 10:18:05 - End Time 2025-04-20 13:18:05 [2025-04-20 13:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 13:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950530', 'tblTempUsageDetail_20' ) start [2025-04-20 13:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950530', 'tblTempUsageDetail_20' ) end [2025-04-20 13:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950530', 'tblTempVendorCDR_20' ) start [2025-04-20 13:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950530', 'tblTempVendorCDR_20' ) end [2025-04-20 13:18:18] Production.INFO: ProcessCDR(1,14950530,1,1,2) [2025-04-20 13:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950530', 'tblTempUsageDetail_20' ) start [2025-04-20 13:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950530', 'tblTempUsageDetail_20' ) end [2025-04-20 13:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 13:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 13:18:22] Production.INFO: ==22516== Releasing lock... [2025-04-20 13:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 13:18:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-20 13:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 10:19:05 [end_date_ymd] => 2025-04-20 13:19:05 [RateCDR] => 1 ) [2025-04-20 13: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-20 10:19:05' and `end` < '2025-04-20 13: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-20 13:19:18] Production.INFO: count ==794 [2025-04-20 13:19:18] Production.ERROR: pbx CDR StartTime 2025-04-20 10:19:05 - End Time 2025-04-20 13:19:05 [2025-04-20 13:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 13:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950535', 'tblTempUsageDetail_20' ) start [2025-04-20 13:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950535', 'tblTempUsageDetail_20' ) end [2025-04-20 13:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950535', 'tblTempVendorCDR_20' ) start [2025-04-20 13:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950535', 'tblTempVendorCDR_20' ) end [2025-04-20 13:19:18] Production.INFO: ProcessCDR(1,14950535,1,1,2) [2025-04-20 13:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950535', 'tblTempUsageDetail_20' ) start [2025-04-20 13:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950535', 'tblTempUsageDetail_20' ) end [2025-04-20 13:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 13:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 13:19:22] Production.INFO: ==22589== Releasing lock... [2025-04-20 13:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 13:19:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-20 13:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 10:20:06 [end_date_ymd] => 2025-04-20 13:20:06 [RateCDR] => 1 ) [2025-04-20 13:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 10:20:06' and `end` < '2025-04-20 13:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 13:20:18] Production.INFO: count ==796 [2025-04-20 13:20:18] Production.ERROR: pbx CDR StartTime 2025-04-20 10:20:06 - End Time 2025-04-20 13:20:06 [2025-04-20 13:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 13:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950541', 'tblTempUsageDetail_20' ) start [2025-04-20 13:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950541', 'tblTempUsageDetail_20' ) end [2025-04-20 13:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950541', 'tblTempVendorCDR_20' ) start [2025-04-20 13:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950541', 'tblTempVendorCDR_20' ) end [2025-04-20 13:20:18] Production.INFO: ProcessCDR(1,14950541,1,1,2) [2025-04-20 13:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950541', 'tblTempUsageDetail_20' ) start [2025-04-20 13:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950541', 'tblTempUsageDetail_20' ) end [2025-04-20 13:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 13:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 13:20:22] Production.INFO: ==22666== Releasing lock... [2025-04-20 13:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 13:20:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-20 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 10:21:05 [end_date_ymd] => 2025-04-20 13:21:05 [RateCDR] => 1 ) [2025-04-20 13:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 10:21:05' and `end` < '2025-04-20 13:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 13:21:18] Production.INFO: count ==793 [2025-04-20 13:21:18] Production.ERROR: pbx CDR StartTime 2025-04-20 10:21:05 - End Time 2025-04-20 13:21:05 [2025-04-20 13:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 13:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950546', 'tblTempUsageDetail_20' ) start [2025-04-20 13:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950546', 'tblTempUsageDetail_20' ) end [2025-04-20 13:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950546', 'tblTempVendorCDR_20' ) start [2025-04-20 13:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950546', 'tblTempVendorCDR_20' ) end [2025-04-20 13:21:18] Production.INFO: ProcessCDR(1,14950546,1,1,2) [2025-04-20 13:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950546', 'tblTempUsageDetail_20' ) start [2025-04-20 13:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950546', 'tblTempUsageDetail_20' ) end [2025-04-20 13:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 13:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 13:21:22] Production.INFO: ==22743== Releasing lock... [2025-04-20 13:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 13:21:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-20 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 10:22:05 [end_date_ymd] => 2025-04-20 13:22:05 [RateCDR] => 1 ) [2025-04-20 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-20 10:22:05' and `end` < '2025-04-20 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-20 13:22:18] Production.INFO: count ==794 [2025-04-20 13:22:18] Production.ERROR: pbx CDR StartTime 2025-04-20 10:22:05 - End Time 2025-04-20 13:22:05 [2025-04-20 13:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 13:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950551', 'tblTempUsageDetail_20' ) start [2025-04-20 13:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950551', 'tblTempUsageDetail_20' ) end [2025-04-20 13:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950551', 'tblTempVendorCDR_20' ) start [2025-04-20 13:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950551', 'tblTempVendorCDR_20' ) end [2025-04-20 13:22:18] Production.INFO: ProcessCDR(1,14950551,1,1,2) [2025-04-20 13:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950551', 'tblTempUsageDetail_20' ) start [2025-04-20 13:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950551', 'tblTempUsageDetail_20' ) end [2025-04-20 13:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 13:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 13:22:22] Production.INFO: ==22817== Releasing lock... [2025-04-20 13:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 13:22:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-20 13:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 10:23:06 [end_date_ymd] => 2025-04-20 13:23:06 [RateCDR] => 1 ) [2025-04-20 13:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 10:23:06' and `end` < '2025-04-20 13:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 13:23:18] Production.INFO: count ==792 [2025-04-20 13:23:19] Production.ERROR: pbx CDR StartTime 2025-04-20 10:23:06 - End Time 2025-04-20 13:23:06 [2025-04-20 13:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 13:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950556', 'tblTempUsageDetail_20' ) start [2025-04-20 13:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950556', 'tblTempUsageDetail_20' ) end [2025-04-20 13:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950556', 'tblTempVendorCDR_20' ) start [2025-04-20 13:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950556', 'tblTempVendorCDR_20' ) end [2025-04-20 13:23:19] Production.INFO: ProcessCDR(1,14950556,1,1,2) [2025-04-20 13:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950556', 'tblTempUsageDetail_20' ) start [2025-04-20 13:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950556', 'tblTempUsageDetail_20' ) end [2025-04-20 13:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 13:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 13:23:22] Production.INFO: ==22892== Releasing lock... [2025-04-20 13:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 13:23:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-20 13:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 10:24:05 [end_date_ymd] => 2025-04-20 13:24:05 [RateCDR] => 1 ) [2025-04-20 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-20 10:24:05' and `end` < '2025-04-20 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-20 13:24:19] Production.INFO: count ==796 [2025-04-20 13:24:19] Production.ERROR: pbx CDR StartTime 2025-04-20 10:24:05 - End Time 2025-04-20 13:24:05 [2025-04-20 13:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 13:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950561', 'tblTempUsageDetail_20' ) start [2025-04-20 13:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950561', 'tblTempUsageDetail_20' ) end [2025-04-20 13:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950561', 'tblTempVendorCDR_20' ) start [2025-04-20 13:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950561', 'tblTempVendorCDR_20' ) end [2025-04-20 13:24:19] Production.INFO: ProcessCDR(1,14950561,1,1,2) [2025-04-20 13:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950561', 'tblTempUsageDetail_20' ) start [2025-04-20 13:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950561', 'tblTempUsageDetail_20' ) end [2025-04-20 13:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 13:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 13:24:22] Production.INFO: ==22966== Releasing lock... [2025-04-20 13:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 13:24:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-20 13:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 10:25:06 [end_date_ymd] => 2025-04-20 13:25:06 [RateCDR] => 1 ) [2025-04-20 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-20 10:25:06' and `end` < '2025-04-20 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-20 13:25:19] Production.INFO: count ==797 [2025-04-20 13:25:19] Production.ERROR: pbx CDR StartTime 2025-04-20 10:25:06 - End Time 2025-04-20 13:25:06 [2025-04-20 13:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950566', 'tblTempUsageDetail_20' ) start [2025-04-20 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950566', 'tblTempUsageDetail_20' ) end [2025-04-20 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950566', 'tblTempVendorCDR_20' ) start [2025-04-20 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950566', 'tblTempVendorCDR_20' ) end [2025-04-20 13:25:19] Production.INFO: ProcessCDR(1,14950566,1,1,2) [2025-04-20 13:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950566', 'tblTempUsageDetail_20' ) start [2025-04-20 13:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950566', 'tblTempUsageDetail_20' ) end [2025-04-20 13:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 13:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 13:25:22] Production.INFO: ==23038== Releasing lock... [2025-04-20 13:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 13:25:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-20 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 10:26:05 [end_date_ymd] => 2025-04-20 13:26:05 [RateCDR] => 1 ) [2025-04-20 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-20 10:26:05' and `end` < '2025-04-20 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-20 13:26:18] Production.INFO: count ==799 [2025-04-20 13:26:18] Production.ERROR: pbx CDR StartTime 2025-04-20 10:26:05 - End Time 2025-04-20 13:26:05 [2025-04-20 13:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 13:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950571', 'tblTempUsageDetail_20' ) start [2025-04-20 13:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950571', 'tblTempUsageDetail_20' ) end [2025-04-20 13:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950571', 'tblTempVendorCDR_20' ) start [2025-04-20 13:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950571', 'tblTempVendorCDR_20' ) end [2025-04-20 13:26:18] Production.INFO: ProcessCDR(1,14950571,1,1,2) [2025-04-20 13:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950571', 'tblTempUsageDetail_20' ) start [2025-04-20 13:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950571', 'tblTempUsageDetail_20' ) end [2025-04-20 13:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 13:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 13:26:21] Production.INFO: ==23112== Releasing lock... [2025-04-20 13:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 13:26:21] Production.INFO: 34 MB #Memory Used# [2025-04-20 13:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 10:27:06 [end_date_ymd] => 2025-04-20 13:27:06 [RateCDR] => 1 ) [2025-04-20 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-20 10:27:06' and `end` < '2025-04-20 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-20 13:27:19] Production.INFO: count ==802 [2025-04-20 13:27:19] Production.ERROR: pbx CDR StartTime 2025-04-20 10:27:06 - End Time 2025-04-20 13:27:06 [2025-04-20 13:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 13:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950576', 'tblTempUsageDetail_20' ) start [2025-04-20 13:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950576', 'tblTempUsageDetail_20' ) end [2025-04-20 13:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950576', 'tblTempVendorCDR_20' ) start [2025-04-20 13:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950576', 'tblTempVendorCDR_20' ) end [2025-04-20 13:27:19] Production.INFO: ProcessCDR(1,14950576,1,1,2) [2025-04-20 13:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950576', 'tblTempUsageDetail_20' ) start [2025-04-20 13:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950576', 'tblTempUsageDetail_20' ) end [2025-04-20 13:27:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 13:27:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 13:27:24] Production.INFO: ==23191== Releasing lock... [2025-04-20 13:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 13:27:24] Production.INFO: 34.25 MB #Memory Used# [2025-04-20 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 10:28:05 [end_date_ymd] => 2025-04-20 13:28:05 [RateCDR] => 1 ) [2025-04-20 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-20 10:28:05' and `end` < '2025-04-20 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-20 13:28:18] Production.INFO: count ==807 [2025-04-20 13:28:18] Production.ERROR: pbx CDR StartTime 2025-04-20 10:28:05 - End Time 2025-04-20 13:28:05 [2025-04-20 13:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 13:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950581', 'tblTempUsageDetail_20' ) start [2025-04-20 13:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950581', 'tblTempUsageDetail_20' ) end [2025-04-20 13:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950581', 'tblTempVendorCDR_20' ) start [2025-04-20 13:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950581', 'tblTempVendorCDR_20' ) end [2025-04-20 13:28:18] Production.INFO: ProcessCDR(1,14950581,1,1,2) [2025-04-20 13:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950581', 'tblTempUsageDetail_20' ) start [2025-04-20 13:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950581', 'tblTempUsageDetail_20' ) end [2025-04-20 13:28:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 13:28:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 13:28:23] Production.INFO: ==23271== Releasing lock... [2025-04-20 13:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 13:28:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-20 13:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 10:29:05 [end_date_ymd] => 2025-04-20 13:29:05 [RateCDR] => 1 ) [2025-04-20 13: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-20 10:29:05' and `end` < '2025-04-20 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-20 13:29:18] Production.INFO: count ==808 [2025-04-20 13:29:18] Production.ERROR: pbx CDR StartTime 2025-04-20 10:29:05 - End Time 2025-04-20 13:29:05 [2025-04-20 13:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 13:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950586', 'tblTempUsageDetail_20' ) start [2025-04-20 13:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950586', 'tblTempUsageDetail_20' ) end [2025-04-20 13:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950586', 'tblTempVendorCDR_20' ) start [2025-04-20 13:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950586', 'tblTempVendorCDR_20' ) end [2025-04-20 13:29:18] Production.INFO: ProcessCDR(1,14950586,1,1,2) [2025-04-20 13:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950586', 'tblTempUsageDetail_20' ) start [2025-04-20 13:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950586', 'tblTempUsageDetail_20' ) end [2025-04-20 13:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 13:29:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 13:29:23] Production.INFO: ==23344== Releasing lock... [2025-04-20 13:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 13:29:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-20 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 10:30:06 [end_date_ymd] => 2025-04-20 13:30:06 [RateCDR] => 1 ) [2025-04-20 13:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 10:30:06' and `end` < '2025-04-20 13:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 13:30:18] Production.INFO: count ==821 [2025-04-20 13:30:18] Production.ERROR: pbx CDR StartTime 2025-04-20 10:30:06 - End Time 2025-04-20 13:30:06 [2025-04-20 13:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 13:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950592', 'tblTempUsageDetail_20' ) start [2025-04-20 13:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950592', 'tblTempUsageDetail_20' ) end [2025-04-20 13:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950592', 'tblTempVendorCDR_20' ) start [2025-04-20 13:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950592', 'tblTempVendorCDR_20' ) end [2025-04-20 13:30:18] Production.INFO: ProcessCDR(1,14950592,1,1,2) [2025-04-20 13:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950592', 'tblTempUsageDetail_20' ) start [2025-04-20 13:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950592', 'tblTempUsageDetail_20' ) end [2025-04-20 13:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 13:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 13:30:22] Production.INFO: ==23427== Releasing lock... [2025-04-20 13:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 13:30:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-20 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 10:31:05 [end_date_ymd] => 2025-04-20 13:31:05 [RateCDR] => 1 ) [2025-04-20 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-20 10:31:05' and `end` < '2025-04-20 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-20 13:31:18] Production.INFO: count ==822 [2025-04-20 13:31:18] Production.ERROR: pbx CDR StartTime 2025-04-20 10:31:05 - End Time 2025-04-20 13:31:05 [2025-04-20 13:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 13:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950597', 'tblTempUsageDetail_20' ) start [2025-04-20 13:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950597', 'tblTempUsageDetail_20' ) end [2025-04-20 13:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950597', 'tblTempVendorCDR_20' ) start [2025-04-20 13:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950597', 'tblTempVendorCDR_20' ) end [2025-04-20 13:31:18] Production.INFO: ProcessCDR(1,14950597,1,1,2) [2025-04-20 13:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950597', 'tblTempUsageDetail_20' ) start [2025-04-20 13:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950597', 'tblTempUsageDetail_20' ) end [2025-04-20 13:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 13:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 13:31:22] Production.INFO: ==23543== Releasing lock... [2025-04-20 13:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 13:31:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-20 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 10:32:05 [end_date_ymd] => 2025-04-20 13:32:05 [RateCDR] => 1 ) [2025-04-20 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-20 10:32:05' and `end` < '2025-04-20 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-20 13:32:17] Production.INFO: count ==822 [2025-04-20 13:32:18] Production.ERROR: pbx CDR StartTime 2025-04-20 10:32:05 - End Time 2025-04-20 13:32:05 [2025-04-20 13:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 13:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950602', 'tblTempUsageDetail_20' ) start [2025-04-20 13:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950602', 'tblTempUsageDetail_20' ) end [2025-04-20 13:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950602', 'tblTempVendorCDR_20' ) start [2025-04-20 13:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950602', 'tblTempVendorCDR_20' ) end [2025-04-20 13:32:18] Production.INFO: ProcessCDR(1,14950602,1,1,2) [2025-04-20 13:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950602', 'tblTempUsageDetail_20' ) start [2025-04-20 13:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950602', 'tblTempUsageDetail_20' ) end [2025-04-20 13:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 13:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 13:32:21] Production.INFO: ==23614== Releasing lock... [2025-04-20 13:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 13:32:21] Production.INFO: 34.5 MB #Memory Used# [2025-04-20 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 10:33:05 [end_date_ymd] => 2025-04-20 13:33:05 [RateCDR] => 1 ) [2025-04-20 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-20 10:33:05' and `end` < '2025-04-20 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-20 13:33:18] Production.INFO: count ==822 [2025-04-20 13:33:18] Production.ERROR: pbx CDR StartTime 2025-04-20 10:33:05 - End Time 2025-04-20 13:33:05 [2025-04-20 13:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 13:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950607', 'tblTempUsageDetail_20' ) start [2025-04-20 13:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950607', 'tblTempUsageDetail_20' ) end [2025-04-20 13:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950607', 'tblTempVendorCDR_20' ) start [2025-04-20 13:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950607', 'tblTempVendorCDR_20' ) end [2025-04-20 13:33:18] Production.INFO: ProcessCDR(1,14950607,1,1,2) [2025-04-20 13:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950607', 'tblTempUsageDetail_20' ) start [2025-04-20 13:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950607', 'tblTempUsageDetail_20' ) end [2025-04-20 13:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 13:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 13:33:22] Production.INFO: ==23688== Releasing lock... [2025-04-20 13:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 13:33:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-20 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 10:34:05 [end_date_ymd] => 2025-04-20 13:34:05 [RateCDR] => 1 ) [2025-04-20 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-20 10:34:05' and `end` < '2025-04-20 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-20 13:34:17] Production.INFO: count ==821 [2025-04-20 13:34:17] Production.ERROR: pbx CDR StartTime 2025-04-20 10:34:05 - End Time 2025-04-20 13:34:05 [2025-04-20 13:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 13:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950612', 'tblTempUsageDetail_20' ) start [2025-04-20 13:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950612', 'tblTempUsageDetail_20' ) end [2025-04-20 13:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950612', 'tblTempVendorCDR_20' ) start [2025-04-20 13:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950612', 'tblTempVendorCDR_20' ) end [2025-04-20 13:34:17] Production.INFO: ProcessCDR(1,14950612,1,1,2) [2025-04-20 13:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950612', 'tblTempUsageDetail_20' ) start [2025-04-20 13:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950612', 'tblTempUsageDetail_20' ) end [2025-04-20 13:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 13:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 13:34:21] Production.INFO: ==23763== Releasing lock... [2025-04-20 13:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 13:34:21] Production.INFO: 34.5 MB #Memory Used# [2025-04-20 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 10:35:05 [end_date_ymd] => 2025-04-20 13:35:05 [RateCDR] => 1 ) [2025-04-20 13:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 10:35:05' and `end` < '2025-04-20 13:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 13:35:18] Production.INFO: count ==826 [2025-04-20 13:35:18] Production.ERROR: pbx CDR StartTime 2025-04-20 10:35:05 - End Time 2025-04-20 13:35:05 [2025-04-20 13:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950617', 'tblTempUsageDetail_20' ) start [2025-04-20 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950617', 'tblTempUsageDetail_20' ) end [2025-04-20 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950617', 'tblTempVendorCDR_20' ) start [2025-04-20 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950617', 'tblTempVendorCDR_20' ) end [2025-04-20 13:35:18] Production.INFO: ProcessCDR(1,14950617,1,1,2) [2025-04-20 13:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950617', 'tblTempUsageDetail_20' ) start [2025-04-20 13:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950617', 'tblTempUsageDetail_20' ) end [2025-04-20 13:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 13:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 13:35:22] Production.INFO: ==23836== Releasing lock... [2025-04-20 13:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 13:35:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-20 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 10:36:05 [end_date_ymd] => 2025-04-20 13:36:05 [RateCDR] => 1 ) [2025-04-20 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-20 10:36:05' and `end` < '2025-04-20 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-20 13:36:18] Production.INFO: count ==830 [2025-04-20 13:36:18] Production.ERROR: pbx CDR StartTime 2025-04-20 10:36:05 - End Time 2025-04-20 13:36:05 [2025-04-20 13:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 13:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950622', 'tblTempUsageDetail_20' ) start [2025-04-20 13:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950622', 'tblTempUsageDetail_20' ) end [2025-04-20 13:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950622', 'tblTempVendorCDR_20' ) start [2025-04-20 13:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950622', 'tblTempVendorCDR_20' ) end [2025-04-20 13:36:18] Production.INFO: ProcessCDR(1,14950622,1,1,2) [2025-04-20 13:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950622', 'tblTempUsageDetail_20' ) start [2025-04-20 13:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950622', 'tblTempUsageDetail_20' ) end [2025-04-20 13:36:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 13:36:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 13:36:23] Production.INFO: ==23909== Releasing lock... [2025-04-20 13:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 13:36:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-20 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 10:37:05 [end_date_ymd] => 2025-04-20 13:37:05 [RateCDR] => 1 ) [2025-04-20 13:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 10:37:05' and `end` < '2025-04-20 13:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 13:37:18] Production.INFO: count ==831 [2025-04-20 13:37:18] Production.ERROR: pbx CDR StartTime 2025-04-20 10:37:05 - End Time 2025-04-20 13:37:05 [2025-04-20 13:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 13:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950627', 'tblTempUsageDetail_20' ) start [2025-04-20 13:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950627', 'tblTempUsageDetail_20' ) end [2025-04-20 13:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950627', 'tblTempVendorCDR_20' ) start [2025-04-20 13:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950627', 'tblTempVendorCDR_20' ) end [2025-04-20 13:37:18] Production.INFO: ProcessCDR(1,14950627,1,1,2) [2025-04-20 13:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950627', 'tblTempUsageDetail_20' ) start [2025-04-20 13:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950627', 'tblTempUsageDetail_20' ) end [2025-04-20 13:37:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 13:37:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 13:37:23] Production.INFO: ==23985== Releasing lock... [2025-04-20 13:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 13:37:23] Production.INFO: 34.75 MB #Memory Used# [2025-04-20 13:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 10:38:06 [end_date_ymd] => 2025-04-20 13:38:06 [RateCDR] => 1 ) [2025-04-20 13: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-20 10:38:06' and `end` < '2025-04-20 13: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-20 13:38:19] Production.INFO: count ==833 [2025-04-20 13:38:19] Production.ERROR: pbx CDR StartTime 2025-04-20 10:38:06 - End Time 2025-04-20 13:38:06 [2025-04-20 13:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 13:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950632', 'tblTempUsageDetail_20' ) start [2025-04-20 13:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950632', 'tblTempUsageDetail_20' ) end [2025-04-20 13:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950632', 'tblTempVendorCDR_20' ) start [2025-04-20 13:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950632', 'tblTempVendorCDR_20' ) end [2025-04-20 13:38:19] Production.INFO: ProcessCDR(1,14950632,1,1,2) [2025-04-20 13:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950632', 'tblTempUsageDetail_20' ) start [2025-04-20 13:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950632', 'tblTempUsageDetail_20' ) end [2025-04-20 13:38:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 13:38:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 13:38:24] Production.INFO: ==24059== Releasing lock... [2025-04-20 13:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 13:38:24] Production.INFO: 34.75 MB #Memory Used# [2025-04-20 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 10:39:05 [end_date_ymd] => 2025-04-20 13:39:05 [RateCDR] => 1 ) [2025-04-20 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-20 10:39:05' and `end` < '2025-04-20 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-20 13:39:17] Production.INFO: count ==833 [2025-04-20 13:39:17] Production.ERROR: pbx CDR StartTime 2025-04-20 10:39:05 - End Time 2025-04-20 13:39:05 [2025-04-20 13:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 13:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950637', 'tblTempUsageDetail_20' ) start [2025-04-20 13:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950637', 'tblTempUsageDetail_20' ) end [2025-04-20 13:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950637', 'tblTempVendorCDR_20' ) start [2025-04-20 13:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950637', 'tblTempVendorCDR_20' ) end [2025-04-20 13:39:17] Production.INFO: ProcessCDR(1,14950637,1,1,2) [2025-04-20 13:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950637', 'tblTempUsageDetail_20' ) start [2025-04-20 13:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950637', 'tblTempUsageDetail_20' ) end [2025-04-20 13:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 13:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 13:39:21] Production.INFO: ==24131== Releasing lock... [2025-04-20 13:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 13:39:21] Production.INFO: 34.5 MB #Memory Used# [2025-04-20 13:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 10:40:06 [end_date_ymd] => 2025-04-20 13:40:06 [RateCDR] => 1 ) [2025-04-20 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-20 10:40:06' and `end` < '2025-04-20 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-20 13:40:19] Production.INFO: count ==833 [2025-04-20 13:40:19] Production.ERROR: pbx CDR StartTime 2025-04-20 10:40:06 - End Time 2025-04-20 13:40:06 [2025-04-20 13:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950642', 'tblTempUsageDetail_20' ) start [2025-04-20 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950642', 'tblTempUsageDetail_20' ) end [2025-04-20 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950642', 'tblTempVendorCDR_20' ) start [2025-04-20 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950642', 'tblTempVendorCDR_20' ) end [2025-04-20 13:40:19] Production.INFO: ProcessCDR(1,14950642,1,1,2) [2025-04-20 13:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950642', 'tblTempUsageDetail_20' ) start [2025-04-20 13:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950642', 'tblTempUsageDetail_20' ) end [2025-04-20 13:40:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 13:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 13:40:24] Production.INFO: ==24206== Releasing lock... [2025-04-20 13:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 13:40:24] Production.INFO: 34.75 MB #Memory Used# [2025-04-20 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 10:41:05 [end_date_ymd] => 2025-04-20 13:41:05 [RateCDR] => 1 ) [2025-04-20 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-20 10:41:05' and `end` < '2025-04-20 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-20 13:41:18] Production.INFO: count ==830 [2025-04-20 13:41:18] Production.ERROR: pbx CDR StartTime 2025-04-20 10:41:05 - End Time 2025-04-20 13:41:05 [2025-04-20 13:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 13:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950648', 'tblTempUsageDetail_20' ) start [2025-04-20 13:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950648', 'tblTempUsageDetail_20' ) end [2025-04-20 13:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950648', 'tblTempVendorCDR_20' ) start [2025-04-20 13:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950648', 'tblTempVendorCDR_20' ) end [2025-04-20 13:41:18] Production.INFO: ProcessCDR(1,14950648,1,1,2) [2025-04-20 13:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950648', 'tblTempUsageDetail_20' ) start [2025-04-20 13:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950648', 'tblTempUsageDetail_20' ) end [2025-04-20 13:41:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 13:41:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 13:41:23] Production.INFO: ==24284== Releasing lock... [2025-04-20 13:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 13:41:23] Production.INFO: 34.75 MB #Memory Used# [2025-04-20 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 10:42:05 [end_date_ymd] => 2025-04-20 13:42:05 [RateCDR] => 1 ) [2025-04-20 13:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 10:42:05' and `end` < '2025-04-20 13:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 13:42:18] Production.INFO: count ==837 [2025-04-20 13:42:18] Production.ERROR: pbx CDR StartTime 2025-04-20 10:42:05 - End Time 2025-04-20 13:42:05 [2025-04-20 13:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 13:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950653', 'tblTempUsageDetail_20' ) start [2025-04-20 13:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950653', 'tblTempUsageDetail_20' ) end [2025-04-20 13:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950653', 'tblTempVendorCDR_20' ) start [2025-04-20 13:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950653', 'tblTempVendorCDR_20' ) end [2025-04-20 13:42:18] Production.INFO: ProcessCDR(1,14950653,1,1,2) [2025-04-20 13:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950653', 'tblTempUsageDetail_20' ) start [2025-04-20 13:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950653', 'tblTempUsageDetail_20' ) end [2025-04-20 13:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 13:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 13:42:23] Production.INFO: ==24357== Releasing lock... [2025-04-20 13:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 13:42:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-20 13:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 10:43:05 [end_date_ymd] => 2025-04-20 13:43:05 [RateCDR] => 1 ) [2025-04-20 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-20 10:43:05' and `end` < '2025-04-20 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-20 13:43:18] Production.INFO: count ==836 [2025-04-20 13:43:18] Production.ERROR: pbx CDR StartTime 2025-04-20 10:43:05 - End Time 2025-04-20 13:43:05 [2025-04-20 13:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 13:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950658', 'tblTempUsageDetail_20' ) start [2025-04-20 13:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950658', 'tblTempUsageDetail_20' ) end [2025-04-20 13:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950658', 'tblTempVendorCDR_20' ) start [2025-04-20 13:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950658', 'tblTempVendorCDR_20' ) end [2025-04-20 13:43:18] Production.INFO: ProcessCDR(1,14950658,1,1,2) [2025-04-20 13:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950658', 'tblTempUsageDetail_20' ) start [2025-04-20 13:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950658', 'tblTempUsageDetail_20' ) end [2025-04-20 13:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 13:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 13:43:21] Production.INFO: ==24428== Releasing lock... [2025-04-20 13:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 13:43:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-20 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 10:44:05 [end_date_ymd] => 2025-04-20 13:44:05 [RateCDR] => 1 ) [2025-04-20 13:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 10:44:05' and `end` < '2025-04-20 13:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 13:44:18] Production.INFO: count ==839 [2025-04-20 13:44:18] Production.ERROR: pbx CDR StartTime 2025-04-20 10:44:05 - End Time 2025-04-20 13:44:05 [2025-04-20 13:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 13:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950663', 'tblTempUsageDetail_20' ) start [2025-04-20 13:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950663', 'tblTempUsageDetail_20' ) end [2025-04-20 13:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950663', 'tblTempVendorCDR_20' ) start [2025-04-20 13:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950663', 'tblTempVendorCDR_20' ) end [2025-04-20 13:44:18] Production.INFO: ProcessCDR(1,14950663,1,1,2) [2025-04-20 13:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950663', 'tblTempUsageDetail_20' ) start [2025-04-20 13:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950663', 'tblTempUsageDetail_20' ) end [2025-04-20 13:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 13:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 13:44:23] Production.INFO: ==24510== Releasing lock... [2025-04-20 13:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 13:44:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-20 13:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 10:45:04 [end_date_ymd] => 2025-04-20 13:45:04 [RateCDR] => 1 ) [2025-04-20 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-20 10:45:04' and `end` < '2025-04-20 13: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-20 13:45:17] Production.INFO: count ==839 [2025-04-20 13:45:17] Production.ERROR: pbx CDR StartTime 2025-04-20 10:45:04 - End Time 2025-04-20 13:45:04 [2025-04-20 13:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 13:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950668', 'tblTempUsageDetail_20' ) start [2025-04-20 13:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950668', 'tblTempUsageDetail_20' ) end [2025-04-20 13:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950668', 'tblTempVendorCDR_20' ) start [2025-04-20 13:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950668', 'tblTempVendorCDR_20' ) end [2025-04-20 13:45:17] Production.INFO: ProcessCDR(1,14950668,1,1,2) [2025-04-20 13:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950668', 'tblTempUsageDetail_20' ) start [2025-04-20 13:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950668', 'tblTempUsageDetail_20' ) end [2025-04-20 13:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 13:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 13:45:22] Production.INFO: ==24584== Releasing lock... [2025-04-20 13:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 13:45:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-20 13:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 10:46:05 [end_date_ymd] => 2025-04-20 13:46:05 [RateCDR] => 1 ) [2025-04-20 13:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 10:46:05' and `end` < '2025-04-20 13:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 13:46:18] Production.INFO: count ==840 [2025-04-20 13:46:18] Production.ERROR: pbx CDR StartTime 2025-04-20 10:46:05 - End Time 2025-04-20 13:46:05 [2025-04-20 13:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 13:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950673', 'tblTempUsageDetail_20' ) start [2025-04-20 13:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950673', 'tblTempUsageDetail_20' ) end [2025-04-20 13:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950673', 'tblTempVendorCDR_20' ) start [2025-04-20 13:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950673', 'tblTempVendorCDR_20' ) end [2025-04-20 13:46:18] Production.INFO: ProcessCDR(1,14950673,1,1,2) [2025-04-20 13:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950673', 'tblTempUsageDetail_20' ) start [2025-04-20 13:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950673', 'tblTempUsageDetail_20' ) end [2025-04-20 13:46:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 13:46:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 13:46:23] Production.INFO: ==24694== Releasing lock... [2025-04-20 13:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 13:46:23] Production.INFO: 35 MB #Memory Used# [2025-04-20 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 10:47:05 [end_date_ymd] => 2025-04-20 13:47:05 [RateCDR] => 1 ) [2025-04-20 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-20 10:47:05' and `end` < '2025-04-20 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-20 13:47:17] Production.INFO: count ==848 [2025-04-20 13:47:18] Production.ERROR: pbx CDR StartTime 2025-04-20 10:47:05 - End Time 2025-04-20 13:47:05 [2025-04-20 13:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 13:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950678', 'tblTempUsageDetail_20' ) start [2025-04-20 13:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950678', 'tblTempUsageDetail_20' ) end [2025-04-20 13:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950678', 'tblTempVendorCDR_20' ) start [2025-04-20 13:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950678', 'tblTempVendorCDR_20' ) end [2025-04-20 13:47:18] Production.INFO: ProcessCDR(1,14950678,1,1,2) [2025-04-20 13:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950678', 'tblTempUsageDetail_20' ) start [2025-04-20 13:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950678', 'tblTempUsageDetail_20' ) end [2025-04-20 13:47:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 13:47:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 13:47:23] Production.INFO: ==24771== Releasing lock... [2025-04-20 13:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 13:47:23] Production.INFO: 34.75 MB #Memory Used# [2025-04-20 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 10:48:05 [end_date_ymd] => 2025-04-20 13:48:05 [RateCDR] => 1 ) [2025-04-20 13:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 10:48:05' and `end` < '2025-04-20 13:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 13:48:18] Production.INFO: count ==851 [2025-04-20 13:48:18] Production.ERROR: pbx CDR StartTime 2025-04-20 10:48:05 - End Time 2025-04-20 13:48:05 [2025-04-20 13:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 13:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950683', 'tblTempUsageDetail_20' ) start [2025-04-20 13:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950683', 'tblTempUsageDetail_20' ) end [2025-04-20 13:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950683', 'tblTempVendorCDR_20' ) start [2025-04-20 13:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950683', 'tblTempVendorCDR_20' ) end [2025-04-20 13:48:18] Production.INFO: ProcessCDR(1,14950683,1,1,2) [2025-04-20 13:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950683', 'tblTempUsageDetail_20' ) start [2025-04-20 13:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950683', 'tblTempUsageDetail_20' ) end [2025-04-20 13:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 13:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 13:48:23] Production.INFO: ==24848== Releasing lock... [2025-04-20 13:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 13:48:23] Production.INFO: 35 MB #Memory Used# [2025-04-20 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 10:49:05 [end_date_ymd] => 2025-04-20 13:49:05 [RateCDR] => 1 ) [2025-04-20 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-20 10:49:05' and `end` < '2025-04-20 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-20 13:49:17] Production.INFO: count ==851 [2025-04-20 13:49:18] Production.ERROR: pbx CDR StartTime 2025-04-20 10:49:05 - End Time 2025-04-20 13:49:05 [2025-04-20 13:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 13:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950688', 'tblTempUsageDetail_20' ) start [2025-04-20 13:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950688', 'tblTempUsageDetail_20' ) end [2025-04-20 13:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950688', 'tblTempVendorCDR_20' ) start [2025-04-20 13:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950688', 'tblTempVendorCDR_20' ) end [2025-04-20 13:49:18] Production.INFO: ProcessCDR(1,14950688,1,1,2) [2025-04-20 13:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950688', 'tblTempUsageDetail_20' ) start [2025-04-20 13:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950688', 'tblTempUsageDetail_20' ) end [2025-04-20 13:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 13:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 13:49:21] Production.INFO: ==24919== Releasing lock... [2025-04-20 13:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 13:49:21] Production.INFO: 34.5 MB #Memory Used# [2025-04-20 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 10:50:06 [end_date_ymd] => 2025-04-20 13:50:06 [RateCDR] => 1 ) [2025-04-20 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-20 10:50:06' and `end` < '2025-04-20 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-20 13:50:19] Production.INFO: count ==852 [2025-04-20 13:50:19] Production.ERROR: pbx CDR StartTime 2025-04-20 10:50:06 - End Time 2025-04-20 13:50:06 [2025-04-20 13:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 13:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950694', 'tblTempUsageDetail_20' ) start [2025-04-20 13:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950694', 'tblTempUsageDetail_20' ) end [2025-04-20 13:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950694', 'tblTempVendorCDR_20' ) start [2025-04-20 13:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950694', 'tblTempVendorCDR_20' ) end [2025-04-20 13:50:19] Production.INFO: ProcessCDR(1,14950694,1,1,2) [2025-04-20 13:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950694', 'tblTempUsageDetail_20' ) start [2025-04-20 13:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950694', 'tblTempUsageDetail_20' ) end [2025-04-20 13:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 13:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 13:50:24] Production.INFO: ==24999== Releasing lock... [2025-04-20 13:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 13:50:24] Production.INFO: 34.75 MB #Memory Used# [2025-04-20 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 10:51:05 [end_date_ymd] => 2025-04-20 13:51:05 [RateCDR] => 1 ) [2025-04-20 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-20 10:51:05' and `end` < '2025-04-20 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-20 13:51:18] Production.INFO: count ==852 [2025-04-20 13:51:18] Production.ERROR: pbx CDR StartTime 2025-04-20 10:51:05 - End Time 2025-04-20 13:51:05 [2025-04-20 13:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 13:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950699', 'tblTempUsageDetail_20' ) start [2025-04-20 13:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950699', 'tblTempUsageDetail_20' ) end [2025-04-20 13:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950699', 'tblTempVendorCDR_20' ) start [2025-04-20 13:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950699', 'tblTempVendorCDR_20' ) end [2025-04-20 13:51:18] Production.INFO: ProcessCDR(1,14950699,1,1,2) [2025-04-20 13:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950699', 'tblTempUsageDetail_20' ) start [2025-04-20 13:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950699', 'tblTempUsageDetail_20' ) end [2025-04-20 13:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 13:51:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 13:51:23] Production.INFO: ==25076== Releasing lock... [2025-04-20 13:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 13:51:23] Production.INFO: 34.75 MB #Memory Used# [2025-04-20 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 10:52:05 [end_date_ymd] => 2025-04-20 13:52:05 [RateCDR] => 1 ) [2025-04-20 13:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 10:52:05' and `end` < '2025-04-20 13:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 13:52:18] Production.INFO: count ==846 [2025-04-20 13:52:18] Production.ERROR: pbx CDR StartTime 2025-04-20 10:52:05 - End Time 2025-04-20 13:52:05 [2025-04-20 13:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 13:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950704', 'tblTempUsageDetail_20' ) start [2025-04-20 13:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950704', 'tblTempUsageDetail_20' ) end [2025-04-20 13:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950704', 'tblTempVendorCDR_20' ) start [2025-04-20 13:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950704', 'tblTempVendorCDR_20' ) end [2025-04-20 13:52:18] Production.INFO: ProcessCDR(1,14950704,1,1,2) [2025-04-20 13:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950704', 'tblTempUsageDetail_20' ) start [2025-04-20 13:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950704', 'tblTempUsageDetail_20' ) end [2025-04-20 13:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 13:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 13:52:22] Production.INFO: ==25152== Releasing lock... [2025-04-20 13:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 13:52:22] Production.INFO: 35 MB #Memory Used# [2025-04-20 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 10:53:05 [end_date_ymd] => 2025-04-20 13:53:05 [RateCDR] => 1 ) [2025-04-20 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-20 10:53:05' and `end` < '2025-04-20 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-20 13:53:17] Production.INFO: count ==845 [2025-04-20 13:53:17] Production.ERROR: pbx CDR StartTime 2025-04-20 10:53:05 - End Time 2025-04-20 13:53:05 [2025-04-20 13:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 13:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950709', 'tblTempUsageDetail_20' ) start [2025-04-20 13:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950709', 'tblTempUsageDetail_20' ) end [2025-04-20 13:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950709', 'tblTempVendorCDR_20' ) start [2025-04-20 13:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950709', 'tblTempVendorCDR_20' ) end [2025-04-20 13:53:18] Production.INFO: ProcessCDR(1,14950709,1,1,2) [2025-04-20 13:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950709', 'tblTempUsageDetail_20' ) start [2025-04-20 13:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950709', 'tblTempUsageDetail_20' ) end [2025-04-20 13:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 13:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 13:53:21] Production.INFO: ==25231== Releasing lock... [2025-04-20 13:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 13:53:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-20 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 10:54:05 [end_date_ymd] => 2025-04-20 13:54:05 [RateCDR] => 1 ) [2025-04-20 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-20 10:54:05' and `end` < '2025-04-20 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-20 13:54:18] Production.INFO: count ==845 [2025-04-20 13:54:18] Production.ERROR: pbx CDR StartTime 2025-04-20 10:54:05 - End Time 2025-04-20 13:54:05 [2025-04-20 13:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 13:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950714', 'tblTempUsageDetail_20' ) start [2025-04-20 13:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950714', 'tblTempUsageDetail_20' ) end [2025-04-20 13:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950714', 'tblTempVendorCDR_20' ) start [2025-04-20 13:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950714', 'tblTempVendorCDR_20' ) end [2025-04-20 13:54:18] Production.INFO: ProcessCDR(1,14950714,1,1,2) [2025-04-20 13:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950714', 'tblTempUsageDetail_20' ) start [2025-04-20 13:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950714', 'tblTempUsageDetail_20' ) end [2025-04-20 13:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 13:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 13:54:23] Production.INFO: ==25311== Releasing lock... [2025-04-20 13:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 13:54:23] Production.INFO: 34.75 MB #Memory Used# [2025-04-20 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 10:55:05 [end_date_ymd] => 2025-04-20 13:55:05 [RateCDR] => 1 ) [2025-04-20 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-20 10:55:05' and `end` < '2025-04-20 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-20 13:55:18] Production.INFO: count ==847 [2025-04-20 13:55:18] Production.ERROR: pbx CDR StartTime 2025-04-20 10:55:05 - End Time 2025-04-20 13:55:05 [2025-04-20 13:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 13:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950719', 'tblTempUsageDetail_20' ) start [2025-04-20 13:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950719', 'tblTempUsageDetail_20' ) end [2025-04-20 13:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950719', 'tblTempVendorCDR_20' ) start [2025-04-20 13:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950719', 'tblTempVendorCDR_20' ) end [2025-04-20 13:55:18] Production.INFO: ProcessCDR(1,14950719,1,1,2) [2025-04-20 13:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950719', 'tblTempUsageDetail_20' ) start [2025-04-20 13:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950719', 'tblTempUsageDetail_20' ) end [2025-04-20 13:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 13:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 13:55:22] Production.INFO: ==25386== Releasing lock... [2025-04-20 13:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 13:55:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-20 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 10:56:05 [end_date_ymd] => 2025-04-20 13:56:05 [RateCDR] => 1 ) [2025-04-20 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-20 10:56:05' and `end` < '2025-04-20 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-20 13:56:18] Production.INFO: count ==848 [2025-04-20 13:56:18] Production.ERROR: pbx CDR StartTime 2025-04-20 10:56:05 - End Time 2025-04-20 13:56:05 [2025-04-20 13:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 13:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950724', 'tblTempUsageDetail_20' ) start [2025-04-20 13:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950724', 'tblTempUsageDetail_20' ) end [2025-04-20 13:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950724', 'tblTempVendorCDR_20' ) start [2025-04-20 13:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950724', 'tblTempVendorCDR_20' ) end [2025-04-20 13:56:18] Production.INFO: ProcessCDR(1,14950724,1,1,2) [2025-04-20 13:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950724', 'tblTempUsageDetail_20' ) start [2025-04-20 13:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950724', 'tblTempUsageDetail_20' ) end [2025-04-20 13:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 13:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 13:56:22] Production.INFO: ==25459== Releasing lock... [2025-04-20 13:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 13:56:22] Production.INFO: 35 MB #Memory Used# [2025-04-20 13:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 10:57:06 [end_date_ymd] => 2025-04-20 13:57:06 [RateCDR] => 1 ) [2025-04-20 13: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-20 10:57:06' and `end` < '2025-04-20 13: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-20 13:57:18] Production.INFO: count ==851 [2025-04-20 13:57:19] Production.ERROR: pbx CDR StartTime 2025-04-20 10:57:06 - End Time 2025-04-20 13:57:06 [2025-04-20 13:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 13:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950729', 'tblTempUsageDetail_20' ) start [2025-04-20 13:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950729', 'tblTempUsageDetail_20' ) end [2025-04-20 13:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950729', 'tblTempVendorCDR_20' ) start [2025-04-20 13:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950729', 'tblTempVendorCDR_20' ) end [2025-04-20 13:57:19] Production.INFO: ProcessCDR(1,14950729,1,1,2) [2025-04-20 13:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950729', 'tblTempUsageDetail_20' ) start [2025-04-20 13:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950729', 'tblTempUsageDetail_20' ) end [2025-04-20 13:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 13:57:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 13:57:23] Production.INFO: ==25544== Releasing lock... [2025-04-20 13:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 13:57:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-20 13:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 10:58:06 [end_date_ymd] => 2025-04-20 13:58:06 [RateCDR] => 1 ) [2025-04-20 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-20 10:58:06' and `end` < '2025-04-20 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-20 13:58:18] Production.INFO: count ==850 [2025-04-20 13:58:18] Production.ERROR: pbx CDR StartTime 2025-04-20 10:58:06 - End Time 2025-04-20 13:58:06 [2025-04-20 13:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 13:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950734', 'tblTempUsageDetail_20' ) start [2025-04-20 13:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950734', 'tblTempUsageDetail_20' ) end [2025-04-20 13:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950734', 'tblTempVendorCDR_20' ) start [2025-04-20 13:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950734', 'tblTempVendorCDR_20' ) end [2025-04-20 13:58:18] Production.INFO: ProcessCDR(1,14950734,1,1,2) [2025-04-20 13:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950734', 'tblTempUsageDetail_20' ) start [2025-04-20 13:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950734', 'tblTempUsageDetail_20' ) end [2025-04-20 13:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 13:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 13:58:23] Production.INFO: ==25618== Releasing lock... [2025-04-20 13:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 13:58:23] Production.INFO: 35 MB #Memory Used# [2025-04-20 13:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 10:59:06 [end_date_ymd] => 2025-04-20 13:59:06 [RateCDR] => 1 ) [2025-04-20 13:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 10:59:06' and `end` < '2025-04-20 13:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 13:59:19] Production.INFO: count ==852 [2025-04-20 13:59:19] Production.ERROR: pbx CDR StartTime 2025-04-20 10:59:06 - End Time 2025-04-20 13:59:06 [2025-04-20 13:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 13:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950739', 'tblTempUsageDetail_20' ) start [2025-04-20 13:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950739', 'tblTempUsageDetail_20' ) end [2025-04-20 13:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950739', 'tblTempVendorCDR_20' ) start [2025-04-20 13:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950739', 'tblTempVendorCDR_20' ) end [2025-04-20 13:59:19] Production.INFO: ProcessCDR(1,14950739,1,1,2) [2025-04-20 13:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 13:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 13:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950739', 'tblTempUsageDetail_20' ) start [2025-04-20 13:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950739', 'tblTempUsageDetail_20' ) end [2025-04-20 13:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 13:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 13:59:23] Production.INFO: ==25695== Releasing lock... [2025-04-20 13:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 13:59:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-20 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 11:00:06 [end_date_ymd] => 2025-04-20 14:00:06 [RateCDR] => 1 ) [2025-04-20 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-20 11:00:06' and `end` < '2025-04-20 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-20 14:00:19] Production.INFO: count ==854 [2025-04-20 14:00:19] Production.ERROR: pbx CDR StartTime 2025-04-20 11:00:06 - End Time 2025-04-20 14:00:06 [2025-04-20 14:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950745', 'tblTempUsageDetail_20' ) start [2025-04-20 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950745', 'tblTempUsageDetail_20' ) end [2025-04-20 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950745', 'tblTempVendorCDR_20' ) start [2025-04-20 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950745', 'tblTempVendorCDR_20' ) end [2025-04-20 14:00:19] Production.INFO: ProcessCDR(1,14950745,1,1,2) [2025-04-20 14:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950745', 'tblTempUsageDetail_20' ) start [2025-04-20 14:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950745', 'tblTempUsageDetail_20' ) end [2025-04-20 14:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 14:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 14:00:24] Production.INFO: ==25771== Releasing lock... [2025-04-20 14:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 14:00:24] Production.INFO: 35 MB #Memory Used# [2025-04-20 14:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 11:01:06 [end_date_ymd] => 2025-04-20 14:01:06 [RateCDR] => 1 ) [2025-04-20 14:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 11:01:06' and `end` < '2025-04-20 14:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 14:01:19] Production.INFO: count ==877 [2025-04-20 14:01:19] Production.ERROR: pbx CDR StartTime 2025-04-20 11:01:06 - End Time 2025-04-20 14:01:06 [2025-04-20 14:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 14:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950750', 'tblTempUsageDetail_20' ) start [2025-04-20 14:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950750', 'tblTempUsageDetail_20' ) end [2025-04-20 14:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950750', 'tblTempVendorCDR_20' ) start [2025-04-20 14:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950750', 'tblTempVendorCDR_20' ) end [2025-04-20 14:01:19] Production.INFO: ProcessCDR(1,14950750,1,1,2) [2025-04-20 14:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950750', 'tblTempUsageDetail_20' ) start [2025-04-20 14:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950750', 'tblTempUsageDetail_20' ) end [2025-04-20 14:01:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 14:01:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 14:01:24] Production.INFO: ==25897== Releasing lock... [2025-04-20 14:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 14:01:24] Production.INFO: 35.25 MB #Memory Used# [2025-04-20 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 11:02:05 [end_date_ymd] => 2025-04-20 14:02:05 [RateCDR] => 1 ) [2025-04-20 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-20 11:02:05' and `end` < '2025-04-20 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-20 14:02:18] Production.INFO: count ==878 [2025-04-20 14:02:18] Production.ERROR: pbx CDR StartTime 2025-04-20 11:02:05 - End Time 2025-04-20 14:02:05 [2025-04-20 14:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 14:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950755', 'tblTempUsageDetail_20' ) start [2025-04-20 14:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950755', 'tblTempUsageDetail_20' ) end [2025-04-20 14:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950755', 'tblTempVendorCDR_20' ) start [2025-04-20 14:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950755', 'tblTempVendorCDR_20' ) end [2025-04-20 14:02:18] Production.INFO: ProcessCDR(1,14950755,1,1,2) [2025-04-20 14:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950755', 'tblTempUsageDetail_20' ) start [2025-04-20 14:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950755', 'tblTempUsageDetail_20' ) end [2025-04-20 14:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 14:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 14:02:21] Production.INFO: ==25973== Releasing lock... [2025-04-20 14:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 14:02:21] Production.INFO: 35 MB #Memory Used# [2025-04-20 14:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 11:03:06 [end_date_ymd] => 2025-04-20 14:03:06 [RateCDR] => 1 ) [2025-04-20 14:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 11:03:06' and `end` < '2025-04-20 14:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 14:03:18] Production.INFO: count ==879 [2025-04-20 14:03:18] Production.ERROR: pbx CDR StartTime 2025-04-20 11:03:06 - End Time 2025-04-20 14:03:06 [2025-04-20 14:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 14:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950760', 'tblTempUsageDetail_20' ) start [2025-04-20 14:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950760', 'tblTempUsageDetail_20' ) end [2025-04-20 14:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950760', 'tblTempVendorCDR_20' ) start [2025-04-20 14:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950760', 'tblTempVendorCDR_20' ) end [2025-04-20 14:03:18] Production.INFO: ProcessCDR(1,14950760,1,1,2) [2025-04-20 14:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950760', 'tblTempUsageDetail_20' ) start [2025-04-20 14:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950760', 'tblTempUsageDetail_20' ) end [2025-04-20 14:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 14:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 14:03:22] Production.INFO: ==26047== Releasing lock... [2025-04-20 14:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 14:03:22] Production.INFO: 35 MB #Memory Used# [2025-04-20 14:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 11:04:05 [end_date_ymd] => 2025-04-20 14:04:05 [RateCDR] => 1 ) [2025-04-20 14:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 11:04:05' and `end` < '2025-04-20 14:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 14:04:17] Production.INFO: count ==883 [2025-04-20 14:04:17] Production.ERROR: pbx CDR StartTime 2025-04-20 11:04:05 - End Time 2025-04-20 14:04:05 [2025-04-20 14:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 14:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950765', 'tblTempUsageDetail_20' ) start [2025-04-20 14:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950765', 'tblTempUsageDetail_20' ) end [2025-04-20 14:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950765', 'tblTempVendorCDR_20' ) start [2025-04-20 14:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950765', 'tblTempVendorCDR_20' ) end [2025-04-20 14:04:17] Production.INFO: ProcessCDR(1,14950765,1,1,2) [2025-04-20 14:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950765', 'tblTempUsageDetail_20' ) start [2025-04-20 14:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950765', 'tblTempUsageDetail_20' ) end [2025-04-20 14:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 14:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 14:04:21] Production.INFO: ==26122== Releasing lock... [2025-04-20 14:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 14:04:21] Production.INFO: 35 MB #Memory Used# [2025-04-20 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 11:05:05 [end_date_ymd] => 2025-04-20 14:05:05 [RateCDR] => 1 ) [2025-04-20 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-20 11:05:05' and `end` < '2025-04-20 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-20 14:05:18] Production.INFO: count ==886 [2025-04-20 14:05:18] Production.ERROR: pbx CDR StartTime 2025-04-20 11:05:05 - End Time 2025-04-20 14:05:05 [2025-04-20 14:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 14:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950770', 'tblTempUsageDetail_20' ) start [2025-04-20 14:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950770', 'tblTempUsageDetail_20' ) end [2025-04-20 14:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950770', 'tblTempVendorCDR_20' ) start [2025-04-20 14:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950770', 'tblTempVendorCDR_20' ) end [2025-04-20 14:05:18] Production.INFO: ProcessCDR(1,14950770,1,1,2) [2025-04-20 14:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950770', 'tblTempUsageDetail_20' ) start [2025-04-20 14:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950770', 'tblTempUsageDetail_20' ) end [2025-04-20 14:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 14:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 14:05:23] Production.INFO: ==26201== Releasing lock... [2025-04-20 14:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 14:05:23] Production.INFO: 34.75 MB #Memory Used# [2025-04-20 14:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 11:06:05 [end_date_ymd] => 2025-04-20 14:06:05 [RateCDR] => 1 ) [2025-04-20 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-20 11:06:05' and `end` < '2025-04-20 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-20 14:06:17] Production.INFO: count ==888 [2025-04-20 14:06:18] Production.ERROR: pbx CDR StartTime 2025-04-20 11:06:05 - End Time 2025-04-20 14:06:05 [2025-04-20 14:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 14:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950775', 'tblTempUsageDetail_20' ) start [2025-04-20 14:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950775', 'tblTempUsageDetail_20' ) end [2025-04-20 14:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950775', 'tblTempVendorCDR_20' ) start [2025-04-20 14:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950775', 'tblTempVendorCDR_20' ) end [2025-04-20 14:06:18] Production.INFO: ProcessCDR(1,14950775,1,1,2) [2025-04-20 14:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950775', 'tblTempUsageDetail_20' ) start [2025-04-20 14:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950775', 'tblTempUsageDetail_20' ) end [2025-04-20 14:06:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 14:06:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 14:06:23] Production.INFO: ==26277== Releasing lock... [2025-04-20 14:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 14:06:23] Production.INFO: 35 MB #Memory Used# [2025-04-20 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 11:07:05 [end_date_ymd] => 2025-04-20 14:07:05 [RateCDR] => 1 ) [2025-04-20 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-20 11:07:05' and `end` < '2025-04-20 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-20 14:07:18] Production.INFO: count ==887 [2025-04-20 14:07:18] Production.ERROR: pbx CDR StartTime 2025-04-20 11:07:05 - End Time 2025-04-20 14:07:05 [2025-04-20 14:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 14:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950780', 'tblTempUsageDetail_20' ) start [2025-04-20 14:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950780', 'tblTempUsageDetail_20' ) end [2025-04-20 14:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950780', 'tblTempVendorCDR_20' ) start [2025-04-20 14:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950780', 'tblTempVendorCDR_20' ) end [2025-04-20 14:07:18] Production.INFO: ProcessCDR(1,14950780,1,1,2) [2025-04-20 14:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950780', 'tblTempUsageDetail_20' ) start [2025-04-20 14:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950780', 'tblTempUsageDetail_20' ) end [2025-04-20 14:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 14:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 14:07:21] Production.INFO: ==26351== Releasing lock... [2025-04-20 14:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 14:07:21] Production.INFO: 35 MB #Memory Used# [2025-04-20 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 11:08:05 [end_date_ymd] => 2025-04-20 14:08:05 [RateCDR] => 1 ) [2025-04-20 14:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 11:08:05' and `end` < '2025-04-20 14:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 14:08:18] Production.INFO: count ==890 [2025-04-20 14:08:18] Production.ERROR: pbx CDR StartTime 2025-04-20 11:08:05 - End Time 2025-04-20 14:08:05 [2025-04-20 14:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 14:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950785', 'tblTempUsageDetail_20' ) start [2025-04-20 14:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950785', 'tblTempUsageDetail_20' ) end [2025-04-20 14:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950785', 'tblTempVendorCDR_20' ) start [2025-04-20 14:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950785', 'tblTempVendorCDR_20' ) end [2025-04-20 14:08:18] Production.INFO: ProcessCDR(1,14950785,1,1,2) [2025-04-20 14:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950785', 'tblTempUsageDetail_20' ) start [2025-04-20 14:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950785', 'tblTempUsageDetail_20' ) end [2025-04-20 14:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 14:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 14:08:21] Production.INFO: ==26425== Releasing lock... [2025-04-20 14:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 14:08:21] Production.INFO: 34.5 MB #Memory Used# [2025-04-20 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 11:09:05 [end_date_ymd] => 2025-04-20 14:09:05 [RateCDR] => 1 ) [2025-04-20 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-20 11:09:05' and `end` < '2025-04-20 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-20 14:09:18] Production.INFO: count ==886 [2025-04-20 14:09:18] Production.ERROR: pbx CDR StartTime 2025-04-20 11:09:05 - End Time 2025-04-20 14:09:05 [2025-04-20 14:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 14:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950790', 'tblTempUsageDetail_20' ) start [2025-04-20 14:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950790', 'tblTempUsageDetail_20' ) end [2025-04-20 14:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950790', 'tblTempVendorCDR_20' ) start [2025-04-20 14:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950790', 'tblTempVendorCDR_20' ) end [2025-04-20 14:09:18] Production.INFO: ProcessCDR(1,14950790,1,1,2) [2025-04-20 14:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950790', 'tblTempUsageDetail_20' ) start [2025-04-20 14:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950790', 'tblTempUsageDetail_20' ) end [2025-04-20 14:09:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 14:09:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 14:09:23] Production.INFO: ==26501== Releasing lock... [2025-04-20 14:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 14:09:23] Production.INFO: 34.75 MB #Memory Used# [2025-04-20 14:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 11:10:07 [end_date_ymd] => 2025-04-20 14:10:07 [RateCDR] => 1 ) [2025-04-20 14:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 11:10:07' and `end` < '2025-04-20 14:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 14:10:20] Production.INFO: count ==885 [2025-04-20 14:10:20] Production.ERROR: pbx CDR StartTime 2025-04-20 11:10:07 - End Time 2025-04-20 14:10:07 [2025-04-20 14:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 14:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950796', 'tblTempUsageDetail_20' ) start [2025-04-20 14:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950796', 'tblTempUsageDetail_20' ) end [2025-04-20 14:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950796', 'tblTempVendorCDR_20' ) start [2025-04-20 14:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950796', 'tblTempVendorCDR_20' ) end [2025-04-20 14:10:20] Production.INFO: ProcessCDR(1,14950796,1,1,2) [2025-04-20 14:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950796', 'tblTempUsageDetail_20' ) start [2025-04-20 14:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950796', 'tblTempUsageDetail_20' ) end [2025-04-20 14:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 14:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 14:10:23] Production.INFO: ==26578== Releasing lock... [2025-04-20 14:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 14:10:23] Production.INFO: 35.25 MB #Memory Used# [2025-04-20 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 11:11:05 [end_date_ymd] => 2025-04-20 14:11:05 [RateCDR] => 1 ) [2025-04-20 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-20 11:11:05' and `end` < '2025-04-20 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-20 14:11:18] Production.INFO: count ==901 [2025-04-20 14:11:18] Production.ERROR: pbx CDR StartTime 2025-04-20 11:11:05 - End Time 2025-04-20 14:11:05 [2025-04-20 14:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 14:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950801', 'tblTempUsageDetail_20' ) start [2025-04-20 14:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950801', 'tblTempUsageDetail_20' ) end [2025-04-20 14:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950801', 'tblTempVendorCDR_20' ) start [2025-04-20 14:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950801', 'tblTempVendorCDR_20' ) end [2025-04-20 14:11:18] Production.INFO: ProcessCDR(1,14950801,1,1,2) [2025-04-20 14:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950801', 'tblTempUsageDetail_20' ) start [2025-04-20 14:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950801', 'tblTempUsageDetail_20' ) end [2025-04-20 14:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 14:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 14:11:21] Production.INFO: ==26659== Releasing lock... [2025-04-20 14:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 14:11:21] Production.INFO: 35.25 MB #Memory Used# [2025-04-20 14:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 11:12:06 [end_date_ymd] => 2025-04-20 14:12:06 [RateCDR] => 1 ) [2025-04-20 14:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 11:12:06' and `end` < '2025-04-20 14:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 14:12:19] Production.INFO: count ==900 [2025-04-20 14:12:19] Production.ERROR: pbx CDR StartTime 2025-04-20 11:12:06 - End Time 2025-04-20 14:12:06 [2025-04-20 14:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 14:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950806', 'tblTempUsageDetail_20' ) start [2025-04-20 14:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950806', 'tblTempUsageDetail_20' ) end [2025-04-20 14:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950806', 'tblTempVendorCDR_20' ) start [2025-04-20 14:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950806', 'tblTempVendorCDR_20' ) end [2025-04-20 14:12:19] Production.INFO: ProcessCDR(1,14950806,1,1,2) [2025-04-20 14:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950806', 'tblTempUsageDetail_20' ) start [2025-04-20 14:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950806', 'tblTempUsageDetail_20' ) end [2025-04-20 14:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 14:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 14:12:22] Production.INFO: ==26736== Releasing lock... [2025-04-20 14:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 14:12:22] Production.INFO: 35 MB #Memory Used# [2025-04-20 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 11:13:05 [end_date_ymd] => 2025-04-20 14:13:05 [RateCDR] => 1 ) [2025-04-20 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-20 11:13:05' and `end` < '2025-04-20 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-20 14:13:18] Production.INFO: count ==902 [2025-04-20 14:13:18] Production.ERROR: pbx CDR StartTime 2025-04-20 11:13:05 - End Time 2025-04-20 14:13:05 [2025-04-20 14:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 14:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950811', 'tblTempUsageDetail_20' ) start [2025-04-20 14:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950811', 'tblTempUsageDetail_20' ) end [2025-04-20 14:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950811', 'tblTempVendorCDR_20' ) start [2025-04-20 14:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950811', 'tblTempVendorCDR_20' ) end [2025-04-20 14:13:18] Production.INFO: ProcessCDR(1,14950811,1,1,2) [2025-04-20 14:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950811', 'tblTempUsageDetail_20' ) start [2025-04-20 14:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950811', 'tblTempUsageDetail_20' ) end [2025-04-20 14:13:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 14:13:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 14:13:23] Production.INFO: ==26811== Releasing lock... [2025-04-20 14:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 14:13:23] Production.INFO: 35 MB #Memory Used# [2025-04-20 14:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 11:14:06 [end_date_ymd] => 2025-04-20 14:14:06 [RateCDR] => 1 ) [2025-04-20 14:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 11:14:06' and `end` < '2025-04-20 14:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 14:14:18] Production.INFO: count ==903 [2025-04-20 14:14:19] Production.ERROR: pbx CDR StartTime 2025-04-20 11:14:06 - End Time 2025-04-20 14:14:06 [2025-04-20 14:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 14:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950816', 'tblTempUsageDetail_20' ) start [2025-04-20 14:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950816', 'tblTempUsageDetail_20' ) end [2025-04-20 14:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950816', 'tblTempVendorCDR_20' ) start [2025-04-20 14:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950816', 'tblTempVendorCDR_20' ) end [2025-04-20 14:14:19] Production.INFO: ProcessCDR(1,14950816,1,1,2) [2025-04-20 14:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950816', 'tblTempUsageDetail_20' ) start [2025-04-20 14:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950816', 'tblTempUsageDetail_20' ) end [2025-04-20 14:14:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 14:14:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 14:14:23] Production.INFO: ==26885== Releasing lock... [2025-04-20 14:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 14:14:23] Production.INFO: 35.5 MB #Memory Used# [2025-04-20 14:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 11:15:05 [end_date_ymd] => 2025-04-20 14:15:05 [RateCDR] => 1 ) [2025-04-20 14:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 11:15:05' and `end` < '2025-04-20 14:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 14:15:18] Production.INFO: count ==916 [2025-04-20 14:15:18] Production.ERROR: pbx CDR StartTime 2025-04-20 11:15:05 - End Time 2025-04-20 14:15:05 [2025-04-20 14:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 14:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950821', 'tblTempUsageDetail_20' ) start [2025-04-20 14:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950821', 'tblTempUsageDetail_20' ) end [2025-04-20 14:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950821', 'tblTempVendorCDR_20' ) start [2025-04-20 14:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950821', 'tblTempVendorCDR_20' ) end [2025-04-20 14:15:18] Production.INFO: ProcessCDR(1,14950821,1,1,2) [2025-04-20 14:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950821', 'tblTempUsageDetail_20' ) start [2025-04-20 14:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950821', 'tblTempUsageDetail_20' ) end [2025-04-20 14:15:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 14:15:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 14:15:23] Production.INFO: ==26963== Releasing lock... [2025-04-20 14:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 14:15:23] Production.INFO: 35.25 MB #Memory Used# [2025-04-20 14:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 11:16:06 [end_date_ymd] => 2025-04-20 14:16:06 [RateCDR] => 1 ) [2025-04-20 14:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 11:16:06' and `end` < '2025-04-20 14:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 14:16:18] Production.INFO: count ==921 [2025-04-20 14:16:18] Production.ERROR: pbx CDR StartTime 2025-04-20 11:16:06 - End Time 2025-04-20 14:16:06 [2025-04-20 14:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 14:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950826', 'tblTempUsageDetail_20' ) start [2025-04-20 14:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950826', 'tblTempUsageDetail_20' ) end [2025-04-20 14:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950826', 'tblTempVendorCDR_20' ) start [2025-04-20 14:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950826', 'tblTempVendorCDR_20' ) end [2025-04-20 14:16:18] Production.INFO: ProcessCDR(1,14950826,1,1,2) [2025-04-20 14:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950826', 'tblTempUsageDetail_20' ) start [2025-04-20 14:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950826', 'tblTempUsageDetail_20' ) end [2025-04-20 14:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 14:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 14:16:22] Production.INFO: ==27047== Releasing lock... [2025-04-20 14:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 14:16:22] Production.INFO: 35 MB #Memory Used# [2025-04-20 14:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 11:17:05 [end_date_ymd] => 2025-04-20 14:17:05 [RateCDR] => 1 ) [2025-04-20 14:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 11:17:05' and `end` < '2025-04-20 14:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 14:17:17] Production.INFO: count ==925 [2025-04-20 14:17:17] Production.ERROR: pbx CDR StartTime 2025-04-20 11:17:05 - End Time 2025-04-20 14:17:05 [2025-04-20 14:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 14:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950831', 'tblTempUsageDetail_20' ) start [2025-04-20 14:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950831', 'tblTempUsageDetail_20' ) end [2025-04-20 14:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950831', 'tblTempVendorCDR_20' ) start [2025-04-20 14:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950831', 'tblTempVendorCDR_20' ) end [2025-04-20 14:17:17] Production.INFO: ProcessCDR(1,14950831,1,1,2) [2025-04-20 14:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950831', 'tblTempUsageDetail_20' ) start [2025-04-20 14:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950831', 'tblTempUsageDetail_20' ) end [2025-04-20 14:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 14:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 14:17:22] Production.INFO: ==27161== Releasing lock... [2025-04-20 14:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 14:17:22] Production.INFO: 35.5 MB #Memory Used# [2025-04-20 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 11:18:05 [end_date_ymd] => 2025-04-20 14:18:05 [RateCDR] => 1 ) [2025-04-20 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-20 11:18:05' and `end` < '2025-04-20 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-20 14:18:18] Production.INFO: count ==925 [2025-04-20 14:18:18] Production.ERROR: pbx CDR StartTime 2025-04-20 11:18:05 - End Time 2025-04-20 14:18:05 [2025-04-20 14:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 14:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950836', 'tblTempUsageDetail_20' ) start [2025-04-20 14:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950836', 'tblTempUsageDetail_20' ) end [2025-04-20 14:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950836', 'tblTempVendorCDR_20' ) start [2025-04-20 14:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950836', 'tblTempVendorCDR_20' ) end [2025-04-20 14:18:18] Production.INFO: ProcessCDR(1,14950836,1,1,2) [2025-04-20 14:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950836', 'tblTempUsageDetail_20' ) start [2025-04-20 14:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950836', 'tblTempUsageDetail_20' ) end [2025-04-20 14:18:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 14:18:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 14:18:23] Production.INFO: ==27237== Releasing lock... [2025-04-20 14:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 14:18:23] Production.INFO: 35.25 MB #Memory Used# [2025-04-20 14:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 11:19:04 [end_date_ymd] => 2025-04-20 14:19:04 [RateCDR] => 1 ) [2025-04-20 14:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 11:19:04' and `end` < '2025-04-20 14:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 14:19:17] Production.INFO: count ==923 [2025-04-20 14:19:17] Production.ERROR: pbx CDR StartTime 2025-04-20 11:19:04 - End Time 2025-04-20 14:19:04 [2025-04-20 14:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 14:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950841', 'tblTempUsageDetail_20' ) start [2025-04-20 14:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950841', 'tblTempUsageDetail_20' ) end [2025-04-20 14:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950841', 'tblTempVendorCDR_20' ) start [2025-04-20 14:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950841', 'tblTempVendorCDR_20' ) end [2025-04-20 14:19:17] Production.INFO: ProcessCDR(1,14950841,1,1,2) [2025-04-20 14:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950841', 'tblTempUsageDetail_20' ) start [2025-04-20 14:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950841', 'tblTempUsageDetail_20' ) end [2025-04-20 14:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 14:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 14:19:21] Production.INFO: ==27309== Releasing lock... [2025-04-20 14:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 14:19:21] Production.INFO: 35 MB #Memory Used# [2025-04-20 14:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 11:20:06 [end_date_ymd] => 2025-04-20 14:20:06 [RateCDR] => 1 ) [2025-04-20 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-20 11:20:06' and `end` < '2025-04-20 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-20 14:20:19] Production.INFO: count ==922 [2025-04-20 14:20:19] Production.ERROR: pbx CDR StartTime 2025-04-20 11:20:06 - End Time 2025-04-20 14:20:06 [2025-04-20 14:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 14:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950847', 'tblTempUsageDetail_20' ) start [2025-04-20 14:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950847', 'tblTempUsageDetail_20' ) end [2025-04-20 14:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950847', 'tblTempVendorCDR_20' ) start [2025-04-20 14:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950847', 'tblTempVendorCDR_20' ) end [2025-04-20 14:20:19] Production.INFO: ProcessCDR(1,14950847,1,1,2) [2025-04-20 14:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950847', 'tblTempUsageDetail_20' ) start [2025-04-20 14:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950847', 'tblTempUsageDetail_20' ) end [2025-04-20 14:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 14:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 14:20:24] Production.INFO: ==27387== Releasing lock... [2025-04-20 14:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 14:20:24] Production.INFO: 35 MB #Memory Used# [2025-04-20 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 11:21:05 [end_date_ymd] => 2025-04-20 14:21:05 [RateCDR] => 1 ) [2025-04-20 14:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 11:21:05' and `end` < '2025-04-20 14:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 14:21:17] Production.INFO: count ==903 [2025-04-20 14:21:17] Production.ERROR: pbx CDR StartTime 2025-04-20 11:21:05 - End Time 2025-04-20 14:21:05 [2025-04-20 14:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 14:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950852', 'tblTempUsageDetail_20' ) start [2025-04-20 14:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950852', 'tblTempUsageDetail_20' ) end [2025-04-20 14:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950852', 'tblTempVendorCDR_20' ) start [2025-04-20 14:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950852', 'tblTempVendorCDR_20' ) end [2025-04-20 14:21:17] Production.INFO: ProcessCDR(1,14950852,1,1,2) [2025-04-20 14:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950852', 'tblTempUsageDetail_20' ) start [2025-04-20 14:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950852', 'tblTempUsageDetail_20' ) end [2025-04-20 14:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 14:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 14:21:21] Production.INFO: ==27463== Releasing lock... [2025-04-20 14:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 14:21:21] Production.INFO: 35.25 MB #Memory Used# [2025-04-20 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 11:22:05 [end_date_ymd] => 2025-04-20 14:22:05 [RateCDR] => 1 ) [2025-04-20 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-20 11:22:05' and `end` < '2025-04-20 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-20 14:22:18] Production.INFO: count ==904 [2025-04-20 14:22:18] Production.ERROR: pbx CDR StartTime 2025-04-20 11:22:05 - End Time 2025-04-20 14:22:05 [2025-04-20 14:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 14:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950857', 'tblTempUsageDetail_20' ) start [2025-04-20 14:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950857', 'tblTempUsageDetail_20' ) end [2025-04-20 14:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950857', 'tblTempVendorCDR_20' ) start [2025-04-20 14:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950857', 'tblTempVendorCDR_20' ) end [2025-04-20 14:22:18] Production.INFO: ProcessCDR(1,14950857,1,1,2) [2025-04-20 14:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950857', 'tblTempUsageDetail_20' ) start [2025-04-20 14:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950857', 'tblTempUsageDetail_20' ) end [2025-04-20 14:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 14:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 14:22:23] Production.INFO: ==27542== Releasing lock... [2025-04-20 14:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 14:22:23] Production.INFO: 35 MB #Memory Used# [2025-04-20 14:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 11:23:06 [end_date_ymd] => 2025-04-20 14:23:06 [RateCDR] => 1 ) [2025-04-20 14:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 11:23:06' and `end` < '2025-04-20 14:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 14:23:18] Production.INFO: count ==905 [2025-04-20 14:23:19] Production.ERROR: pbx CDR StartTime 2025-04-20 11:23:06 - End Time 2025-04-20 14:23:06 [2025-04-20 14:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950862', 'tblTempUsageDetail_20' ) start [2025-04-20 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950862', 'tblTempUsageDetail_20' ) end [2025-04-20 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950862', 'tblTempVendorCDR_20' ) start [2025-04-20 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950862', 'tblTempVendorCDR_20' ) end [2025-04-20 14:23:19] Production.INFO: ProcessCDR(1,14950862,1,1,2) [2025-04-20 14:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950862', 'tblTempUsageDetail_20' ) start [2025-04-20 14:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950862', 'tblTempUsageDetail_20' ) end [2025-04-20 14:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 14:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 14:23:22] Production.INFO: ==27620== Releasing lock... [2025-04-20 14:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 14:23:22] Production.INFO: 35.25 MB #Memory Used# [2025-04-20 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 11:24:05 [end_date_ymd] => 2025-04-20 14:24:05 [RateCDR] => 1 ) [2025-04-20 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-20 11:24:05' and `end` < '2025-04-20 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-20 14:24:18] Production.INFO: count ==902 [2025-04-20 14:24:18] Production.ERROR: pbx CDR StartTime 2025-04-20 11:24:05 - End Time 2025-04-20 14:24:05 [2025-04-20 14:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950867', 'tblTempUsageDetail_20' ) start [2025-04-20 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950867', 'tblTempUsageDetail_20' ) end [2025-04-20 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950867', 'tblTempVendorCDR_20' ) start [2025-04-20 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950867', 'tblTempVendorCDR_20' ) end [2025-04-20 14:24:18] Production.INFO: ProcessCDR(1,14950867,1,1,2) [2025-04-20 14:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950867', 'tblTempUsageDetail_20' ) start [2025-04-20 14:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950867', 'tblTempUsageDetail_20' ) end [2025-04-20 14:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 14:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 14:24:21] Production.INFO: ==27699== Releasing lock... [2025-04-20 14:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 14:24:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-20 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 11:25:05 [end_date_ymd] => 2025-04-20 14:25:05 [RateCDR] => 1 ) [2025-04-20 14:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 11:25:05' and `end` < '2025-04-20 14:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 14:25:18] Production.INFO: count ==898 [2025-04-20 14:25:18] Production.ERROR: pbx CDR StartTime 2025-04-20 11:25:05 - End Time 2025-04-20 14:25:05 [2025-04-20 14:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950872', 'tblTempUsageDetail_20' ) start [2025-04-20 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950872', 'tblTempUsageDetail_20' ) end [2025-04-20 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950872', 'tblTempVendorCDR_20' ) start [2025-04-20 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950872', 'tblTempVendorCDR_20' ) end [2025-04-20 14:25:18] Production.INFO: ProcessCDR(1,14950872,1,1,2) [2025-04-20 14:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950872', 'tblTempUsageDetail_20' ) start [2025-04-20 14:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950872', 'tblTempUsageDetail_20' ) end [2025-04-20 14:25:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 14:25:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 14:25:23] Production.INFO: ==27774== Releasing lock... [2025-04-20 14:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 14:25:23] Production.INFO: 35 MB #Memory Used# [2025-04-20 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 11:26:05 [end_date_ymd] => 2025-04-20 14:26:05 [RateCDR] => 1 ) [2025-04-20 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-20 11:26:05' and `end` < '2025-04-20 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-20 14:26:17] Production.INFO: count ==909 [2025-04-20 14:26:17] Production.ERROR: pbx CDR StartTime 2025-04-20 11:26:05 - End Time 2025-04-20 14:26:05 [2025-04-20 14:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 14:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950877', 'tblTempUsageDetail_20' ) start [2025-04-20 14:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950877', 'tblTempUsageDetail_20' ) end [2025-04-20 14:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950877', 'tblTempVendorCDR_20' ) start [2025-04-20 14:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950877', 'tblTempVendorCDR_20' ) end [2025-04-20 14:26:17] Production.INFO: ProcessCDR(1,14950877,1,1,2) [2025-04-20 14:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950877', 'tblTempUsageDetail_20' ) start [2025-04-20 14:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950877', 'tblTempUsageDetail_20' ) end [2025-04-20 14:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 14:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 14:26:22] Production.INFO: ==27842== Releasing lock... [2025-04-20 14:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 14:26:22] Production.INFO: 35.25 MB #Memory Used# [2025-04-20 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 11:27:05 [end_date_ymd] => 2025-04-20 14:27:05 [RateCDR] => 1 ) [2025-04-20 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-20 11:27:05' and `end` < '2025-04-20 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-20 14:27:18] Production.INFO: count ==908 [2025-04-20 14:27:18] Production.ERROR: pbx CDR StartTime 2025-04-20 11:27:05 - End Time 2025-04-20 14:27:05 [2025-04-20 14:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 14:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950882', 'tblTempUsageDetail_20' ) start [2025-04-20 14:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950882', 'tblTempUsageDetail_20' ) end [2025-04-20 14:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950882', 'tblTempVendorCDR_20' ) start [2025-04-20 14:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950882', 'tblTempVendorCDR_20' ) end [2025-04-20 14:27:18] Production.INFO: ProcessCDR(1,14950882,1,1,2) [2025-04-20 14:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950882', 'tblTempUsageDetail_20' ) start [2025-04-20 14:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950882', 'tblTempUsageDetail_20' ) end [2025-04-20 14:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 14:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 14:27:21] Production.INFO: ==27920== Releasing lock... [2025-04-20 14:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 14:27:21] Production.INFO: 35.25 MB #Memory Used# [2025-04-20 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 11:28:05 [end_date_ymd] => 2025-04-20 14:28:05 [RateCDR] => 1 ) [2025-04-20 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-20 11:28:05' and `end` < '2025-04-20 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-20 14:28:18] Production.INFO: count ==911 [2025-04-20 14:28:18] Production.ERROR: pbx CDR StartTime 2025-04-20 11:28:05 - End Time 2025-04-20 14:28:05 [2025-04-20 14:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 14:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950887', 'tblTempUsageDetail_20' ) start [2025-04-20 14:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950887', 'tblTempUsageDetail_20' ) end [2025-04-20 14:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950887', 'tblTempVendorCDR_20' ) start [2025-04-20 14:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950887', 'tblTempVendorCDR_20' ) end [2025-04-20 14:28:18] Production.INFO: ProcessCDR(1,14950887,1,1,2) [2025-04-20 14:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950887', 'tblTempUsageDetail_20' ) start [2025-04-20 14:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950887', 'tblTempUsageDetail_20' ) end [2025-04-20 14:28:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 14:28:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 14:28:23] Production.INFO: ==27992== Releasing lock... [2025-04-20 14:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 14:28:23] Production.INFO: 35.25 MB #Memory Used# [2025-04-20 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 11:29:05 [end_date_ymd] => 2025-04-20 14:29:05 [RateCDR] => 1 ) [2025-04-20 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-20 11:29:05' and `end` < '2025-04-20 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-20 14:29:18] Production.INFO: count ==910 [2025-04-20 14:29:18] Production.ERROR: pbx CDR StartTime 2025-04-20 11:29:05 - End Time 2025-04-20 14:29:05 [2025-04-20 14:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 14:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950892', 'tblTempUsageDetail_20' ) start [2025-04-20 14:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950892', 'tblTempUsageDetail_20' ) end [2025-04-20 14:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950892', 'tblTempVendorCDR_20' ) start [2025-04-20 14:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950892', 'tblTempVendorCDR_20' ) end [2025-04-20 14:29:18] Production.INFO: ProcessCDR(1,14950892,1,1,2) [2025-04-20 14:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950892', 'tblTempUsageDetail_20' ) start [2025-04-20 14:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950892', 'tblTempUsageDetail_20' ) end [2025-04-20 14:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 14:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 14:29:21] Production.INFO: ==28068== Releasing lock... [2025-04-20 14:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 14:29:21] Production.INFO: 35 MB #Memory Used# [2025-04-20 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 11:30:06 [end_date_ymd] => 2025-04-20 14:30:06 [RateCDR] => 1 ) [2025-04-20 14:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 11:30:06' and `end` < '2025-04-20 14:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 14:30:19] Production.INFO: count ==906 [2025-04-20 14:30:19] Production.ERROR: pbx CDR StartTime 2025-04-20 11:30:06 - End Time 2025-04-20 14:30:06 [2025-04-20 14:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950897', 'tblTempUsageDetail_20' ) start [2025-04-20 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950897', 'tblTempUsageDetail_20' ) end [2025-04-20 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950897', 'tblTempVendorCDR_20' ) start [2025-04-20 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950897', 'tblTempVendorCDR_20' ) end [2025-04-20 14:30:19] Production.INFO: ProcessCDR(1,14950897,1,1,2) [2025-04-20 14:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950897', 'tblTempUsageDetail_20' ) start [2025-04-20 14:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950897', 'tblTempUsageDetail_20' ) end [2025-04-20 14:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 14:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 14:30:23] Production.INFO: ==28143== Releasing lock... [2025-04-20 14:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 14:30:23] Production.INFO: 35 MB #Memory Used# [2025-04-20 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 11:31:05 [end_date_ymd] => 2025-04-20 14:31:05 [RateCDR] => 1 ) [2025-04-20 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-20 11:31:05' and `end` < '2025-04-20 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-20 14:31:17] Production.INFO: count ==903 [2025-04-20 14:31:18] Production.ERROR: pbx CDR StartTime 2025-04-20 11:31:05 - End Time 2025-04-20 14:31:05 [2025-04-20 14:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 14:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950903', 'tblTempUsageDetail_20' ) start [2025-04-20 14:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950903', 'tblTempUsageDetail_20' ) end [2025-04-20 14:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950903', 'tblTempVendorCDR_20' ) start [2025-04-20 14:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950903', 'tblTempVendorCDR_20' ) end [2025-04-20 14:31:18] Production.INFO: ProcessCDR(1,14950903,1,1,2) [2025-04-20 14:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950903', 'tblTempUsageDetail_20' ) start [2025-04-20 14:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950903', 'tblTempUsageDetail_20' ) end [2025-04-20 14:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 14:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 14:31:21] Production.INFO: ==28216== Releasing lock... [2025-04-20 14:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 14:31:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-20 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 11:32:05 [end_date_ymd] => 2025-04-20 14:32:05 [RateCDR] => 1 ) [2025-04-20 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-20 11:32:05' and `end` < '2025-04-20 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-20 14:32:18] Production.INFO: count ==907 [2025-04-20 14:32:18] Production.ERROR: pbx CDR StartTime 2025-04-20 11:32:05 - End Time 2025-04-20 14:32:05 [2025-04-20 14:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 14:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950908', 'tblTempUsageDetail_20' ) start [2025-04-20 14:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950908', 'tblTempUsageDetail_20' ) end [2025-04-20 14:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950908', 'tblTempVendorCDR_20' ) start [2025-04-20 14:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950908', 'tblTempVendorCDR_20' ) end [2025-04-20 14:32:18] Production.INFO: ProcessCDR(1,14950908,1,1,2) [2025-04-20 14:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950908', 'tblTempUsageDetail_20' ) start [2025-04-20 14:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950908', 'tblTempUsageDetail_20' ) end [2025-04-20 14:32:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 14:32:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 14:32:23] Production.INFO: ==28335== Releasing lock... [2025-04-20 14:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 14:32:23] Production.INFO: 35.25 MB #Memory Used# [2025-04-20 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 11:33:05 [end_date_ymd] => 2025-04-20 14:33:05 [RateCDR] => 1 ) [2025-04-20 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-20 11:33:05' and `end` < '2025-04-20 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-20 14:33:17] Production.INFO: count ==909 [2025-04-20 14:33:17] Production.ERROR: pbx CDR StartTime 2025-04-20 11:33:05 - End Time 2025-04-20 14:33:05 [2025-04-20 14:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 14:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950913', 'tblTempUsageDetail_20' ) start [2025-04-20 14:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950913', 'tblTempUsageDetail_20' ) end [2025-04-20 14:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950913', 'tblTempVendorCDR_20' ) start [2025-04-20 14:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950913', 'tblTempVendorCDR_20' ) end [2025-04-20 14:33:17] Production.INFO: ProcessCDR(1,14950913,1,1,2) [2025-04-20 14:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950913', 'tblTempUsageDetail_20' ) start [2025-04-20 14:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950913', 'tblTempUsageDetail_20' ) end [2025-04-20 14:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 14:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 14:33:23] Production.INFO: ==28406== Releasing lock... [2025-04-20 14:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 14:33:23] Production.INFO: 35.25 MB #Memory Used# [2025-04-20 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 11:34:05 [end_date_ymd] => 2025-04-20 14:34:05 [RateCDR] => 1 ) [2025-04-20 14:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 11:34:05' and `end` < '2025-04-20 14:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 14:34:18] Production.INFO: count ==910 [2025-04-20 14:34:18] Production.ERROR: pbx CDR StartTime 2025-04-20 11:34:05 - End Time 2025-04-20 14:34:05 [2025-04-20 14:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 14:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950918', 'tblTempUsageDetail_20' ) start [2025-04-20 14:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950918', 'tblTempUsageDetail_20' ) end [2025-04-20 14:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950918', 'tblTempVendorCDR_20' ) start [2025-04-20 14:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950918', 'tblTempVendorCDR_20' ) end [2025-04-20 14:34:18] Production.INFO: ProcessCDR(1,14950918,1,1,2) [2025-04-20 14:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950918', 'tblTempUsageDetail_20' ) start [2025-04-20 14:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950918', 'tblTempUsageDetail_20' ) end [2025-04-20 14:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 14:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 14:34:21] Production.INFO: ==28483== Releasing lock... [2025-04-20 14:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 14:34:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-20 14:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 11:35:04 [end_date_ymd] => 2025-04-20 14:35:04 [RateCDR] => 1 ) [2025-04-20 14: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-20 11:35:04' and `end` < '2025-04-20 14: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-20 14:35:18] Production.INFO: count ==911 [2025-04-20 14:35:18] Production.ERROR: pbx CDR StartTime 2025-04-20 11:35:04 - End Time 2025-04-20 14:35:04 [2025-04-20 14:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 14:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950923', 'tblTempUsageDetail_20' ) start [2025-04-20 14:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950923', 'tblTempUsageDetail_20' ) end [2025-04-20 14:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950923', 'tblTempVendorCDR_20' ) start [2025-04-20 14:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950923', 'tblTempVendorCDR_20' ) end [2025-04-20 14:35:18] Production.INFO: ProcessCDR(1,14950923,1,1,2) [2025-04-20 14:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950923', 'tblTempUsageDetail_20' ) start [2025-04-20 14:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950923', 'tblTempUsageDetail_20' ) end [2025-04-20 14:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 14:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 14:35:21] Production.INFO: ==28557== Releasing lock... [2025-04-20 14:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 14:35:21] Production.INFO: 35 MB #Memory Used# [2025-04-20 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 11:36:05 [end_date_ymd] => 2025-04-20 14:36:05 [RateCDR] => 1 ) [2025-04-20 14:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 11:36:05' and `end` < '2025-04-20 14:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 14:36:18] Production.INFO: count ==911 [2025-04-20 14:36:18] Production.ERROR: pbx CDR StartTime 2025-04-20 11:36:05 - End Time 2025-04-20 14:36:05 [2025-04-20 14:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 14:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950928', 'tblTempUsageDetail_20' ) start [2025-04-20 14:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950928', 'tblTempUsageDetail_20' ) end [2025-04-20 14:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950928', 'tblTempVendorCDR_20' ) start [2025-04-20 14:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950928', 'tblTempVendorCDR_20' ) end [2025-04-20 14:36:18] Production.INFO: ProcessCDR(1,14950928,1,1,2) [2025-04-20 14:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950928', 'tblTempUsageDetail_20' ) start [2025-04-20 14:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950928', 'tblTempUsageDetail_20' ) end [2025-04-20 14:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 14:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 14:36:21] Production.INFO: ==28639== Releasing lock... [2025-04-20 14:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 14:36:21] Production.INFO: 35 MB #Memory Used# [2025-04-20 14:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 11:37:06 [end_date_ymd] => 2025-04-20 14:37:06 [RateCDR] => 1 ) [2025-04-20 14:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 11:37:06' and `end` < '2025-04-20 14:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 14:37:18] Production.INFO: count ==913 [2025-04-20 14:37:18] Production.ERROR: pbx CDR StartTime 2025-04-20 11:37:06 - End Time 2025-04-20 14:37:06 [2025-04-20 14:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 14:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950933', 'tblTempUsageDetail_20' ) start [2025-04-20 14:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950933', 'tblTempUsageDetail_20' ) end [2025-04-20 14:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950933', 'tblTempVendorCDR_20' ) start [2025-04-20 14:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950933', 'tblTempVendorCDR_20' ) end [2025-04-20 14:37:19] Production.INFO: ProcessCDR(1,14950933,1,1,2) [2025-04-20 14:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950933', 'tblTempUsageDetail_20' ) start [2025-04-20 14:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950933', 'tblTempUsageDetail_20' ) end [2025-04-20 14:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 14:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 14:37:22] Production.INFO: ==28711== Releasing lock... [2025-04-20 14:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 14:37:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-20 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 11:38:05 [end_date_ymd] => 2025-04-20 14:38:05 [RateCDR] => 1 ) [2025-04-20 14:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 11:38:05' and `end` < '2025-04-20 14:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 14:38:18] Production.INFO: count ==915 [2025-04-20 14:38:18] Production.ERROR: pbx CDR StartTime 2025-04-20 11:38:05 - End Time 2025-04-20 14:38:05 [2025-04-20 14:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 14:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950938', 'tblTempUsageDetail_20' ) start [2025-04-20 14:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950938', 'tblTempUsageDetail_20' ) end [2025-04-20 14:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950938', 'tblTempVendorCDR_20' ) start [2025-04-20 14:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950938', 'tblTempVendorCDR_20' ) end [2025-04-20 14:38:18] Production.INFO: ProcessCDR(1,14950938,1,1,2) [2025-04-20 14:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950938', 'tblTempUsageDetail_20' ) start [2025-04-20 14:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950938', 'tblTempUsageDetail_20' ) end [2025-04-20 14:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 14:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 14:38:21] Production.INFO: ==28789== Releasing lock... [2025-04-20 14:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 14:38:21] Production.INFO: 35 MB #Memory Used# [2025-04-20 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 11:39:05 [end_date_ymd] => 2025-04-20 14:39:05 [RateCDR] => 1 ) [2025-04-20 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-20 11:39:05' and `end` < '2025-04-20 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-20 14:39:18] Production.INFO: count ==915 [2025-04-20 14:39:18] Production.ERROR: pbx CDR StartTime 2025-04-20 11:39:05 - End Time 2025-04-20 14:39:05 [2025-04-20 14:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 14:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950943', 'tblTempUsageDetail_20' ) start [2025-04-20 14:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950943', 'tblTempUsageDetail_20' ) end [2025-04-20 14:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950943', 'tblTempVendorCDR_20' ) start [2025-04-20 14:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950943', 'tblTempVendorCDR_20' ) end [2025-04-20 14:39:18] Production.INFO: ProcessCDR(1,14950943,1,1,2) [2025-04-20 14:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950943', 'tblTempUsageDetail_20' ) start [2025-04-20 14:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950943', 'tblTempUsageDetail_20' ) end [2025-04-20 14:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 14:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 14:39:22] Production.INFO: ==28863== Releasing lock... [2025-04-20 14:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 14:39:22] Production.INFO: 35 MB #Memory Used# [2025-04-20 14:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 11:40:06 [end_date_ymd] => 2025-04-20 14:40:06 [RateCDR] => 1 ) [2025-04-20 14:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 11:40:06' and `end` < '2025-04-20 14:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 14:40:18] Production.INFO: count ==918 [2025-04-20 14:40:19] Production.ERROR: pbx CDR StartTime 2025-04-20 11:40:06 - End Time 2025-04-20 14:40:06 [2025-04-20 14:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 14:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950949', 'tblTempUsageDetail_20' ) start [2025-04-20 14:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950949', 'tblTempUsageDetail_20' ) end [2025-04-20 14:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950949', 'tblTempVendorCDR_20' ) start [2025-04-20 14:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950949', 'tblTempVendorCDR_20' ) end [2025-04-20 14:40:19] Production.INFO: ProcessCDR(1,14950949,1,1,2) [2025-04-20 14:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950949', 'tblTempUsageDetail_20' ) start [2025-04-20 14:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950949', 'tblTempUsageDetail_20' ) end [2025-04-20 14:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 14:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 14:40:22] Production.INFO: ==28939== Releasing lock... [2025-04-20 14:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 14:40:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-20 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 11:41:05 [end_date_ymd] => 2025-04-20 14:41:05 [RateCDR] => 1 ) [2025-04-20 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-20 11:41:05' and `end` < '2025-04-20 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-20 14:41:18] Production.INFO: count ==922 [2025-04-20 14:41:18] Production.ERROR: pbx CDR StartTime 2025-04-20 11:41:05 - End Time 2025-04-20 14:41:05 [2025-04-20 14:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 14:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950954', 'tblTempUsageDetail_20' ) start [2025-04-20 14:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950954', 'tblTempUsageDetail_20' ) end [2025-04-20 14:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950954', 'tblTempVendorCDR_20' ) start [2025-04-20 14:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950954', 'tblTempVendorCDR_20' ) end [2025-04-20 14:41:18] Production.INFO: ProcessCDR(1,14950954,1,1,2) [2025-04-20 14:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950954', 'tblTempUsageDetail_20' ) start [2025-04-20 14:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950954', 'tblTempUsageDetail_20' ) end [2025-04-20 14:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 14:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 14:41:22] Production.INFO: ==29018== Releasing lock... [2025-04-20 14:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 14:41:22] Production.INFO: 35 MB #Memory Used# [2025-04-20 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 11:42:05 [end_date_ymd] => 2025-04-20 14:42:05 [RateCDR] => 1 ) [2025-04-20 14:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 11:42:05' and `end` < '2025-04-20 14:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 14:42:18] Production.INFO: count ==924 [2025-04-20 14:42:18] Production.ERROR: pbx CDR StartTime 2025-04-20 11:42:05 - End Time 2025-04-20 14:42:05 [2025-04-20 14:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 14:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950959', 'tblTempUsageDetail_20' ) start [2025-04-20 14:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950959', 'tblTempUsageDetail_20' ) end [2025-04-20 14:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950959', 'tblTempVendorCDR_20' ) start [2025-04-20 14:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950959', 'tblTempVendorCDR_20' ) end [2025-04-20 14:42:18] Production.INFO: ProcessCDR(1,14950959,1,1,2) [2025-04-20 14:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950959', 'tblTempUsageDetail_20' ) start [2025-04-20 14:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950959', 'tblTempUsageDetail_20' ) end [2025-04-20 14:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 14:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 14:42:22] Production.INFO: ==29093== Releasing lock... [2025-04-20 14:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 14:42:22] Production.INFO: 35.25 MB #Memory Used# [2025-04-20 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 11:43:05 [end_date_ymd] => 2025-04-20 14:43:05 [RateCDR] => 1 ) [2025-04-20 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-20 11:43:05' and `end` < '2025-04-20 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-20 14:43:18] Production.INFO: count ==923 [2025-04-20 14:43:18] Production.ERROR: pbx CDR StartTime 2025-04-20 11:43:05 - End Time 2025-04-20 14:43:05 [2025-04-20 14:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 14:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950964', 'tblTempUsageDetail_20' ) start [2025-04-20 14:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950964', 'tblTempUsageDetail_20' ) end [2025-04-20 14:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950964', 'tblTempVendorCDR_20' ) start [2025-04-20 14:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950964', 'tblTempVendorCDR_20' ) end [2025-04-20 14:43:18] Production.INFO: ProcessCDR(1,14950964,1,1,2) [2025-04-20 14:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950964', 'tblTempUsageDetail_20' ) start [2025-04-20 14:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950964', 'tblTempUsageDetail_20' ) end [2025-04-20 14:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 14:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 14:43:21] Production.INFO: ==29168== Releasing lock... [2025-04-20 14:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 14:43:21] Production.INFO: 35.25 MB #Memory Used# [2025-04-20 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 11:44:05 [end_date_ymd] => 2025-04-20 14:44:05 [RateCDR] => 1 ) [2025-04-20 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-20 11:44:05' and `end` < '2025-04-20 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-20 14:44:17] Production.INFO: count ==923 [2025-04-20 14:44:18] Production.ERROR: pbx CDR StartTime 2025-04-20 11:44:05 - End Time 2025-04-20 14:44:05 [2025-04-20 14:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 14:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950969', 'tblTempUsageDetail_20' ) start [2025-04-20 14:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950969', 'tblTempUsageDetail_20' ) end [2025-04-20 14:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950969', 'tblTempVendorCDR_20' ) start [2025-04-20 14:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950969', 'tblTempVendorCDR_20' ) end [2025-04-20 14:44:18] Production.INFO: ProcessCDR(1,14950969,1,1,2) [2025-04-20 14:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950969', 'tblTempUsageDetail_20' ) start [2025-04-20 14:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950969', 'tblTempUsageDetail_20' ) end [2025-04-20 14:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 14:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 14:44:21] Production.INFO: ==29243== Releasing lock... [2025-04-20 14:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 14:44:21] Production.INFO: 35.25 MB #Memory Used# [2025-04-20 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 11:45:05 [end_date_ymd] => 2025-04-20 14:45:05 [RateCDR] => 1 ) [2025-04-20 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-20 11:45:05' and `end` < '2025-04-20 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-20 14:45:18] Production.INFO: count ==926 [2025-04-20 14:45:18] Production.ERROR: pbx CDR StartTime 2025-04-20 11:45:05 - End Time 2025-04-20 14:45:05 [2025-04-20 14:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 14:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950974', 'tblTempUsageDetail_20' ) start [2025-04-20 14:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950974', 'tblTempUsageDetail_20' ) end [2025-04-20 14:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950974', 'tblTempVendorCDR_20' ) start [2025-04-20 14:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950974', 'tblTempVendorCDR_20' ) end [2025-04-20 14:45:18] Production.INFO: ProcessCDR(1,14950974,1,1,2) [2025-04-20 14:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950974', 'tblTempUsageDetail_20' ) start [2025-04-20 14:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950974', 'tblTempUsageDetail_20' ) end [2025-04-20 14:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 14:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 14:45:21] Production.INFO: ==29314== Releasing lock... [2025-04-20 14:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 14:45:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-20 14:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 11:46:06 [end_date_ymd] => 2025-04-20 14:46:06 [RateCDR] => 1 ) [2025-04-20 14:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 11:46:06' and `end` < '2025-04-20 14:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 14:46:19] Production.INFO: count ==926 [2025-04-20 14:46:19] Production.ERROR: pbx CDR StartTime 2025-04-20 11:46:06 - End Time 2025-04-20 14:46:06 [2025-04-20 14:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 14:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950979', 'tblTempUsageDetail_20' ) start [2025-04-20 14:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950979', 'tblTempUsageDetail_20' ) end [2025-04-20 14:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950979', 'tblTempVendorCDR_20' ) start [2025-04-20 14:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950979', 'tblTempVendorCDR_20' ) end [2025-04-20 14:46:19] Production.INFO: ProcessCDR(1,14950979,1,1,2) [2025-04-20 14:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950979', 'tblTempUsageDetail_20' ) start [2025-04-20 14:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950979', 'tblTempUsageDetail_20' ) end [2025-04-20 14:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 14:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 14:46:22] Production.INFO: ==29391== Releasing lock... [2025-04-20 14:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 14:46:22] Production.INFO: 35 MB #Memory Used# [2025-04-20 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 11:47:05 [end_date_ymd] => 2025-04-20 14:47:05 [RateCDR] => 1 ) [2025-04-20 14:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 11:47:05' and `end` < '2025-04-20 14:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 14:47:18] Production.INFO: count ==927 [2025-04-20 14:47:18] Production.ERROR: pbx CDR StartTime 2025-04-20 11:47:05 - End Time 2025-04-20 14:47:05 [2025-04-20 14:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 14:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950984', 'tblTempUsageDetail_20' ) start [2025-04-20 14:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950984', 'tblTempUsageDetail_20' ) end [2025-04-20 14:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950984', 'tblTempVendorCDR_20' ) start [2025-04-20 14:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950984', 'tblTempVendorCDR_20' ) end [2025-04-20 14:47:18] Production.INFO: ProcessCDR(1,14950984,1,1,2) [2025-04-20 14:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950984', 'tblTempUsageDetail_20' ) start [2025-04-20 14:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950984', 'tblTempUsageDetail_20' ) end [2025-04-20 14:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 14:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 14:47:22] Production.INFO: ==29463== Releasing lock... [2025-04-20 14:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 14:47:22] Production.INFO: 35 MB #Memory Used# [2025-04-20 14:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 11:48:05 [end_date_ymd] => 2025-04-20 14:48:05 [RateCDR] => 1 ) [2025-04-20 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-20 11:48:05' and `end` < '2025-04-20 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-20 14:48:19] Production.INFO: count ==929 [2025-04-20 14:48:19] Production.ERROR: pbx CDR StartTime 2025-04-20 11:48:05 - End Time 2025-04-20 14:48:05 [2025-04-20 14:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950989', 'tblTempUsageDetail_20' ) start [2025-04-20 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950989', 'tblTempUsageDetail_20' ) end [2025-04-20 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950989', 'tblTempVendorCDR_20' ) start [2025-04-20 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950989', 'tblTempVendorCDR_20' ) end [2025-04-20 14:48:19] Production.INFO: ProcessCDR(1,14950989,1,1,2) [2025-04-20 14:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950989', 'tblTempUsageDetail_20' ) start [2025-04-20 14:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950989', 'tblTempUsageDetail_20' ) end [2025-04-20 14:48:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 14:48:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 14:48:24] Production.INFO: ==29573== Releasing lock... [2025-04-20 14:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 14:48:24] Production.INFO: 35.25 MB #Memory Used# [2025-04-20 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 11:49:05 [end_date_ymd] => 2025-04-20 14:49:05 [RateCDR] => 1 ) [2025-04-20 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-20 11:49:05' and `end` < '2025-04-20 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-20 14:49:18] Production.INFO: count ==930 [2025-04-20 14:49:18] Production.ERROR: pbx CDR StartTime 2025-04-20 11:49:05 - End Time 2025-04-20 14:49:05 [2025-04-20 14:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 14:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950994', 'tblTempUsageDetail_20' ) start [2025-04-20 14:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950994', 'tblTempUsageDetail_20' ) end [2025-04-20 14:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950994', 'tblTempVendorCDR_20' ) start [2025-04-20 14:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950994', 'tblTempVendorCDR_20' ) end [2025-04-20 14:49:18] Production.INFO: ProcessCDR(1,14950994,1,1,2) [2025-04-20 14:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950994', 'tblTempUsageDetail_20' ) start [2025-04-20 14:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950994', 'tblTempUsageDetail_20' ) end [2025-04-20 14:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 14:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 14:49:21] Production.INFO: ==29645== Releasing lock... [2025-04-20 14:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 14:49:21] Production.INFO: 35.25 MB #Memory Used# [2025-04-20 14:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 11:50:06 [end_date_ymd] => 2025-04-20 14:50:06 [RateCDR] => 1 ) [2025-04-20 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-20 11:50:06' and `end` < '2025-04-20 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-20 14:50:18] Production.INFO: count ==933 [2025-04-20 14:50:18] Production.ERROR: pbx CDR StartTime 2025-04-20 11:50:06 - End Time 2025-04-20 14:50:06 [2025-04-20 14:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 14:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950999', 'tblTempUsageDetail_20' ) start [2025-04-20 14:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14950999', 'tblTempUsageDetail_20' ) end [2025-04-20 14:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950999', 'tblTempVendorCDR_20' ) start [2025-04-20 14:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14950999', 'tblTempVendorCDR_20' ) end [2025-04-20 14:50:19] Production.INFO: ProcessCDR(1,14950999,1,1,2) [2025-04-20 14:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14950999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14950999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14950999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14950999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950999', 'tblTempUsageDetail_20' ) start [2025-04-20 14:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14950999', 'tblTempUsageDetail_20' ) end [2025-04-20 14:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 14:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 14:50:22] Production.INFO: ==29720== Releasing lock... [2025-04-20 14:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 14:50:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-20 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 11:51:05 [end_date_ymd] => 2025-04-20 14:51:05 [RateCDR] => 1 ) [2025-04-20 14:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 11:51:05' and `end` < '2025-04-20 14:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 14:51:18] Production.INFO: count ==911 [2025-04-20 14:51:18] Production.ERROR: pbx CDR StartTime 2025-04-20 11:51:05 - End Time 2025-04-20 14:51:05 [2025-04-20 14:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 14:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951005', 'tblTempUsageDetail_20' ) start [2025-04-20 14:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951005', 'tblTempUsageDetail_20' ) end [2025-04-20 14:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951005', 'tblTempVendorCDR_20' ) start [2025-04-20 14:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951005', 'tblTempVendorCDR_20' ) end [2025-04-20 14:51:18] Production.INFO: ProcessCDR(1,14951005,1,1,2) [2025-04-20 14:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951005', 'tblTempUsageDetail_20' ) start [2025-04-20 14:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951005', 'tblTempUsageDetail_20' ) end [2025-04-20 14:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 14:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 14:51:21] Production.INFO: ==29796== Releasing lock... [2025-04-20 14:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 14:51:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-20 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 11:52:05 [end_date_ymd] => 2025-04-20 14:52:05 [RateCDR] => 1 ) [2025-04-20 14:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 11:52:05' and `end` < '2025-04-20 14:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 14:52:18] Production.INFO: count ==912 [2025-04-20 14:52:18] Production.ERROR: pbx CDR StartTime 2025-04-20 11:52:05 - End Time 2025-04-20 14:52:05 [2025-04-20 14:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 14:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951010', 'tblTempUsageDetail_20' ) start [2025-04-20 14:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951010', 'tblTempUsageDetail_20' ) end [2025-04-20 14:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951010', 'tblTempVendorCDR_20' ) start [2025-04-20 14:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951010', 'tblTempVendorCDR_20' ) end [2025-04-20 14:52:18] Production.INFO: ProcessCDR(1,14951010,1,1,2) [2025-04-20 14:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951010', 'tblTempUsageDetail_20' ) start [2025-04-20 14:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951010', 'tblTempUsageDetail_20' ) end [2025-04-20 14:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 14:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 14:52:22] Production.INFO: ==29886== Releasing lock... [2025-04-20 14:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 14:52:22] Production.INFO: 35 MB #Memory Used# [2025-04-20 14:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 11:53:05 [end_date_ymd] => 2025-04-20 14:53:05 [RateCDR] => 1 ) [2025-04-20 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-20 11:53:05' and `end` < '2025-04-20 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-20 14:53:17] Production.INFO: count ==910 [2025-04-20 14:53:18] Production.ERROR: pbx CDR StartTime 2025-04-20 11:53:05 - End Time 2025-04-20 14:53:05 [2025-04-20 14:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 14:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951015', 'tblTempUsageDetail_20' ) start [2025-04-20 14:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951015', 'tblTempUsageDetail_20' ) end [2025-04-20 14:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951015', 'tblTempVendorCDR_20' ) start [2025-04-20 14:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951015', 'tblTempVendorCDR_20' ) end [2025-04-20 14:53:18] Production.INFO: ProcessCDR(1,14951015,1,1,2) [2025-04-20 14:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951015', 'tblTempUsageDetail_20' ) start [2025-04-20 14:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951015', 'tblTempUsageDetail_20' ) end [2025-04-20 14:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 14:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 14:53:21] Production.INFO: ==29963== Releasing lock... [2025-04-20 14:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 14:53:21] Production.INFO: 35.25 MB #Memory Used# [2025-04-20 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 11:54:05 [end_date_ymd] => 2025-04-20 14:54:05 [RateCDR] => 1 ) [2025-04-20 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-20 11:54:05' and `end` < '2025-04-20 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-20 14:54:18] Production.INFO: count ==914 [2025-04-20 14:54:18] Production.ERROR: pbx CDR StartTime 2025-04-20 11:54:05 - End Time 2025-04-20 14:54:05 [2025-04-20 14:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 14:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951020', 'tblTempUsageDetail_20' ) start [2025-04-20 14:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951020', 'tblTempUsageDetail_20' ) end [2025-04-20 14:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951020', 'tblTempVendorCDR_20' ) start [2025-04-20 14:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951020', 'tblTempVendorCDR_20' ) end [2025-04-20 14:54:18] Production.INFO: ProcessCDR(1,14951020,1,1,2) [2025-04-20 14:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951020', 'tblTempUsageDetail_20' ) start [2025-04-20 14:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951020', 'tblTempUsageDetail_20' ) end [2025-04-20 14:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 14:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 14:54:21] Production.INFO: ==30041== Releasing lock... [2025-04-20 14:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 14:54:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-20 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 11:55:05 [end_date_ymd] => 2025-04-20 14:55:05 [RateCDR] => 1 ) [2025-04-20 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-20 11:55:05' and `end` < '2025-04-20 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-20 14:55:18] Production.INFO: count ==915 [2025-04-20 14:55:19] Production.ERROR: pbx CDR StartTime 2025-04-20 11:55:05 - End Time 2025-04-20 14:55:05 [2025-04-20 14:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951025', 'tblTempUsageDetail_20' ) start [2025-04-20 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951025', 'tblTempUsageDetail_20' ) end [2025-04-20 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951025', 'tblTempVendorCDR_20' ) start [2025-04-20 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951025', 'tblTempVendorCDR_20' ) end [2025-04-20 14:55:19] Production.INFO: ProcessCDR(1,14951025,1,1,2) [2025-04-20 14:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951025', 'tblTempUsageDetail_20' ) start [2025-04-20 14:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951025', 'tblTempUsageDetail_20' ) end [2025-04-20 14:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 14:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 14:55:22] Production.INFO: ==30120== Releasing lock... [2025-04-20 14:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 14:55:22] Production.INFO: 35 MB #Memory Used# [2025-04-20 14:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 11:56:05 [end_date_ymd] => 2025-04-20 14:56:05 [RateCDR] => 1 ) [2025-04-20 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-20 11:56:05' and `end` < '2025-04-20 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-20 14:56:18] Production.INFO: count ==905 [2025-04-20 14:56:18] Production.ERROR: pbx CDR StartTime 2025-04-20 11:56:05 - End Time 2025-04-20 14:56:05 [2025-04-20 14:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 14:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951030', 'tblTempUsageDetail_20' ) start [2025-04-20 14:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951030', 'tblTempUsageDetail_20' ) end [2025-04-20 14:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951030', 'tblTempVendorCDR_20' ) start [2025-04-20 14:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951030', 'tblTempVendorCDR_20' ) end [2025-04-20 14:56:18] Production.INFO: ProcessCDR(1,14951030,1,1,2) [2025-04-20 14:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951030', 'tblTempUsageDetail_20' ) start [2025-04-20 14:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951030', 'tblTempUsageDetail_20' ) end [2025-04-20 14:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 14:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 14:56:22] Production.INFO: ==30190== Releasing lock... [2025-04-20 14:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 14:56:22] Production.INFO: 35 MB #Memory Used# [2025-04-20 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 11:57:05 [end_date_ymd] => 2025-04-20 14:57:05 [RateCDR] => 1 ) [2025-04-20 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-20 11:57:05' and `end` < '2025-04-20 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-20 14:57:18] Production.INFO: count ==910 [2025-04-20 14:57:18] Production.ERROR: pbx CDR StartTime 2025-04-20 11:57:05 - End Time 2025-04-20 14:57:05 [2025-04-20 14:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 14:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951035', 'tblTempUsageDetail_20' ) start [2025-04-20 14:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951035', 'tblTempUsageDetail_20' ) end [2025-04-20 14:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951035', 'tblTempVendorCDR_20' ) start [2025-04-20 14:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951035', 'tblTempVendorCDR_20' ) end [2025-04-20 14:57:18] Production.INFO: ProcessCDR(1,14951035,1,1,2) [2025-04-20 14:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951035', 'tblTempUsageDetail_20' ) start [2025-04-20 14:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951035', 'tblTempUsageDetail_20' ) end [2025-04-20 14:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 14:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 14:57:21] Production.INFO: ==30267== Releasing lock... [2025-04-20 14:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 14:57:21] Production.INFO: 35 MB #Memory Used# [2025-04-20 14:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 11:58:05 [end_date_ymd] => 2025-04-20 14:58:05 [RateCDR] => 1 ) [2025-04-20 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-20 11:58:05' and `end` < '2025-04-20 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-20 14:58:17] Production.INFO: count ==910 [2025-04-20 14:58:18] Production.ERROR: pbx CDR StartTime 2025-04-20 11:58:05 - End Time 2025-04-20 14:58:05 [2025-04-20 14:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 14:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951040', 'tblTempUsageDetail_20' ) start [2025-04-20 14:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951040', 'tblTempUsageDetail_20' ) end [2025-04-20 14:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951040', 'tblTempVendorCDR_20' ) start [2025-04-20 14:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951040', 'tblTempVendorCDR_20' ) end [2025-04-20 14:58:18] Production.INFO: ProcessCDR(1,14951040,1,1,2) [2025-04-20 14:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951040', 'tblTempUsageDetail_20' ) start [2025-04-20 14:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951040', 'tblTempUsageDetail_20' ) end [2025-04-20 14:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 14:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 14:58:21] Production.INFO: ==30338== Releasing lock... [2025-04-20 14:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 14:58:21] Production.INFO: 35 MB #Memory Used# [2025-04-20 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 11:59:05 [end_date_ymd] => 2025-04-20 14:59:05 [RateCDR] => 1 ) [2025-04-20 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-20 11:59:05' and `end` < '2025-04-20 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-20 14:59:18] Production.INFO: count ==911 [2025-04-20 14:59:18] Production.ERROR: pbx CDR StartTime 2025-04-20 11:59:05 - End Time 2025-04-20 14:59:05 [2025-04-20 14:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 14:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951045', 'tblTempUsageDetail_20' ) start [2025-04-20 14:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951045', 'tblTempUsageDetail_20' ) end [2025-04-20 14:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951045', 'tblTempVendorCDR_20' ) start [2025-04-20 14:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951045', 'tblTempVendorCDR_20' ) end [2025-04-20 14:59:18] Production.INFO: ProcessCDR(1,14951045,1,1,2) [2025-04-20 14:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 14:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 14:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951045', 'tblTempUsageDetail_20' ) start [2025-04-20 14:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951045', 'tblTempUsageDetail_20' ) end [2025-04-20 14:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 14:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 14:59:23] Production.INFO: ==30414== Releasing lock... [2025-04-20 14:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 14:59:23] Production.INFO: 35.25 MB #Memory Used# [2025-04-20 15:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 12:00:05 [end_date_ymd] => 2025-04-20 15:00:05 [RateCDR] => 1 ) [2025-04-20 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-20 12:00:05' and `end` < '2025-04-20 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-20 15:00:18] Production.INFO: count ==913 [2025-04-20 15:00:18] Production.ERROR: pbx CDR StartTime 2025-04-20 12:00:05 - End Time 2025-04-20 15:00:05 [2025-04-20 15:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 15:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951050', 'tblTempUsageDetail_20' ) start [2025-04-20 15:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951050', 'tblTempUsageDetail_20' ) end [2025-04-20 15:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951050', 'tblTempVendorCDR_20' ) start [2025-04-20 15:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951050', 'tblTempVendorCDR_20' ) end [2025-04-20 15:00:18] Production.INFO: ProcessCDR(1,14951050,1,1,2) [2025-04-20 15:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951050', 'tblTempUsageDetail_20' ) start [2025-04-20 15:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951050', 'tblTempUsageDetail_20' ) end [2025-04-20 15:00:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 15:00:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 15:00:21] Production.INFO: ==30492== Releasing lock... [2025-04-20 15:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 15:00:21] Production.INFO: 35.25 MB #Memory Used# [2025-04-20 15:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 12:01:05 [end_date_ymd] => 2025-04-20 15:01:05 [RateCDR] => 1 ) [2025-04-20 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-20 12:01:05' and `end` < '2025-04-20 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-20 15:01:18] Production.INFO: count ==908 [2025-04-20 15:01:18] Production.ERROR: pbx CDR StartTime 2025-04-20 12:01:05 - End Time 2025-04-20 15:01:05 [2025-04-20 15:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 15:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951056', 'tblTempUsageDetail_20' ) start [2025-04-20 15:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951056', 'tblTempUsageDetail_20' ) end [2025-04-20 15:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951056', 'tblTempVendorCDR_20' ) start [2025-04-20 15:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951056', 'tblTempVendorCDR_20' ) end [2025-04-20 15:01:18] Production.INFO: ProcessCDR(1,14951056,1,1,2) [2025-04-20 15:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951056', 'tblTempUsageDetail_20' ) start [2025-04-20 15:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951056', 'tblTempUsageDetail_20' ) end [2025-04-20 15:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 15:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 15:01:23] Production.INFO: ==30579== Releasing lock... [2025-04-20 15:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 15:01:23] Production.INFO: 35 MB #Memory Used# [2025-04-20 15:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 12:02:04 [end_date_ymd] => 2025-04-20 15:02:04 [RateCDR] => 1 ) [2025-04-20 15: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-20 12:02:04' and `end` < '2025-04-20 15: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-20 15:02:17] Production.INFO: count ==908 [2025-04-20 15:02:17] Production.ERROR: pbx CDR StartTime 2025-04-20 12:02:04 - End Time 2025-04-20 15:02:04 [2025-04-20 15:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 15:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951061', 'tblTempUsageDetail_20' ) start [2025-04-20 15:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951061', 'tblTempUsageDetail_20' ) end [2025-04-20 15:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951061', 'tblTempVendorCDR_20' ) start [2025-04-20 15:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951061', 'tblTempVendorCDR_20' ) end [2025-04-20 15:02:17] Production.INFO: ProcessCDR(1,14951061,1,1,2) [2025-04-20 15:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951061', 'tblTempUsageDetail_20' ) start [2025-04-20 15:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951061', 'tblTempUsageDetail_20' ) end [2025-04-20 15:02:20] Production.ERROR: pbx prc_insertCDR start [2025-04-20 15:02:20] Production.ERROR: pbx prc_insertCDR end [2025-04-20 15:02:20] Production.INFO: ==30733== Releasing lock... [2025-04-20 15:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 15:02:20] Production.INFO: 35 MB #Memory Used# [2025-04-20 15:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 12:03:05 [end_date_ymd] => 2025-04-20 15:03:05 [RateCDR] => 1 ) [2025-04-20 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-20 12:03:05' and `end` < '2025-04-20 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-20 15:03:17] Production.INFO: count ==902 [2025-04-20 15:03:17] Production.ERROR: pbx CDR StartTime 2025-04-20 12:03:05 - End Time 2025-04-20 15:03:05 [2025-04-20 15:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 15:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951066', 'tblTempUsageDetail_20' ) start [2025-04-20 15:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951066', 'tblTempUsageDetail_20' ) end [2025-04-20 15:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951066', 'tblTempVendorCDR_20' ) start [2025-04-20 15:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951066', 'tblTempVendorCDR_20' ) end [2025-04-20 15:03:18] Production.INFO: ProcessCDR(1,14951066,1,1,2) [2025-04-20 15:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951066', 'tblTempUsageDetail_20' ) start [2025-04-20 15:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951066', 'tblTempUsageDetail_20' ) end [2025-04-20 15:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 15:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 15:03:21] Production.INFO: ==30849== Releasing lock... [2025-04-20 15:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 15:03:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-20 15:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 12:04:05 [end_date_ymd] => 2025-04-20 15:04:05 [RateCDR] => 1 ) [2025-04-20 15:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 12:04:05' and `end` < '2025-04-20 15:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 15:04:18] Production.INFO: count ==899 [2025-04-20 15:04:18] Production.ERROR: pbx CDR StartTime 2025-04-20 12:04:05 - End Time 2025-04-20 15:04:05 [2025-04-20 15:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 15:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951071', 'tblTempUsageDetail_20' ) start [2025-04-20 15:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951071', 'tblTempUsageDetail_20' ) end [2025-04-20 15:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951071', 'tblTempVendorCDR_20' ) start [2025-04-20 15:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951071', 'tblTempVendorCDR_20' ) end [2025-04-20 15:04:18] Production.INFO: ProcessCDR(1,14951071,1,1,2) [2025-04-20 15:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951071', 'tblTempUsageDetail_20' ) start [2025-04-20 15:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951071', 'tblTempUsageDetail_20' ) end [2025-04-20 15:04:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 15:04:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 15:04:23] Production.INFO: ==30925== Releasing lock... [2025-04-20 15:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 15:04:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-20 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 12:05:05 [end_date_ymd] => 2025-04-20 15:05:05 [RateCDR] => 1 ) [2025-04-20 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-20 12:05:05' and `end` < '2025-04-20 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-20 15:05:17] Production.INFO: count ==894 [2025-04-20 15:05:17] Production.ERROR: pbx CDR StartTime 2025-04-20 12:05:05 - End Time 2025-04-20 15:05:05 [2025-04-20 15:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 15:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951076', 'tblTempUsageDetail_20' ) start [2025-04-20 15:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951076', 'tblTempUsageDetail_20' ) end [2025-04-20 15:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951076', 'tblTempVendorCDR_20' ) start [2025-04-20 15:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951076', 'tblTempVendorCDR_20' ) end [2025-04-20 15:05:18] Production.INFO: ProcessCDR(1,14951076,1,1,2) [2025-04-20 15:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951076', 'tblTempUsageDetail_20' ) start [2025-04-20 15:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951076', 'tblTempUsageDetail_20' ) end [2025-04-20 15:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 15:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 15:05:22] Production.INFO: ==31083== Releasing lock... [2025-04-20 15:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 15:05:22] Production.INFO: 35 MB #Memory Used# [2025-04-20 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 12:06:05 [end_date_ymd] => 2025-04-20 15:06:05 [RateCDR] => 1 ) [2025-04-20 15:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 12:06:05' and `end` < '2025-04-20 15:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 15:06:18] Production.INFO: count ==890 [2025-04-20 15:06:18] Production.ERROR: pbx CDR StartTime 2025-04-20 12:06:05 - End Time 2025-04-20 15:06:05 [2025-04-20 15:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 15:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951081', 'tblTempUsageDetail_20' ) start [2025-04-20 15:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951081', 'tblTempUsageDetail_20' ) end [2025-04-20 15:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951081', 'tblTempVendorCDR_20' ) start [2025-04-20 15:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951081', 'tblTempVendorCDR_20' ) end [2025-04-20 15:06:18] Production.INFO: ProcessCDR(1,14951081,1,1,2) [2025-04-20 15:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951081', 'tblTempUsageDetail_20' ) start [2025-04-20 15:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951081', 'tblTempUsageDetail_20' ) end [2025-04-20 15:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 15:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 15:06:21] Production.INFO: ==31154== Releasing lock... [2025-04-20 15:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 15:06:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-20 15:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 12:07:04 [end_date_ymd] => 2025-04-20 15:07:04 [RateCDR] => 1 ) [2025-04-20 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-20 12:07:04' and `end` < '2025-04-20 15:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 15:07:18] Production.INFO: count ==892 [2025-04-20 15:07:18] Production.ERROR: pbx CDR StartTime 2025-04-20 12:07:04 - End Time 2025-04-20 15:07:04 [2025-04-20 15:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 15:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951086', 'tblTempUsageDetail_20' ) start [2025-04-20 15:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951086', 'tblTempUsageDetail_20' ) end [2025-04-20 15:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951086', 'tblTempVendorCDR_20' ) start [2025-04-20 15:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951086', 'tblTempVendorCDR_20' ) end [2025-04-20 15:07:18] Production.INFO: ProcessCDR(1,14951086,1,1,2) [2025-04-20 15:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951086', 'tblTempUsageDetail_20' ) start [2025-04-20 15:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951086', 'tblTempUsageDetail_20' ) end [2025-04-20 15:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 15:07:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 15:07:23] Production.INFO: ==31227== Releasing lock... [2025-04-20 15:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 15:07:23] Production.INFO: 35 MB #Memory Used# [2025-04-20 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 12:08:05 [end_date_ymd] => 2025-04-20 15:08:05 [RateCDR] => 1 ) [2025-04-20 15:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 12:08:05' and `end` < '2025-04-20 15:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 15:08:17] Production.INFO: count ==896 [2025-04-20 15:08:18] Production.ERROR: pbx CDR StartTime 2025-04-20 12:08:05 - End Time 2025-04-20 15:08:05 [2025-04-20 15:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 15:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951091', 'tblTempUsageDetail_20' ) start [2025-04-20 15:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951091', 'tblTempUsageDetail_20' ) end [2025-04-20 15:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951091', 'tblTempVendorCDR_20' ) start [2025-04-20 15:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951091', 'tblTempVendorCDR_20' ) end [2025-04-20 15:08:18] Production.INFO: ProcessCDR(1,14951091,1,1,2) [2025-04-20 15:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951091', 'tblTempUsageDetail_20' ) start [2025-04-20 15:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951091', 'tblTempUsageDetail_20' ) end [2025-04-20 15:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 15:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 15:08:22] Production.INFO: ==31345== Releasing lock... [2025-04-20 15:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 15:08:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-20 15:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 12:09:06 [end_date_ymd] => 2025-04-20 15:09:06 [RateCDR] => 1 ) [2025-04-20 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-20 12:09:06' and `end` < '2025-04-20 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-20 15:09:18] Production.INFO: count ==899 [2025-04-20 15:09:19] Production.ERROR: pbx CDR StartTime 2025-04-20 12:09:06 - End Time 2025-04-20 15:09:06 [2025-04-20 15:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 15:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951096', 'tblTempUsageDetail_20' ) start [2025-04-20 15:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951096', 'tblTempUsageDetail_20' ) end [2025-04-20 15:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951096', 'tblTempVendorCDR_20' ) start [2025-04-20 15:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951096', 'tblTempVendorCDR_20' ) end [2025-04-20 15:09:19] Production.INFO: ProcessCDR(1,14951096,1,1,2) [2025-04-20 15:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951096', 'tblTempUsageDetail_20' ) start [2025-04-20 15:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951096', 'tblTempUsageDetail_20' ) end [2025-04-20 15:09:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 15:09:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 15:09:24] Production.INFO: ==31461== Releasing lock... [2025-04-20 15:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 15:09:24] Production.INFO: 35.25 MB #Memory Used# [2025-04-20 15:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 12:10:06 [end_date_ymd] => 2025-04-20 15:10:06 [RateCDR] => 1 ) [2025-04-20 15:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 12:10:06' and `end` < '2025-04-20 15:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 15:10:19] Production.INFO: count ==902 [2025-04-20 15:10:19] Production.ERROR: pbx CDR StartTime 2025-04-20 12:10:06 - End Time 2025-04-20 15:10:06 [2025-04-20 15:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 15:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951102', 'tblTempUsageDetail_20' ) start [2025-04-20 15:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951102', 'tblTempUsageDetail_20' ) end [2025-04-20 15:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951102', 'tblTempVendorCDR_20' ) start [2025-04-20 15:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951102', 'tblTempVendorCDR_20' ) end [2025-04-20 15:10:19] Production.INFO: ProcessCDR(1,14951102,1,1,2) [2025-04-20 15:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951102', 'tblTempUsageDetail_20' ) start [2025-04-20 15:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951102', 'tblTempUsageDetail_20' ) end [2025-04-20 15:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 15:10:25] Production.ERROR: pbx prc_insertCDR end [2025-04-20 15:10:25] Production.INFO: ==31540== Releasing lock... [2025-04-20 15:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 15:10:25] Production.INFO: 35 MB #Memory Used# [2025-04-20 15:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 12:11:06 [end_date_ymd] => 2025-04-20 15:11:06 [RateCDR] => 1 ) [2025-04-20 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-20 12:11:06' and `end` < '2025-04-20 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-20 15:11:18] Production.INFO: count ==923 [2025-04-20 15:11:18] Production.ERROR: pbx CDR StartTime 2025-04-20 12:11:06 - End Time 2025-04-20 15:11:06 [2025-04-20 15:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 15:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951107', 'tblTempUsageDetail_20' ) start [2025-04-20 15:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951107', 'tblTempUsageDetail_20' ) end [2025-04-20 15:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951107', 'tblTempVendorCDR_20' ) start [2025-04-20 15:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951107', 'tblTempVendorCDR_20' ) end [2025-04-20 15:11:19] Production.INFO: ProcessCDR(1,14951107,1,1,2) [2025-04-20 15:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951107', 'tblTempUsageDetail_20' ) start [2025-04-20 15:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951107', 'tblTempUsageDetail_20' ) end [2025-04-20 15:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 15:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 15:11:23] Production.INFO: ==31618== Releasing lock... [2025-04-20 15:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 15:11:23] Production.INFO: 35 MB #Memory Used# [2025-04-20 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 12:12:05 [end_date_ymd] => 2025-04-20 15:12:05 [RateCDR] => 1 ) [2025-04-20 15:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 12:12:05' and `end` < '2025-04-20 15:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 15:12:17] Production.INFO: count ==926 [2025-04-20 15:12:18] Production.ERROR: pbx CDR StartTime 2025-04-20 12:12:05 - End Time 2025-04-20 15:12:05 [2025-04-20 15:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 15:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951112', 'tblTempUsageDetail_20' ) start [2025-04-20 15:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951112', 'tblTempUsageDetail_20' ) end [2025-04-20 15:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951112', 'tblTempVendorCDR_20' ) start [2025-04-20 15:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951112', 'tblTempVendorCDR_20' ) end [2025-04-20 15:12:18] Production.INFO: ProcessCDR(1,14951112,1,1,2) [2025-04-20 15:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951112', 'tblTempUsageDetail_20' ) start [2025-04-20 15:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951112', 'tblTempUsageDetail_20' ) end [2025-04-20 15:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 15:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 15:12:22] Production.INFO: ==31773== Releasing lock... [2025-04-20 15:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 15:12:22] Production.INFO: 35 MB #Memory Used# [2025-04-20 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 12:13:05 [end_date_ymd] => 2025-04-20 15:13:05 [RateCDR] => 1 ) [2025-04-20 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-20 12:13:05' and `end` < '2025-04-20 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-20 15:13:17] Production.INFO: count ==929 [2025-04-20 15:13:18] Production.ERROR: pbx CDR StartTime 2025-04-20 12:13:05 - End Time 2025-04-20 15:13:05 [2025-04-20 15:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 15:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951117', 'tblTempUsageDetail_20' ) start [2025-04-20 15:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951117', 'tblTempUsageDetail_20' ) end [2025-04-20 15:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951117', 'tblTempVendorCDR_20' ) start [2025-04-20 15:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951117', 'tblTempVendorCDR_20' ) end [2025-04-20 15:13:18] Production.INFO: ProcessCDR(1,14951117,1,1,2) [2025-04-20 15:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951117', 'tblTempUsageDetail_20' ) start [2025-04-20 15:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951117', 'tblTempUsageDetail_20' ) end [2025-04-20 15:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 15:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 15:13:22] Production.INFO: ==31846== Releasing lock... [2025-04-20 15:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 15:13:22] Production.INFO: 35 MB #Memory Used# [2025-04-20 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 12:14:05 [end_date_ymd] => 2025-04-20 15:14:05 [RateCDR] => 1 ) [2025-04-20 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-20 12:14:05' and `end` < '2025-04-20 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-20 15:14:18] Production.INFO: count ==932 [2025-04-20 15:14:18] Production.ERROR: pbx CDR StartTime 2025-04-20 12:14:05 - End Time 2025-04-20 15:14:05 [2025-04-20 15:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 15:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951122', 'tblTempUsageDetail_20' ) start [2025-04-20 15:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951122', 'tblTempUsageDetail_20' ) end [2025-04-20 15:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951122', 'tblTempVendorCDR_20' ) start [2025-04-20 15:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951122', 'tblTempVendorCDR_20' ) end [2025-04-20 15:14:18] Production.INFO: ProcessCDR(1,14951122,1,1,2) [2025-04-20 15:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951122', 'tblTempUsageDetail_20' ) start [2025-04-20 15:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951122', 'tblTempUsageDetail_20' ) end [2025-04-20 15:14:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 15:14:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 15:14:23] Production.INFO: ==31925== Releasing lock... [2025-04-20 15:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 15:14:23] Production.INFO: 35.5 MB #Memory Used# [2025-04-20 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 12:15:05 [end_date_ymd] => 2025-04-20 15:15:05 [RateCDR] => 1 ) [2025-04-20 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-20 12:15:05' and `end` < '2025-04-20 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-20 15:15:18] Production.INFO: count ==929 [2025-04-20 15:15:18] Production.ERROR: pbx CDR StartTime 2025-04-20 12:15:05 - End Time 2025-04-20 15:15:05 [2025-04-20 15:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 15:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951127', 'tblTempUsageDetail_20' ) start [2025-04-20 15:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951127', 'tblTempUsageDetail_20' ) end [2025-04-20 15:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951127', 'tblTempVendorCDR_20' ) start [2025-04-20 15:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951127', 'tblTempVendorCDR_20' ) end [2025-04-20 15:15:18] Production.INFO: ProcessCDR(1,14951127,1,1,2) [2025-04-20 15:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951127', 'tblTempUsageDetail_20' ) start [2025-04-20 15:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951127', 'tblTempUsageDetail_20' ) end [2025-04-20 15:15:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 15:15:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 15:15:23] Production.INFO: ==32045== Releasing lock... [2025-04-20 15:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 15:15:23] Production.INFO: 35.25 MB #Memory Used# [2025-04-20 15:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 12:16:06 [end_date_ymd] => 2025-04-20 15:16:06 [RateCDR] => 1 ) [2025-04-20 15: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-20 12:16:06' and `end` < '2025-04-20 15: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-20 15:16:18] Production.INFO: count ==931 [2025-04-20 15:16:18] Production.ERROR: pbx CDR StartTime 2025-04-20 12:16:06 - End Time 2025-04-20 15:16:06 [2025-04-20 15:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 15:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951132', 'tblTempUsageDetail_20' ) start [2025-04-20 15:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951132', 'tblTempUsageDetail_20' ) end [2025-04-20 15:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951132', 'tblTempVendorCDR_20' ) start [2025-04-20 15:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951132', 'tblTempVendorCDR_20' ) end [2025-04-20 15:16:18] Production.INFO: ProcessCDR(1,14951132,1,1,2) [2025-04-20 15:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951132', 'tblTempUsageDetail_20' ) start [2025-04-20 15:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951132', 'tblTempUsageDetail_20' ) end [2025-04-20 15:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 15:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 15:16:23] Production.INFO: ==32164== Releasing lock... [2025-04-20 15:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 15:16:23] Production.INFO: 35.5 MB #Memory Used# [2025-04-20 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 12:17:05 [end_date_ymd] => 2025-04-20 15:17:05 [RateCDR] => 1 ) [2025-04-20 15:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 12:17:05' and `end` < '2025-04-20 15:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 15:17:18] Production.INFO: count ==934 [2025-04-20 15:17:18] Production.ERROR: pbx CDR StartTime 2025-04-20 12:17:05 - End Time 2025-04-20 15:17:05 [2025-04-20 15:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 15:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951137', 'tblTempUsageDetail_20' ) start [2025-04-20 15:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951137', 'tblTempUsageDetail_20' ) end [2025-04-20 15:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951137', 'tblTempVendorCDR_20' ) start [2025-04-20 15:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951137', 'tblTempVendorCDR_20' ) end [2025-04-20 15:17:18] Production.INFO: ProcessCDR(1,14951137,1,1,2) [2025-04-20 15:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951137', 'tblTempUsageDetail_20' ) start [2025-04-20 15:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951137', 'tblTempUsageDetail_20' ) end [2025-04-20 15:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 15:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 15:17:22] Production.INFO: ==32239== Releasing lock... [2025-04-20 15:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 15:17:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-20 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 12:18:05 [end_date_ymd] => 2025-04-20 15:18:05 [RateCDR] => 1 ) [2025-04-20 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-20 12:18:05' and `end` < '2025-04-20 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-20 15:18:17] Production.INFO: count ==932 [2025-04-20 15:18:17] Production.ERROR: pbx CDR StartTime 2025-04-20 12:18:05 - End Time 2025-04-20 15:18:05 [2025-04-20 15:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 15:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951142', 'tblTempUsageDetail_20' ) start [2025-04-20 15:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951142', 'tblTempUsageDetail_20' ) end [2025-04-20 15:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951142', 'tblTempVendorCDR_20' ) start [2025-04-20 15:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951142', 'tblTempVendorCDR_20' ) end [2025-04-20 15:18:18] Production.INFO: ProcessCDR(1,14951142,1,1,2) [2025-04-20 15:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951142', 'tblTempUsageDetail_20' ) start [2025-04-20 15:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951142', 'tblTempUsageDetail_20' ) end [2025-04-20 15:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 15:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 15:18:21] Production.INFO: ==32314== Releasing lock... [2025-04-20 15:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 15:18:21] Production.INFO: 35.5 MB #Memory Used# [2025-04-20 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 12:19:05 [end_date_ymd] => 2025-04-20 15:19:05 [RateCDR] => 1 ) [2025-04-20 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-20 12:19:05' and `end` < '2025-04-20 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-20 15:19:17] Production.INFO: count ==935 [2025-04-20 15:19:18] Production.ERROR: pbx CDR StartTime 2025-04-20 12:19:05 - End Time 2025-04-20 15:19:05 [2025-04-20 15:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 15:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951147', 'tblTempUsageDetail_20' ) start [2025-04-20 15:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951147', 'tblTempUsageDetail_20' ) end [2025-04-20 15:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951147', 'tblTempVendorCDR_20' ) start [2025-04-20 15:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951147', 'tblTempVendorCDR_20' ) end [2025-04-20 15:19:18] Production.INFO: ProcessCDR(1,14951147,1,1,2) [2025-04-20 15:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951147', 'tblTempUsageDetail_20' ) start [2025-04-20 15:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951147', 'tblTempUsageDetail_20' ) end [2025-04-20 15:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 15:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 15:19:21] Production.INFO: ==32433== Releasing lock... [2025-04-20 15:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 15:19:21] Production.INFO: 36 MB #Memory Used# [2025-04-20 15:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 12:20:06 [end_date_ymd] => 2025-04-20 15:20:06 [RateCDR] => 1 ) [2025-04-20 15:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 12:20:06' and `end` < '2025-04-20 15:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 15:20:18] Production.INFO: count ==921 [2025-04-20 15:20:18] Production.ERROR: pbx CDR StartTime 2025-04-20 12:20:06 - End Time 2025-04-20 15:20:06 [2025-04-20 15:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 15:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951153', 'tblTempUsageDetail_20' ) start [2025-04-20 15:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951153', 'tblTempUsageDetail_20' ) end [2025-04-20 15:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951153', 'tblTempVendorCDR_20' ) start [2025-04-20 15:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951153', 'tblTempVendorCDR_20' ) end [2025-04-20 15:20:19] Production.INFO: ProcessCDR(1,14951153,1,1,2) [2025-04-20 15:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951153', 'tblTempUsageDetail_20' ) start [2025-04-20 15:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951153', 'tblTempUsageDetail_20' ) end [2025-04-20 15:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 15:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 15:20:22] Production.INFO: ==32509== Releasing lock... [2025-04-20 15:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 15:20:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-20 15:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 12:21:06 [end_date_ymd] => 2025-04-20 15:21:06 [RateCDR] => 1 ) [2025-04-20 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-20 12:21:06' and `end` < '2025-04-20 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-20 15:21:18] Production.INFO: count ==907 [2025-04-20 15:21:18] Production.ERROR: pbx CDR StartTime 2025-04-20 12:21:06 - End Time 2025-04-20 15:21:06 [2025-04-20 15:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 15:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951158', 'tblTempUsageDetail_20' ) start [2025-04-20 15:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951158', 'tblTempUsageDetail_20' ) end [2025-04-20 15:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951158', 'tblTempVendorCDR_20' ) start [2025-04-20 15:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951158', 'tblTempVendorCDR_20' ) end [2025-04-20 15:21:19] Production.INFO: ProcessCDR(1,14951158,1,1,2) [2025-04-20 15:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951158', 'tblTempUsageDetail_20' ) start [2025-04-20 15:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951158', 'tblTempUsageDetail_20' ) end [2025-04-20 15:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 15:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 15:21:22] Production.INFO: ==32588== Releasing lock... [2025-04-20 15:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 15:21:22] Production.INFO: 35.25 MB #Memory Used# [2025-04-20 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 12:22:05 [end_date_ymd] => 2025-04-20 15:22:05 [RateCDR] => 1 ) [2025-04-20 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-20 12:22:05' and `end` < '2025-04-20 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-20 15:22:18] Production.INFO: count ==906 [2025-04-20 15:22:18] Production.ERROR: pbx CDR StartTime 2025-04-20 12:22:05 - End Time 2025-04-20 15:22:05 [2025-04-20 15:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 15:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951163', 'tblTempUsageDetail_20' ) start [2025-04-20 15:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951163', 'tblTempUsageDetail_20' ) end [2025-04-20 15:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951163', 'tblTempVendorCDR_20' ) start [2025-04-20 15:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951163', 'tblTempVendorCDR_20' ) end [2025-04-20 15:22:18] Production.INFO: ProcessCDR(1,14951163,1,1,2) [2025-04-20 15:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951163', 'tblTempUsageDetail_20' ) start [2025-04-20 15:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951163', 'tblTempUsageDetail_20' ) end [2025-04-20 15:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 15:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 15:22:23] Production.INFO: ==32666== Releasing lock... [2025-04-20 15:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 15:22:23] Production.INFO: 34.75 MB #Memory Used# [2025-04-20 15:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 12:23:06 [end_date_ymd] => 2025-04-20 15:23:06 [RateCDR] => 1 ) [2025-04-20 15:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 12:23:06' and `end` < '2025-04-20 15:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 15:23:19] Production.INFO: count ==906 [2025-04-20 15:23:19] Production.ERROR: pbx CDR StartTime 2025-04-20 12:23:06 - End Time 2025-04-20 15:23:06 [2025-04-20 15:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 15:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951168', 'tblTempUsageDetail_20' ) start [2025-04-20 15:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951168', 'tblTempUsageDetail_20' ) end [2025-04-20 15:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951168', 'tblTempVendorCDR_20' ) start [2025-04-20 15:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951168', 'tblTempVendorCDR_20' ) end [2025-04-20 15:23:19] Production.INFO: ProcessCDR(1,14951168,1,1,2) [2025-04-20 15:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951168', 'tblTempUsageDetail_20' ) start [2025-04-20 15:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951168', 'tblTempUsageDetail_20' ) end [2025-04-20 15:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 15:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 15:23:22] Production.INFO: ==32742== Releasing lock... [2025-04-20 15:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 15:23:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-20 15:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 12:24:05 [end_date_ymd] => 2025-04-20 15:24:05 [RateCDR] => 1 ) [2025-04-20 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-20 12:24:05' and `end` < '2025-04-20 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-20 15:24:18] Production.INFO: count ==902 [2025-04-20 15:24:18] Production.ERROR: pbx CDR StartTime 2025-04-20 12:24:05 - End Time 2025-04-20 15:24:05 [2025-04-20 15:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 15:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951173', 'tblTempUsageDetail_20' ) start [2025-04-20 15:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951173', 'tblTempUsageDetail_20' ) end [2025-04-20 15:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951173', 'tblTempVendorCDR_20' ) start [2025-04-20 15:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951173', 'tblTempVendorCDR_20' ) end [2025-04-20 15:24:18] Production.INFO: ProcessCDR(1,14951173,1,1,2) [2025-04-20 15:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951173', 'tblTempUsageDetail_20' ) start [2025-04-20 15:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951173', 'tblTempUsageDetail_20' ) end [2025-04-20 15:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 15:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 15:24:21] Production.INFO: ==376== Releasing lock... [2025-04-20 15:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 15:24:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-20 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 12:25:05 [end_date_ymd] => 2025-04-20 15:25:05 [RateCDR] => 1 ) [2025-04-20 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-20 12:25:05' and `end` < '2025-04-20 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-20 15:25:18] Production.INFO: count ==899 [2025-04-20 15:25:18] Production.ERROR: pbx CDR StartTime 2025-04-20 12:25:05 - End Time 2025-04-20 15:25:05 [2025-04-20 15:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951178', 'tblTempUsageDetail_20' ) start [2025-04-20 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951178', 'tblTempUsageDetail_20' ) end [2025-04-20 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951178', 'tblTempVendorCDR_20' ) start [2025-04-20 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951178', 'tblTempVendorCDR_20' ) end [2025-04-20 15:25:18] Production.INFO: ProcessCDR(1,14951178,1,1,2) [2025-04-20 15:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951178', 'tblTempUsageDetail_20' ) start [2025-04-20 15:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951178', 'tblTempUsageDetail_20' ) end [2025-04-20 15:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 15:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 15:25:21] Production.INFO: ==446== Releasing lock... [2025-04-20 15:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 15:25:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-20 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 12:26:05 [end_date_ymd] => 2025-04-20 15:26:05 [RateCDR] => 1 ) [2025-04-20 15:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 12:26:05' and `end` < '2025-04-20 15:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 15:26:18] Production.INFO: count ==900 [2025-04-20 15:26:18] Production.ERROR: pbx CDR StartTime 2025-04-20 12:26:05 - End Time 2025-04-20 15:26:05 [2025-04-20 15:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 15:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951183', 'tblTempUsageDetail_20' ) start [2025-04-20 15:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951183', 'tblTempUsageDetail_20' ) end [2025-04-20 15:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951183', 'tblTempVendorCDR_20' ) start [2025-04-20 15:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951183', 'tblTempVendorCDR_20' ) end [2025-04-20 15:26:18] Production.INFO: ProcessCDR(1,14951183,1,1,2) [2025-04-20 15:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951183', 'tblTempUsageDetail_20' ) start [2025-04-20 15:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951183', 'tblTempUsageDetail_20' ) end [2025-04-20 15:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 15:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 15:26:22] Production.INFO: ==524== Releasing lock... [2025-04-20 15:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 15:26:22] Production.INFO: 35.25 MB #Memory Used# [2025-04-20 15:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 12:27:05 [end_date_ymd] => 2025-04-20 15:27:05 [RateCDR] => 1 ) [2025-04-20 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-20 12:27:05' and `end` < '2025-04-20 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-20 15:27:18] Production.INFO: count ==900 [2025-04-20 15:27:18] Production.ERROR: pbx CDR StartTime 2025-04-20 12:27:05 - End Time 2025-04-20 15:27:05 [2025-04-20 15:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 15:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951188', 'tblTempUsageDetail_20' ) start [2025-04-20 15:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951188', 'tblTempUsageDetail_20' ) end [2025-04-20 15:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951188', 'tblTempVendorCDR_20' ) start [2025-04-20 15:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951188', 'tblTempVendorCDR_20' ) end [2025-04-20 15:27:18] Production.INFO: ProcessCDR(1,14951188,1,1,2) [2025-04-20 15:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951188', 'tblTempUsageDetail_20' ) start [2025-04-20 15:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951188', 'tblTempUsageDetail_20' ) end [2025-04-20 15:27:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 15:27:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 15:27:23] Production.INFO: ==603== Releasing lock... [2025-04-20 15:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 15:27:23] Production.INFO: 34.75 MB #Memory Used# [2025-04-20 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 12:28:05 [end_date_ymd] => 2025-04-20 15:28:05 [RateCDR] => 1 ) [2025-04-20 15:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 12:28:05' and `end` < '2025-04-20 15:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 15:28:17] Production.INFO: count ==899 [2025-04-20 15:28:17] Production.ERROR: pbx CDR StartTime 2025-04-20 12:28:05 - End Time 2025-04-20 15:28:05 [2025-04-20 15:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 15:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951193', 'tblTempUsageDetail_20' ) start [2025-04-20 15:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951193', 'tblTempUsageDetail_20' ) end [2025-04-20 15:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951193', 'tblTempVendorCDR_20' ) start [2025-04-20 15:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951193', 'tblTempVendorCDR_20' ) end [2025-04-20 15:28:17] Production.INFO: ProcessCDR(1,14951193,1,1,2) [2025-04-20 15:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951193', 'tblTempUsageDetail_20' ) start [2025-04-20 15:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951193', 'tblTempUsageDetail_20' ) end [2025-04-20 15:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 15:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 15:28:21] Production.INFO: ==714== Releasing lock... [2025-04-20 15:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 15:28:21] Production.INFO: 35.5 MB #Memory Used# [2025-04-20 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 12:29:05 [end_date_ymd] => 2025-04-20 15:29:05 [RateCDR] => 1 ) [2025-04-20 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-20 12:29:05' and `end` < '2025-04-20 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-20 15:29:17] Production.INFO: count ==897 [2025-04-20 15:29:17] Production.ERROR: pbx CDR StartTime 2025-04-20 12:29:05 - End Time 2025-04-20 15:29:05 [2025-04-20 15:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 15:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951198', 'tblTempUsageDetail_20' ) start [2025-04-20 15:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951198', 'tblTempUsageDetail_20' ) end [2025-04-20 15:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951198', 'tblTempVendorCDR_20' ) start [2025-04-20 15:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951198', 'tblTempVendorCDR_20' ) end [2025-04-20 15:29:17] Production.INFO: ProcessCDR(1,14951198,1,1,2) [2025-04-20 15:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951198', 'tblTempUsageDetail_20' ) start [2025-04-20 15:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951198', 'tblTempUsageDetail_20' ) end [2025-04-20 15:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 15:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 15:29:22] Production.INFO: ==801== Releasing lock... [2025-04-20 15:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 15:29:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-20 15:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 12:30:06 [end_date_ymd] => 2025-04-20 15:30:06 [RateCDR] => 1 ) [2025-04-20 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-20 12:30:06' and `end` < '2025-04-20 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-20 15:30:19] Production.INFO: count ==898 [2025-04-20 15:30:19] Production.ERROR: pbx CDR StartTime 2025-04-20 12:30:06 - End Time 2025-04-20 15:30:06 [2025-04-20 15:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 15:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951204', 'tblTempUsageDetail_20' ) start [2025-04-20 15:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951204', 'tblTempUsageDetail_20' ) end [2025-04-20 15:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951204', 'tblTempVendorCDR_20' ) start [2025-04-20 15:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951204', 'tblTempVendorCDR_20' ) end [2025-04-20 15:30:19] Production.INFO: ProcessCDR(1,14951204,1,1,2) [2025-04-20 15:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951204', 'tblTempUsageDetail_20' ) start [2025-04-20 15:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951204', 'tblTempUsageDetail_20' ) end [2025-04-20 15:30:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 15:30:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 15:30:24] Production.INFO: ==878== Releasing lock... [2025-04-20 15:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 15:30:24] Production.INFO: 35 MB #Memory Used# [2025-04-20 15:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 12:31:05 [end_date_ymd] => 2025-04-20 15:31:05 [RateCDR] => 1 ) [2025-04-20 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-20 12:31:05' and `end` < '2025-04-20 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-20 15:31:17] Production.INFO: count ==877 [2025-04-20 15:31:18] Production.ERROR: pbx CDR StartTime 2025-04-20 12:31:05 - End Time 2025-04-20 15:31:05 [2025-04-20 15:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 15:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951209', 'tblTempUsageDetail_20' ) start [2025-04-20 15:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951209', 'tblTempUsageDetail_20' ) end [2025-04-20 15:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951209', 'tblTempVendorCDR_20' ) start [2025-04-20 15:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951209', 'tblTempVendorCDR_20' ) end [2025-04-20 15:31:18] Production.INFO: ProcessCDR(1,14951209,1,1,2) [2025-04-20 15:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951209', 'tblTempUsageDetail_20' ) start [2025-04-20 15:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951209', 'tblTempUsageDetail_20' ) end [2025-04-20 15:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 15:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 15:31:22] Production.INFO: ==950== Releasing lock... [2025-04-20 15:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 15:31:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-20 15:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 12:32:05 [end_date_ymd] => 2025-04-20 15:32:05 [RateCDR] => 1 ) [2025-04-20 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-20 12:32:05' and `end` < '2025-04-20 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-20 15:32:17] Production.INFO: count ==874 [2025-04-20 15:32:18] Production.ERROR: pbx CDR StartTime 2025-04-20 12:32:05 - End Time 2025-04-20 15:32:05 [2025-04-20 15:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 15:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951214', 'tblTempUsageDetail_20' ) start [2025-04-20 15:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951214', 'tblTempUsageDetail_20' ) end [2025-04-20 15:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951214', 'tblTempVendorCDR_20' ) start [2025-04-20 15:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951214', 'tblTempVendorCDR_20' ) end [2025-04-20 15:32:18] Production.INFO: ProcessCDR(1,14951214,1,1,2) [2025-04-20 15:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951214', 'tblTempUsageDetail_20' ) start [2025-04-20 15:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951214', 'tblTempUsageDetail_20' ) end [2025-04-20 15:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 15:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 15:32:21] Production.INFO: ==1037== Releasing lock... [2025-04-20 15:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 15:32:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-20 15:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 12:33:04 [end_date_ymd] => 2025-04-20 15:33:04 [RateCDR] => 1 ) [2025-04-20 15:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 12:33:04' and `end` < '2025-04-20 15:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 15:33:17] Production.INFO: count ==873 [2025-04-20 15:33:17] Production.ERROR: pbx CDR StartTime 2025-04-20 12:33:04 - End Time 2025-04-20 15:33:04 [2025-04-20 15:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 15:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951219', 'tblTempUsageDetail_20' ) start [2025-04-20 15:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951219', 'tblTempUsageDetail_20' ) end [2025-04-20 15:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951219', 'tblTempVendorCDR_20' ) start [2025-04-20 15:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951219', 'tblTempVendorCDR_20' ) end [2025-04-20 15:33:17] Production.INFO: ProcessCDR(1,14951219,1,1,2) [2025-04-20 15:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951219', 'tblTempUsageDetail_20' ) start [2025-04-20 15:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951219', 'tblTempUsageDetail_20' ) end [2025-04-20 15:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 15:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 15:33:22] Production.INFO: ==1107== Releasing lock... [2025-04-20 15:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 15:33:22] Production.INFO: 35 MB #Memory Used# [2025-04-20 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 12:34:05 [end_date_ymd] => 2025-04-20 15:34:05 [RateCDR] => 1 ) [2025-04-20 15:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 12:34:05' and `end` < '2025-04-20 15:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 15:34:18] Production.INFO: count ==871 [2025-04-20 15:34:18] Production.ERROR: pbx CDR StartTime 2025-04-20 12:34:05 - End Time 2025-04-20 15:34:05 [2025-04-20 15:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 15:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951224', 'tblTempUsageDetail_20' ) start [2025-04-20 15:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951224', 'tblTempUsageDetail_20' ) end [2025-04-20 15:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951224', 'tblTempVendorCDR_20' ) start [2025-04-20 15:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951224', 'tblTempVendorCDR_20' ) end [2025-04-20 15:34:18] Production.INFO: ProcessCDR(1,14951224,1,1,2) [2025-04-20 15:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951224', 'tblTempUsageDetail_20' ) start [2025-04-20 15:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951224', 'tblTempUsageDetail_20' ) end [2025-04-20 15:34:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 15:34:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 15:34:23] Production.INFO: ==1231== Releasing lock... [2025-04-20 15:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 15:34:23] Production.INFO: 34.75 MB #Memory Used# [2025-04-20 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 12:35:05 [end_date_ymd] => 2025-04-20 15:35:05 [RateCDR] => 1 ) [2025-04-20 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-20 12:35:05' and `end` < '2025-04-20 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-20 15:35:17] Production.INFO: count ==870 [2025-04-20 15:35:17] Production.ERROR: pbx CDR StartTime 2025-04-20 12:35:05 - End Time 2025-04-20 15:35:05 [2025-04-20 15:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 15:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951229', 'tblTempUsageDetail_20' ) start [2025-04-20 15:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951229', 'tblTempUsageDetail_20' ) end [2025-04-20 15:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951229', 'tblTempVendorCDR_20' ) start [2025-04-20 15:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951229', 'tblTempVendorCDR_20' ) end [2025-04-20 15:35:17] Production.INFO: ProcessCDR(1,14951229,1,1,2) [2025-04-20 15:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951229', 'tblTempUsageDetail_20' ) start [2025-04-20 15:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951229', 'tblTempUsageDetail_20' ) end [2025-04-20 15:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 15:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 15:35:21] Production.INFO: ==1331== Releasing lock... [2025-04-20 15:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 15:35:21] Production.INFO: 35.25 MB #Memory Used# [2025-04-20 15:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 12:36:06 [end_date_ymd] => 2025-04-20 15:36:06 [RateCDR] => 1 ) [2025-04-20 15:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 12:36:06' and `end` < '2025-04-20 15:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 15:36:18] Production.INFO: count ==872 [2025-04-20 15:36:19] Production.ERROR: pbx CDR StartTime 2025-04-20 12:36:06 - End Time 2025-04-20 15:36:06 [2025-04-20 15:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 15:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951234', 'tblTempUsageDetail_20' ) start [2025-04-20 15:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951234', 'tblTempUsageDetail_20' ) end [2025-04-20 15:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951234', 'tblTempVendorCDR_20' ) start [2025-04-20 15:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951234', 'tblTempVendorCDR_20' ) end [2025-04-20 15:36:19] Production.INFO: ProcessCDR(1,14951234,1,1,2) [2025-04-20 15:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951234', 'tblTempUsageDetail_20' ) start [2025-04-20 15:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951234', 'tblTempUsageDetail_20' ) end [2025-04-20 15:36:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 15:36:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 15:36:23] Production.INFO: ==1405== Releasing lock... [2025-04-20 15:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 15:36:23] Production.INFO: 34.75 MB #Memory Used# [2025-04-20 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 12:37:05 [end_date_ymd] => 2025-04-20 15:37:05 [RateCDR] => 1 ) [2025-04-20 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-20 12:37:05' and `end` < '2025-04-20 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-20 15:37:18] Production.INFO: count ==874 [2025-04-20 15:37:18] Production.ERROR: pbx CDR StartTime 2025-04-20 12:37:05 - End Time 2025-04-20 15:37:05 [2025-04-20 15:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 15:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951239', 'tblTempUsageDetail_20' ) start [2025-04-20 15:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951239', 'tblTempUsageDetail_20' ) end [2025-04-20 15:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951239', 'tblTempVendorCDR_20' ) start [2025-04-20 15:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951239', 'tblTempVendorCDR_20' ) end [2025-04-20 15:37:18] Production.INFO: ProcessCDR(1,14951239,1,1,2) [2025-04-20 15:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951239', 'tblTempUsageDetail_20' ) start [2025-04-20 15:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951239', 'tblTempUsageDetail_20' ) end [2025-04-20 15:37:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 15:37:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 15:37:23] Production.INFO: ==1491== Releasing lock... [2025-04-20 15:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 15:37:23] Production.INFO: 34.75 MB #Memory Used# [2025-04-20 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 12:38:05 [end_date_ymd] => 2025-04-20 15:38:05 [RateCDR] => 1 ) [2025-04-20 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-20 12:38:05' and `end` < '2025-04-20 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-20 15:38:18] Production.INFO: count ==886 [2025-04-20 15:38:18] Production.ERROR: pbx CDR StartTime 2025-04-20 12:38:05 - End Time 2025-04-20 15:38:05 [2025-04-20 15:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 15:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951244', 'tblTempUsageDetail_20' ) start [2025-04-20 15:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951244', 'tblTempUsageDetail_20' ) end [2025-04-20 15:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951244', 'tblTempVendorCDR_20' ) start [2025-04-20 15:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951244', 'tblTempVendorCDR_20' ) end [2025-04-20 15:38:18] Production.INFO: ProcessCDR(1,14951244,1,1,2) [2025-04-20 15:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951244', 'tblTempUsageDetail_20' ) start [2025-04-20 15:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951244', 'tblTempUsageDetail_20' ) end [2025-04-20 15:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 15:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 15:38:23] Production.INFO: ==1603== Releasing lock... [2025-04-20 15:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 15:38:23] Production.INFO: 34.75 MB #Memory Used# [2025-04-20 15:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 12:39:06 [end_date_ymd] => 2025-04-20 15:39:06 [RateCDR] => 1 ) [2025-04-20 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-20 12:39:06' and `end` < '2025-04-20 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-20 15:39:18] Production.INFO: count ==892 [2025-04-20 15:39:18] Production.ERROR: pbx CDR StartTime 2025-04-20 12:39:06 - End Time 2025-04-20 15:39:06 [2025-04-20 15:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 15:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951249', 'tblTempUsageDetail_20' ) start [2025-04-20 15:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951249', 'tblTempUsageDetail_20' ) end [2025-04-20 15:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951249', 'tblTempVendorCDR_20' ) start [2025-04-20 15:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951249', 'tblTempVendorCDR_20' ) end [2025-04-20 15:39:18] Production.INFO: ProcessCDR(1,14951249,1,1,2) [2025-04-20 15:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951249', 'tblTempUsageDetail_20' ) start [2025-04-20 15:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951249', 'tblTempUsageDetail_20' ) end [2025-04-20 15:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 15:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 15:39:22] Production.INFO: ==1682== Releasing lock... [2025-04-20 15:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 15:39:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-20 15:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 12:40:05 [end_date_ymd] => 2025-04-20 15:40:05 [RateCDR] => 1 ) [2025-04-20 15: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-20 12:40:05' and `end` < '2025-04-20 15: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-20 15:40:18] Production.INFO: count ==901 [2025-04-20 15:40:18] Production.ERROR: pbx CDR StartTime 2025-04-20 12:40:05 - End Time 2025-04-20 15:40:05 [2025-04-20 15:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 15:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951255', 'tblTempUsageDetail_20' ) start [2025-04-20 15:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951255', 'tblTempUsageDetail_20' ) end [2025-04-20 15:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951255', 'tblTempVendorCDR_20' ) start [2025-04-20 15:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951255', 'tblTempVendorCDR_20' ) end [2025-04-20 15:40:18] Production.INFO: ProcessCDR(1,14951255,1,1,2) [2025-04-20 15:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951255', 'tblTempUsageDetail_20' ) start [2025-04-20 15:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951255', 'tblTempUsageDetail_20' ) end [2025-04-20 15:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 15:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 15:40:22] Production.INFO: ==1767== Releasing lock... [2025-04-20 15:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 15:40:22] Production.INFO: 35.25 MB #Memory Used# [2025-04-20 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 12:41:05 [end_date_ymd] => 2025-04-20 15:41:05 [RateCDR] => 1 ) [2025-04-20 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-20 12:41:05' and `end` < '2025-04-20 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-20 15:41:18] Production.INFO: count ==897 [2025-04-20 15:41:18] Production.ERROR: pbx CDR StartTime 2025-04-20 12:41:05 - End Time 2025-04-20 15:41:05 [2025-04-20 15:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 15:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951260', 'tblTempUsageDetail_20' ) start [2025-04-20 15:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951260', 'tblTempUsageDetail_20' ) end [2025-04-20 15:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951260', 'tblTempVendorCDR_20' ) start [2025-04-20 15:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951260', 'tblTempVendorCDR_20' ) end [2025-04-20 15:41:18] Production.INFO: ProcessCDR(1,14951260,1,1,2) [2025-04-20 15:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951260', 'tblTempUsageDetail_20' ) start [2025-04-20 15:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951260', 'tblTempUsageDetail_20' ) end [2025-04-20 15:41:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 15:41:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 15:41:23] Production.INFO: ==1847== Releasing lock... [2025-04-20 15:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 15:41:23] Production.INFO: 35.25 MB #Memory Used# [2025-04-20 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 12:42:05 [end_date_ymd] => 2025-04-20 15:42:05 [RateCDR] => 1 ) [2025-04-20 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-20 12:42:05' and `end` < '2025-04-20 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-20 15:42:17] Production.INFO: count ==902 [2025-04-20 15:42:18] Production.ERROR: pbx CDR StartTime 2025-04-20 12:42:05 - End Time 2025-04-20 15:42:05 [2025-04-20 15:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 15:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951265', 'tblTempUsageDetail_20' ) start [2025-04-20 15:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951265', 'tblTempUsageDetail_20' ) end [2025-04-20 15:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951265', 'tblTempVendorCDR_20' ) start [2025-04-20 15:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951265', 'tblTempVendorCDR_20' ) end [2025-04-20 15:42:18] Production.INFO: ProcessCDR(1,14951265,1,1,2) [2025-04-20 15:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951265', 'tblTempUsageDetail_20' ) start [2025-04-20 15:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951265', 'tblTempUsageDetail_20' ) end [2025-04-20 15:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 15:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 15:42:21] Production.INFO: ==1927== Releasing lock... [2025-04-20 15:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 15:42:21] Production.INFO: 34.5 MB #Memory Used# [2025-04-20 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 12:43:05 [end_date_ymd] => 2025-04-20 15:43:05 [RateCDR] => 1 ) [2025-04-20 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-20 12:43:05' and `end` < '2025-04-20 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-20 15:43:18] Production.INFO: count ==910 [2025-04-20 15:43:18] Production.ERROR: pbx CDR StartTime 2025-04-20 12:43:05 - End Time 2025-04-20 15:43:05 [2025-04-20 15:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951270', 'tblTempUsageDetail_20' ) start [2025-04-20 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951270', 'tblTempUsageDetail_20' ) end [2025-04-20 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951270', 'tblTempVendorCDR_20' ) start [2025-04-20 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951270', 'tblTempVendorCDR_20' ) end [2025-04-20 15:43:18] Production.INFO: ProcessCDR(1,14951270,1,1,2) [2025-04-20 15:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951270', 'tblTempUsageDetail_20' ) start [2025-04-20 15:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951270', 'tblTempUsageDetail_20' ) end [2025-04-20 15:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 15:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 15:43:23] Production.INFO: ==2011== Releasing lock... [2025-04-20 15:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 15:43:23] Production.INFO: 35 MB #Memory Used# [2025-04-20 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 12:44:05 [end_date_ymd] => 2025-04-20 15:44:05 [RateCDR] => 1 ) [2025-04-20 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-20 12:44:05' and `end` < '2025-04-20 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-20 15:44:18] Production.INFO: count ==912 [2025-04-20 15:44:18] Production.ERROR: pbx CDR StartTime 2025-04-20 12:44:05 - End Time 2025-04-20 15:44:05 [2025-04-20 15:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 15:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951275', 'tblTempUsageDetail_20' ) start [2025-04-20 15:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951275', 'tblTempUsageDetail_20' ) end [2025-04-20 15:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951275', 'tblTempVendorCDR_20' ) start [2025-04-20 15:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951275', 'tblTempVendorCDR_20' ) end [2025-04-20 15:44:18] Production.INFO: ProcessCDR(1,14951275,1,1,2) [2025-04-20 15:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951275', 'tblTempUsageDetail_20' ) start [2025-04-20 15:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951275', 'tblTempUsageDetail_20' ) end [2025-04-20 15:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 15:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 15:44:22] Production.INFO: ==2086== Releasing lock... [2025-04-20 15:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 15:44:22] Production.INFO: 35 MB #Memory Used# [2025-04-20 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 12:45:05 [end_date_ymd] => 2025-04-20 15:45:05 [RateCDR] => 1 ) [2025-04-20 15:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 12:45:05' and `end` < '2025-04-20 15:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 15:45:17] Production.INFO: count ==907 [2025-04-20 15:45:18] Production.ERROR: pbx CDR StartTime 2025-04-20 12:45:05 - End Time 2025-04-20 15:45:05 [2025-04-20 15:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 15:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951280', 'tblTempUsageDetail_20' ) start [2025-04-20 15:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951280', 'tblTempUsageDetail_20' ) end [2025-04-20 15:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951280', 'tblTempVendorCDR_20' ) start [2025-04-20 15:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951280', 'tblTempVendorCDR_20' ) end [2025-04-20 15:45:18] Production.INFO: ProcessCDR(1,14951280,1,1,2) [2025-04-20 15:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951280', 'tblTempUsageDetail_20' ) start [2025-04-20 15:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951280', 'tblTempUsageDetail_20' ) end [2025-04-20 15:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 15:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 15:45:21] Production.INFO: ==2166== Releasing lock... [2025-04-20 15:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 15:45:21] Production.INFO: 35 MB #Memory Used# [2025-04-20 15:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 12:46:05 [end_date_ymd] => 2025-04-20 15:46:05 [RateCDR] => 1 ) [2025-04-20 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-20 12:46:05' and `end` < '2025-04-20 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-20 15:46:18] Production.INFO: count ==904 [2025-04-20 15:46:18] Production.ERROR: pbx CDR StartTime 2025-04-20 12:46:05 - End Time 2025-04-20 15:46:05 [2025-04-20 15:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 15:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951285', 'tblTempUsageDetail_20' ) start [2025-04-20 15:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951285', 'tblTempUsageDetail_20' ) end [2025-04-20 15:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951285', 'tblTempVendorCDR_20' ) start [2025-04-20 15:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951285', 'tblTempVendorCDR_20' ) end [2025-04-20 15:46:18] Production.INFO: ProcessCDR(1,14951285,1,1,2) [2025-04-20 15:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951285', 'tblTempUsageDetail_20' ) start [2025-04-20 15:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951285', 'tblTempUsageDetail_20' ) end [2025-04-20 15:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 15:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 15:46:21] Production.INFO: ==2251== Releasing lock... [2025-04-20 15:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 15:46:21] Production.INFO: 34.5 MB #Memory Used# [2025-04-20 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 12:47:05 [end_date_ymd] => 2025-04-20 15:47:05 [RateCDR] => 1 ) [2025-04-20 15:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 12:47:05' and `end` < '2025-04-20 15:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 15:47:18] Production.INFO: count ==904 [2025-04-20 15:47:18] Production.ERROR: pbx CDR StartTime 2025-04-20 12:47:05 - End Time 2025-04-20 15:47:05 [2025-04-20 15:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 15:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951290', 'tblTempUsageDetail_20' ) start [2025-04-20 15:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951290', 'tblTempUsageDetail_20' ) end [2025-04-20 15:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951290', 'tblTempVendorCDR_20' ) start [2025-04-20 15:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951290', 'tblTempVendorCDR_20' ) end [2025-04-20 15:47:18] Production.INFO: ProcessCDR(1,14951290,1,1,2) [2025-04-20 15:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951290', 'tblTempUsageDetail_20' ) start [2025-04-20 15:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951290', 'tblTempUsageDetail_20' ) end [2025-04-20 15:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 15:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 15:47:21] Production.INFO: ==2327== Releasing lock... [2025-04-20 15:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 15:47:21] Production.INFO: 35 MB #Memory Used# [2025-04-20 15:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 12:48:06 [end_date_ymd] => 2025-04-20 15:48:06 [RateCDR] => 1 ) [2025-04-20 15:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 12:48:06' and `end` < '2025-04-20 15:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 15:48:18] Production.INFO: count ==906 [2025-04-20 15:48:18] Production.ERROR: pbx CDR StartTime 2025-04-20 12:48:06 - End Time 2025-04-20 15:48:06 [2025-04-20 15:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 15:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951295', 'tblTempUsageDetail_20' ) start [2025-04-20 15:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951295', 'tblTempUsageDetail_20' ) end [2025-04-20 15:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951295', 'tblTempVendorCDR_20' ) start [2025-04-20 15:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951295', 'tblTempVendorCDR_20' ) end [2025-04-20 15:48:19] Production.INFO: ProcessCDR(1,14951295,1,1,2) [2025-04-20 15:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951295', 'tblTempUsageDetail_20' ) start [2025-04-20 15:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951295', 'tblTempUsageDetail_20' ) end [2025-04-20 15:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 15:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 15:48:22] Production.INFO: ==2408== Releasing lock... [2025-04-20 15:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 15:48:22] Production.INFO: 35 MB #Memory Used# [2025-04-20 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 12:49:05 [end_date_ymd] => 2025-04-20 15:49:05 [RateCDR] => 1 ) [2025-04-20 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-20 12:49:05' and `end` < '2025-04-20 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-20 15:49:17] Production.INFO: count ==908 [2025-04-20 15:49:17] Production.ERROR: pbx CDR StartTime 2025-04-20 12:49:05 - End Time 2025-04-20 15:49:05 [2025-04-20 15:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 15:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951300', 'tblTempUsageDetail_20' ) start [2025-04-20 15:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951300', 'tblTempUsageDetail_20' ) end [2025-04-20 15:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951300', 'tblTempVendorCDR_20' ) start [2025-04-20 15:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951300', 'tblTempVendorCDR_20' ) end [2025-04-20 15:49:17] Production.INFO: ProcessCDR(1,14951300,1,1,2) [2025-04-20 15:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951300', 'tblTempUsageDetail_20' ) start [2025-04-20 15:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951300', 'tblTempUsageDetail_20' ) end [2025-04-20 15:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 15:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 15:49:22] Production.INFO: ==2479== Releasing lock... [2025-04-20 15:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 15:49:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-20 15:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 12:50:06 [end_date_ymd] => 2025-04-20 15:50:06 [RateCDR] => 1 ) [2025-04-20 15:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 12:50:06' and `end` < '2025-04-20 15:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 15:50:18] Production.INFO: count ==906 [2025-04-20 15:50:19] Production.ERROR: pbx CDR StartTime 2025-04-20 12:50:06 - End Time 2025-04-20 15:50:06 [2025-04-20 15:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 15:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951305', 'tblTempUsageDetail_20' ) start [2025-04-20 15:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951305', 'tblTempUsageDetail_20' ) end [2025-04-20 15:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951305', 'tblTempVendorCDR_20' ) start [2025-04-20 15:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951305', 'tblTempVendorCDR_20' ) end [2025-04-20 15:50:19] Production.INFO: ProcessCDR(1,14951305,1,1,2) [2025-04-20 15:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951305', 'tblTempUsageDetail_20' ) start [2025-04-20 15:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951305', 'tblTempUsageDetail_20' ) end [2025-04-20 15:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 15:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 15:50:22] Production.INFO: ==2601== Releasing lock... [2025-04-20 15:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 15:50:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-20 15:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 12:51:06 [end_date_ymd] => 2025-04-20 15:51:06 [RateCDR] => 1 ) [2025-04-20 15:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 12:51:06' and `end` < '2025-04-20 15:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 15:51:19] Production.INFO: count ==897 [2025-04-20 15:51:19] Production.ERROR: pbx CDR StartTime 2025-04-20 12:51:06 - End Time 2025-04-20 15:51:06 [2025-04-20 15:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 15:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951311', 'tblTempUsageDetail_20' ) start [2025-04-20 15:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951311', 'tblTempUsageDetail_20' ) end [2025-04-20 15:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951311', 'tblTempVendorCDR_20' ) start [2025-04-20 15:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951311', 'tblTempVendorCDR_20' ) end [2025-04-20 15:51:19] Production.INFO: ProcessCDR(1,14951311,1,1,2) [2025-04-20 15:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951311', 'tblTempUsageDetail_20' ) start [2025-04-20 15:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951311', 'tblTempUsageDetail_20' ) end [2025-04-20 15:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 15:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 15:51:22] Production.INFO: ==2686== Releasing lock... [2025-04-20 15:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 15:51:22] Production.INFO: 35 MB #Memory Used# [2025-04-20 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 12:52:05 [end_date_ymd] => 2025-04-20 15:52:05 [RateCDR] => 1 ) [2025-04-20 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-20 12:52:05' and `end` < '2025-04-20 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-20 15:52:17] Production.INFO: count ==897 [2025-04-20 15:52:18] Production.ERROR: pbx CDR StartTime 2025-04-20 12:52:05 - End Time 2025-04-20 15:52:05 [2025-04-20 15:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 15:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951316', 'tblTempUsageDetail_20' ) start [2025-04-20 15:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951316', 'tblTempUsageDetail_20' ) end [2025-04-20 15:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951316', 'tblTempVendorCDR_20' ) start [2025-04-20 15:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951316', 'tblTempVendorCDR_20' ) end [2025-04-20 15:52:18] Production.INFO: ProcessCDR(1,14951316,1,1,2) [2025-04-20 15:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951316', 'tblTempUsageDetail_20' ) start [2025-04-20 15:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951316', 'tblTempUsageDetail_20' ) end [2025-04-20 15:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 15:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 15:52:21] Production.INFO: ==2766== Releasing lock... [2025-04-20 15:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 15:52:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-20 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 12:53:05 [end_date_ymd] => 2025-04-20 15:53:05 [RateCDR] => 1 ) [2025-04-20 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-20 12:53:05' and `end` < '2025-04-20 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-20 15:53:18] Production.INFO: count ==904 [2025-04-20 15:53:18] Production.ERROR: pbx CDR StartTime 2025-04-20 12:53:05 - End Time 2025-04-20 15:53:05 [2025-04-20 15:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951321', 'tblTempUsageDetail_20' ) start [2025-04-20 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951321', 'tblTempUsageDetail_20' ) end [2025-04-20 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951321', 'tblTempVendorCDR_20' ) start [2025-04-20 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951321', 'tblTempVendorCDR_20' ) end [2025-04-20 15:53:18] Production.INFO: ProcessCDR(1,14951321,1,1,2) [2025-04-20 15:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951321', 'tblTempUsageDetail_20' ) start [2025-04-20 15:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951321', 'tblTempUsageDetail_20' ) end [2025-04-20 15:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 15:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 15:53:22] Production.INFO: ==2839== Releasing lock... [2025-04-20 15:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 15:53:22] Production.INFO: 35 MB #Memory Used# [2025-04-20 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 12:54:05 [end_date_ymd] => 2025-04-20 15:54:05 [RateCDR] => 1 ) [2025-04-20 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-20 12:54:05' and `end` < '2025-04-20 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-20 15:54:18] Production.INFO: count ==917 [2025-04-20 15:54:18] Production.ERROR: pbx CDR StartTime 2025-04-20 12:54:05 - End Time 2025-04-20 15:54:05 [2025-04-20 15:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 15:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951326', 'tblTempUsageDetail_20' ) start [2025-04-20 15:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951326', 'tblTempUsageDetail_20' ) end [2025-04-20 15:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951326', 'tblTempVendorCDR_20' ) start [2025-04-20 15:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951326', 'tblTempVendorCDR_20' ) end [2025-04-20 15:54:18] Production.INFO: ProcessCDR(1,14951326,1,1,2) [2025-04-20 15:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951326', 'tblTempUsageDetail_20' ) start [2025-04-20 15:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951326', 'tblTempUsageDetail_20' ) end [2025-04-20 15:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 15:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 15:54:23] Production.INFO: ==2919== Releasing lock... [2025-04-20 15:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 15:54:23] Production.INFO: 35.25 MB #Memory Used# [2025-04-20 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 12:55:05 [end_date_ymd] => 2025-04-20 15:55:05 [RateCDR] => 1 ) [2025-04-20 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-20 12:55:05' and `end` < '2025-04-20 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-20 15:55:18] Production.INFO: count ==916 [2025-04-20 15:55:18] Production.ERROR: pbx CDR StartTime 2025-04-20 12:55:05 - End Time 2025-04-20 15:55:05 [2025-04-20 15:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 15:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951331', 'tblTempUsageDetail_20' ) start [2025-04-20 15:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951331', 'tblTempUsageDetail_20' ) end [2025-04-20 15:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951331', 'tblTempVendorCDR_20' ) start [2025-04-20 15:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951331', 'tblTempVendorCDR_20' ) end [2025-04-20 15:55:18] Production.INFO: ProcessCDR(1,14951331,1,1,2) [2025-04-20 15:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951331', 'tblTempUsageDetail_20' ) start [2025-04-20 15:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951331', 'tblTempUsageDetail_20' ) end [2025-04-20 15:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 15:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 15:55:21] Production.INFO: ==2997== Releasing lock... [2025-04-20 15:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 15:55:21] Production.INFO: 35 MB #Memory Used# [2025-04-20 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 12:56:05 [end_date_ymd] => 2025-04-20 15:56:05 [RateCDR] => 1 ) [2025-04-20 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-20 12:56:05' and `end` < '2025-04-20 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-20 15:56:17] Production.INFO: count ==916 [2025-04-20 15:56:18] Production.ERROR: pbx CDR StartTime 2025-04-20 12:56:05 - End Time 2025-04-20 15:56:05 [2025-04-20 15:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 15:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951336', 'tblTempUsageDetail_20' ) start [2025-04-20 15:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951336', 'tblTempUsageDetail_20' ) end [2025-04-20 15:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951336', 'tblTempVendorCDR_20' ) start [2025-04-20 15:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951336', 'tblTempVendorCDR_20' ) end [2025-04-20 15:56:18] Production.INFO: ProcessCDR(1,14951336,1,1,2) [2025-04-20 15:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951336', 'tblTempUsageDetail_20' ) start [2025-04-20 15:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951336', 'tblTempUsageDetail_20' ) end [2025-04-20 15:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 15:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 15:56:21] Production.INFO: ==3080== Releasing lock... [2025-04-20 15:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 15:56:21] Production.INFO: 35.5 MB #Memory Used# [2025-04-20 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 12:57:05 [end_date_ymd] => 2025-04-20 15:57:05 [RateCDR] => 1 ) [2025-04-20 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-20 12:57:05' and `end` < '2025-04-20 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-20 15:57:18] Production.INFO: count ==914 [2025-04-20 15:57:18] Production.ERROR: pbx CDR StartTime 2025-04-20 12:57:05 - End Time 2025-04-20 15:57:05 [2025-04-20 15:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 15:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951341', 'tblTempUsageDetail_20' ) start [2025-04-20 15:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951341', 'tblTempUsageDetail_20' ) end [2025-04-20 15:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951341', 'tblTempVendorCDR_20' ) start [2025-04-20 15:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951341', 'tblTempVendorCDR_20' ) end [2025-04-20 15:57:18] Production.INFO: ProcessCDR(1,14951341,1,1,2) [2025-04-20 15:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951341', 'tblTempUsageDetail_20' ) start [2025-04-20 15:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951341', 'tblTempUsageDetail_20' ) end [2025-04-20 15:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 15:57:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 15:57:23] Production.INFO: ==3160== Releasing lock... [2025-04-20 15:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 15:57:23] Production.INFO: 34.75 MB #Memory Used# [2025-04-20 15:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 12:58:06 [end_date_ymd] => 2025-04-20 15:58:06 [RateCDR] => 1 ) [2025-04-20 15:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 12:58:06' and `end` < '2025-04-20 15:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 15:58:18] Production.INFO: count ==918 [2025-04-20 15:58:19] Production.ERROR: pbx CDR StartTime 2025-04-20 12:58:06 - End Time 2025-04-20 15:58:06 [2025-04-20 15:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951346', 'tblTempUsageDetail_20' ) start [2025-04-20 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951346', 'tblTempUsageDetail_20' ) end [2025-04-20 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951346', 'tblTempVendorCDR_20' ) start [2025-04-20 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951346', 'tblTempVendorCDR_20' ) end [2025-04-20 15:58:19] Production.INFO: ProcessCDR(1,14951346,1,1,2) [2025-04-20 15:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951346', 'tblTempUsageDetail_20' ) start [2025-04-20 15:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951346', 'tblTempUsageDetail_20' ) end [2025-04-20 15:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 15:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 15:58:22] Production.INFO: ==3247== Releasing lock... [2025-04-20 15:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 15:58:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-20 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 12:59:05 [end_date_ymd] => 2025-04-20 15:59:05 [RateCDR] => 1 ) [2025-04-20 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-20 12:59:05' and `end` < '2025-04-20 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-20 15:59:18] Production.INFO: count ==915 [2025-04-20 15:59:18] Production.ERROR: pbx CDR StartTime 2025-04-20 12:59:05 - End Time 2025-04-20 15:59:05 [2025-04-20 15:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 15:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951351', 'tblTempUsageDetail_20' ) start [2025-04-20 15:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951351', 'tblTempUsageDetail_20' ) end [2025-04-20 15:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951351', 'tblTempVendorCDR_20' ) start [2025-04-20 15:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951351', 'tblTempVendorCDR_20' ) end [2025-04-20 15:59:18] Production.INFO: ProcessCDR(1,14951351,1,1,2) [2025-04-20 15:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 15:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 15:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951351', 'tblTempUsageDetail_20' ) start [2025-04-20 15:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951351', 'tblTempUsageDetail_20' ) end [2025-04-20 15:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 15:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 15:59:23] Production.INFO: ==3323== Releasing lock... [2025-04-20 15:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 15:59:23] Production.INFO: 35 MB #Memory Used# [2025-04-20 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 13:00:06 [end_date_ymd] => 2025-04-20 16:00:06 [RateCDR] => 1 ) [2025-04-20 16:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 13:00:06' and `end` < '2025-04-20 16:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 16:00:18] Production.INFO: count ==914 [2025-04-20 16:00:19] Production.ERROR: pbx CDR StartTime 2025-04-20 13:00:06 - End Time 2025-04-20 16:00:06 [2025-04-20 16:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951356', 'tblTempUsageDetail_20' ) start [2025-04-20 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951356', 'tblTempUsageDetail_20' ) end [2025-04-20 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951356', 'tblTempVendorCDR_20' ) start [2025-04-20 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951356', 'tblTempVendorCDR_20' ) end [2025-04-20 16:00:19] Production.INFO: ProcessCDR(1,14951356,1,1,2) [2025-04-20 16:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951356', 'tblTempUsageDetail_20' ) start [2025-04-20 16:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951356', 'tblTempUsageDetail_20' ) end [2025-04-20 16:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 16:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 16:00:22] Production.INFO: ==3408== Releasing lock... [2025-04-20 16:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 16:00:22] Production.INFO: 35.25 MB #Memory Used# [2025-04-20 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 13:01:05 [end_date_ymd] => 2025-04-20 16:01:05 [RateCDR] => 1 ) [2025-04-20 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-20 13:01:05' and `end` < '2025-04-20 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-20 16:01:17] Production.INFO: count ==928 [2025-04-20 16:01:17] Production.ERROR: pbx CDR StartTime 2025-04-20 13:01:05 - End Time 2025-04-20 16:01:05 [2025-04-20 16:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 16:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951362', 'tblTempUsageDetail_20' ) start [2025-04-20 16:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951362', 'tblTempUsageDetail_20' ) end [2025-04-20 16:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951362', 'tblTempVendorCDR_20' ) start [2025-04-20 16:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951362', 'tblTempVendorCDR_20' ) end [2025-04-20 16:01:17] Production.INFO: ProcessCDR(1,14951362,1,1,2) [2025-04-20 16:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951362', 'tblTempUsageDetail_20' ) start [2025-04-20 16:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951362', 'tblTempUsageDetail_20' ) end [2025-04-20 16:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 16:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 16:01:21] Production.INFO: ==3505== Releasing lock... [2025-04-20 16:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 16:01:21] Production.INFO: 35.5 MB #Memory Used# [2025-04-20 16:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 13:02:05 [end_date_ymd] => 2025-04-20 16:02:05 [RateCDR] => 1 ) [2025-04-20 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-20 13:02:05' and `end` < '2025-04-20 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-20 16:02:18] Production.INFO: count ==927 [2025-04-20 16:02:18] Production.ERROR: pbx CDR StartTime 2025-04-20 13:02:05 - End Time 2025-04-20 16:02:05 [2025-04-20 16:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 16:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951367', 'tblTempUsageDetail_20' ) start [2025-04-20 16:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951367', 'tblTempUsageDetail_20' ) end [2025-04-20 16:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951367', 'tblTempVendorCDR_20' ) start [2025-04-20 16:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951367', 'tblTempVendorCDR_20' ) end [2025-04-20 16:02:18] Production.INFO: ProcessCDR(1,14951367,1,1,2) [2025-04-20 16:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951367', 'tblTempUsageDetail_20' ) start [2025-04-20 16:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951367', 'tblTempUsageDetail_20' ) end [2025-04-20 16:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 16:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 16:02:23] Production.INFO: ==3582== Releasing lock... [2025-04-20 16:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 16:02:23] Production.INFO: 35.25 MB #Memory Used# [2025-04-20 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 13:03:05 [end_date_ymd] => 2025-04-20 16:03:05 [RateCDR] => 1 ) [2025-04-20 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-20 13:03:05' and `end` < '2025-04-20 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-20 16:03:17] Production.INFO: count ==929 [2025-04-20 16:03:18] Production.ERROR: pbx CDR StartTime 2025-04-20 13:03:05 - End Time 2025-04-20 16:03:05 [2025-04-20 16:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951372', 'tblTempUsageDetail_20' ) start [2025-04-20 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951372', 'tblTempUsageDetail_20' ) end [2025-04-20 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951372', 'tblTempVendorCDR_20' ) start [2025-04-20 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951372', 'tblTempVendorCDR_20' ) end [2025-04-20 16:03:18] Production.INFO: ProcessCDR(1,14951372,1,1,2) [2025-04-20 16:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951372', 'tblTempUsageDetail_20' ) start [2025-04-20 16:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951372', 'tblTempUsageDetail_20' ) end [2025-04-20 16:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 16:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 16:03:22] Production.INFO: ==3662== Releasing lock... [2025-04-20 16:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 16:03:22] Production.INFO: 35.25 MB #Memory Used# [2025-04-20 16:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 13:04:05 [end_date_ymd] => 2025-04-20 16:04:05 [RateCDR] => 1 ) [2025-04-20 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-20 13:04:05' and `end` < '2025-04-20 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-20 16:04:18] Production.INFO: count ==927 [2025-04-20 16:04:18] Production.ERROR: pbx CDR StartTime 2025-04-20 13:04:05 - End Time 2025-04-20 16:04:05 [2025-04-20 16:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 16:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951377', 'tblTempUsageDetail_20' ) start [2025-04-20 16:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951377', 'tblTempUsageDetail_20' ) end [2025-04-20 16:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951377', 'tblTempVendorCDR_20' ) start [2025-04-20 16:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951377', 'tblTempVendorCDR_20' ) end [2025-04-20 16:04:18] Production.INFO: ProcessCDR(1,14951377,1,1,2) [2025-04-20 16:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951377', 'tblTempUsageDetail_20' ) start [2025-04-20 16:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951377', 'tblTempUsageDetail_20' ) end [2025-04-20 16:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 16:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 16:04:22] Production.INFO: ==3736== Releasing lock... [2025-04-20 16:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 16:04:22] Production.INFO: 35.5 MB #Memory Used# [2025-04-20 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 13:05:05 [end_date_ymd] => 2025-04-20 16:05:05 [RateCDR] => 1 ) [2025-04-20 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-20 13:05:05' and `end` < '2025-04-20 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-20 16:05:18] Production.INFO: count ==924 [2025-04-20 16:05:18] Production.ERROR: pbx CDR StartTime 2025-04-20 13:05:05 - End Time 2025-04-20 16:05:05 [2025-04-20 16:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 16:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951382', 'tblTempUsageDetail_20' ) start [2025-04-20 16:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951382', 'tblTempUsageDetail_20' ) end [2025-04-20 16:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951382', 'tblTempVendorCDR_20' ) start [2025-04-20 16:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951382', 'tblTempVendorCDR_20' ) end [2025-04-20 16:05:18] Production.INFO: ProcessCDR(1,14951382,1,1,2) [2025-04-20 16:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951382', 'tblTempUsageDetail_20' ) start [2025-04-20 16:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951382', 'tblTempUsageDetail_20' ) end [2025-04-20 16:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 16:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 16:05:21] Production.INFO: ==3863== Releasing lock... [2025-04-20 16:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 16:05:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-20 16:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 13:06:05 [end_date_ymd] => 2025-04-20 16:06:05 [RateCDR] => 1 ) [2025-04-20 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-20 13:06:05' and `end` < '2025-04-20 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-20 16:06:17] Production.INFO: count ==924 [2025-04-20 16:06:17] Production.ERROR: pbx CDR StartTime 2025-04-20 13:06:05 - End Time 2025-04-20 16:06:05 [2025-04-20 16:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 16:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951387', 'tblTempUsageDetail_20' ) start [2025-04-20 16:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951387', 'tblTempUsageDetail_20' ) end [2025-04-20 16:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951387', 'tblTempVendorCDR_20' ) start [2025-04-20 16:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951387', 'tblTempVendorCDR_20' ) end [2025-04-20 16:06:17] Production.INFO: ProcessCDR(1,14951387,1,1,2) [2025-04-20 16:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951387', 'tblTempUsageDetail_20' ) start [2025-04-20 16:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951387', 'tblTempUsageDetail_20' ) end [2025-04-20 16:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 16:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 16:06:21] Production.INFO: ==3942== Releasing lock... [2025-04-20 16:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 16:06:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-20 16:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 13:07:06 [end_date_ymd] => 2025-04-20 16:07:06 [RateCDR] => 1 ) [2025-04-20 16:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 13:07:06' and `end` < '2025-04-20 16:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 16:07:18] Production.INFO: count ==922 [2025-04-20 16:07:19] Production.ERROR: pbx CDR StartTime 2025-04-20 13:07:06 - End Time 2025-04-20 16:07:06 [2025-04-20 16:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 16:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951392', 'tblTempUsageDetail_20' ) start [2025-04-20 16:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951392', 'tblTempUsageDetail_20' ) end [2025-04-20 16:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951392', 'tblTempVendorCDR_20' ) start [2025-04-20 16:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951392', 'tblTempVendorCDR_20' ) end [2025-04-20 16:07:19] Production.INFO: ProcessCDR(1,14951392,1,1,2) [2025-04-20 16:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951392', 'tblTempUsageDetail_20' ) start [2025-04-20 16:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951392', 'tblTempUsageDetail_20' ) end [2025-04-20 16:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 16:07:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 16:07:23] Production.INFO: ==4021== Releasing lock... [2025-04-20 16:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 16:07:23] Production.INFO: 35 MB #Memory Used# [2025-04-20 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 13:08:05 [end_date_ymd] => 2025-04-20 16:08:05 [RateCDR] => 1 ) [2025-04-20 16:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 13:08:05' and `end` < '2025-04-20 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-20 16:08:18] Production.INFO: count ==922 [2025-04-20 16:08:18] Production.ERROR: pbx CDR StartTime 2025-04-20 13:08:05 - End Time 2025-04-20 16:08:05 [2025-04-20 16:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 16:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951397', 'tblTempUsageDetail_20' ) start [2025-04-20 16:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951397', 'tblTempUsageDetail_20' ) end [2025-04-20 16:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951397', 'tblTempVendorCDR_20' ) start [2025-04-20 16:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951397', 'tblTempVendorCDR_20' ) end [2025-04-20 16:08:18] Production.INFO: ProcessCDR(1,14951397,1,1,2) [2025-04-20 16:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951397', 'tblTempUsageDetail_20' ) start [2025-04-20 16:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951397', 'tblTempUsageDetail_20' ) end [2025-04-20 16:08:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 16:08:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 16:08:23] Production.INFO: ==4105== Releasing lock... [2025-04-20 16:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 16:08:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-20 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 13:09:05 [end_date_ymd] => 2025-04-20 16:09:05 [RateCDR] => 1 ) [2025-04-20 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-20 13:09:05' and `end` < '2025-04-20 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-20 16:09:18] Production.INFO: count ==922 [2025-04-20 16:09:18] Production.ERROR: pbx CDR StartTime 2025-04-20 13:09:05 - End Time 2025-04-20 16:09:05 [2025-04-20 16:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 16:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951402', 'tblTempUsageDetail_20' ) start [2025-04-20 16:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951402', 'tblTempUsageDetail_20' ) end [2025-04-20 16:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951402', 'tblTempVendorCDR_20' ) start [2025-04-20 16:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951402', 'tblTempVendorCDR_20' ) end [2025-04-20 16:09:18] Production.INFO: ProcessCDR(1,14951402,1,1,2) [2025-04-20 16:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951402', 'tblTempUsageDetail_20' ) start [2025-04-20 16:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951402', 'tblTempUsageDetail_20' ) end [2025-04-20 16:09:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 16:09:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 16:09:23] Production.INFO: ==4182== Releasing lock... [2025-04-20 16:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 16:09:23] Production.INFO: 35 MB #Memory Used# [2025-04-20 16:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 13:10:06 [end_date_ymd] => 2025-04-20 16:10:06 [RateCDR] => 1 ) [2025-04-20 16:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 13:10:06' and `end` < '2025-04-20 16:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 16:10:19] Production.INFO: count ==931 [2025-04-20 16:10:19] Production.ERROR: pbx CDR StartTime 2025-04-20 13:10:06 - End Time 2025-04-20 16:10:06 [2025-04-20 16:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 16:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951408', 'tblTempUsageDetail_20' ) start [2025-04-20 16:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951408', 'tblTempUsageDetail_20' ) end [2025-04-20 16:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951408', 'tblTempVendorCDR_20' ) start [2025-04-20 16:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951408', 'tblTempVendorCDR_20' ) end [2025-04-20 16:10:19] Production.INFO: ProcessCDR(1,14951408,1,1,2) [2025-04-20 16:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951408', 'tblTempUsageDetail_20' ) start [2025-04-20 16:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951408', 'tblTempUsageDetail_20' ) end [2025-04-20 16:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 16:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 16:10:22] Production.INFO: ==4270== Releasing lock... [2025-04-20 16:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 16:10:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-20 16:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 13:11:05 [end_date_ymd] => 2025-04-20 16:11:05 [RateCDR] => 1 ) [2025-04-20 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-20 13:11:05' and `end` < '2025-04-20 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-20 16:11:18] Production.INFO: count ==973 [2025-04-20 16:11:18] Production.ERROR: pbx CDR StartTime 2025-04-20 13:11:05 - End Time 2025-04-20 16:11:05 [2025-04-20 16:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 16:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951413', 'tblTempUsageDetail_20' ) start [2025-04-20 16:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951413', 'tblTempUsageDetail_20' ) end [2025-04-20 16:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951413', 'tblTempVendorCDR_20' ) start [2025-04-20 16:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951413', 'tblTempVendorCDR_20' ) end [2025-04-20 16:11:18] Production.INFO: ProcessCDR(1,14951413,1,1,2) [2025-04-20 16:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951413', 'tblTempUsageDetail_20' ) start [2025-04-20 16:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951413', 'tblTempUsageDetail_20' ) end [2025-04-20 16:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 16:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 16:11:21] Production.INFO: ==4361== Releasing lock... [2025-04-20 16:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 16:11:21] Production.INFO: 35.25 MB #Memory Used# [2025-04-20 16:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 13:12:04 [end_date_ymd] => 2025-04-20 16:12:04 [RateCDR] => 1 ) [2025-04-20 16:12: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-20 13:12:04' and `end` < '2025-04-20 16:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 16:12:17] Production.INFO: count ==982 [2025-04-20 16:12:17] Production.ERROR: pbx CDR StartTime 2025-04-20 13:12:04 - End Time 2025-04-20 16:12:04 [2025-04-20 16:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 16:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951418', 'tblTempUsageDetail_20' ) start [2025-04-20 16:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951418', 'tblTempUsageDetail_20' ) end [2025-04-20 16:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951418', 'tblTempVendorCDR_20' ) start [2025-04-20 16:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951418', 'tblTempVendorCDR_20' ) end [2025-04-20 16:12:17] Production.INFO: ProcessCDR(1,14951418,1,1,2) [2025-04-20 16:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951418', 'tblTempUsageDetail_20' ) start [2025-04-20 16:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951418', 'tblTempUsageDetail_20' ) end [2025-04-20 16:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 16:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 16:12:22] Production.INFO: ==4446== Releasing lock... [2025-04-20 16:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 16:12:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-20 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 13:13:05 [end_date_ymd] => 2025-04-20 16:13:05 [RateCDR] => 1 ) [2025-04-20 16:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 13:13:05' and `end` < '2025-04-20 16:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 16:13:18] Production.INFO: count ==980 [2025-04-20 16:13:18] Production.ERROR: pbx CDR StartTime 2025-04-20 13:13:05 - End Time 2025-04-20 16:13:05 [2025-04-20 16:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 16:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951423', 'tblTempUsageDetail_20' ) start [2025-04-20 16:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951423', 'tblTempUsageDetail_20' ) end [2025-04-20 16:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951423', 'tblTempVendorCDR_20' ) start [2025-04-20 16:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951423', 'tblTempVendorCDR_20' ) end [2025-04-20 16:13:18] Production.INFO: ProcessCDR(1,14951423,1,1,2) [2025-04-20 16:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951423', 'tblTempUsageDetail_20' ) start [2025-04-20 16:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951423', 'tblTempUsageDetail_20' ) end [2025-04-20 16:13:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 16:13:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 16:13:23] Production.INFO: ==4535== Releasing lock... [2025-04-20 16:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 16:13:23] Production.INFO: 36 MB #Memory Used# [2025-04-20 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 13:14:05 [end_date_ymd] => 2025-04-20 16:14:05 [RateCDR] => 1 ) [2025-04-20 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-20 13:14:05' and `end` < '2025-04-20 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-20 16:14:18] Production.INFO: count ==984 [2025-04-20 16:14:18] Production.ERROR: pbx CDR StartTime 2025-04-20 13:14:05 - End Time 2025-04-20 16:14:05 [2025-04-20 16:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 16:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951428', 'tblTempUsageDetail_20' ) start [2025-04-20 16:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951428', 'tblTempUsageDetail_20' ) end [2025-04-20 16:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951428', 'tblTempVendorCDR_20' ) start [2025-04-20 16:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951428', 'tblTempVendorCDR_20' ) end [2025-04-20 16:14:18] Production.INFO: ProcessCDR(1,14951428,1,1,2) [2025-04-20 16:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951428', 'tblTempUsageDetail_20' ) start [2025-04-20 16:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951428', 'tblTempUsageDetail_20' ) end [2025-04-20 16:14:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 16:14:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 16:14:23] Production.INFO: ==4617== Releasing lock... [2025-04-20 16:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 16:14:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-20 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 13:15:05 [end_date_ymd] => 2025-04-20 16:15:05 [RateCDR] => 1 ) [2025-04-20 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-20 13:15:05' and `end` < '2025-04-20 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-20 16:15:17] Production.INFO: count ==982 [2025-04-20 16:15:18] Production.ERROR: pbx CDR StartTime 2025-04-20 13:15:05 - End Time 2025-04-20 16:15:05 [2025-04-20 16:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 16:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951433', 'tblTempUsageDetail_20' ) start [2025-04-20 16:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951433', 'tblTempUsageDetail_20' ) end [2025-04-20 16:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951433', 'tblTempVendorCDR_20' ) start [2025-04-20 16:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951433', 'tblTempVendorCDR_20' ) end [2025-04-20 16:15:18] Production.INFO: ProcessCDR(1,14951433,1,1,2) [2025-04-20 16:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951433', 'tblTempUsageDetail_20' ) start [2025-04-20 16:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951433', 'tblTempUsageDetail_20' ) end [2025-04-20 16:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 16:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 16:15:21] Production.INFO: ==4715== Releasing lock... [2025-04-20 16:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 16:15:21] Production.INFO: 36.5 MB #Memory Used# [2025-04-20 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 13:16:05 [end_date_ymd] => 2025-04-20 16:16:05 [RateCDR] => 1 ) [2025-04-20 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-20 13:16:05' and `end` < '2025-04-20 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-20 16:16:18] Production.INFO: count ==984 [2025-04-20 16:16:18] Production.ERROR: pbx CDR StartTime 2025-04-20 13:16:05 - End Time 2025-04-20 16:16:05 [2025-04-20 16:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 16:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951438', 'tblTempUsageDetail_20' ) start [2025-04-20 16:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951438', 'tblTempUsageDetail_20' ) end [2025-04-20 16:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951438', 'tblTempVendorCDR_20' ) start [2025-04-20 16:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951438', 'tblTempVendorCDR_20' ) end [2025-04-20 16:16:18] Production.INFO: ProcessCDR(1,14951438,1,1,2) [2025-04-20 16:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951438', 'tblTempUsageDetail_20' ) start [2025-04-20 16:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951438', 'tblTempUsageDetail_20' ) end [2025-04-20 16:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 16:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 16:16:23] Production.INFO: ==4790== Releasing lock... [2025-04-20 16:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 16:16:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-20 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 13:17:05 [end_date_ymd] => 2025-04-20 16:17:05 [RateCDR] => 1 ) [2025-04-20 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-20 13:17:05' and `end` < '2025-04-20 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-20 16:17:17] Production.INFO: count ==994 [2025-04-20 16:17:18] Production.ERROR: pbx CDR StartTime 2025-04-20 13:17:05 - End Time 2025-04-20 16:17:05 [2025-04-20 16:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 16:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951443', 'tblTempUsageDetail_20' ) start [2025-04-20 16:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951443', 'tblTempUsageDetail_20' ) end [2025-04-20 16:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951443', 'tblTempVendorCDR_20' ) start [2025-04-20 16:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951443', 'tblTempVendorCDR_20' ) end [2025-04-20 16:17:18] Production.INFO: ProcessCDR(1,14951443,1,1,2) [2025-04-20 16:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951443', 'tblTempUsageDetail_20' ) start [2025-04-20 16:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951443', 'tblTempUsageDetail_20' ) end [2025-04-20 16:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 16:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 16:17:22] Production.INFO: ==4868== Releasing lock... [2025-04-20 16:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 16:17:22] Production.INFO: 36 MB #Memory Used# [2025-04-20 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 13:18:05 [end_date_ymd] => 2025-04-20 16:18:05 [RateCDR] => 1 ) [2025-04-20 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-20 13:18:05' and `end` < '2025-04-20 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-20 16:18:18] Production.INFO: count ==998 [2025-04-20 16:18:18] Production.ERROR: pbx CDR StartTime 2025-04-20 13:18:05 - End Time 2025-04-20 16:18:05 [2025-04-20 16:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 16:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951448', 'tblTempUsageDetail_20' ) start [2025-04-20 16:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951448', 'tblTempUsageDetail_20' ) end [2025-04-20 16:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951448', 'tblTempVendorCDR_20' ) start [2025-04-20 16:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951448', 'tblTempVendorCDR_20' ) end [2025-04-20 16:18:18] Production.INFO: ProcessCDR(1,14951448,1,1,2) [2025-04-20 16:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951448', 'tblTempUsageDetail_20' ) start [2025-04-20 16:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951448', 'tblTempUsageDetail_20' ) end [2025-04-20 16:18:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 16:18:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 16:18:23] Production.INFO: ==4951== Releasing lock... [2025-04-20 16:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 16:18:23] Production.INFO: 35.5 MB #Memory Used# [2025-04-20 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 13:19:05 [end_date_ymd] => 2025-04-20 16:19:05 [RateCDR] => 1 ) [2025-04-20 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-20 13:19:05' and `end` < '2025-04-20 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-20 16:19:18] Production.INFO: count ==1008 [2025-04-20 16:19:18] Production.ERROR: pbx CDR StartTime 2025-04-20 13:19:05 - End Time 2025-04-20 16:19:05 [2025-04-20 16:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 16:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951453', 'tblTempUsageDetail_20' ) start [2025-04-20 16:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951453', 'tblTempUsageDetail_20' ) end [2025-04-20 16:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951453', 'tblTempVendorCDR_20' ) start [2025-04-20 16:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951453', 'tblTempVendorCDR_20' ) end [2025-04-20 16:19:18] Production.INFO: ProcessCDR(1,14951453,1,1,2) [2025-04-20 16:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951453', 'tblTempUsageDetail_20' ) start [2025-04-20 16:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951453', 'tblTempUsageDetail_20' ) end [2025-04-20 16:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 16:19:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 16:19:23] Production.INFO: ==5025== Releasing lock... [2025-04-20 16:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 16:19:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-20 16:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 13:20:06 [end_date_ymd] => 2025-04-20 16:20:06 [RateCDR] => 1 ) [2025-04-20 16: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-20 13:20:06' and `end` < '2025-04-20 16: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-20 16:20:19] Production.INFO: count ==1006 [2025-04-20 16:20:19] Production.ERROR: pbx CDR StartTime 2025-04-20 13:20:06 - End Time 2025-04-20 16:20:06 [2025-04-20 16:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 16:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951459', 'tblTempUsageDetail_20' ) start [2025-04-20 16:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951459', 'tblTempUsageDetail_20' ) end [2025-04-20 16:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951459', 'tblTempVendorCDR_20' ) start [2025-04-20 16:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951459', 'tblTempVendorCDR_20' ) end [2025-04-20 16:20:19] Production.INFO: ProcessCDR(1,14951459,1,1,2) [2025-04-20 16:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951459', 'tblTempUsageDetail_20' ) start [2025-04-20 16:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951459', 'tblTempUsageDetail_20' ) end [2025-04-20 16:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 16:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 16:20:24] Production.INFO: ==5145== Releasing lock... [2025-04-20 16:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 16:20:24] Production.INFO: 36 MB #Memory Used# [2025-04-20 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 13:21:05 [end_date_ymd] => 2025-04-20 16:21:05 [RateCDR] => 1 ) [2025-04-20 16:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 13:21:05' and `end` < '2025-04-20 16:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 16:21:18] Production.INFO: count ==1039 [2025-04-20 16:21:18] Production.ERROR: pbx CDR StartTime 2025-04-20 13:21:05 - End Time 2025-04-20 16:21:05 [2025-04-20 16:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 16:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951464', 'tblTempUsageDetail_20' ) start [2025-04-20 16:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951464', 'tblTempUsageDetail_20' ) end [2025-04-20 16:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951464', 'tblTempVendorCDR_20' ) start [2025-04-20 16:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951464', 'tblTempVendorCDR_20' ) end [2025-04-20 16:21:18] Production.INFO: ProcessCDR(1,14951464,1,1,2) [2025-04-20 16:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951464', 'tblTempUsageDetail_20' ) start [2025-04-20 16:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951464', 'tblTempUsageDetail_20' ) end [2025-04-20 16:21:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 16:21:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 16:21:23] Production.INFO: ==5228== Releasing lock... [2025-04-20 16:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 16:21:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-20 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 13:22:05 [end_date_ymd] => 2025-04-20 16:22:05 [RateCDR] => 1 ) [2025-04-20 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-20 13:22:05' and `end` < '2025-04-20 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-20 16:22:18] Production.INFO: count ==1045 [2025-04-20 16:22:18] Production.ERROR: pbx CDR StartTime 2025-04-20 13:22:05 - End Time 2025-04-20 16:22:05 [2025-04-20 16:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 16:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951469', 'tblTempUsageDetail_20' ) start [2025-04-20 16:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951469', 'tblTempUsageDetail_20' ) end [2025-04-20 16:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951469', 'tblTempVendorCDR_20' ) start [2025-04-20 16:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951469', 'tblTempVendorCDR_20' ) end [2025-04-20 16:22:18] Production.INFO: ProcessCDR(1,14951469,1,1,2) [2025-04-20 16:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951469', 'tblTempUsageDetail_20' ) start [2025-04-20 16:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951469', 'tblTempUsageDetail_20' ) end [2025-04-20 16:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 16:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 16:22:23] Production.INFO: ==5308== Releasing lock... [2025-04-20 16:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 16:22:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-20 16:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 13:23:06 [end_date_ymd] => 2025-04-20 16:23:06 [RateCDR] => 1 ) [2025-04-20 16: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-20 13:23:06' and `end` < '2025-04-20 16: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-20 16:23:19] Production.INFO: count ==1049 [2025-04-20 16:23:19] Production.ERROR: pbx CDR StartTime 2025-04-20 13:23:06 - End Time 2025-04-20 16:23:06 [2025-04-20 16:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 16:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951474', 'tblTempUsageDetail_20' ) start [2025-04-20 16:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951474', 'tblTempUsageDetail_20' ) end [2025-04-20 16:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951474', 'tblTempVendorCDR_20' ) start [2025-04-20 16:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951474', 'tblTempVendorCDR_20' ) end [2025-04-20 16:23:20] Production.INFO: ProcessCDR(1,14951474,1,1,2) [2025-04-20 16:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951474', 'tblTempUsageDetail_20' ) start [2025-04-20 16:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951474', 'tblTempUsageDetail_20' ) end [2025-04-20 16:23:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 16:23:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 16:23:24] Production.INFO: ==5385== Releasing lock... [2025-04-20 16:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 16:23:24] Production.INFO: 36.5 MB #Memory Used# [2025-04-20 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 13:24:05 [end_date_ymd] => 2025-04-20 16:24:05 [RateCDR] => 1 ) [2025-04-20 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-20 13:24:05' and `end` < '2025-04-20 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-20 16:24:18] Production.INFO: count ==1050 [2025-04-20 16:24:18] Production.ERROR: pbx CDR StartTime 2025-04-20 13:24:05 - End Time 2025-04-20 16:24:05 [2025-04-20 16:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 16:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951479', 'tblTempUsageDetail_20' ) start [2025-04-20 16:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951479', 'tblTempUsageDetail_20' ) end [2025-04-20 16:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951479', 'tblTempVendorCDR_20' ) start [2025-04-20 16:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951479', 'tblTempVendorCDR_20' ) end [2025-04-20 16:24:18] Production.INFO: ProcessCDR(1,14951479,1,1,2) [2025-04-20 16:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951479', 'tblTempUsageDetail_20' ) start [2025-04-20 16:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951479', 'tblTempUsageDetail_20' ) end [2025-04-20 16:24:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 16:24:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 16:24:23] Production.INFO: ==5467== Releasing lock... [2025-04-20 16:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 16:24:23] Production.INFO: 36.5 MB #Memory Used# [2025-04-20 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 13:25:05 [end_date_ymd] => 2025-04-20 16:25:05 [RateCDR] => 1 ) [2025-04-20 16:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 13:25:05' and `end` < '2025-04-20 16:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 16:25:17] Production.INFO: count ==1054 [2025-04-20 16:25:17] Production.ERROR: pbx CDR StartTime 2025-04-20 13:25:05 - End Time 2025-04-20 16:25:05 [2025-04-20 16:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 16:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951484', 'tblTempUsageDetail_20' ) start [2025-04-20 16:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951484', 'tblTempUsageDetail_20' ) end [2025-04-20 16:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951484', 'tblTempVendorCDR_20' ) start [2025-04-20 16:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951484', 'tblTempVendorCDR_20' ) end [2025-04-20 16:25:17] Production.INFO: ProcessCDR(1,14951484,1,1,2) [2025-04-20 16:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951484', 'tblTempUsageDetail_20' ) start [2025-04-20 16:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951484', 'tblTempUsageDetail_20' ) end [2025-04-20 16:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 16:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 16:25:21] Production.INFO: ==5542== Releasing lock... [2025-04-20 16:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 16:25:21] Production.INFO: 36.75 MB #Memory Used# [2025-04-20 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 13:26:05 [end_date_ymd] => 2025-04-20 16:26:05 [RateCDR] => 1 ) [2025-04-20 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-20 13:26:05' and `end` < '2025-04-20 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-20 16:26:18] Production.INFO: count ==1055 [2025-04-20 16:26:18] Production.ERROR: pbx CDR StartTime 2025-04-20 13:26:05 - End Time 2025-04-20 16:26:05 [2025-04-20 16:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 16:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951489', 'tblTempUsageDetail_20' ) start [2025-04-20 16:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951489', 'tblTempUsageDetail_20' ) end [2025-04-20 16:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951489', 'tblTempVendorCDR_20' ) start [2025-04-20 16:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951489', 'tblTempVendorCDR_20' ) end [2025-04-20 16:26:18] Production.INFO: ProcessCDR(1,14951489,1,1,2) [2025-04-20 16:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951489', 'tblTempUsageDetail_20' ) start [2025-04-20 16:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951489', 'tblTempUsageDetail_20' ) end [2025-04-20 16:26:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 16:26:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 16:26:24] Production.INFO: ==5622== Releasing lock... [2025-04-20 16:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 16:26:24] Production.INFO: 36.5 MB #Memory Used# [2025-04-20 16:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 13:27:06 [end_date_ymd] => 2025-04-20 16:27:06 [RateCDR] => 1 ) [2025-04-20 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-20 13:27:06' and `end` < '2025-04-20 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-20 16:27:19] Production.INFO: count ==1060 [2025-04-20 16:27:19] Production.ERROR: pbx CDR StartTime 2025-04-20 13:27:06 - End Time 2025-04-20 16:27:06 [2025-04-20 16:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 16:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951494', 'tblTempUsageDetail_20' ) start [2025-04-20 16:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951494', 'tblTempUsageDetail_20' ) end [2025-04-20 16:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951494', 'tblTempVendorCDR_20' ) start [2025-04-20 16:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951494', 'tblTempVendorCDR_20' ) end [2025-04-20 16:27:19] Production.INFO: ProcessCDR(1,14951494,1,1,2) [2025-04-20 16:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951494', 'tblTempUsageDetail_20' ) start [2025-04-20 16:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951494', 'tblTempUsageDetail_20' ) end [2025-04-20 16:27:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 16:27:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 16:27:24] Production.INFO: ==5713== Releasing lock... [2025-04-20 16:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 16:27:24] Production.INFO: 36.75 MB #Memory Used# [2025-04-20 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 13:28:05 [end_date_ymd] => 2025-04-20 16:28:05 [RateCDR] => 1 ) [2025-04-20 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-20 13:28:05' and `end` < '2025-04-20 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-20 16:28:18] Production.INFO: count ==1061 [2025-04-20 16:28:18] Production.ERROR: pbx CDR StartTime 2025-04-20 13:28:05 - End Time 2025-04-20 16:28:05 [2025-04-20 16:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 16:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951499', 'tblTempUsageDetail_20' ) start [2025-04-20 16:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951499', 'tblTempUsageDetail_20' ) end [2025-04-20 16:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951499', 'tblTempVendorCDR_20' ) start [2025-04-20 16:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951499', 'tblTempVendorCDR_20' ) end [2025-04-20 16:28:18] Production.INFO: ProcessCDR(1,14951499,1,1,2) [2025-04-20 16:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951499', 'tblTempUsageDetail_20' ) start [2025-04-20 16:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951499', 'tblTempUsageDetail_20' ) end [2025-04-20 16:28:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 16:28:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 16:28:23] Production.INFO: ==5790== Releasing lock... [2025-04-20 16:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 16:28:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-20 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 13:29:05 [end_date_ymd] => 2025-04-20 16:29:05 [RateCDR] => 1 ) [2025-04-20 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-20 13:29:05' and `end` < '2025-04-20 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-20 16:29:17] Production.INFO: count ==1063 [2025-04-20 16:29:18] Production.ERROR: pbx CDR StartTime 2025-04-20 13:29:05 - End Time 2025-04-20 16:29:05 [2025-04-20 16:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 16:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951504', 'tblTempUsageDetail_20' ) start [2025-04-20 16:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951504', 'tblTempUsageDetail_20' ) end [2025-04-20 16:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951504', 'tblTempVendorCDR_20' ) start [2025-04-20 16:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951504', 'tblTempVendorCDR_20' ) end [2025-04-20 16:29:18] Production.INFO: ProcessCDR(1,14951504,1,1,2) [2025-04-20 16:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951504', 'tblTempUsageDetail_20' ) start [2025-04-20 16:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951504', 'tblTempUsageDetail_20' ) end [2025-04-20 16:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 16:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 16:29:21] Production.INFO: ==5866== Releasing lock... [2025-04-20 16:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 16:29:21] Production.INFO: 36.25 MB #Memory Used# [2025-04-20 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 13:30:06 [end_date_ymd] => 2025-04-20 16:30:06 [RateCDR] => 1 ) [2025-04-20 16:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 13:30:06' and `end` < '2025-04-20 16:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 16:30:19] Production.INFO: count ==1065 [2025-04-20 16:30:19] Production.ERROR: pbx CDR StartTime 2025-04-20 13:30:06 - End Time 2025-04-20 16:30:06 [2025-04-20 16:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 16:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951509', 'tblTempUsageDetail_20' ) start [2025-04-20 16:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951509', 'tblTempUsageDetail_20' ) end [2025-04-20 16:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951509', 'tblTempVendorCDR_20' ) start [2025-04-20 16:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951509', 'tblTempVendorCDR_20' ) end [2025-04-20 16:30:19] Production.INFO: ProcessCDR(1,14951509,1,1,2) [2025-04-20 16:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951509', 'tblTempUsageDetail_20' ) start [2025-04-20 16:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951509', 'tblTempUsageDetail_20' ) end [2025-04-20 16:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 16:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 16:30:23] Production.INFO: ==5945== Releasing lock... [2025-04-20 16:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 16:30:23] Production.INFO: 36.5 MB #Memory Used# [2025-04-20 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 13:31:05 [end_date_ymd] => 2025-04-20 16:31:05 [RateCDR] => 1 ) [2025-04-20 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-20 13:31:05' and `end` < '2025-04-20 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-20 16:31:17] Production.INFO: count ==1083 [2025-04-20 16:31:18] Production.ERROR: pbx CDR StartTime 2025-04-20 13:31:05 - End Time 2025-04-20 16:31:05 [2025-04-20 16:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 16:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951515', 'tblTempUsageDetail_20' ) start [2025-04-20 16:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951515', 'tblTempUsageDetail_20' ) end [2025-04-20 16:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951515', 'tblTempVendorCDR_20' ) start [2025-04-20 16:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951515', 'tblTempVendorCDR_20' ) end [2025-04-20 16:31:18] Production.INFO: ProcessCDR(1,14951515,1,1,2) [2025-04-20 16:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951515', 'tblTempUsageDetail_20' ) start [2025-04-20 16:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951515', 'tblTempUsageDetail_20' ) end [2025-04-20 16:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 16:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 16:31:21] Production.INFO: ==6024== Releasing lock... [2025-04-20 16:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 16:31:21] Production.INFO: 36 MB #Memory Used# [2025-04-20 16:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 13:32:04 [end_date_ymd] => 2025-04-20 16:32:04 [RateCDR] => 1 ) [2025-04-20 16: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-20 13:32:04' and `end` < '2025-04-20 16: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-20 16:32:17] Production.INFO: count ==1086 [2025-04-20 16:32:17] Production.ERROR: pbx CDR StartTime 2025-04-20 13:32:04 - End Time 2025-04-20 16:32:04 [2025-04-20 16:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 16:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951520', 'tblTempUsageDetail_20' ) start [2025-04-20 16:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951520', 'tblTempUsageDetail_20' ) end [2025-04-20 16:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951520', 'tblTempVendorCDR_20' ) start [2025-04-20 16:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951520', 'tblTempVendorCDR_20' ) end [2025-04-20 16:32:17] Production.INFO: ProcessCDR(1,14951520,1,1,2) [2025-04-20 16:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951520', 'tblTempUsageDetail_20' ) start [2025-04-20 16:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951520', 'tblTempUsageDetail_20' ) end [2025-04-20 16:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 16:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 16:32:22] Production.INFO: ==6104== Releasing lock... [2025-04-20 16:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 16:32:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-20 16:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 13:33:05 [end_date_ymd] => 2025-04-20 16:33:05 [RateCDR] => 1 ) [2025-04-20 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-20 13:33:05' and `end` < '2025-04-20 16:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 16:33:19] Production.INFO: count ==1089 [2025-04-20 16:33:19] Production.ERROR: pbx CDR StartTime 2025-04-20 13:33:05 - End Time 2025-04-20 16:33:05 [2025-04-20 16:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 16:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951525', 'tblTempUsageDetail_20' ) start [2025-04-20 16:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951525', 'tblTempUsageDetail_20' ) end [2025-04-20 16:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951525', 'tblTempVendorCDR_20' ) start [2025-04-20 16:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951525', 'tblTempVendorCDR_20' ) end [2025-04-20 16:33:19] Production.INFO: ProcessCDR(1,14951525,1,1,2) [2025-04-20 16:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951525', 'tblTempUsageDetail_20' ) start [2025-04-20 16:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951525', 'tblTempUsageDetail_20' ) end [2025-04-20 16:33:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 16:33:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 16:33:24] Production.INFO: ==6185== Releasing lock... [2025-04-20 16:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 16:33:24] Production.INFO: 36.25 MB #Memory Used# [2025-04-20 16:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 13:34:06 [end_date_ymd] => 2025-04-20 16:34:06 [RateCDR] => 1 ) [2025-04-20 16:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 13:34:06' and `end` < '2025-04-20 16:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 16:34:19] Production.INFO: count ==1090 [2025-04-20 16:34:19] Production.ERROR: pbx CDR StartTime 2025-04-20 13:34:06 - End Time 2025-04-20 16:34:06 [2025-04-20 16:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 16:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951530', 'tblTempUsageDetail_20' ) start [2025-04-20 16:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951530', 'tblTempUsageDetail_20' ) end [2025-04-20 16:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951530', 'tblTempVendorCDR_20' ) start [2025-04-20 16:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951530', 'tblTempVendorCDR_20' ) end [2025-04-20 16:34:19] Production.INFO: ProcessCDR(1,14951530,1,1,2) [2025-04-20 16:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951530', 'tblTempUsageDetail_20' ) start [2025-04-20 16:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951530', 'tblTempUsageDetail_20' ) end [2025-04-20 16:34:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 16:34:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 16:34:24] Production.INFO: ==6261== Releasing lock... [2025-04-20 16:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 16:34:24] Production.INFO: 36.5 MB #Memory Used# [2025-04-20 16:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 13:35:06 [end_date_ymd] => 2025-04-20 16:35:06 [RateCDR] => 1 ) [2025-04-20 16:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 13:35:06' and `end` < '2025-04-20 16:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 16:35:18] Production.INFO: count ==1092 [2025-04-20 16:35:19] Production.ERROR: pbx CDR StartTime 2025-04-20 13:35:06 - End Time 2025-04-20 16:35:06 [2025-04-20 16:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 16:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951535', 'tblTempUsageDetail_20' ) start [2025-04-20 16:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951535', 'tblTempUsageDetail_20' ) end [2025-04-20 16:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951535', 'tblTempVendorCDR_20' ) start [2025-04-20 16:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951535', 'tblTempVendorCDR_20' ) end [2025-04-20 16:35:19] Production.INFO: ProcessCDR(1,14951535,1,1,2) [2025-04-20 16:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951535', 'tblTempUsageDetail_20' ) start [2025-04-20 16:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951535', 'tblTempUsageDetail_20' ) end [2025-04-20 16:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 16:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 16:35:22] Production.INFO: ==6340== Releasing lock... [2025-04-20 16:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 16:35:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-20 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 13:36:05 [end_date_ymd] => 2025-04-20 16:36:05 [RateCDR] => 1 ) [2025-04-20 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-20 13:36:05' and `end` < '2025-04-20 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-20 16:36:18] Production.INFO: count ==1092 [2025-04-20 16:36:18] Production.ERROR: pbx CDR StartTime 2025-04-20 13:36:05 - End Time 2025-04-20 16:36:05 [2025-04-20 16:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 16:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951540', 'tblTempUsageDetail_20' ) start [2025-04-20 16:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951540', 'tblTempUsageDetail_20' ) end [2025-04-20 16:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951540', 'tblTempVendorCDR_20' ) start [2025-04-20 16:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951540', 'tblTempVendorCDR_20' ) end [2025-04-20 16:36:18] Production.INFO: ProcessCDR(1,14951540,1,1,2) [2025-04-20 16:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951540', 'tblTempUsageDetail_20' ) start [2025-04-20 16:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951540', 'tblTempUsageDetail_20' ) end [2025-04-20 16:36:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 16:36:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 16:36:23] Production.INFO: ==6470== Releasing lock... [2025-04-20 16:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 16:36:23] Production.INFO: 36.5 MB #Memory Used# [2025-04-20 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 13:37:05 [end_date_ymd] => 2025-04-20 16:37:05 [RateCDR] => 1 ) [2025-04-20 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-20 13:37:05' and `end` < '2025-04-20 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-20 16:37:18] Production.INFO: count ==1093 [2025-04-20 16:37:18] Production.ERROR: pbx CDR StartTime 2025-04-20 13:37:05 - End Time 2025-04-20 16:37:05 [2025-04-20 16:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 16:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951545', 'tblTempUsageDetail_20' ) start [2025-04-20 16:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951545', 'tblTempUsageDetail_20' ) end [2025-04-20 16:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951545', 'tblTempVendorCDR_20' ) start [2025-04-20 16:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951545', 'tblTempVendorCDR_20' ) end [2025-04-20 16:37:18] Production.INFO: ProcessCDR(1,14951545,1,1,2) [2025-04-20 16:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951545', 'tblTempUsageDetail_20' ) start [2025-04-20 16:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951545', 'tblTempUsageDetail_20' ) end [2025-04-20 16:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 16:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 16:37:22] Production.INFO: ==6571== Releasing lock... [2025-04-20 16:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 16:37:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-20 16:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 13:38:05 [end_date_ymd] => 2025-04-20 16:38:05 [RateCDR] => 1 ) [2025-04-20 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-20 13:38:05' and `end` < '2025-04-20 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-20 16:38:18] Production.INFO: count ==1097 [2025-04-20 16:38:19] Production.ERROR: pbx CDR StartTime 2025-04-20 13:38:05 - End Time 2025-04-20 16:38:05 [2025-04-20 16:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 16:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951550', 'tblTempUsageDetail_20' ) start [2025-04-20 16:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951550', 'tblTempUsageDetail_20' ) end [2025-04-20 16:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951550', 'tblTempVendorCDR_20' ) start [2025-04-20 16:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951550', 'tblTempVendorCDR_20' ) end [2025-04-20 16:38:19] Production.INFO: ProcessCDR(1,14951550,1,1,2) [2025-04-20 16:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951550', 'tblTempUsageDetail_20' ) start [2025-04-20 16:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951550', 'tblTempUsageDetail_20' ) end [2025-04-20 16:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 16:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 16:38:22] Production.INFO: ==6674== Releasing lock... [2025-04-20 16:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 16:38:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-20 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 13:39:05 [end_date_ymd] => 2025-04-20 16:39:05 [RateCDR] => 1 ) [2025-04-20 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-20 13:39:05' and `end` < '2025-04-20 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-20 16:39:18] Production.INFO: count ==1099 [2025-04-20 16:39:19] Production.ERROR: pbx CDR StartTime 2025-04-20 13:39:05 - End Time 2025-04-20 16:39:05 [2025-04-20 16:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 16:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951555', 'tblTempUsageDetail_20' ) start [2025-04-20 16:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951555', 'tblTempUsageDetail_20' ) end [2025-04-20 16:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951555', 'tblTempVendorCDR_20' ) start [2025-04-20 16:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951555', 'tblTempVendorCDR_20' ) end [2025-04-20 16:39:19] Production.INFO: ProcessCDR(1,14951555,1,1,2) [2025-04-20 16:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951555', 'tblTempUsageDetail_20' ) start [2025-04-20 16:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951555', 'tblTempUsageDetail_20' ) end [2025-04-20 16:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 16:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 16:39:22] Production.INFO: ==6780== Releasing lock... [2025-04-20 16:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 16:39:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-20 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 13:40:06 [end_date_ymd] => 2025-04-20 16:40:06 [RateCDR] => 1 ) [2025-04-20 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-20 13:40:06' and `end` < '2025-04-20 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-20 16:40:18] Production.INFO: count ==1101 [2025-04-20 16:40:19] Production.ERROR: pbx CDR StartTime 2025-04-20 13:40:06 - End Time 2025-04-20 16:40:06 [2025-04-20 16:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 16:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951561', 'tblTempUsageDetail_20' ) start [2025-04-20 16:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951561', 'tblTempUsageDetail_20' ) end [2025-04-20 16:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951561', 'tblTempVendorCDR_20' ) start [2025-04-20 16:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951561', 'tblTempVendorCDR_20' ) end [2025-04-20 16:40:19] Production.INFO: ProcessCDR(1,14951561,1,1,2) [2025-04-20 16:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951561', 'tblTempUsageDetail_20' ) start [2025-04-20 16:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951561', 'tblTempUsageDetail_20' ) end [2025-04-20 16:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 16:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 16:40:22] Production.INFO: ==6883== Releasing lock... [2025-04-20 16:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 16:40:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-20 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 13:41:05 [end_date_ymd] => 2025-04-20 16:41:05 [RateCDR] => 1 ) [2025-04-20 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-20 13:41:05' and `end` < '2025-04-20 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-20 16:41:18] Production.INFO: count ==1131 [2025-04-20 16:41:19] Production.ERROR: pbx CDR StartTime 2025-04-20 13:41:05 - End Time 2025-04-20 16:41:05 [2025-04-20 16:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 16:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951566', 'tblTempUsageDetail_20' ) start [2025-04-20 16:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951566', 'tblTempUsageDetail_20' ) end [2025-04-20 16:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951566', 'tblTempVendorCDR_20' ) start [2025-04-20 16:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951566', 'tblTempVendorCDR_20' ) end [2025-04-20 16:41:19] Production.INFO: ProcessCDR(1,14951566,1,1,2) [2025-04-20 16:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951566', 'tblTempUsageDetail_20' ) start [2025-04-20 16:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951566', 'tblTempUsageDetail_20' ) end [2025-04-20 16:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 16:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 16:41:22] Production.INFO: ==7003== Releasing lock... [2025-04-20 16:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 16:41:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-20 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 13:42:05 [end_date_ymd] => 2025-04-20 16:42:05 [RateCDR] => 1 ) [2025-04-20 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-20 13:42:05' and `end` < '2025-04-20 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-20 16:42:18] Production.INFO: count ==1132 [2025-04-20 16:42:18] Production.ERROR: pbx CDR StartTime 2025-04-20 13:42:05 - End Time 2025-04-20 16:42:05 [2025-04-20 16:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 16:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951571', 'tblTempUsageDetail_20' ) start [2025-04-20 16:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951571', 'tblTempUsageDetail_20' ) end [2025-04-20 16:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951571', 'tblTempVendorCDR_20' ) start [2025-04-20 16:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951571', 'tblTempVendorCDR_20' ) end [2025-04-20 16:42:18] Production.INFO: ProcessCDR(1,14951571,1,1,2) [2025-04-20 16:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951571', 'tblTempUsageDetail_20' ) start [2025-04-20 16:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951571', 'tblTempUsageDetail_20' ) end [2025-04-20 16:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 16:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 16:42:21] Production.INFO: ==7122== Releasing lock... [2025-04-20 16:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 16:42:21] Production.INFO: 36.75 MB #Memory Used# [2025-04-20 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 13:43:05 [end_date_ymd] => 2025-04-20 16:43:05 [RateCDR] => 1 ) [2025-04-20 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-20 13:43:05' and `end` < '2025-04-20 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-20 16:43:18] Production.INFO: count ==1135 [2025-04-20 16:43:18] Production.ERROR: pbx CDR StartTime 2025-04-20 13:43:05 - End Time 2025-04-20 16:43:05 [2025-04-20 16:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 16:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951576', 'tblTempUsageDetail_20' ) start [2025-04-20 16:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951576', 'tblTempUsageDetail_20' ) end [2025-04-20 16:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951576', 'tblTempVendorCDR_20' ) start [2025-04-20 16:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951576', 'tblTempVendorCDR_20' ) end [2025-04-20 16:43:18] Production.INFO: ProcessCDR(1,14951576,1,1,2) [2025-04-20 16:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951576', 'tblTempUsageDetail_20' ) start [2025-04-20 16:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951576', 'tblTempUsageDetail_20' ) end [2025-04-20 16:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 16:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 16:43:22] Production.INFO: ==7235== Releasing lock... [2025-04-20 16:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 16:43:22] Production.INFO: 37 MB #Memory Used# [2025-04-20 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 13:44:05 [end_date_ymd] => 2025-04-20 16:44:05 [RateCDR] => 1 ) [2025-04-20 16: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-20 13:44:05' and `end` < '2025-04-20 16: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-20 16:44:18] Production.INFO: count ==1134 [2025-04-20 16:44:18] Production.ERROR: pbx CDR StartTime 2025-04-20 13:44:05 - End Time 2025-04-20 16:44:05 [2025-04-20 16:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 16:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951581', 'tblTempUsageDetail_20' ) start [2025-04-20 16:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951581', 'tblTempUsageDetail_20' ) end [2025-04-20 16:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951581', 'tblTempVendorCDR_20' ) start [2025-04-20 16:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951581', 'tblTempVendorCDR_20' ) end [2025-04-20 16:44:18] Production.INFO: ProcessCDR(1,14951581,1,1,2) [2025-04-20 16:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951581', 'tblTempUsageDetail_20' ) start [2025-04-20 16:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951581', 'tblTempUsageDetail_20' ) end [2025-04-20 16:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 16:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 16:44:23] Production.INFO: ==7340== Releasing lock... [2025-04-20 16:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 16:44:23] Production.INFO: 37 MB #Memory Used# [2025-04-20 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 13:45:05 [end_date_ymd] => 2025-04-20 16:45:05 [RateCDR] => 1 ) [2025-04-20 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-20 13:45:05' and `end` < '2025-04-20 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-20 16:45:18] Production.INFO: count ==1129 [2025-04-20 16:45:18] Production.ERROR: pbx CDR StartTime 2025-04-20 13:45:05 - End Time 2025-04-20 16:45:05 [2025-04-20 16:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 16:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951586', 'tblTempUsageDetail_20' ) start [2025-04-20 16:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951586', 'tblTempUsageDetail_20' ) end [2025-04-20 16:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951586', 'tblTempVendorCDR_20' ) start [2025-04-20 16:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951586', 'tblTempVendorCDR_20' ) end [2025-04-20 16:45:18] Production.INFO: ProcessCDR(1,14951586,1,1,2) [2025-04-20 16:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951586', 'tblTempUsageDetail_20' ) start [2025-04-20 16:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951586', 'tblTempUsageDetail_20' ) end [2025-04-20 16:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 16:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 16:45:22] Production.INFO: ==7442== Releasing lock... [2025-04-20 16:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 16:45:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-20 16:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 13:46:06 [end_date_ymd] => 2025-04-20 16:46:06 [RateCDR] => 1 ) [2025-04-20 16: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-20 13:46:06' and `end` < '2025-04-20 16: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-20 16:46:19] Production.INFO: count ==1131 [2025-04-20 16:46:19] Production.ERROR: pbx CDR StartTime 2025-04-20 13:46:06 - End Time 2025-04-20 16:46:06 [2025-04-20 16:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 16:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951591', 'tblTempUsageDetail_20' ) start [2025-04-20 16:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951591', 'tblTempUsageDetail_20' ) end [2025-04-20 16:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951591', 'tblTempVendorCDR_20' ) start [2025-04-20 16:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951591', 'tblTempVendorCDR_20' ) end [2025-04-20 16:46:19] Production.INFO: ProcessCDR(1,14951591,1,1,2) [2025-04-20 16:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951591', 'tblTempUsageDetail_20' ) start [2025-04-20 16:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951591', 'tblTempUsageDetail_20' ) end [2025-04-20 16:46:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 16:46:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 16:46:24] Production.INFO: ==7550== Releasing lock... [2025-04-20 16:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 16:46:24] Production.INFO: 37 MB #Memory Used# [2025-04-20 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 13:47:05 [end_date_ymd] => 2025-04-20 16:47:05 [RateCDR] => 1 ) [2025-04-20 16:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 13:47:05' and `end` < '2025-04-20 16:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 16:47:18] Production.INFO: count ==1127 [2025-04-20 16:47:18] Production.ERROR: pbx CDR StartTime 2025-04-20 13:47:05 - End Time 2025-04-20 16:47:05 [2025-04-20 16:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 16:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951596', 'tblTempUsageDetail_20' ) start [2025-04-20 16:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951596', 'tblTempUsageDetail_20' ) end [2025-04-20 16:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951596', 'tblTempVendorCDR_20' ) start [2025-04-20 16:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951596', 'tblTempVendorCDR_20' ) end [2025-04-20 16:47:19] Production.INFO: ProcessCDR(1,14951596,1,1,2) [2025-04-20 16:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951596', 'tblTempUsageDetail_20' ) start [2025-04-20 16:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951596', 'tblTempUsageDetail_20' ) end [2025-04-20 16:47:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 16:47:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 16:47:23] Production.INFO: ==7659== Releasing lock... [2025-04-20 16:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 16:47:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-20 16:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 13:48:06 [end_date_ymd] => 2025-04-20 16:48:06 [RateCDR] => 1 ) [2025-04-20 16:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 13:48:06' and `end` < '2025-04-20 16:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 16:48:19] Production.INFO: count ==1128 [2025-04-20 16:48:19] Production.ERROR: pbx CDR StartTime 2025-04-20 13:48:06 - End Time 2025-04-20 16:48:06 [2025-04-20 16:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 16:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951601', 'tblTempUsageDetail_20' ) start [2025-04-20 16:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951601', 'tblTempUsageDetail_20' ) end [2025-04-20 16:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951601', 'tblTempVendorCDR_20' ) start [2025-04-20 16:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951601', 'tblTempVendorCDR_20' ) end [2025-04-20 16:48:19] Production.INFO: ProcessCDR(1,14951601,1,1,2) [2025-04-20 16:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951601', 'tblTempUsageDetail_20' ) start [2025-04-20 16:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951601', 'tblTempUsageDetail_20' ) end [2025-04-20 16:48:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 16:48:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 16:48:24] Production.INFO: ==7765== Releasing lock... [2025-04-20 16:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 16:48:24] Production.INFO: 37.25 MB #Memory Used# [2025-04-20 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 13:49:05 [end_date_ymd] => 2025-04-20 16:49:05 [RateCDR] => 1 ) [2025-04-20 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-20 13:49:05' and `end` < '2025-04-20 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-20 16:49:17] Production.INFO: count ==1127 [2025-04-20 16:49:18] Production.ERROR: pbx CDR StartTime 2025-04-20 13:49:05 - End Time 2025-04-20 16:49:05 [2025-04-20 16:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 16:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951606', 'tblTempUsageDetail_20' ) start [2025-04-20 16:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951606', 'tblTempUsageDetail_20' ) end [2025-04-20 16:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951606', 'tblTempVendorCDR_20' ) start [2025-04-20 16:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951606', 'tblTempVendorCDR_20' ) end [2025-04-20 16:49:18] Production.INFO: ProcessCDR(1,14951606,1,1,2) [2025-04-20 16:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951606', 'tblTempUsageDetail_20' ) start [2025-04-20 16:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951606', 'tblTempUsageDetail_20' ) end [2025-04-20 16:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 16:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 16:49:21] Production.INFO: ==7877== Releasing lock... [2025-04-20 16:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 16:49:21] Production.INFO: 36.25 MB #Memory Used# [2025-04-20 16:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 13:50:07 [end_date_ymd] => 2025-04-20 16:50:07 [RateCDR] => 1 ) [2025-04-20 16:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 13:50:07' and `end` < '2025-04-20 16:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 16:50:19] Production.INFO: count ==1133 [2025-04-20 16:50:20] Production.ERROR: pbx CDR StartTime 2025-04-20 13:50:07 - End Time 2025-04-20 16:50:07 [2025-04-20 16:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 16:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951612', 'tblTempUsageDetail_20' ) start [2025-04-20 16:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951612', 'tblTempUsageDetail_20' ) end [2025-04-20 16:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951612', 'tblTempVendorCDR_20' ) start [2025-04-20 16:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951612', 'tblTempVendorCDR_20' ) end [2025-04-20 16:50:20] Production.INFO: ProcessCDR(1,14951612,1,1,2) [2025-04-20 16:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951612', 'tblTempUsageDetail_20' ) start [2025-04-20 16:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951612', 'tblTempUsageDetail_20' ) end [2025-04-20 16:50:25] Production.ERROR: pbx prc_insertCDR start [2025-04-20 16:50:25] Production.ERROR: pbx prc_insertCDR end [2025-04-20 16:50:25] Production.INFO: ==7985== Releasing lock... [2025-04-20 16:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 16:50:25] Production.INFO: 37 MB #Memory Used# [2025-04-20 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 13:51:05 [end_date_ymd] => 2025-04-20 16:51:05 [RateCDR] => 1 ) [2025-04-20 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-20 13:51:05' and `end` < '2025-04-20 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-20 16:51:18] Production.INFO: count ==1170 [2025-04-20 16:51:18] Production.ERROR: pbx CDR StartTime 2025-04-20 13:51:05 - End Time 2025-04-20 16:51:05 [2025-04-20 16:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 16:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951617', 'tblTempUsageDetail_20' ) start [2025-04-20 16:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951617', 'tblTempUsageDetail_20' ) end [2025-04-20 16:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951617', 'tblTempVendorCDR_20' ) start [2025-04-20 16:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951617', 'tblTempVendorCDR_20' ) end [2025-04-20 16:51:18] Production.INFO: ProcessCDR(1,14951617,1,1,2) [2025-04-20 16:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951617', 'tblTempUsageDetail_20' ) start [2025-04-20 16:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951617', 'tblTempUsageDetail_20' ) end [2025-04-20 16:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 16:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 16:51:22] Production.INFO: ==8138== Releasing lock... [2025-04-20 16:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 16:51:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-20 16:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 13:52:05 [end_date_ymd] => 2025-04-20 16:52:05 [RateCDR] => 1 ) [2025-04-20 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-20 13:52:05' and `end` < '2025-04-20 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-20 16:52:18] Production.INFO: count ==1175 [2025-04-20 16:52:18] Production.ERROR: pbx CDR StartTime 2025-04-20 13:52:05 - End Time 2025-04-20 16:52:05 [2025-04-20 16:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 16:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951622', 'tblTempUsageDetail_20' ) start [2025-04-20 16:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951622', 'tblTempUsageDetail_20' ) end [2025-04-20 16:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951622', 'tblTempVendorCDR_20' ) start [2025-04-20 16:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951622', 'tblTempVendorCDR_20' ) end [2025-04-20 16:52:18] Production.INFO: ProcessCDR(1,14951622,1,1,2) [2025-04-20 16:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951622', 'tblTempUsageDetail_20' ) start [2025-04-20 16:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951622', 'tblTempUsageDetail_20' ) end [2025-04-20 16:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 16:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 16:52:22] Production.INFO: ==8252== Releasing lock... [2025-04-20 16:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 16:52:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-20 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 13:53:05 [end_date_ymd] => 2025-04-20 16:53:05 [RateCDR] => 1 ) [2025-04-20 16:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 13:53:05' and `end` < '2025-04-20 16:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 16:53:18] Production.INFO: count ==1177 [2025-04-20 16:53:18] Production.ERROR: pbx CDR StartTime 2025-04-20 13:53:05 - End Time 2025-04-20 16:53:05 [2025-04-20 16:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 16:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951627', 'tblTempUsageDetail_20' ) start [2025-04-20 16:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951627', 'tblTempUsageDetail_20' ) end [2025-04-20 16:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951627', 'tblTempVendorCDR_20' ) start [2025-04-20 16:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951627', 'tblTempVendorCDR_20' ) end [2025-04-20 16:53:18] Production.INFO: ProcessCDR(1,14951627,1,1,2) [2025-04-20 16:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951627', 'tblTempUsageDetail_20' ) start [2025-04-20 16:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951627', 'tblTempUsageDetail_20' ) end [2025-04-20 16:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 16:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 16:53:22] Production.INFO: ==8373== Releasing lock... [2025-04-20 16:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 16:53:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-20 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 13:54:05 [end_date_ymd] => 2025-04-20 16:54:05 [RateCDR] => 1 ) [2025-04-20 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-20 13:54:05' and `end` < '2025-04-20 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-20 16:54:18] Production.INFO: count ==1176 [2025-04-20 16:54:18] Production.ERROR: pbx CDR StartTime 2025-04-20 13:54:05 - End Time 2025-04-20 16:54:05 [2025-04-20 16:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 16:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951632', 'tblTempUsageDetail_20' ) start [2025-04-20 16:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951632', 'tblTempUsageDetail_20' ) end [2025-04-20 16:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951632', 'tblTempVendorCDR_20' ) start [2025-04-20 16:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951632', 'tblTempVendorCDR_20' ) end [2025-04-20 16:54:18] Production.INFO: ProcessCDR(1,14951632,1,1,2) [2025-04-20 16:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951632', 'tblTempUsageDetail_20' ) start [2025-04-20 16:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951632', 'tblTempUsageDetail_20' ) end [2025-04-20 16:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 16:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 16:54:22] Production.INFO: ==8475== Releasing lock... [2025-04-20 16:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 16:54:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-20 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 13:55:05 [end_date_ymd] => 2025-04-20 16:55:05 [RateCDR] => 1 ) [2025-04-20 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-20 13:55:05' and `end` < '2025-04-20 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-20 16:55:18] Production.INFO: count ==1183 [2025-04-20 16:55:18] Production.ERROR: pbx CDR StartTime 2025-04-20 13:55:05 - End Time 2025-04-20 16:55:05 [2025-04-20 16:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 16:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951637', 'tblTempUsageDetail_20' ) start [2025-04-20 16:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951637', 'tblTempUsageDetail_20' ) end [2025-04-20 16:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951637', 'tblTempVendorCDR_20' ) start [2025-04-20 16:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951637', 'tblTempVendorCDR_20' ) end [2025-04-20 16:55:18] Production.INFO: ProcessCDR(1,14951637,1,1,2) [2025-04-20 16:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951637', 'tblTempUsageDetail_20' ) start [2025-04-20 16:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951637', 'tblTempUsageDetail_20' ) end [2025-04-20 16:55:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 16:55:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 16:55:24] Production.INFO: ==8562== Releasing lock... [2025-04-20 16:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 16:55:24] Production.INFO: 37.75 MB #Memory Used# [2025-04-20 16:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 13:56:06 [end_date_ymd] => 2025-04-20 16:56:06 [RateCDR] => 1 ) [2025-04-20 16:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 13:56:06' and `end` < '2025-04-20 16:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 16:56:19] Production.INFO: count ==1186 [2025-04-20 16:56:20] Production.ERROR: pbx CDR StartTime 2025-04-20 13:56:06 - End Time 2025-04-20 16:56:06 [2025-04-20 16:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 16:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951642', 'tblTempUsageDetail_20' ) start [2025-04-20 16:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951642', 'tblTempUsageDetail_20' ) end [2025-04-20 16:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951642', 'tblTempVendorCDR_20' ) start [2025-04-20 16:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951642', 'tblTempVendorCDR_20' ) end [2025-04-20 16:56:20] Production.INFO: ProcessCDR(1,14951642,1,1,2) [2025-04-20 16:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951642', 'tblTempUsageDetail_20' ) start [2025-04-20 16:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951642', 'tblTempUsageDetail_20' ) end [2025-04-20 16:56:25] Production.ERROR: pbx prc_insertCDR start [2025-04-20 16:56:25] Production.ERROR: pbx prc_insertCDR end [2025-04-20 16:56:25] Production.INFO: ==8654== Releasing lock... [2025-04-20 16:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 16:56:25] Production.INFO: 37.25 MB #Memory Used# [2025-04-20 16:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 13:57:05 [end_date_ymd] => 2025-04-20 16:57:05 [RateCDR] => 1 ) [2025-04-20 16:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 13:57:05' and `end` < '2025-04-20 16:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 16:57:18] Production.INFO: count ==1189 [2025-04-20 16:57:18] Production.ERROR: pbx CDR StartTime 2025-04-20 13:57:05 - End Time 2025-04-20 16:57:05 [2025-04-20 16:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 16:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951647', 'tblTempUsageDetail_20' ) start [2025-04-20 16:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951647', 'tblTempUsageDetail_20' ) end [2025-04-20 16:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951647', 'tblTempVendorCDR_20' ) start [2025-04-20 16:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951647', 'tblTempVendorCDR_20' ) end [2025-04-20 16:57:18] Production.INFO: ProcessCDR(1,14951647,1,1,2) [2025-04-20 16:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951647', 'tblTempUsageDetail_20' ) start [2025-04-20 16:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951647', 'tblTempUsageDetail_20' ) end [2025-04-20 16:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 16:57:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 16:57:23] Production.INFO: ==8745== Releasing lock... [2025-04-20 16:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 16:57:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-20 16:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 13:58:06 [end_date_ymd] => 2025-04-20 16:58:06 [RateCDR] => 1 ) [2025-04-20 16:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 13:58:06' and `end` < '2025-04-20 16:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 16:58:19] Production.INFO: count ==1197 [2025-04-20 16:58:19] Production.ERROR: pbx CDR StartTime 2025-04-20 13:58:06 - End Time 2025-04-20 16:58:06 [2025-04-20 16:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 16:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951652', 'tblTempUsageDetail_20' ) start [2025-04-20 16:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951652', 'tblTempUsageDetail_20' ) end [2025-04-20 16:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951652', 'tblTempVendorCDR_20' ) start [2025-04-20 16:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951652', 'tblTempVendorCDR_20' ) end [2025-04-20 16:58:19] Production.INFO: ProcessCDR(1,14951652,1,1,2) [2025-04-20 16:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951652', 'tblTempUsageDetail_20' ) start [2025-04-20 16:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951652', 'tblTempUsageDetail_20' ) end [2025-04-20 16:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 16:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 16:58:23] Production.INFO: ==8842== Releasing lock... [2025-04-20 16:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 16:58:23] Production.INFO: 37.5 MB #Memory Used# [2025-04-20 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 13:59:05 [end_date_ymd] => 2025-04-20 16:59:05 [RateCDR] => 1 ) [2025-04-20 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-20 13:59:05' and `end` < '2025-04-20 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-20 16:59:18] Production.INFO: count ==1198 [2025-04-20 16:59:18] Production.ERROR: pbx CDR StartTime 2025-04-20 13:59:05 - End Time 2025-04-20 16:59:05 [2025-04-20 16:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 16:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951657', 'tblTempUsageDetail_20' ) start [2025-04-20 16:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951657', 'tblTempUsageDetail_20' ) end [2025-04-20 16:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951657', 'tblTempVendorCDR_20' ) start [2025-04-20 16:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951657', 'tblTempVendorCDR_20' ) end [2025-04-20 16:59:18] Production.INFO: ProcessCDR(1,14951657,1,1,2) [2025-04-20 16:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 16:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 16:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951657', 'tblTempUsageDetail_20' ) start [2025-04-20 16:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951657', 'tblTempUsageDetail_20' ) end [2025-04-20 16:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 16:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 16:59:22] Production.INFO: ==8944== Releasing lock... [2025-04-20 16:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 16:59:22] Production.INFO: 37 MB #Memory Used# [2025-04-20 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 14:00:06 [end_date_ymd] => 2025-04-20 17:00:06 [RateCDR] => 1 ) [2025-04-20 17:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 14:00:06' and `end` < '2025-04-20 17:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 17:00:19] Production.INFO: count ==1199 [2025-04-20 17:00:19] Production.ERROR: pbx CDR StartTime 2025-04-20 14:00:06 - End Time 2025-04-20 17:00:06 [2025-04-20 17:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 17:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951663', 'tblTempUsageDetail_20' ) start [2025-04-20 17:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951663', 'tblTempUsageDetail_20' ) end [2025-04-20 17:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951663', 'tblTempVendorCDR_20' ) start [2025-04-20 17:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951663', 'tblTempVendorCDR_20' ) end [2025-04-20 17:00:19] Production.INFO: ProcessCDR(1,14951663,1,1,2) [2025-04-20 17:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951663', 'tblTempUsageDetail_20' ) start [2025-04-20 17:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951663', 'tblTempUsageDetail_20' ) end [2025-04-20 17:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 17:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 17:00:23] Production.INFO: ==9079== Releasing lock... [2025-04-20 17:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 17:00:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-20 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 14:01:05 [end_date_ymd] => 2025-04-20 17:01:05 [RateCDR] => 1 ) [2025-04-20 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-20 14:01:05' and `end` < '2025-04-20 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-20 17:01:18] Production.INFO: count ==1189 [2025-04-20 17:01:18] Production.ERROR: pbx CDR StartTime 2025-04-20 14:01:05 - End Time 2025-04-20 17:01:05 [2025-04-20 17:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 17:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951668', 'tblTempUsageDetail_20' ) start [2025-04-20 17:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951668', 'tblTempUsageDetail_20' ) end [2025-04-20 17:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951668', 'tblTempVendorCDR_20' ) start [2025-04-20 17:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951668', 'tblTempVendorCDR_20' ) end [2025-04-20 17:01:18] Production.INFO: ProcessCDR(1,14951668,1,1,2) [2025-04-20 17:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951668', 'tblTempUsageDetail_20' ) start [2025-04-20 17:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951668', 'tblTempUsageDetail_20' ) end [2025-04-20 17:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 17:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 17:01:22] Production.INFO: ==9217== Releasing lock... [2025-04-20 17:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 17:01:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-20 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 14:02:05 [end_date_ymd] => 2025-04-20 17:02:05 [RateCDR] => 1 ) [2025-04-20 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-20 14:02:05' and `end` < '2025-04-20 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-20 17:02:18] Production.INFO: count ==1191 [2025-04-20 17:02:19] Production.ERROR: pbx CDR StartTime 2025-04-20 14:02:05 - End Time 2025-04-20 17:02:05 [2025-04-20 17:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 17:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951673', 'tblTempUsageDetail_20' ) start [2025-04-20 17:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951673', 'tblTempUsageDetail_20' ) end [2025-04-20 17:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951673', 'tblTempVendorCDR_20' ) start [2025-04-20 17:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951673', 'tblTempVendorCDR_20' ) end [2025-04-20 17:02:19] Production.INFO: ProcessCDR(1,14951673,1,1,2) [2025-04-20 17:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951673', 'tblTempUsageDetail_20' ) start [2025-04-20 17:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951673', 'tblTempUsageDetail_20' ) end [2025-04-20 17:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 17:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 17:02:22] Production.INFO: ==9348== Releasing lock... [2025-04-20 17:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 17:02:22] Production.INFO: 37 MB #Memory Used# [2025-04-20 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 14:03:05 [end_date_ymd] => 2025-04-20 17:03:05 [RateCDR] => 1 ) [2025-04-20 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-20 14:03:05' and `end` < '2025-04-20 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-20 17:03:17] Production.INFO: count ==1193 [2025-04-20 17:03:17] Production.ERROR: pbx CDR StartTime 2025-04-20 14:03:05 - End Time 2025-04-20 17:03:05 [2025-04-20 17:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 17:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951678', 'tblTempUsageDetail_20' ) start [2025-04-20 17:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951678', 'tblTempUsageDetail_20' ) end [2025-04-20 17:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951678', 'tblTempVendorCDR_20' ) start [2025-04-20 17:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951678', 'tblTempVendorCDR_20' ) end [2025-04-20 17:03:17] Production.INFO: ProcessCDR(1,14951678,1,1,2) [2025-04-20 17:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951678', 'tblTempUsageDetail_20' ) start [2025-04-20 17:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951678', 'tblTempUsageDetail_20' ) end [2025-04-20 17:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 17:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 17:03:22] Production.INFO: ==9479== Releasing lock... [2025-04-20 17:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 17:03:22] Production.INFO: 37 MB #Memory Used# [2025-04-20 17:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 14:04:05 [end_date_ymd] => 2025-04-20 17:04:05 [RateCDR] => 1 ) [2025-04-20 17:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 14:04:05' and `end` < '2025-04-20 17:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 17:04:18] Production.INFO: count ==1195 [2025-04-20 17:04:18] Production.ERROR: pbx CDR StartTime 2025-04-20 14:04:05 - End Time 2025-04-20 17:04:05 [2025-04-20 17:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 17:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951683', 'tblTempUsageDetail_20' ) start [2025-04-20 17:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951683', 'tblTempUsageDetail_20' ) end [2025-04-20 17:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951683', 'tblTempVendorCDR_20' ) start [2025-04-20 17:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951683', 'tblTempVendorCDR_20' ) end [2025-04-20 17:04:18] Production.INFO: ProcessCDR(1,14951683,1,1,2) [2025-04-20 17:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951683', 'tblTempUsageDetail_20' ) start [2025-04-20 17:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951683', 'tblTempUsageDetail_20' ) end [2025-04-20 17:04:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 17:04:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 17:04:23] Production.INFO: ==9610== Releasing lock... [2025-04-20 17:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 17:04:23] Production.INFO: 37.75 MB #Memory Used# [2025-04-20 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 14:05:05 [end_date_ymd] => 2025-04-20 17:05:05 [RateCDR] => 1 ) [2025-04-20 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-20 14:05:05' and `end` < '2025-04-20 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-20 17:05:18] Production.INFO: count ==1195 [2025-04-20 17:05:18] Production.ERROR: pbx CDR StartTime 2025-04-20 14:05:05 - End Time 2025-04-20 17:05:05 [2025-04-20 17:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 17:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951688', 'tblTempUsageDetail_20' ) start [2025-04-20 17:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951688', 'tblTempUsageDetail_20' ) end [2025-04-20 17:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951688', 'tblTempVendorCDR_20' ) start [2025-04-20 17:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951688', 'tblTempVendorCDR_20' ) end [2025-04-20 17:05:18] Production.INFO: ProcessCDR(1,14951688,1,1,2) [2025-04-20 17:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951688', 'tblTempUsageDetail_20' ) start [2025-04-20 17:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951688', 'tblTempUsageDetail_20' ) end [2025-04-20 17:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 17:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 17:05:22] Production.INFO: ==9726== Releasing lock... [2025-04-20 17:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 17:05:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-20 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 14:06:05 [end_date_ymd] => 2025-04-20 17:06:05 [RateCDR] => 1 ) [2025-04-20 17:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 14:06:05' and `end` < '2025-04-20 17:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 17:06:18] Production.INFO: count ==1196 [2025-04-20 17:06:18] Production.ERROR: pbx CDR StartTime 2025-04-20 14:06:05 - End Time 2025-04-20 17:06:05 [2025-04-20 17:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 17:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951693', 'tblTempUsageDetail_20' ) start [2025-04-20 17:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951693', 'tblTempUsageDetail_20' ) end [2025-04-20 17:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951693', 'tblTempVendorCDR_20' ) start [2025-04-20 17:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951693', 'tblTempVendorCDR_20' ) end [2025-04-20 17:06:18] Production.INFO: ProcessCDR(1,14951693,1,1,2) [2025-04-20 17:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951693', 'tblTempUsageDetail_20' ) start [2025-04-20 17:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951693', 'tblTempUsageDetail_20' ) end [2025-04-20 17:06:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 17:06:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 17:06:24] Production.INFO: ==9842== Releasing lock... [2025-04-20 17:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 17:06:24] Production.INFO: 37.5 MB #Memory Used# [2025-04-20 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 14:07:05 [end_date_ymd] => 2025-04-20 17:07:05 [RateCDR] => 1 ) [2025-04-20 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-20 14:07:05' and `end` < '2025-04-20 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-20 17:07:17] Production.INFO: count ==1200 [2025-04-20 17:07:18] Production.ERROR: pbx CDR StartTime 2025-04-20 14:07:05 - End Time 2025-04-20 17:07:05 [2025-04-20 17:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 17:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951698', 'tblTempUsageDetail_20' ) start [2025-04-20 17:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951698', 'tblTempUsageDetail_20' ) end [2025-04-20 17:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951698', 'tblTempVendorCDR_20' ) start [2025-04-20 17:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951698', 'tblTempVendorCDR_20' ) end [2025-04-20 17:07:18] Production.INFO: ProcessCDR(1,14951698,1,1,2) [2025-04-20 17:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951698', 'tblTempUsageDetail_20' ) start [2025-04-20 17:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951698', 'tblTempUsageDetail_20' ) end [2025-04-20 17:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 17:07:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 17:07:23] Production.INFO: ==9999== Releasing lock... [2025-04-20 17:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 17:07:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-20 17:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 14:08:06 [end_date_ymd] => 2025-04-20 17:08:06 [RateCDR] => 1 ) [2025-04-20 17: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-20 14:08:06' and `end` < '2025-04-20 17: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-20 17:08:18] Production.INFO: count ==1197 [2025-04-20 17:08:19] Production.ERROR: pbx CDR StartTime 2025-04-20 14:08:06 - End Time 2025-04-20 17:08:06 [2025-04-20 17:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951703', 'tblTempUsageDetail_20' ) start [2025-04-20 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951703', 'tblTempUsageDetail_20' ) end [2025-04-20 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951703', 'tblTempVendorCDR_20' ) start [2025-04-20 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951703', 'tblTempVendorCDR_20' ) end [2025-04-20 17:08:19] Production.INFO: ProcessCDR(1,14951703,1,1,2) [2025-04-20 17:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951703', 'tblTempUsageDetail_20' ) start [2025-04-20 17:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951703', 'tblTempUsageDetail_20' ) end [2025-04-20 17:08:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 17:08:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 17:08:24] Production.INFO: ==10129== Releasing lock... [2025-04-20 17:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 17:08:24] Production.INFO: 37.75 MB #Memory Used# [2025-04-20 17:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 14:09:06 [end_date_ymd] => 2025-04-20 17:09:06 [RateCDR] => 1 ) [2025-04-20 17: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-20 14:09:06' and `end` < '2025-04-20 17: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-20 17:09:19] Production.INFO: count ==1197 [2025-04-20 17:09:19] Production.ERROR: pbx CDR StartTime 2025-04-20 14:09:06 - End Time 2025-04-20 17:09:06 [2025-04-20 17:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 17:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951708', 'tblTempUsageDetail_20' ) start [2025-04-20 17:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951708', 'tblTempUsageDetail_20' ) end [2025-04-20 17:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951708', 'tblTempVendorCDR_20' ) start [2025-04-20 17:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951708', 'tblTempVendorCDR_20' ) end [2025-04-20 17:09:19] Production.INFO: ProcessCDR(1,14951708,1,1,2) [2025-04-20 17:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951708', 'tblTempUsageDetail_20' ) start [2025-04-20 17:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951708', 'tblTempUsageDetail_20' ) end [2025-04-20 17:09:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 17:09:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 17:09:23] Production.INFO: ==10255== Releasing lock... [2025-04-20 17:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 17:09:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-20 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 14:10:06 [end_date_ymd] => 2025-04-20 17:10:06 [RateCDR] => 1 ) [2025-04-20 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-20 14:10:06' and `end` < '2025-04-20 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-20 17:10:18] Production.INFO: count ==1200 [2025-04-20 17:10:19] Production.ERROR: pbx CDR StartTime 2025-04-20 14:10:06 - End Time 2025-04-20 17:10:06 [2025-04-20 17:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 17:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951714', 'tblTempUsageDetail_20' ) start [2025-04-20 17:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951714', 'tblTempUsageDetail_20' ) end [2025-04-20 17:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951714', 'tblTempVendorCDR_20' ) start [2025-04-20 17:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951714', 'tblTempVendorCDR_20' ) end [2025-04-20 17:10:19] Production.INFO: ProcessCDR(1,14951714,1,1,2) [2025-04-20 17:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951714', 'tblTempUsageDetail_20' ) start [2025-04-20 17:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951714', 'tblTempUsageDetail_20' ) end [2025-04-20 17:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 17:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 17:10:24] Production.INFO: ==10386== Releasing lock... [2025-04-20 17:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 17:10:24] Production.INFO: 37 MB #Memory Used# [2025-04-20 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 14:11:05 [end_date_ymd] => 2025-04-20 17:11:05 [RateCDR] => 1 ) [2025-04-20 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-20 14:11:05' and `end` < '2025-04-20 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-20 17:11:18] Production.INFO: count ==1226 [2025-04-20 17:11:18] Production.ERROR: pbx CDR StartTime 2025-04-20 14:11:05 - End Time 2025-04-20 17:11:05 [2025-04-20 17:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 17:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951719', 'tblTempUsageDetail_20' ) start [2025-04-20 17:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951719', 'tblTempUsageDetail_20' ) end [2025-04-20 17:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951719', 'tblTempVendorCDR_20' ) start [2025-04-20 17:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951719', 'tblTempVendorCDR_20' ) end [2025-04-20 17:11:18] Production.INFO: ProcessCDR(1,14951719,1,1,2) [2025-04-20 17:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951719', 'tblTempUsageDetail_20' ) start [2025-04-20 17:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951719', 'tblTempUsageDetail_20' ) end [2025-04-20 17:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 17:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 17:11:22] Production.INFO: ==10488== Releasing lock... [2025-04-20 17:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 17:11:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-20 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 14:12:05 [end_date_ymd] => 2025-04-20 17:12:05 [RateCDR] => 1 ) [2025-04-20 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-20 14:12:05' and `end` < '2025-04-20 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-20 17:12:18] Production.INFO: count ==1234 [2025-04-20 17:12:18] Production.ERROR: pbx CDR StartTime 2025-04-20 14:12:05 - End Time 2025-04-20 17:12:05 [2025-04-20 17:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 17:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951724', 'tblTempUsageDetail_20' ) start [2025-04-20 17:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951724', 'tblTempUsageDetail_20' ) end [2025-04-20 17:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951724', 'tblTempVendorCDR_20' ) start [2025-04-20 17:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951724', 'tblTempVendorCDR_20' ) end [2025-04-20 17:12:18] Production.INFO: ProcessCDR(1,14951724,1,1,2) [2025-04-20 17:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951724', 'tblTempUsageDetail_20' ) start [2025-04-20 17:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951724', 'tblTempUsageDetail_20' ) end [2025-04-20 17:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 17:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 17:12:22] Production.INFO: ==10579== Releasing lock... [2025-04-20 17:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 17:12:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-20 17:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 14:13:06 [end_date_ymd] => 2025-04-20 17:13:06 [RateCDR] => 1 ) [2025-04-20 17:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 14:13:06' and `end` < '2025-04-20 17:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 17:13:19] Production.INFO: count ==1236 [2025-04-20 17:13:19] Production.ERROR: pbx CDR StartTime 2025-04-20 14:13:06 - End Time 2025-04-20 17:13:06 [2025-04-20 17:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 17:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951729', 'tblTempUsageDetail_20' ) start [2025-04-20 17:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951729', 'tblTempUsageDetail_20' ) end [2025-04-20 17:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951729', 'tblTempVendorCDR_20' ) start [2025-04-20 17:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951729', 'tblTempVendorCDR_20' ) end [2025-04-20 17:13:19] Production.INFO: ProcessCDR(1,14951729,1,1,2) [2025-04-20 17:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951729', 'tblTempUsageDetail_20' ) start [2025-04-20 17:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951729', 'tblTempUsageDetail_20' ) end [2025-04-20 17:13:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 17:13:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 17:13:24] Production.INFO: ==10674== Releasing lock... [2025-04-20 17:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 17:13:24] Production.INFO: 37.75 MB #Memory Used# [2025-04-20 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 14:14:05 [end_date_ymd] => 2025-04-20 17:14:05 [RateCDR] => 1 ) [2025-04-20 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-20 14:14:05' and `end` < '2025-04-20 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-20 17:14:18] Production.INFO: count ==1240 [2025-04-20 17:14:18] Production.ERROR: pbx CDR StartTime 2025-04-20 14:14:05 - End Time 2025-04-20 17:14:05 [2025-04-20 17:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 17:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951734', 'tblTempUsageDetail_20' ) start [2025-04-20 17:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951734', 'tblTempUsageDetail_20' ) end [2025-04-20 17:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951734', 'tblTempVendorCDR_20' ) start [2025-04-20 17:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951734', 'tblTempVendorCDR_20' ) end [2025-04-20 17:14:18] Production.INFO: ProcessCDR(1,14951734,1,1,2) [2025-04-20 17:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951734', 'tblTempUsageDetail_20' ) start [2025-04-20 17:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951734', 'tblTempUsageDetail_20' ) end [2025-04-20 17:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 17:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 17:14:22] Production.INFO: ==10762== Releasing lock... [2025-04-20 17:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 17:14:22] Production.INFO: 38 MB #Memory Used# [2025-04-20 17:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 14:15:06 [end_date_ymd] => 2025-04-20 17:15:06 [RateCDR] => 1 ) [2025-04-20 17:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 14:15:06' and `end` < '2025-04-20 17:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 17:15:18] Production.INFO: count ==1234 [2025-04-20 17:15:19] Production.ERROR: pbx CDR StartTime 2025-04-20 14:15:06 - End Time 2025-04-20 17:15:06 [2025-04-20 17:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 17:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951739', 'tblTempUsageDetail_20' ) start [2025-04-20 17:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951739', 'tblTempUsageDetail_20' ) end [2025-04-20 17:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951739', 'tblTempVendorCDR_20' ) start [2025-04-20 17:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951739', 'tblTempVendorCDR_20' ) end [2025-04-20 17:15:19] Production.INFO: ProcessCDR(1,14951739,1,1,2) [2025-04-20 17:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951739', 'tblTempUsageDetail_20' ) start [2025-04-20 17:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951739', 'tblTempUsageDetail_20' ) end [2025-04-20 17:15:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 17:15:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 17:15:24] Production.INFO: ==10853== Releasing lock... [2025-04-20 17:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 17:15:24] Production.INFO: 37.25 MB #Memory Used# [2025-04-20 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 14:16:05 [end_date_ymd] => 2025-04-20 17:16:05 [RateCDR] => 1 ) [2025-04-20 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-20 14:16:05' and `end` < '2025-04-20 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-20 17:16:18] Production.INFO: count ==1310 [2025-04-20 17:16:18] Production.ERROR: pbx CDR StartTime 2025-04-20 14:16:05 - End Time 2025-04-20 17:16:05 [2025-04-20 17:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 17:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951744', 'tblTempUsageDetail_20' ) start [2025-04-20 17:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951744', 'tblTempUsageDetail_20' ) end [2025-04-20 17:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951744', 'tblTempVendorCDR_20' ) start [2025-04-20 17:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951744', 'tblTempVendorCDR_20' ) end [2025-04-20 17:16:18] Production.INFO: ProcessCDR(1,14951744,1,1,2) [2025-04-20 17:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951744', 'tblTempUsageDetail_20' ) start [2025-04-20 17:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951744', 'tblTempUsageDetail_20' ) end [2025-04-20 17:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 17:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 17:16:23] Production.INFO: ==10940== Releasing lock... [2025-04-20 17:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 17:16:23] Production.INFO: 38 MB #Memory Used# [2025-04-20 17:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 14:17:06 [end_date_ymd] => 2025-04-20 17:17:06 [RateCDR] => 1 ) [2025-04-20 17:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 14:17:06' and `end` < '2025-04-20 17:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 17:17:18] Production.INFO: count ==1326 [2025-04-20 17:17:19] Production.ERROR: pbx CDR StartTime 2025-04-20 14:17:06 - End Time 2025-04-20 17:17:06 [2025-04-20 17:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 17:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951749', 'tblTempUsageDetail_20' ) start [2025-04-20 17:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951749', 'tblTempUsageDetail_20' ) end [2025-04-20 17:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951749', 'tblTempVendorCDR_20' ) start [2025-04-20 17:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951749', 'tblTempVendorCDR_20' ) end [2025-04-20 17:17:19] Production.INFO: ProcessCDR(1,14951749,1,1,2) [2025-04-20 17:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951749', 'tblTempUsageDetail_20' ) start [2025-04-20 17:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951749', 'tblTempUsageDetail_20' ) end [2025-04-20 17:17:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 17:17:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 17:17:24] Production.INFO: ==11031== Releasing lock... [2025-04-20 17:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 17:17:24] Production.INFO: 38 MB #Memory Used# [2025-04-20 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 14:18:05 [end_date_ymd] => 2025-04-20 17:18:05 [RateCDR] => 1 ) [2025-04-20 17:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 14:18:05' and `end` < '2025-04-20 17:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 17:18:17] Production.INFO: count ==1329 [2025-04-20 17:18:18] Production.ERROR: pbx CDR StartTime 2025-04-20 14:18:05 - End Time 2025-04-20 17:18:05 [2025-04-20 17:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 17:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951754', 'tblTempUsageDetail_20' ) start [2025-04-20 17:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951754', 'tblTempUsageDetail_20' ) end [2025-04-20 17:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951754', 'tblTempVendorCDR_20' ) start [2025-04-20 17:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951754', 'tblTempVendorCDR_20' ) end [2025-04-20 17:18:18] Production.INFO: ProcessCDR(1,14951754,1,1,2) [2025-04-20 17:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951754', 'tblTempUsageDetail_20' ) start [2025-04-20 17:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951754', 'tblTempUsageDetail_20' ) end [2025-04-20 17:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 17:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 17:18:21] Production.INFO: ==11134== Releasing lock... [2025-04-20 17:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 17:18:21] Production.INFO: 38 MB #Memory Used# [2025-04-20 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 14:19:05 [end_date_ymd] => 2025-04-20 17:19:05 [RateCDR] => 1 ) [2025-04-20 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-20 14:19:05' and `end` < '2025-04-20 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-20 17:19:18] Production.INFO: count ==1332 [2025-04-20 17:19:18] Production.ERROR: pbx CDR StartTime 2025-04-20 14:19:05 - End Time 2025-04-20 17:19:05 [2025-04-20 17:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 17:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951759', 'tblTempUsageDetail_20' ) start [2025-04-20 17:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951759', 'tblTempUsageDetail_20' ) end [2025-04-20 17:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951759', 'tblTempVendorCDR_20' ) start [2025-04-20 17:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951759', 'tblTempVendorCDR_20' ) end [2025-04-20 17:19:18] Production.INFO: ProcessCDR(1,14951759,1,1,2) [2025-04-20 17:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951759', 'tblTempUsageDetail_20' ) start [2025-04-20 17:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951759', 'tblTempUsageDetail_20' ) end [2025-04-20 17:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 17:19:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 17:19:23] Production.INFO: ==11220== Releasing lock... [2025-04-20 17:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 17:19:23] Production.INFO: 38.25 MB #Memory Used# [2025-04-20 17:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 14:20:05 [end_date_ymd] => 2025-04-20 17:20:05 [RateCDR] => 1 ) [2025-04-20 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-20 14:20:05' and `end` < '2025-04-20 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-20 17:20:18] Production.INFO: count ==1339 [2025-04-20 17:20:18] Production.ERROR: pbx CDR StartTime 2025-04-20 14:20:05 - End Time 2025-04-20 17:20:05 [2025-04-20 17:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 17:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951765', 'tblTempUsageDetail_20' ) start [2025-04-20 17:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951765', 'tblTempUsageDetail_20' ) end [2025-04-20 17:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951765', 'tblTempVendorCDR_20' ) start [2025-04-20 17:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951765', 'tblTempVendorCDR_20' ) end [2025-04-20 17:20:19] Production.INFO: ProcessCDR(1,14951765,1,1,2) [2025-04-20 17:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951765', 'tblTempUsageDetail_20' ) start [2025-04-20 17:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951765', 'tblTempUsageDetail_20' ) end [2025-04-20 17:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 17:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 17:20:24] Production.INFO: ==11318== Releasing lock... [2025-04-20 17:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 17:20:24] Production.INFO: 38.5 MB #Memory Used# [2025-04-20 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 14:21:05 [end_date_ymd] => 2025-04-20 17:21:05 [RateCDR] => 1 ) [2025-04-20 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-20 14:21:05' and `end` < '2025-04-20 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-20 17:21:18] Production.INFO: count ==1363 [2025-04-20 17:21:19] Production.ERROR: pbx CDR StartTime 2025-04-20 14:21:05 - End Time 2025-04-20 17:21:05 [2025-04-20 17:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 17:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951770', 'tblTempUsageDetail_20' ) start [2025-04-20 17:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951770', 'tblTempUsageDetail_20' ) end [2025-04-20 17:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951770', 'tblTempVendorCDR_20' ) start [2025-04-20 17:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951770', 'tblTempVendorCDR_20' ) end [2025-04-20 17:21:19] Production.INFO: ProcessCDR(1,14951770,1,1,2) [2025-04-20 17:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951770', 'tblTempUsageDetail_20' ) start [2025-04-20 17:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951770', 'tblTempUsageDetail_20' ) end [2025-04-20 17:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 17:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 17:21:22] Production.INFO: ==11417== Releasing lock... [2025-04-20 17:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 17:21:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-20 17:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 14:22:06 [end_date_ymd] => 2025-04-20 17:22:06 [RateCDR] => 1 ) [2025-04-20 17:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 14:22:06' and `end` < '2025-04-20 17:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 17:22:19] Production.INFO: count ==1365 [2025-04-20 17:22:19] Production.ERROR: pbx CDR StartTime 2025-04-20 14:22:06 - End Time 2025-04-20 17:22:06 [2025-04-20 17:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 17:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951775', 'tblTempUsageDetail_20' ) start [2025-04-20 17:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951775', 'tblTempUsageDetail_20' ) end [2025-04-20 17:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951775', 'tblTempVendorCDR_20' ) start [2025-04-20 17:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951775', 'tblTempVendorCDR_20' ) end [2025-04-20 17:22:19] Production.INFO: ProcessCDR(1,14951775,1,1,2) [2025-04-20 17:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951775', 'tblTempUsageDetail_20' ) start [2025-04-20 17:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951775', 'tblTempUsageDetail_20' ) end [2025-04-20 17:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 17:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 17:22:22] Production.INFO: ==11533== Releasing lock... [2025-04-20 17:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 17:22:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-20 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 14:23:05 [end_date_ymd] => 2025-04-20 17:23:05 [RateCDR] => 1 ) [2025-04-20 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-20 14:23:05' and `end` < '2025-04-20 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-20 17:23:19] Production.INFO: count ==1368 [2025-04-20 17:23:19] Production.ERROR: pbx CDR StartTime 2025-04-20 14:23:05 - End Time 2025-04-20 17:23:05 [2025-04-20 17:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 17:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951780', 'tblTempUsageDetail_20' ) start [2025-04-20 17:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951780', 'tblTempUsageDetail_20' ) end [2025-04-20 17:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951780', 'tblTempVendorCDR_20' ) start [2025-04-20 17:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951780', 'tblTempVendorCDR_20' ) end [2025-04-20 17:23:19] Production.INFO: ProcessCDR(1,14951780,1,1,2) [2025-04-20 17:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951780', 'tblTempUsageDetail_20' ) start [2025-04-20 17:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951780', 'tblTempUsageDetail_20' ) end [2025-04-20 17:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 17:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 17:23:22] Production.INFO: ==11610== Releasing lock... [2025-04-20 17:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 17:23:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-20 17:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 14:24:06 [end_date_ymd] => 2025-04-20 17:24:06 [RateCDR] => 1 ) [2025-04-20 17:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 14:24:06' and `end` < '2025-04-20 17:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 17:24:19] Production.INFO: count ==1372 [2025-04-20 17:24:19] Production.ERROR: pbx CDR StartTime 2025-04-20 14:24:06 - End Time 2025-04-20 17:24:06 [2025-04-20 17:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 17:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951785', 'tblTempUsageDetail_20' ) start [2025-04-20 17:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951785', 'tblTempUsageDetail_20' ) end [2025-04-20 17:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951785', 'tblTempVendorCDR_20' ) start [2025-04-20 17:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951785', 'tblTempVendorCDR_20' ) end [2025-04-20 17:24:19] Production.INFO: ProcessCDR(1,14951785,1,1,2) [2025-04-20 17:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951785', 'tblTempUsageDetail_20' ) start [2025-04-20 17:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951785', 'tblTempUsageDetail_20' ) end [2025-04-20 17:24:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 17:24:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 17:24:23] Production.INFO: ==11683== Releasing lock... [2025-04-20 17:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 17:24:23] Production.INFO: 38.75 MB #Memory Used# [2025-04-20 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 14:25:05 [end_date_ymd] => 2025-04-20 17:25:05 [RateCDR] => 1 ) [2025-04-20 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-20 14:25:05' and `end` < '2025-04-20 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-20 17:25:18] Production.INFO: count ==1373 [2025-04-20 17:25:18] Production.ERROR: pbx CDR StartTime 2025-04-20 14:25:05 - End Time 2025-04-20 17:25:05 [2025-04-20 17:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951790', 'tblTempUsageDetail_20' ) start [2025-04-20 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951790', 'tblTempUsageDetail_20' ) end [2025-04-20 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951790', 'tblTempVendorCDR_20' ) start [2025-04-20 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951790', 'tblTempVendorCDR_20' ) end [2025-04-20 17:25:18] Production.INFO: ProcessCDR(1,14951790,1,1,2) [2025-04-20 17:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951790', 'tblTempUsageDetail_20' ) start [2025-04-20 17:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951790', 'tblTempUsageDetail_20' ) end [2025-04-20 17:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 17:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 17:25:22] Production.INFO: ==11757== Releasing lock... [2025-04-20 17:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 17:25:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-20 17:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 14:26:05 [end_date_ymd] => 2025-04-20 17:26:05 [RateCDR] => 1 ) [2025-04-20 17: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-20 14:26:05' and `end` < '2025-04-20 17: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-20 17:26:18] Production.INFO: count ==1418 [2025-04-20 17:26:19] Production.ERROR: pbx CDR StartTime 2025-04-20 14:26:05 - End Time 2025-04-20 17:26:05 [2025-04-20 17:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 17:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951795', 'tblTempUsageDetail_20' ) start [2025-04-20 17:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951795', 'tblTempUsageDetail_20' ) end [2025-04-20 17:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951795', 'tblTempVendorCDR_20' ) start [2025-04-20 17:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951795', 'tblTempVendorCDR_20' ) end [2025-04-20 17:26:19] Production.INFO: ProcessCDR(1,14951795,1,1,2) [2025-04-20 17:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951795', 'tblTempUsageDetail_20' ) start [2025-04-20 17:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951795', 'tblTempUsageDetail_20' ) end [2025-04-20 17:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 17:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 17:26:22] Production.INFO: ==11836== Releasing lock... [2025-04-20 17:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 17:26:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-20 17:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 14:27:04 [end_date_ymd] => 2025-04-20 17:27:04 [RateCDR] => 1 ) [2025-04-20 17:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 14:27:04' and `end` < '2025-04-20 17:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 17:27:18] Production.INFO: count ==1419 [2025-04-20 17:27:18] Production.ERROR: pbx CDR StartTime 2025-04-20 14:27:04 - End Time 2025-04-20 17:27:04 [2025-04-20 17:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 17:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951800', 'tblTempUsageDetail_20' ) start [2025-04-20 17:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951800', 'tblTempUsageDetail_20' ) end [2025-04-20 17:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951800', 'tblTempVendorCDR_20' ) start [2025-04-20 17:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951800', 'tblTempVendorCDR_20' ) end [2025-04-20 17:27:18] Production.INFO: ProcessCDR(1,14951800,1,1,2) [2025-04-20 17:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951800', 'tblTempUsageDetail_20' ) start [2025-04-20 17:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951800', 'tblTempUsageDetail_20' ) end [2025-04-20 17:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 17:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 17:27:22] Production.INFO: ==11908== Releasing lock... [2025-04-20 17:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 17:27:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-20 17:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 14:28:05 [end_date_ymd] => 2025-04-20 17:28:05 [RateCDR] => 1 ) [2025-04-20 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-20 14:28:05' and `end` < '2025-04-20 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-20 17:28:18] Production.INFO: count ==1421 [2025-04-20 17:28:18] Production.ERROR: pbx CDR StartTime 2025-04-20 14:28:05 - End Time 2025-04-20 17:28:05 [2025-04-20 17:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 17:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951805', 'tblTempUsageDetail_20' ) start [2025-04-20 17:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951805', 'tblTempUsageDetail_20' ) end [2025-04-20 17:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951805', 'tblTempVendorCDR_20' ) start [2025-04-20 17:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951805', 'tblTempVendorCDR_20' ) end [2025-04-20 17:28:18] Production.INFO: ProcessCDR(1,14951805,1,1,2) [2025-04-20 17:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951805', 'tblTempUsageDetail_20' ) start [2025-04-20 17:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951805', 'tblTempUsageDetail_20' ) end [2025-04-20 17:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 17:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 17:28:22] Production.INFO: ==11983== Releasing lock... [2025-04-20 17:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 17:28:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-20 17:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 14:29:05 [end_date_ymd] => 2025-04-20 17:29:05 [RateCDR] => 1 ) [2025-04-20 17:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 14:29:05' and `end` < '2025-04-20 17:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 17:29:18] Production.INFO: count ==1455 [2025-04-20 17:29:18] Production.ERROR: pbx CDR StartTime 2025-04-20 14:29:05 - End Time 2025-04-20 17:29:05 [2025-04-20 17:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 17:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951810', 'tblTempUsageDetail_20' ) start [2025-04-20 17:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951810', 'tblTempUsageDetail_20' ) end [2025-04-20 17:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951810', 'tblTempVendorCDR_20' ) start [2025-04-20 17:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951810', 'tblTempVendorCDR_20' ) end [2025-04-20 17:29:18] Production.INFO: ProcessCDR(1,14951810,1,1,2) [2025-04-20 17:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951810', 'tblTempUsageDetail_20' ) start [2025-04-20 17:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951810', 'tblTempUsageDetail_20' ) end [2025-04-20 17:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 17:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 17:29:21] Production.INFO: ==12056== Releasing lock... [2025-04-20 17:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 17:29:21] Production.INFO: 38.75 MB #Memory Used# [2025-04-20 17:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 14:30:06 [end_date_ymd] => 2025-04-20 17:30:06 [RateCDR] => 1 ) [2025-04-20 17:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 14:30:06' and `end` < '2025-04-20 17:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 17:30:18] Production.INFO: count ==1467 [2025-04-20 17:30:19] Production.ERROR: pbx CDR StartTime 2025-04-20 14:30:06 - End Time 2025-04-20 17:30:06 [2025-04-20 17:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 17:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951816', 'tblTempUsageDetail_20' ) start [2025-04-20 17:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951816', 'tblTempUsageDetail_20' ) end [2025-04-20 17:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951816', 'tblTempVendorCDR_20' ) start [2025-04-20 17:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951816', 'tblTempVendorCDR_20' ) end [2025-04-20 17:30:19] Production.INFO: ProcessCDR(1,14951816,1,1,2) [2025-04-20 17:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951816', 'tblTempUsageDetail_20' ) start [2025-04-20 17:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951816', 'tblTempUsageDetail_20' ) end [2025-04-20 17:30:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 17:30:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 17:30:24] Production.INFO: ==12132== Releasing lock... [2025-04-20 17:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 17:30:24] Production.INFO: 39 MB #Memory Used# [2025-04-20 17:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 14:31:05 [end_date_ymd] => 2025-04-20 17:31:05 [RateCDR] => 1 ) [2025-04-20 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-20 14:31:05' and `end` < '2025-04-20 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-20 17:31:17] Production.INFO: count ==1526 [2025-04-20 17:31:18] Production.ERROR: pbx CDR StartTime 2025-04-20 14:31:05 - End Time 2025-04-20 17:31:05 [2025-04-20 17:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 17:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951821', 'tblTempUsageDetail_20' ) start [2025-04-20 17:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951821', 'tblTempUsageDetail_20' ) end [2025-04-20 17:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951821', 'tblTempVendorCDR_20' ) start [2025-04-20 17:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951821', 'tblTempVendorCDR_20' ) end [2025-04-20 17:31:18] Production.INFO: ProcessCDR(1,14951821,1,1,2) [2025-04-20 17:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951821', 'tblTempUsageDetail_20' ) start [2025-04-20 17:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951821', 'tblTempUsageDetail_20' ) end [2025-04-20 17:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 17:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 17:31:23] Production.INFO: ==12213== Releasing lock... [2025-04-20 17:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 17:31:23] Production.INFO: 39.5 MB #Memory Used# [2025-04-20 17:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 14:32:05 [end_date_ymd] => 2025-04-20 17:32:05 [RateCDR] => 1 ) [2025-04-20 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-20 14:32:05' and `end` < '2025-04-20 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-20 17:32:18] Production.INFO: count ==1526 [2025-04-20 17:32:18] Production.ERROR: pbx CDR StartTime 2025-04-20 14:32:05 - End Time 2025-04-20 17:32:05 [2025-04-20 17:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 17:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951826', 'tblTempUsageDetail_20' ) start [2025-04-20 17:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951826', 'tblTempUsageDetail_20' ) end [2025-04-20 17:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951826', 'tblTempVendorCDR_20' ) start [2025-04-20 17:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951826', 'tblTempVendorCDR_20' ) end [2025-04-20 17:32:19] Production.INFO: ProcessCDR(1,14951826,1,1,2) [2025-04-20 17:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951826', 'tblTempUsageDetail_20' ) start [2025-04-20 17:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951826', 'tblTempUsageDetail_20' ) end [2025-04-20 17:32:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 17:32:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 17:32:24] Production.INFO: ==12288== Releasing lock... [2025-04-20 17:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 17:32:24] Production.INFO: 39.75 MB #Memory Used# [2025-04-20 17:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 14:33:05 [end_date_ymd] => 2025-04-20 17:33:05 [RateCDR] => 1 ) [2025-04-20 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-20 14:33:05' and `end` < '2025-04-20 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-20 17:33:17] Production.INFO: count ==1542 [2025-04-20 17:33:18] Production.ERROR: pbx CDR StartTime 2025-04-20 14:33:05 - End Time 2025-04-20 17:33:05 [2025-04-20 17:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 17:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951831', 'tblTempUsageDetail_20' ) start [2025-04-20 17:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951831', 'tblTempUsageDetail_20' ) end [2025-04-20 17:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951831', 'tblTempVendorCDR_20' ) start [2025-04-20 17:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951831', 'tblTempVendorCDR_20' ) end [2025-04-20 17:33:18] Production.INFO: ProcessCDR(1,14951831,1,1,2) [2025-04-20 17:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951831', 'tblTempUsageDetail_20' ) start [2025-04-20 17:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951831', 'tblTempUsageDetail_20' ) end [2025-04-20 17:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 17:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 17:33:22] Production.INFO: ==12362== Releasing lock... [2025-04-20 17:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 17:33:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-20 17:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 14:34:05 [end_date_ymd] => 2025-04-20 17:34:05 [RateCDR] => 1 ) [2025-04-20 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-20 14:34:05' and `end` < '2025-04-20 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-20 17:34:18] Production.INFO: count ==1542 [2025-04-20 17:34:18] Production.ERROR: pbx CDR StartTime 2025-04-20 14:34:05 - End Time 2025-04-20 17:34:05 [2025-04-20 17:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 17:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951836', 'tblTempUsageDetail_20' ) start [2025-04-20 17:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951836', 'tblTempUsageDetail_20' ) end [2025-04-20 17:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951836', 'tblTempVendorCDR_20' ) start [2025-04-20 17:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951836', 'tblTempVendorCDR_20' ) end [2025-04-20 17:34:18] Production.INFO: ProcessCDR(1,14951836,1,1,2) [2025-04-20 17:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951836', 'tblTempUsageDetail_20' ) start [2025-04-20 17:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951836', 'tblTempUsageDetail_20' ) end [2025-04-20 17:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 17:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 17:34:22] Production.INFO: ==12435== Releasing lock... [2025-04-20 17:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 17:34:22] Production.INFO: 40 MB #Memory Used# [2025-04-20 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 14:35:05 [end_date_ymd] => 2025-04-20 17:35:05 [RateCDR] => 1 ) [2025-04-20 17:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 14:35:05' and `end` < '2025-04-20 17:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 17:35:18] Production.INFO: count ==1546 [2025-04-20 17:35:18] Production.ERROR: pbx CDR StartTime 2025-04-20 14:35:05 - End Time 2025-04-20 17:35:05 [2025-04-20 17:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 17:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951841', 'tblTempUsageDetail_20' ) start [2025-04-20 17:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951841', 'tblTempUsageDetail_20' ) end [2025-04-20 17:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951841', 'tblTempVendorCDR_20' ) start [2025-04-20 17:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951841', 'tblTempVendorCDR_20' ) end [2025-04-20 17:35:18] Production.INFO: ProcessCDR(1,14951841,1,1,2) [2025-04-20 17:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951841', 'tblTempUsageDetail_20' ) start [2025-04-20 17:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951841', 'tblTempUsageDetail_20' ) end [2025-04-20 17:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 17:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 17:35:22] Production.INFO: ==12512== Releasing lock... [2025-04-20 17:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 17:35:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-20 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 14:36:05 [end_date_ymd] => 2025-04-20 17:36:05 [RateCDR] => 1 ) [2025-04-20 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-20 14:36:05' and `end` < '2025-04-20 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-20 17:36:18] Production.INFO: count ==1573 [2025-04-20 17:36:19] Production.ERROR: pbx CDR StartTime 2025-04-20 14:36:05 - End Time 2025-04-20 17:36:05 [2025-04-20 17:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 17:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951846', 'tblTempUsageDetail_20' ) start [2025-04-20 17:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951846', 'tblTempUsageDetail_20' ) end [2025-04-20 17:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951846', 'tblTempVendorCDR_20' ) start [2025-04-20 17:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951846', 'tblTempVendorCDR_20' ) end [2025-04-20 17:36:19] Production.INFO: ProcessCDR(1,14951846,1,1,2) [2025-04-20 17:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951846', 'tblTempUsageDetail_20' ) start [2025-04-20 17:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951846', 'tblTempUsageDetail_20' ) end [2025-04-20 17:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 17:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 17:36:22] Production.INFO: ==12586== Releasing lock... [2025-04-20 17:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 17:36:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-20 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 14:37:05 [end_date_ymd] => 2025-04-20 17:37:05 [RateCDR] => 1 ) [2025-04-20 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-20 14:37:05' and `end` < '2025-04-20 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-20 17:37:17] Production.INFO: count ==1572 [2025-04-20 17:37:18] Production.ERROR: pbx CDR StartTime 2025-04-20 14:37:05 - End Time 2025-04-20 17:37:05 [2025-04-20 17:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 17:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951851', 'tblTempUsageDetail_20' ) start [2025-04-20 17:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951851', 'tblTempUsageDetail_20' ) end [2025-04-20 17:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951851', 'tblTempVendorCDR_20' ) start [2025-04-20 17:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951851', 'tblTempVendorCDR_20' ) end [2025-04-20 17:37:18] Production.INFO: ProcessCDR(1,14951851,1,1,2) [2025-04-20 17:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951851', 'tblTempUsageDetail_20' ) start [2025-04-20 17:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951851', 'tblTempUsageDetail_20' ) end [2025-04-20 17:37:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 17:37:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 17:37:23] Production.INFO: ==12661== Releasing lock... [2025-04-20 17:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 17:37:23] Production.INFO: 39.5 MB #Memory Used# [2025-04-20 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 14:38:05 [end_date_ymd] => 2025-04-20 17:38:05 [RateCDR] => 1 ) [2025-04-20 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-20 14:38:05' and `end` < '2025-04-20 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-20 17:38:18] Production.INFO: count ==1576 [2025-04-20 17:38:18] Production.ERROR: pbx CDR StartTime 2025-04-20 14:38:05 - End Time 2025-04-20 17:38:05 [2025-04-20 17:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 17:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951856', 'tblTempUsageDetail_20' ) start [2025-04-20 17:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951856', 'tblTempUsageDetail_20' ) end [2025-04-20 17:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951856', 'tblTempVendorCDR_20' ) start [2025-04-20 17:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951856', 'tblTempVendorCDR_20' ) end [2025-04-20 17:38:18] Production.INFO: ProcessCDR(1,14951856,1,1,2) [2025-04-20 17:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951856', 'tblTempUsageDetail_20' ) start [2025-04-20 17:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951856', 'tblTempUsageDetail_20' ) end [2025-04-20 17:38:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 17:38:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 17:38:24] Production.INFO: ==12774== Releasing lock... [2025-04-20 17:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 17:38:24] Production.INFO: 40.25 MB #Memory Used# [2025-04-20 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 14:39:05 [end_date_ymd] => 2025-04-20 17:39:05 [RateCDR] => 1 ) [2025-04-20 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-20 14:39:05' and `end` < '2025-04-20 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-20 17:39:18] Production.INFO: count ==1577 [2025-04-20 17:39:18] Production.ERROR: pbx CDR StartTime 2025-04-20 14:39:05 - End Time 2025-04-20 17:39:05 [2025-04-20 17:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 17:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951861', 'tblTempUsageDetail_20' ) start [2025-04-20 17:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951861', 'tblTempUsageDetail_20' ) end [2025-04-20 17:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951861', 'tblTempVendorCDR_20' ) start [2025-04-20 17:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951861', 'tblTempVendorCDR_20' ) end [2025-04-20 17:39:18] Production.INFO: ProcessCDR(1,14951861,1,1,2) [2025-04-20 17:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951861', 'tblTempUsageDetail_20' ) start [2025-04-20 17:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951861', 'tblTempUsageDetail_20' ) end [2025-04-20 17:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 17:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 17:39:22] Production.INFO: ==12849== Releasing lock... [2025-04-20 17:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 17:39:22] Production.INFO: 40 MB #Memory Used# [2025-04-20 17:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 14:40:06 [end_date_ymd] => 2025-04-20 17:40:06 [RateCDR] => 1 ) [2025-04-20 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-20 14:40:06' and `end` < '2025-04-20 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-20 17:40:18] Production.INFO: count ==1653 [2025-04-20 17:40:19] Production.ERROR: pbx CDR StartTime 2025-04-20 14:40:06 - End Time 2025-04-20 17:40:06 [2025-04-20 17:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 17:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951867', 'tblTempUsageDetail_20' ) start [2025-04-20 17:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951867', 'tblTempUsageDetail_20' ) end [2025-04-20 17:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951867', 'tblTempVendorCDR_20' ) start [2025-04-20 17:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951867', 'tblTempVendorCDR_20' ) end [2025-04-20 17:40:19] Production.INFO: ProcessCDR(1,14951867,1,1,2) [2025-04-20 17:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951867', 'tblTempUsageDetail_20' ) start [2025-04-20 17:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951867', 'tblTempUsageDetail_20' ) end [2025-04-20 17:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 17:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 17:40:23] Production.INFO: ==12927== Releasing lock... [2025-04-20 17:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 17:40:23] Production.INFO: 40.5 MB #Memory Used# [2025-04-20 17:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 14:41:06 [end_date_ymd] => 2025-04-20 17:41:06 [RateCDR] => 1 ) [2025-04-20 17: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-20 14:41:06' and `end` < '2025-04-20 17: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-20 17:41:19] Production.INFO: count ==1660 [2025-04-20 17:41:19] Production.ERROR: pbx CDR StartTime 2025-04-20 14:41:06 - End Time 2025-04-20 17:41:06 [2025-04-20 17:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 17:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951872', 'tblTempUsageDetail_20' ) start [2025-04-20 17:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951872', 'tblTempUsageDetail_20' ) end [2025-04-20 17:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951872', 'tblTempVendorCDR_20' ) start [2025-04-20 17:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951872', 'tblTempVendorCDR_20' ) end [2025-04-20 17:41:19] Production.INFO: ProcessCDR(1,14951872,1,1,2) [2025-04-20 17:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951872', 'tblTempUsageDetail_20' ) start [2025-04-20 17:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951872', 'tblTempUsageDetail_20' ) end [2025-04-20 17:41:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 17:41:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 17:41:23] Production.INFO: ==13001== Releasing lock... [2025-04-20 17:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 17:41:23] Production.INFO: 40.5 MB #Memory Used# [2025-04-20 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 14:42:05 [end_date_ymd] => 2025-04-20 17:42:05 [RateCDR] => 1 ) [2025-04-20 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-20 14:42:05' and `end` < '2025-04-20 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-20 17:42:18] Production.INFO: count ==1664 [2025-04-20 17:42:18] Production.ERROR: pbx CDR StartTime 2025-04-20 14:42:05 - End Time 2025-04-20 17:42:05 [2025-04-20 17:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 17:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951877', 'tblTempUsageDetail_20' ) start [2025-04-20 17:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951877', 'tblTempUsageDetail_20' ) end [2025-04-20 17:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951877', 'tblTempVendorCDR_20' ) start [2025-04-20 17:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951877', 'tblTempVendorCDR_20' ) end [2025-04-20 17:42:18] Production.INFO: ProcessCDR(1,14951877,1,1,2) [2025-04-20 17:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951877', 'tblTempUsageDetail_20' ) start [2025-04-20 17:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951877', 'tblTempUsageDetail_20' ) end [2025-04-20 17:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 17:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 17:42:23] Production.INFO: ==13079== Releasing lock... [2025-04-20 17:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 17:42:23] Production.INFO: 40.75 MB #Memory Used# [2025-04-20 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 14:43:05 [end_date_ymd] => 2025-04-20 17:43:05 [RateCDR] => 1 ) [2025-04-20 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-20 14:43:05' and `end` < '2025-04-20 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-20 17:43:18] Production.INFO: count ==1663 [2025-04-20 17:43:19] Production.ERROR: pbx CDR StartTime 2025-04-20 14:43:05 - End Time 2025-04-20 17:43:05 [2025-04-20 17:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 17:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951882', 'tblTempUsageDetail_20' ) start [2025-04-20 17:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951882', 'tblTempUsageDetail_20' ) end [2025-04-20 17:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951882', 'tblTempVendorCDR_20' ) start [2025-04-20 17:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951882', 'tblTempVendorCDR_20' ) end [2025-04-20 17:43:19] Production.INFO: ProcessCDR(1,14951882,1,1,2) [2025-04-20 17:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951882', 'tblTempUsageDetail_20' ) start [2025-04-20 17:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951882', 'tblTempUsageDetail_20' ) end [2025-04-20 17:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 17:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 17:43:22] Production.INFO: ==13158== Releasing lock... [2025-04-20 17:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 17:43:22] Production.INFO: 41 MB #Memory Used# [2025-04-20 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 14:44:05 [end_date_ymd] => 2025-04-20 17:44:05 [RateCDR] => 1 ) [2025-04-20 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-20 14:44:05' and `end` < '2025-04-20 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-20 17:44:17] Production.INFO: count ==1679 [2025-04-20 17:44:18] Production.ERROR: pbx CDR StartTime 2025-04-20 14:44:05 - End Time 2025-04-20 17:44:05 [2025-04-20 17:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 17:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951887', 'tblTempUsageDetail_20' ) start [2025-04-20 17:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951887', 'tblTempUsageDetail_20' ) end [2025-04-20 17:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951887', 'tblTempVendorCDR_20' ) start [2025-04-20 17:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951887', 'tblTempVendorCDR_20' ) end [2025-04-20 17:44:18] Production.INFO: ProcessCDR(1,14951887,1,1,2) [2025-04-20 17:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951887', 'tblTempUsageDetail_20' ) start [2025-04-20 17:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951887', 'tblTempUsageDetail_20' ) end [2025-04-20 17:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 17:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 17:44:22] Production.INFO: ==13230== Releasing lock... [2025-04-20 17:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 17:44:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-20 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 14:45:05 [end_date_ymd] => 2025-04-20 17:45:05 [RateCDR] => 1 ) [2025-04-20 17:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 14:45:05' and `end` < '2025-04-20 17:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 17:45:19] Production.INFO: count ==1678 [2025-04-20 17:45:19] Production.ERROR: pbx CDR StartTime 2025-04-20 14:45:05 - End Time 2025-04-20 17:45:05 [2025-04-20 17:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 17:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951892', 'tblTempUsageDetail_20' ) start [2025-04-20 17:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951892', 'tblTempUsageDetail_20' ) end [2025-04-20 17:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951892', 'tblTempVendorCDR_20' ) start [2025-04-20 17:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951892', 'tblTempVendorCDR_20' ) end [2025-04-20 17:45:19] Production.INFO: ProcessCDR(1,14951892,1,1,2) [2025-04-20 17:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951892', 'tblTempUsageDetail_20' ) start [2025-04-20 17:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951892', 'tblTempUsageDetail_20' ) end [2025-04-20 17:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 17:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 17:45:22] Production.INFO: ==13305== Releasing lock... [2025-04-20 17:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 17:45:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-20 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 14:46:05 [end_date_ymd] => 2025-04-20 17:46:05 [RateCDR] => 1 ) [2025-04-20 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-20 14:46:05' and `end` < '2025-04-20 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-20 17:46:18] Production.INFO: count ==1681 [2025-04-20 17:46:18] Production.ERROR: pbx CDR StartTime 2025-04-20 14:46:05 - End Time 2025-04-20 17:46:05 [2025-04-20 17:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 17:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951897', 'tblTempUsageDetail_20' ) start [2025-04-20 17:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951897', 'tblTempUsageDetail_20' ) end [2025-04-20 17:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951897', 'tblTempVendorCDR_20' ) start [2025-04-20 17:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951897', 'tblTempVendorCDR_20' ) end [2025-04-20 17:46:18] Production.INFO: ProcessCDR(1,14951897,1,1,2) [2025-04-20 17:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951897', 'tblTempUsageDetail_20' ) start [2025-04-20 17:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951897', 'tblTempUsageDetail_20' ) end [2025-04-20 17:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 17:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 17:46:22] Production.INFO: ==13375== Releasing lock... [2025-04-20 17:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 17:46:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-20 17:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 14:47:06 [end_date_ymd] => 2025-04-20 17:47:06 [RateCDR] => 1 ) [2025-04-20 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-20 14:47:06' and `end` < '2025-04-20 17:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 17:47:18] Production.INFO: count ==1694 [2025-04-20 17:47:19] Production.ERROR: pbx CDR StartTime 2025-04-20 14:47:06 - End Time 2025-04-20 17:47:06 [2025-04-20 17:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 17:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951902', 'tblTempUsageDetail_20' ) start [2025-04-20 17:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951902', 'tblTempUsageDetail_20' ) end [2025-04-20 17:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951902', 'tblTempVendorCDR_20' ) start [2025-04-20 17:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951902', 'tblTempVendorCDR_20' ) end [2025-04-20 17:47:19] Production.INFO: ProcessCDR(1,14951902,1,1,2) [2025-04-20 17:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951902', 'tblTempUsageDetail_20' ) start [2025-04-20 17:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951902', 'tblTempUsageDetail_20' ) end [2025-04-20 17:47:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 17:47:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 17:47:23] Production.INFO: ==13451== Releasing lock... [2025-04-20 17:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 17:47:23] Production.INFO: 40.75 MB #Memory Used# [2025-04-20 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 14:48:05 [end_date_ymd] => 2025-04-20 17:48:05 [RateCDR] => 1 ) [2025-04-20 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-20 14:48:05' and `end` < '2025-04-20 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-20 17:48:17] Production.INFO: count ==1691 [2025-04-20 17:48:18] Production.ERROR: pbx CDR StartTime 2025-04-20 14:48:05 - End Time 2025-04-20 17:48:05 [2025-04-20 17:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 17:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951907', 'tblTempUsageDetail_20' ) start [2025-04-20 17:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951907', 'tblTempUsageDetail_20' ) end [2025-04-20 17:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951907', 'tblTempVendorCDR_20' ) start [2025-04-20 17:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951907', 'tblTempVendorCDR_20' ) end [2025-04-20 17:48:18] Production.INFO: ProcessCDR(1,14951907,1,1,2) [2025-04-20 17:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951907', 'tblTempUsageDetail_20' ) start [2025-04-20 17:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951907', 'tblTempUsageDetail_20' ) end [2025-04-20 17:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 17:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 17:48:21] Production.INFO: ==13526== Releasing lock... [2025-04-20 17:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 17:48:21] Production.INFO: 40.75 MB #Memory Used# [2025-04-20 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 14:49:05 [end_date_ymd] => 2025-04-20 17:49:05 [RateCDR] => 1 ) [2025-04-20 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-20 14:49:05' and `end` < '2025-04-20 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-20 17:49:18] Production.INFO: count ==1698 [2025-04-20 17:49:19] Production.ERROR: pbx CDR StartTime 2025-04-20 14:49:05 - End Time 2025-04-20 17:49:05 [2025-04-20 17:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 17:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951912', 'tblTempUsageDetail_20' ) start [2025-04-20 17:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951912', 'tblTempUsageDetail_20' ) end [2025-04-20 17:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951912', 'tblTempVendorCDR_20' ) start [2025-04-20 17:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951912', 'tblTempVendorCDR_20' ) end [2025-04-20 17:49:19] Production.INFO: ProcessCDR(1,14951912,1,1,2) [2025-04-20 17:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951912', 'tblTempUsageDetail_20' ) start [2025-04-20 17:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951912', 'tblTempUsageDetail_20' ) end [2025-04-20 17:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 17:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 17:49:22] Production.INFO: ==13604== Releasing lock... [2025-04-20 17:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 17:49:22] Production.INFO: 41 MB #Memory Used# [2025-04-20 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 14:50:06 [end_date_ymd] => 2025-04-20 17:50:06 [RateCDR] => 1 ) [2025-04-20 17:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 14:50:06' and `end` < '2025-04-20 17:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 17:50:19] Production.INFO: count ==1699 [2025-04-20 17:50:19] Production.ERROR: pbx CDR StartTime 2025-04-20 14:50:06 - End Time 2025-04-20 17:50:06 [2025-04-20 17:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 17:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951918', 'tblTempUsageDetail_20' ) start [2025-04-20 17:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951918', 'tblTempUsageDetail_20' ) end [2025-04-20 17:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951918', 'tblTempVendorCDR_20' ) start [2025-04-20 17:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951918', 'tblTempVendorCDR_20' ) end [2025-04-20 17:50:19] Production.INFO: ProcessCDR(1,14951918,1,1,2) [2025-04-20 17:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951918', 'tblTempUsageDetail_20' ) start [2025-04-20 17:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951918', 'tblTempUsageDetail_20' ) end [2025-04-20 17:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 17:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 17:50:24] Production.INFO: ==13683== Releasing lock... [2025-04-20 17:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 17:50:24] Production.INFO: 41 MB #Memory Used# [2025-04-20 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 14:51:05 [end_date_ymd] => 2025-04-20 17:51:05 [RateCDR] => 1 ) [2025-04-20 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-20 14:51:05' and `end` < '2025-04-20 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-20 17:51:18] Production.INFO: count ==1774 [2025-04-20 17:51:19] Production.ERROR: pbx CDR StartTime 2025-04-20 14:51:05 - End Time 2025-04-20 17:51:05 [2025-04-20 17:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 17:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951923', 'tblTempUsageDetail_20' ) start [2025-04-20 17:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951923', 'tblTempUsageDetail_20' ) end [2025-04-20 17:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951923', 'tblTempVendorCDR_20' ) start [2025-04-20 17:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951923', 'tblTempVendorCDR_20' ) end [2025-04-20 17:51:19] Production.INFO: ProcessCDR(1,14951923,1,1,2) [2025-04-20 17:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951923', 'tblTempUsageDetail_20' ) start [2025-04-20 17:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951923', 'tblTempUsageDetail_20' ) end [2025-04-20 17:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 17:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 17:51:22] Production.INFO: ==13762== Releasing lock... [2025-04-20 17:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 17:51:22] Production.INFO: 41.75 MB #Memory Used# [2025-04-20 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 14:52:05 [end_date_ymd] => 2025-04-20 17:52:05 [RateCDR] => 1 ) [2025-04-20 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-20 14:52:05' and `end` < '2025-04-20 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-20 17:52:18] Production.INFO: count ==1776 [2025-04-20 17:52:19] Production.ERROR: pbx CDR StartTime 2025-04-20 14:52:05 - End Time 2025-04-20 17:52:05 [2025-04-20 17:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951928', 'tblTempUsageDetail_20' ) start [2025-04-20 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951928', 'tblTempUsageDetail_20' ) end [2025-04-20 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951928', 'tblTempVendorCDR_20' ) start [2025-04-20 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951928', 'tblTempVendorCDR_20' ) end [2025-04-20 17:52:19] Production.INFO: ProcessCDR(1,14951928,1,1,2) [2025-04-20 17:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951928', 'tblTempUsageDetail_20' ) start [2025-04-20 17:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951928', 'tblTempUsageDetail_20' ) end [2025-04-20 17:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 17:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 17:52:22] Production.INFO: ==13833== Releasing lock... [2025-04-20 17:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 17:52:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-20 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 14:53:05 [end_date_ymd] => 2025-04-20 17:53:05 [RateCDR] => 1 ) [2025-04-20 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-20 14:53:05' and `end` < '2025-04-20 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-20 17:53:18] Production.INFO: count ==1782 [2025-04-20 17:53:18] Production.ERROR: pbx CDR StartTime 2025-04-20 14:53:05 - End Time 2025-04-20 17:53:05 [2025-04-20 17:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 17:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951933', 'tblTempUsageDetail_20' ) start [2025-04-20 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951933', 'tblTempUsageDetail_20' ) end [2025-04-20 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951933', 'tblTempVendorCDR_20' ) start [2025-04-20 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951933', 'tblTempVendorCDR_20' ) end [2025-04-20 17:53:19] Production.INFO: ProcessCDR(1,14951933,1,1,2) [2025-04-20 17:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951933', 'tblTempUsageDetail_20' ) start [2025-04-20 17:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951933', 'tblTempUsageDetail_20' ) end [2025-04-20 17:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 17:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 17:53:22] Production.INFO: ==13948== Releasing lock... [2025-04-20 17:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 17:53:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-20 17:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 14:54:06 [end_date_ymd] => 2025-04-20 17:54:06 [RateCDR] => 1 ) [2025-04-20 17:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 14:54:06' and `end` < '2025-04-20 17:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 17:54:19] Production.INFO: count ==1789 [2025-04-20 17:54:19] Production.ERROR: pbx CDR StartTime 2025-04-20 14:54:06 - End Time 2025-04-20 17:54:06 [2025-04-20 17:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951938', 'tblTempUsageDetail_20' ) start [2025-04-20 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951938', 'tblTempUsageDetail_20' ) end [2025-04-20 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951938', 'tblTempVendorCDR_20' ) start [2025-04-20 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951938', 'tblTempVendorCDR_20' ) end [2025-04-20 17:54:19] Production.INFO: ProcessCDR(1,14951938,1,1,2) [2025-04-20 17:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951938', 'tblTempUsageDetail_20' ) start [2025-04-20 17:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951938', 'tblTempUsageDetail_20' ) end [2025-04-20 17:54:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 17:54:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 17:54:24] Production.INFO: ==14021== Releasing lock... [2025-04-20 17:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 17:54:24] Production.INFO: 41.5 MB #Memory Used# [2025-04-20 17:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 14:55:06 [end_date_ymd] => 2025-04-20 17:55:06 [RateCDR] => 1 ) [2025-04-20 17:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 14:55:06' and `end` < '2025-04-20 17:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 17:55:18] Production.INFO: count ==1790 [2025-04-20 17:55:19] Production.ERROR: pbx CDR StartTime 2025-04-20 14:55:06 - End Time 2025-04-20 17:55:06 [2025-04-20 17:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951943', 'tblTempUsageDetail_20' ) start [2025-04-20 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951943', 'tblTempUsageDetail_20' ) end [2025-04-20 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951943', 'tblTempVendorCDR_20' ) start [2025-04-20 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951943', 'tblTempVendorCDR_20' ) end [2025-04-20 17:55:19] Production.INFO: ProcessCDR(1,14951943,1,1,2) [2025-04-20 17:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951943', 'tblTempUsageDetail_20' ) start [2025-04-20 17:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951943', 'tblTempUsageDetail_20' ) end [2025-04-20 17:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 17:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 17:55:23] Production.INFO: ==14098== Releasing lock... [2025-04-20 17:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 17:55:23] Production.INFO: 42.25 MB #Memory Used# [2025-04-20 17:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 14:56:06 [end_date_ymd] => 2025-04-20 17:56:06 [RateCDR] => 1 ) [2025-04-20 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-20 14:56:06' and `end` < '2025-04-20 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-20 17:56:19] Production.INFO: count ==1788 [2025-04-20 17:56:20] Production.ERROR: pbx CDR StartTime 2025-04-20 14:56:06 - End Time 2025-04-20 17:56:06 [2025-04-20 17:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951948', 'tblTempUsageDetail_20' ) start [2025-04-20 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951948', 'tblTempUsageDetail_20' ) end [2025-04-20 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951948', 'tblTempVendorCDR_20' ) start [2025-04-20 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951948', 'tblTempVendorCDR_20' ) end [2025-04-20 17:56:20] Production.INFO: ProcessCDR(1,14951948,1,1,2) [2025-04-20 17:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951948', 'tblTempUsageDetail_20' ) start [2025-04-20 17:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951948', 'tblTempUsageDetail_20' ) end [2025-04-20 17:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 17:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 17:56:23] Production.INFO: ==14173== Releasing lock... [2025-04-20 17:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 17:56:23] Production.INFO: 41.5 MB #Memory Used# [2025-04-20 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 14:57:05 [end_date_ymd] => 2025-04-20 17:57:05 [RateCDR] => 1 ) [2025-04-20 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-20 14:57:05' and `end` < '2025-04-20 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-20 17:57:17] Production.INFO: count ==1940 [2025-04-20 17:57:18] Production.ERROR: pbx CDR StartTime 2025-04-20 14:57:05 - End Time 2025-04-20 17:57:05 [2025-04-20 17:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 17:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951953', 'tblTempUsageDetail_20' ) start [2025-04-20 17:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951953', 'tblTempUsageDetail_20' ) end [2025-04-20 17:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951953', 'tblTempVendorCDR_20' ) start [2025-04-20 17:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951953', 'tblTempVendorCDR_20' ) end [2025-04-20 17:57:18] Production.INFO: ProcessCDR(1,14951953,1,1,2) [2025-04-20 17:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951953', 'tblTempUsageDetail_20' ) start [2025-04-20 17:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951953', 'tblTempUsageDetail_20' ) end [2025-04-20 17:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 17:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 17:57:22] Production.INFO: ==14244== Releasing lock... [2025-04-20 17:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 17:57:22] Production.INFO: 42.75 MB #Memory Used# [2025-04-20 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 14:58:05 [end_date_ymd] => 2025-04-20 17:58:05 [RateCDR] => 1 ) [2025-04-20 17:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 14:58:05' and `end` < '2025-04-20 17:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 17:58:18] Production.INFO: count ==1963 [2025-04-20 17:58:19] Production.ERROR: pbx CDR StartTime 2025-04-20 14:58:05 - End Time 2025-04-20 17:58:05 [2025-04-20 17:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 17:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951958', 'tblTempUsageDetail_20' ) start [2025-04-20 17:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951958', 'tblTempUsageDetail_20' ) end [2025-04-20 17:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951958', 'tblTempVendorCDR_20' ) start [2025-04-20 17:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951958', 'tblTempVendorCDR_20' ) end [2025-04-20 17:58:19] Production.INFO: ProcessCDR(1,14951958,1,1,2) [2025-04-20 17:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951958', 'tblTempUsageDetail_20' ) start [2025-04-20 17:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951958', 'tblTempUsageDetail_20' ) end [2025-04-20 17:58:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 17:58:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 17:58:24] Production.INFO: ==14320== Releasing lock... [2025-04-20 17:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 17:58:24] Production.INFO: 43 MB #Memory Used# [2025-04-20 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 14:59:05 [end_date_ymd] => 2025-04-20 17:59:05 [RateCDR] => 1 ) [2025-04-20 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-20 14:59:05' and `end` < '2025-04-20 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-20 17:59:18] Production.INFO: count ==1965 [2025-04-20 17:59:19] Production.ERROR: pbx CDR StartTime 2025-04-20 14:59:05 - End Time 2025-04-20 17:59:05 [2025-04-20 17:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951963', 'tblTempUsageDetail_20' ) start [2025-04-20 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951963', 'tblTempUsageDetail_20' ) end [2025-04-20 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951963', 'tblTempVendorCDR_20' ) start [2025-04-20 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951963', 'tblTempVendorCDR_20' ) end [2025-04-20 17:59:19] Production.INFO: ProcessCDR(1,14951963,1,1,2) [2025-04-20 17:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 17:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 17:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951963', 'tblTempUsageDetail_20' ) start [2025-04-20 17:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951963', 'tblTempUsageDetail_20' ) end [2025-04-20 17:59:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 17:59:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 17:59:24] Production.INFO: ==14402== Releasing lock... [2025-04-20 17:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 17:59:24] Production.INFO: 43 MB #Memory Used# [2025-04-20 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 15:00:06 [end_date_ymd] => 2025-04-20 18:00:06 [RateCDR] => 1 ) [2025-04-20 18:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 15:00:06' and `end` < '2025-04-20 18:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 18:00:19] Production.INFO: count ==1960 [2025-04-20 18:00:20] Production.ERROR: pbx CDR StartTime 2025-04-20 15:00:06 - End Time 2025-04-20 18:00:06 [2025-04-20 18:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951969', 'tblTempUsageDetail_20' ) start [2025-04-20 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951969', 'tblTempUsageDetail_20' ) end [2025-04-20 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951969', 'tblTempVendorCDR_20' ) start [2025-04-20 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951969', 'tblTempVendorCDR_20' ) end [2025-04-20 18:00:20] Production.INFO: ProcessCDR(1,14951969,1,1,2) [2025-04-20 18:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951969', 'tblTempUsageDetail_20' ) start [2025-04-20 18:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951969', 'tblTempUsageDetail_20' ) end [2025-04-20 18:00:25] Production.ERROR: pbx prc_insertCDR start [2025-04-20 18:00:25] Production.ERROR: pbx prc_insertCDR end [2025-04-20 18:00:25] Production.INFO: ==14479== Releasing lock... [2025-04-20 18:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 18:00:25] Production.INFO: 42.75 MB #Memory Used# [2025-04-20 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 15:01:05 [end_date_ymd] => 2025-04-20 18:01:05 [RateCDR] => 1 ) [2025-04-20 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-20 15:01:05' and `end` < '2025-04-20 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-20 18:01:18] Production.INFO: count ==1994 [2025-04-20 18:01:18] Production.ERROR: pbx CDR StartTime 2025-04-20 15:01:05 - End Time 2025-04-20 18:01:05 [2025-04-20 18:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 18:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951974', 'tblTempUsageDetail_20' ) start [2025-04-20 18:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951974', 'tblTempUsageDetail_20' ) end [2025-04-20 18:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951974', 'tblTempVendorCDR_20' ) start [2025-04-20 18:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951974', 'tblTempVendorCDR_20' ) end [2025-04-20 18:01:18] Production.INFO: ProcessCDR(1,14951974,1,1,2) [2025-04-20 18:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951974', 'tblTempUsageDetail_20' ) start [2025-04-20 18:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951974', 'tblTempUsageDetail_20' ) end [2025-04-20 18:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 18:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 18:01:22] Production.INFO: ==14569== Releasing lock... [2025-04-20 18:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 18:01:22] Production.INFO: 43.25 MB #Memory Used# [2025-04-20 18:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 15:02:06 [end_date_ymd] => 2025-04-20 18:02:06 [RateCDR] => 1 ) [2025-04-20 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-20 15:02:06' and `end` < '2025-04-20 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-20 18:02:19] Production.INFO: count ==1998 [2025-04-20 18:02:19] Production.ERROR: pbx CDR StartTime 2025-04-20 15:02:06 - End Time 2025-04-20 18:02:06 [2025-04-20 18:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951979', 'tblTempUsageDetail_20' ) start [2025-04-20 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951979', 'tblTempUsageDetail_20' ) end [2025-04-20 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951979', 'tblTempVendorCDR_20' ) start [2025-04-20 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951979', 'tblTempVendorCDR_20' ) end [2025-04-20 18:02:19] Production.INFO: ProcessCDR(1,14951979,1,1,2) [2025-04-20 18:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951979', 'tblTempUsageDetail_20' ) start [2025-04-20 18:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951979', 'tblTempUsageDetail_20' ) end [2025-04-20 18:02:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 18:02:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 18:02:24] Production.INFO: ==14647== Releasing lock... [2025-04-20 18:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 18:02:24] Production.INFO: 43.5 MB #Memory Used# [2025-04-20 18:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 15:03:04 [end_date_ymd] => 2025-04-20 18:03:04 [RateCDR] => 1 ) [2025-04-20 18: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-20 15:03:04' and `end` < '2025-04-20 18: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-20 18:03:17] Production.INFO: count ==1999 [2025-04-20 18:03:18] Production.ERROR: pbx CDR StartTime 2025-04-20 15:03:04 - End Time 2025-04-20 18:03:04 [2025-04-20 18:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 18:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951984', 'tblTempUsageDetail_20' ) start [2025-04-20 18:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951984', 'tblTempUsageDetail_20' ) end [2025-04-20 18:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951984', 'tblTempVendorCDR_20' ) start [2025-04-20 18:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951984', 'tblTempVendorCDR_20' ) end [2025-04-20 18:03:18] Production.INFO: ProcessCDR(1,14951984,1,1,2) [2025-04-20 18:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951984', 'tblTempUsageDetail_20' ) start [2025-04-20 18:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951984', 'tblTempUsageDetail_20' ) end [2025-04-20 18:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 18:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 18:03:23] Production.INFO: ==14724== Releasing lock... [2025-04-20 18:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 18:03:23] Production.INFO: 43.5 MB #Memory Used# [2025-04-20 18:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 15:04:05 [end_date_ymd] => 2025-04-20 18:04:05 [RateCDR] => 1 ) [2025-04-20 18: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-20 15:04:05' and `end` < '2025-04-20 18: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-20 18:04:18] Production.INFO: count ==2001 [2025-04-20 18:04:19] Production.ERROR: pbx CDR StartTime 2025-04-20 15:04:05 - End Time 2025-04-20 18:04:05 [2025-04-20 18:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951989', 'tblTempUsageDetail_20' ) start [2025-04-20 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951989', 'tblTempUsageDetail_20' ) end [2025-04-20 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951989', 'tblTempVendorCDR_20' ) start [2025-04-20 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951989', 'tblTempVendorCDR_20' ) end [2025-04-20 18:04:19] Production.INFO: ProcessCDR(1,14951989,1,1,2) [2025-04-20 18:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951989', 'tblTempUsageDetail_20' ) start [2025-04-20 18:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951989', 'tblTempUsageDetail_20' ) end [2025-04-20 18:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 18:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 18:04:22] Production.INFO: ==14800== Releasing lock... [2025-04-20 18:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 18:04:22] Production.INFO: 43.5 MB #Memory Used# [2025-04-20 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 15:05:05 [end_date_ymd] => 2025-04-20 18:05:05 [RateCDR] => 1 ) [2025-04-20 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-20 15:05:05' and `end` < '2025-04-20 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-20 18:05:18] Production.INFO: count ==2006 [2025-04-20 18:05:18] Production.ERROR: pbx CDR StartTime 2025-04-20 15:05:05 - End Time 2025-04-20 18:05:05 [2025-04-20 18:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 18:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951994', 'tblTempUsageDetail_20' ) start [2025-04-20 18:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951994', 'tblTempUsageDetail_20' ) end [2025-04-20 18:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951994', 'tblTempVendorCDR_20' ) start [2025-04-20 18:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951994', 'tblTempVendorCDR_20' ) end [2025-04-20 18:05:18] Production.INFO: ProcessCDR(1,14951994,1,1,2) [2025-04-20 18:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951994', 'tblTempUsageDetail_20' ) start [2025-04-20 18:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951994', 'tblTempUsageDetail_20' ) end [2025-04-20 18:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 18:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 18:05:22] Production.INFO: ==14872== Releasing lock... [2025-04-20 18:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 18:05:22] Production.INFO: 43.5 MB #Memory Used# [2025-04-20 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 15:06:05 [end_date_ymd] => 2025-04-20 18:06:05 [RateCDR] => 1 ) [2025-04-20 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-20 15:06:05' and `end` < '2025-04-20 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-20 18:06:18] Production.INFO: count ==2007 [2025-04-20 18:06:19] Production.ERROR: pbx CDR StartTime 2025-04-20 15:06:05 - End Time 2025-04-20 18:06:05 [2025-04-20 18:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951999', 'tblTempUsageDetail_20' ) start [2025-04-20 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14951999', 'tblTempUsageDetail_20' ) end [2025-04-20 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951999', 'tblTempVendorCDR_20' ) start [2025-04-20 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14951999', 'tblTempVendorCDR_20' ) end [2025-04-20 18:06:19] Production.INFO: ProcessCDR(1,14951999,1,1,2) [2025-04-20 18:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14951999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14951999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14951999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14951999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951999', 'tblTempUsageDetail_20' ) start [2025-04-20 18:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14951999', 'tblTempUsageDetail_20' ) end [2025-04-20 18:06:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 18:06:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 18:06:23] Production.INFO: ==14945== Releasing lock... [2025-04-20 18:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 18:06:23] Production.INFO: 43.25 MB #Memory Used# [2025-04-20 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 15:07:05 [end_date_ymd] => 2025-04-20 18:07:05 [RateCDR] => 1 ) [2025-04-20 18:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 15:07:05' and `end` < '2025-04-20 18:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 18:07:17] Production.INFO: count ==2005 [2025-04-20 18:07:18] Production.ERROR: pbx CDR StartTime 2025-04-20 15:07:05 - End Time 2025-04-20 18:07:05 [2025-04-20 18:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 18:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952004', 'tblTempUsageDetail_20' ) start [2025-04-20 18:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952004', 'tblTempUsageDetail_20' ) end [2025-04-20 18:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952004', 'tblTempVendorCDR_20' ) start [2025-04-20 18:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952004', 'tblTempVendorCDR_20' ) end [2025-04-20 18:07:18] Production.INFO: ProcessCDR(1,14952004,1,1,2) [2025-04-20 18:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952004', 'tblTempUsageDetail_20' ) start [2025-04-20 18:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952004', 'tblTempUsageDetail_20' ) end [2025-04-20 18:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 18:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 18:07:22] Production.INFO: ==15017== Releasing lock... [2025-04-20 18:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 18:07:22] Production.INFO: 43.5 MB #Memory Used# [2025-04-20 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 15:08:05 [end_date_ymd] => 2025-04-20 18:08:05 [RateCDR] => 1 ) [2025-04-20 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-20 15:08:05' and `end` < '2025-04-20 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-20 18:08:18] Production.INFO: count ==2004 [2025-04-20 18:08:19] Production.ERROR: pbx CDR StartTime 2025-04-20 15:08:05 - End Time 2025-04-20 18:08:05 [2025-04-20 18:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 18:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952009', 'tblTempUsageDetail_20' ) start [2025-04-20 18:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952009', 'tblTempUsageDetail_20' ) end [2025-04-20 18:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952009', 'tblTempVendorCDR_20' ) start [2025-04-20 18:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952009', 'tblTempVendorCDR_20' ) end [2025-04-20 18:08:19] Production.INFO: ProcessCDR(1,14952009,1,1,2) [2025-04-20 18:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952009', 'tblTempUsageDetail_20' ) start [2025-04-20 18:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952009', 'tblTempUsageDetail_20' ) end [2025-04-20 18:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 18:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 18:08:22] Production.INFO: ==15092== Releasing lock... [2025-04-20 18:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 18:08:22] Production.INFO: 43.25 MB #Memory Used# [2025-04-20 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 15:09:05 [end_date_ymd] => 2025-04-20 18:09:05 [RateCDR] => 1 ) [2025-04-20 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-20 15:09:05' and `end` < '2025-04-20 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-20 18:09:18] Production.INFO: count ==2008 [2025-04-20 18:09:18] Production.ERROR: pbx CDR StartTime 2025-04-20 15:09:05 - End Time 2025-04-20 18:09:05 [2025-04-20 18:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 18:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952014', 'tblTempUsageDetail_20' ) start [2025-04-20 18:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952014', 'tblTempUsageDetail_20' ) end [2025-04-20 18:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952014', 'tblTempVendorCDR_20' ) start [2025-04-20 18:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952014', 'tblTempVendorCDR_20' ) end [2025-04-20 18:09:18] Production.INFO: ProcessCDR(1,14952014,1,1,2) [2025-04-20 18:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952014', 'tblTempUsageDetail_20' ) start [2025-04-20 18:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952014', 'tblTempUsageDetail_20' ) end [2025-04-20 18:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 18:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 18:09:22] Production.INFO: ==15204== Releasing lock... [2025-04-20 18:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 18:09:22] Production.INFO: 43.25 MB #Memory Used# [2025-04-20 18:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 15:10:06 [end_date_ymd] => 2025-04-20 18:10:06 [RateCDR] => 1 ) [2025-04-20 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-20 15:10:06' and `end` < '2025-04-20 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-20 18:10:19] Production.INFO: count ==2007 [2025-04-20 18:10:20] Production.ERROR: pbx CDR StartTime 2025-04-20 15:10:06 - End Time 2025-04-20 18:10:06 [2025-04-20 18:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952020', 'tblTempUsageDetail_20' ) start [2025-04-20 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952020', 'tblTempUsageDetail_20' ) end [2025-04-20 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952020', 'tblTempVendorCDR_20' ) start [2025-04-20 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952020', 'tblTempVendorCDR_20' ) end [2025-04-20 18:10:20] Production.INFO: ProcessCDR(1,14952020,1,1,2) [2025-04-20 18:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952020', 'tblTempUsageDetail_20' ) start [2025-04-20 18:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952020', 'tblTempUsageDetail_20' ) end [2025-04-20 18:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 18:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 18:10:23] Production.INFO: ==15282== Releasing lock... [2025-04-20 18:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 18:10:23] Production.INFO: 43.75 MB #Memory Used# [2025-04-20 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 15:11:05 [end_date_ymd] => 2025-04-20 18:11:05 [RateCDR] => 1 ) [2025-04-20 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-20 15:11:05' and `end` < '2025-04-20 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-20 18:11:17] Production.INFO: count ==1996 [2025-04-20 18:11:18] Production.ERROR: pbx CDR StartTime 2025-04-20 15:11:05 - End Time 2025-04-20 18:11:05 [2025-04-20 18:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 18:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952025', 'tblTempUsageDetail_20' ) start [2025-04-20 18:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952025', 'tblTempUsageDetail_20' ) end [2025-04-20 18:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952025', 'tblTempVendorCDR_20' ) start [2025-04-20 18:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952025', 'tblTempVendorCDR_20' ) end [2025-04-20 18:11:18] Production.INFO: ProcessCDR(1,14952025,1,1,2) [2025-04-20 18:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952025', 'tblTempUsageDetail_20' ) start [2025-04-20 18:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952025', 'tblTempUsageDetail_20' ) end [2025-04-20 18:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 18:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 18:11:22] Production.INFO: ==15358== Releasing lock... [2025-04-20 18:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 18:11:22] Production.INFO: 43.5 MB #Memory Used# [2025-04-20 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 15:12:05 [end_date_ymd] => 2025-04-20 18:12:05 [RateCDR] => 1 ) [2025-04-20 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-20 15:12:05' and `end` < '2025-04-20 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-20 18:12:18] Production.INFO: count ==1996 [2025-04-20 18:12:18] Production.ERROR: pbx CDR StartTime 2025-04-20 15:12:05 - End Time 2025-04-20 18:12:05 [2025-04-20 18:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 18:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952030', 'tblTempUsageDetail_20' ) start [2025-04-20 18:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952030', 'tblTempUsageDetail_20' ) end [2025-04-20 18:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952030', 'tblTempVendorCDR_20' ) start [2025-04-20 18:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952030', 'tblTempVendorCDR_20' ) end [2025-04-20 18:12:18] Production.INFO: ProcessCDR(1,14952030,1,1,2) [2025-04-20 18:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952030', 'tblTempUsageDetail_20' ) start [2025-04-20 18:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952030', 'tblTempUsageDetail_20' ) end [2025-04-20 18:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 18:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 18:12:22] Production.INFO: ==15435== Releasing lock... [2025-04-20 18:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 18:12:22] Production.INFO: 43.5 MB #Memory Used# [2025-04-20 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 15:13:05 [end_date_ymd] => 2025-04-20 18:13:05 [RateCDR] => 1 ) [2025-04-20 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-20 15:13:05' and `end` < '2025-04-20 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-20 18:13:18] Production.INFO: count ==1994 [2025-04-20 18:13:19] Production.ERROR: pbx CDR StartTime 2025-04-20 15:13:05 - End Time 2025-04-20 18:13:05 [2025-04-20 18:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952035', 'tblTempUsageDetail_20' ) start [2025-04-20 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952035', 'tblTempUsageDetail_20' ) end [2025-04-20 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952035', 'tblTempVendorCDR_20' ) start [2025-04-20 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952035', 'tblTempVendorCDR_20' ) end [2025-04-20 18:13:19] Production.INFO: ProcessCDR(1,14952035,1,1,2) [2025-04-20 18:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952035', 'tblTempUsageDetail_20' ) start [2025-04-20 18:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952035', 'tblTempUsageDetail_20' ) end [2025-04-20 18:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 18:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 18:13:22] Production.INFO: ==15508== Releasing lock... [2025-04-20 18:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 18:13:22] Production.INFO: 43.25 MB #Memory Used# [2025-04-20 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 15:14:05 [end_date_ymd] => 2025-04-20 18:14:05 [RateCDR] => 1 ) [2025-04-20 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-20 15:14:05' and `end` < '2025-04-20 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-20 18:14:18] Production.INFO: count ==1996 [2025-04-20 18:14:18] Production.ERROR: pbx CDR StartTime 2025-04-20 15:14:05 - End Time 2025-04-20 18:14:05 [2025-04-20 18:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 18:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952040', 'tblTempUsageDetail_20' ) start [2025-04-20 18:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952040', 'tblTempUsageDetail_20' ) end [2025-04-20 18:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952040', 'tblTempVendorCDR_20' ) start [2025-04-20 18:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952040', 'tblTempVendorCDR_20' ) end [2025-04-20 18:14:18] Production.INFO: ProcessCDR(1,14952040,1,1,2) [2025-04-20 18:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952040', 'tblTempUsageDetail_20' ) start [2025-04-20 18:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952040', 'tblTempUsageDetail_20' ) end [2025-04-20 18:14:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 18:14:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 18:14:23] Production.INFO: ==15580== Releasing lock... [2025-04-20 18:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 18:14:23] Production.INFO: 43.25 MB #Memory Used# [2025-04-20 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 15:15:05 [end_date_ymd] => 2025-04-20 18:15:05 [RateCDR] => 1 ) [2025-04-20 18:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 15:15:05' and `end` < '2025-04-20 18:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 18:15:18] Production.INFO: count ==2004 [2025-04-20 18:15:19] Production.ERROR: pbx CDR StartTime 2025-04-20 15:15:05 - End Time 2025-04-20 18:15:05 [2025-04-20 18:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952045', 'tblTempUsageDetail_20' ) start [2025-04-20 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952045', 'tblTempUsageDetail_20' ) end [2025-04-20 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952045', 'tblTempVendorCDR_20' ) start [2025-04-20 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952045', 'tblTempVendorCDR_20' ) end [2025-04-20 18:15:19] Production.INFO: ProcessCDR(1,14952045,1,1,2) [2025-04-20 18:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952045', 'tblTempUsageDetail_20' ) start [2025-04-20 18:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952045', 'tblTempUsageDetail_20' ) end [2025-04-20 18:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 18:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 18:15:22] Production.INFO: ==15660== Releasing lock... [2025-04-20 18:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 18:15:22] Production.INFO: 43.25 MB #Memory Used# [2025-04-20 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 15:16:05 [end_date_ymd] => 2025-04-20 18:16:05 [RateCDR] => 1 ) [2025-04-20 18:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 15:16:05' and `end` < '2025-04-20 18:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 18:16:18] Production.INFO: count ==2005 [2025-04-20 18:16:18] Production.ERROR: pbx CDR StartTime 2025-04-20 15:16:05 - End Time 2025-04-20 18:16:05 [2025-04-20 18:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 18:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952050', 'tblTempUsageDetail_20' ) start [2025-04-20 18:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952050', 'tblTempUsageDetail_20' ) end [2025-04-20 18:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952050', 'tblTempVendorCDR_20' ) start [2025-04-20 18:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952050', 'tblTempVendorCDR_20' ) end [2025-04-20 18:16:18] Production.INFO: ProcessCDR(1,14952050,1,1,2) [2025-04-20 18:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952050', 'tblTempUsageDetail_20' ) start [2025-04-20 18:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952050', 'tblTempUsageDetail_20' ) end [2025-04-20 18:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 18:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 18:16:22] Production.INFO: ==15742== Releasing lock... [2025-04-20 18:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 18:16:22] Production.INFO: 43.25 MB #Memory Used# [2025-04-20 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 15:17:05 [end_date_ymd] => 2025-04-20 18:17:05 [RateCDR] => 1 ) [2025-04-20 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-20 15:17:05' and `end` < '2025-04-20 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-20 18:17:18] Production.INFO: count ==2004 [2025-04-20 18:17:19] Production.ERROR: pbx CDR StartTime 2025-04-20 15:17:05 - End Time 2025-04-20 18:17:05 [2025-04-20 18:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952055', 'tblTempUsageDetail_20' ) start [2025-04-20 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952055', 'tblTempUsageDetail_20' ) end [2025-04-20 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952055', 'tblTempVendorCDR_20' ) start [2025-04-20 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952055', 'tblTempVendorCDR_20' ) end [2025-04-20 18:17:19] Production.INFO: ProcessCDR(1,14952055,1,1,2) [2025-04-20 18:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952055', 'tblTempUsageDetail_20' ) start [2025-04-20 18:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952055', 'tblTempUsageDetail_20' ) end [2025-04-20 18:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 18:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 18:17:22] Production.INFO: ==15817== Releasing lock... [2025-04-20 18:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 18:17:22] Production.INFO: 43 MB #Memory Used# [2025-04-20 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 15:18:05 [end_date_ymd] => 2025-04-20 18:18:05 [RateCDR] => 1 ) [2025-04-20 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-20 15:18:05' and `end` < '2025-04-20 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-20 18:18:18] Production.INFO: count ==2011 [2025-04-20 18:18:19] Production.ERROR: pbx CDR StartTime 2025-04-20 15:18:05 - End Time 2025-04-20 18:18:05 [2025-04-20 18:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952060', 'tblTempUsageDetail_20' ) start [2025-04-20 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952060', 'tblTempUsageDetail_20' ) end [2025-04-20 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952060', 'tblTempVendorCDR_20' ) start [2025-04-20 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952060', 'tblTempVendorCDR_20' ) end [2025-04-20 18:18:19] Production.INFO: ProcessCDR(1,14952060,1,1,2) [2025-04-20 18:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952060', 'tblTempUsageDetail_20' ) start [2025-04-20 18:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952060', 'tblTempUsageDetail_20' ) end [2025-04-20 18:18:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 18:18:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 18:18:24] Production.INFO: ==15891== Releasing lock... [2025-04-20 18:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 18:18:24] Production.INFO: 43.5 MB #Memory Used# [2025-04-20 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 15:19:05 [end_date_ymd] => 2025-04-20 18:19:05 [RateCDR] => 1 ) [2025-04-20 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-20 15:19:05' and `end` < '2025-04-20 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-20 18:19:18] Production.INFO: count ==2011 [2025-04-20 18:19:18] Production.ERROR: pbx CDR StartTime 2025-04-20 15:19:05 - End Time 2025-04-20 18:19:05 [2025-04-20 18:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 18:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952065', 'tblTempUsageDetail_20' ) start [2025-04-20 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952065', 'tblTempUsageDetail_20' ) end [2025-04-20 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952065', 'tblTempVendorCDR_20' ) start [2025-04-20 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952065', 'tblTempVendorCDR_20' ) end [2025-04-20 18:19:19] Production.INFO: ProcessCDR(1,14952065,1,1,2) [2025-04-20 18:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952065', 'tblTempUsageDetail_20' ) start [2025-04-20 18:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952065', 'tblTempUsageDetail_20' ) end [2025-04-20 18:19:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 18:19:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 18:19:24] Production.INFO: ==15963== Releasing lock... [2025-04-20 18:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 18:19:24] Production.INFO: 43.5 MB #Memory Used# [2025-04-20 18:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 15:20:07 [end_date_ymd] => 2025-04-20 18:20:07 [RateCDR] => 1 ) [2025-04-20 18: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-20 15:20:07' and `end` < '2025-04-20 18: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-20 18:20:20] Production.INFO: count ==2024 [2025-04-20 18:20:20] Production.ERROR: pbx CDR StartTime 2025-04-20 15:20:07 - End Time 2025-04-20 18:20:07 [2025-04-20 18:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952071', 'tblTempUsageDetail_20' ) start [2025-04-20 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952071', 'tblTempUsageDetail_20' ) end [2025-04-20 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952071', 'tblTempVendorCDR_20' ) start [2025-04-20 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952071', 'tblTempVendorCDR_20' ) end [2025-04-20 18:20:20] Production.INFO: ProcessCDR(1,14952071,1,1,2) [2025-04-20 18:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952071', 'tblTempUsageDetail_20' ) start [2025-04-20 18:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952071', 'tblTempUsageDetail_20' ) end [2025-04-20 18:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 18:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 18:20:24] Production.INFO: ==16041== Releasing lock... [2025-04-20 18:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 18:20:24] Production.INFO: 43.5 MB #Memory Used# [2025-04-20 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 15:21:05 [end_date_ymd] => 2025-04-20 18:21:05 [RateCDR] => 1 ) [2025-04-20 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-20 15:21:05' and `end` < '2025-04-20 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-20 18:21:18] Production.INFO: count ==2162 [2025-04-20 18:21:18] Production.ERROR: pbx CDR StartTime 2025-04-20 15:21:05 - End Time 2025-04-20 18:21:05 [2025-04-20 18:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 18:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952076', 'tblTempUsageDetail_20' ) start [2025-04-20 18:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952076', 'tblTempUsageDetail_20' ) end [2025-04-20 18:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952076', 'tblTempVendorCDR_20' ) start [2025-04-20 18:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952076', 'tblTempVendorCDR_20' ) end [2025-04-20 18:21:18] Production.INFO: ProcessCDR(1,14952076,1,1,2) [2025-04-20 18:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952076', 'tblTempUsageDetail_20' ) start [2025-04-20 18:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952076', 'tblTempUsageDetail_20' ) end [2025-04-20 18:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 18:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 18:21:22] Production.INFO: ==16116== Releasing lock... [2025-04-20 18:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 18:21:22] Production.INFO: 44.25 MB #Memory Used# [2025-04-20 18:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 15:22:06 [end_date_ymd] => 2025-04-20 18:22:06 [RateCDR] => 1 ) [2025-04-20 18:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 15:22:06' and `end` < '2025-04-20 18:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 18:22:19] Production.INFO: count ==2168 [2025-04-20 18:22:19] Production.ERROR: pbx CDR StartTime 2025-04-20 15:22:06 - End Time 2025-04-20 18:22:06 [2025-04-20 18:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952081', 'tblTempUsageDetail_20' ) start [2025-04-20 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952081', 'tblTempUsageDetail_20' ) end [2025-04-20 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952081', 'tblTempVendorCDR_20' ) start [2025-04-20 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952081', 'tblTempVendorCDR_20' ) end [2025-04-20 18:22:19] Production.INFO: ProcessCDR(1,14952081,1,1,2) [2025-04-20 18:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952081', 'tblTempUsageDetail_20' ) start [2025-04-20 18:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952081', 'tblTempUsageDetail_20' ) end [2025-04-20 18:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 18:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 18:22:23] Production.INFO: ==16191== Releasing lock... [2025-04-20 18:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 18:22:23] Production.INFO: 44.5 MB #Memory Used# [2025-04-20 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 15:23:05 [end_date_ymd] => 2025-04-20 18:23:05 [RateCDR] => 1 ) [2025-04-20 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-20 15:23:05' and `end` < '2025-04-20 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-20 18:23:18] Production.INFO: count ==2173 [2025-04-20 18:23:19] Production.ERROR: pbx CDR StartTime 2025-04-20 15:23:05 - End Time 2025-04-20 18:23:05 [2025-04-20 18:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952086', 'tblTempUsageDetail_20' ) start [2025-04-20 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952086', 'tblTempUsageDetail_20' ) end [2025-04-20 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952086', 'tblTempVendorCDR_20' ) start [2025-04-20 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952086', 'tblTempVendorCDR_20' ) end [2025-04-20 18:23:19] Production.INFO: ProcessCDR(1,14952086,1,1,2) [2025-04-20 18:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952086', 'tblTempUsageDetail_20' ) start [2025-04-20 18:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952086', 'tblTempUsageDetail_20' ) end [2025-04-20 18:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 18:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 18:23:22] Production.INFO: ==16272== Releasing lock... [2025-04-20 18:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 18:23:22] Production.INFO: 44.75 MB #Memory Used# [2025-04-20 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 15:24:05 [end_date_ymd] => 2025-04-20 18:24:05 [RateCDR] => 1 ) [2025-04-20 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-20 15:24:05' and `end` < '2025-04-20 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-20 18:24:18] Production.INFO: count ==2213 [2025-04-20 18:24:19] Production.ERROR: pbx CDR StartTime 2025-04-20 15:24:05 - End Time 2025-04-20 18:24:05 [2025-04-20 18:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952091', 'tblTempUsageDetail_20' ) start [2025-04-20 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952091', 'tblTempUsageDetail_20' ) end [2025-04-20 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952091', 'tblTempVendorCDR_20' ) start [2025-04-20 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952091', 'tblTempVendorCDR_20' ) end [2025-04-20 18:24:19] Production.INFO: ProcessCDR(1,14952091,1,1,2) [2025-04-20 18:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952091', 'tblTempUsageDetail_20' ) start [2025-04-20 18:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952091', 'tblTempUsageDetail_20' ) end [2025-04-20 18:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 18:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 18:24:22] Production.INFO: ==16381== Releasing lock... [2025-04-20 18:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 18:24:22] Production.INFO: 44.75 MB #Memory Used# [2025-04-20 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 15:25:05 [end_date_ymd] => 2025-04-20 18:25:05 [RateCDR] => 1 ) [2025-04-20 18:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 15:25:05' and `end` < '2025-04-20 18:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 18:25:18] Production.INFO: count ==2216 [2025-04-20 18:25:19] Production.ERROR: pbx CDR StartTime 2025-04-20 15:25:05 - End Time 2025-04-20 18:25:05 [2025-04-20 18:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952096', 'tblTempUsageDetail_20' ) start [2025-04-20 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952096', 'tblTempUsageDetail_20' ) end [2025-04-20 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952096', 'tblTempVendorCDR_20' ) start [2025-04-20 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952096', 'tblTempVendorCDR_20' ) end [2025-04-20 18:25:19] Production.INFO: ProcessCDR(1,14952096,1,1,2) [2025-04-20 18:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952096', 'tblTempUsageDetail_20' ) start [2025-04-20 18:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952096', 'tblTempUsageDetail_20' ) end [2025-04-20 18:25:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 18:25:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 18:25:24] Production.INFO: ==16453== Releasing lock... [2025-04-20 18:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 18:25:24] Production.INFO: 45 MB #Memory Used# [2025-04-20 18:26:21] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 15:26:21 [end_date_ymd] => 2025-04-20 18:26:21 [RateCDR] => 1 ) [2025-04-20 18:26:21] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 15:26:21' and `end` < '2025-04-20 18:26:21' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 18:26:34] Production.INFO: count ==2243 [2025-04-20 18:27:00] Production.ERROR: pbx CDR StartTime 2025-04-20 15:26:21 - End Time 2025-04-20 18:26:21 [2025-04-20 18:27:00] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 18:27:00] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952101', 'tblTempUsageDetail_20' ) start [2025-04-20 18:27:00] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952101', 'tblTempUsageDetail_20' ) end [2025-04-20 18:27:00] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952101', 'tblTempVendorCDR_20' ) start [2025-04-20 18:27:00] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952101', 'tblTempVendorCDR_20' ) end [2025-04-20 18:27:00] Production.INFO: ProcessCDR(1,14952101,1,1,2) [2025-04-20 18:27:00] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:27:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:27:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:28:01] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:28:01] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952101', 'tblTempUsageDetail_20' ) start [2025-04-20 18:28:02] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952101', 'tblTempUsageDetail_20' ) end [2025-04-20 18:28:02] Production.ERROR: pbx prc_insertCDR start [2025-04-20 18:28:02] Production.ERROR: pbx prc_insertCDR end [2025-04-20 18:28:02] Production.INFO: ==16526== Releasing lock... [2025-04-20 18:28:02] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 18:28:02] Production.INFO: 45 MB #Memory Used# [2025-04-20 18:28:21] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 15:28:21 [end_date_ymd] => 2025-04-20 18:28:21 [RateCDR] => 1 ) [2025-04-20 18:28:21] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 15:28:21' and `end` < '2025-04-20 18:28:21' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 18:28:34] Production.INFO: count ==2261 [2025-04-20 18:28:53] Production.ERROR: pbx CDR StartTime 2025-04-20 15:28:21 - End Time 2025-04-20 18:28:21 [2025-04-20 18:28:53] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 18:28:53] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952108', 'tblTempUsageDetail_20' ) start [2025-04-20 18:28:56] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952108', 'tblTempUsageDetail_20' ) end [2025-04-20 18:28:56] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952108', 'tblTempVendorCDR_20' ) start [2025-04-20 18:28:56] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952108', 'tblTempVendorCDR_20' ) end [2025-04-20 18:28:56] Production.INFO: ProcessCDR(1,14952108,1,1,2) [2025-04-20 18:28:56] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:29:00] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:29:00] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:29:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:29:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952108', 'tblTempUsageDetail_20' ) start [2025-04-20 18:29:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952108', 'tblTempUsageDetail_20' ) end [2025-04-20 18:29:32] Production.ERROR: pbx prc_insertCDR start [2025-04-20 18:29:32] Production.ERROR: pbx prc_insertCDR end [2025-04-20 18:29:32] Production.INFO: ==16661== Releasing lock... [2025-04-20 18:29:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 18:29:32] Production.INFO: 45.25 MB #Memory Used# [2025-04-20 18:30:28] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 15:30:28 [end_date_ymd] => 2025-04-20 18:30:28 [RateCDR] => 1 ) [2025-04-20 18:30: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-20 15:30:28' and `end` < '2025-04-20 18:30: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-20 18:30:41] Production.INFO: count ==2330 [2025-04-20 18:31:27] Production.ERROR: pbx CDR StartTime 2025-04-20 15:30:28 - End Time 2025-04-20 18:30:28 [2025-04-20 18:31:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 18:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952117', 'tblTempUsageDetail_20' ) start [2025-04-20 18:31:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952117', 'tblTempUsageDetail_20' ) end [2025-04-20 18:31:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952117', 'tblTempVendorCDR_20' ) start [2025-04-20 18:31:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952117', 'tblTempVendorCDR_20' ) end [2025-04-20 18:31:39] Production.INFO: ProcessCDR(1,14952117,1,1,2) [2025-04-20 18:31:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:31:46] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:31:46] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:34:13] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:34:13] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952117', 'tblTempUsageDetail_20' ) start [2025-04-20 18:34:15] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952117', 'tblTempUsageDetail_20' ) end [2025-04-20 18:34:15] Production.ERROR: pbx prc_insertCDR start [2025-04-20 18:34:15] Production.ERROR: pbx prc_insertCDR end [2025-04-20 18:34:17] Production.INFO: ==16809== Releasing lock... [2025-04-20 18:34:17] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 18:34:17] Production.INFO: 45.5 MB #Memory Used# [2025-04-20 18:35:32] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 15:35:32 [end_date_ymd] => 2025-04-20 18:35:32 [RateCDR] => 1 ) [2025-04-20 18:35:32] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 15:35:32' and `end` < '2025-04-20 18:35:32' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 18:35:45] Production.INFO: count ==2370 [2025-04-20 18:36:09] Production.ERROR: pbx CDR StartTime 2025-04-20 15:35:32 - End Time 2025-04-20 18:35:32 [2025-04-20 18:36:09] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 18:36:09] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952134', 'tblTempUsageDetail_20' ) start [2025-04-20 18:36:09] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952134', 'tblTempUsageDetail_20' ) end [2025-04-20 18:36:09] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952134', 'tblTempVendorCDR_20' ) start [2025-04-20 18:36:09] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952134', 'tblTempVendorCDR_20' ) end [2025-04-20 18:36:09] Production.INFO: ProcessCDR(1,14952134,1,1,2) [2025-04-20 18:36:09] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:36:13] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:36:13] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:36:17] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:36:17] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952134', 'tblTempUsageDetail_20' ) start [2025-04-20 18:36:17] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952134', 'tblTempUsageDetail_20' ) end [2025-04-20 18:36:17] Production.ERROR: pbx prc_insertCDR start [2025-04-20 18:36:17] Production.ERROR: pbx prc_insertCDR end [2025-04-20 18:36:17] Production.INFO: ==17141== Releasing lock... [2025-04-20 18:36:17] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 18:36:17] Production.INFO: 46 MB #Memory Used# [2025-04-20 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 15:37:05 [end_date_ymd] => 2025-04-20 18:37:05 [RateCDR] => 1 ) [2025-04-20 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-20 15:37:05' and `end` < '2025-04-20 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-20 18:37:18] Production.INFO: count ==2369 [2025-04-20 18:37:19] Production.ERROR: pbx CDR StartTime 2025-04-20 15:37:05 - End Time 2025-04-20 18:37:05 [2025-04-20 18:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952142', 'tblTempUsageDetail_20' ) start [2025-04-20 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952142', 'tblTempUsageDetail_20' ) end [2025-04-20 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952142', 'tblTempVendorCDR_20' ) start [2025-04-20 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952142', 'tblTempVendorCDR_20' ) end [2025-04-20 18:37:19] Production.INFO: ProcessCDR(1,14952142,1,1,2) [2025-04-20 18:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952142', 'tblTempUsageDetail_20' ) start [2025-04-20 18:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952142', 'tblTempUsageDetail_20' ) end [2025-04-20 18:37:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 18:37:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 18:37:24] Production.INFO: ==17288== Releasing lock... [2025-04-20 18:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 18:37:24] Production.INFO: 45.75 MB #Memory Used# [2025-04-20 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 15:38:05 [end_date_ymd] => 2025-04-20 18:38:05 [RateCDR] => 1 ) [2025-04-20 18:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 15:38:05' and `end` < '2025-04-20 18:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 18:38:18] Production.INFO: count ==2366 [2025-04-20 18:38:19] Production.ERROR: pbx CDR StartTime 2025-04-20 15:38:05 - End Time 2025-04-20 18:38:05 [2025-04-20 18:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952147', 'tblTempUsageDetail_20' ) start [2025-04-20 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952147', 'tblTempUsageDetail_20' ) end [2025-04-20 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952147', 'tblTempVendorCDR_20' ) start [2025-04-20 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952147', 'tblTempVendorCDR_20' ) end [2025-04-20 18:38:19] Production.INFO: ProcessCDR(1,14952147,1,1,2) [2025-04-20 18:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952147', 'tblTempUsageDetail_20' ) start [2025-04-20 18:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952147', 'tblTempUsageDetail_20' ) end [2025-04-20 18:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 18:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 18:38:23] Production.INFO: ==17362== Releasing lock... [2025-04-20 18:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 18:38:23] Production.INFO: 45.75 MB #Memory Used# [2025-04-20 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 15:39:05 [end_date_ymd] => 2025-04-20 18:39:05 [RateCDR] => 1 ) [2025-04-20 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-20 15:39:05' and `end` < '2025-04-20 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-20 18:39:18] Production.INFO: count ==2363 [2025-04-20 18:39:18] Production.ERROR: pbx CDR StartTime 2025-04-20 15:39:05 - End Time 2025-04-20 18:39:05 [2025-04-20 18:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 18:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952152', 'tblTempUsageDetail_20' ) start [2025-04-20 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952152', 'tblTempUsageDetail_20' ) end [2025-04-20 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952152', 'tblTempVendorCDR_20' ) start [2025-04-20 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952152', 'tblTempVendorCDR_20' ) end [2025-04-20 18:39:19] Production.INFO: ProcessCDR(1,14952152,1,1,2) [2025-04-20 18:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952152', 'tblTempUsageDetail_20' ) start [2025-04-20 18:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952152', 'tblTempUsageDetail_20' ) end [2025-04-20 18:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 18:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 18:39:22] Production.INFO: ==17473== Releasing lock... [2025-04-20 18:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 18:39:22] Production.INFO: 45.75 MB #Memory Used# [2025-04-20 18:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 15:40:06 [end_date_ymd] => 2025-04-20 18:40:06 [RateCDR] => 1 ) [2025-04-20 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-20 15:40:06' and `end` < '2025-04-20 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-20 18:40:19] Production.INFO: count ==2357 [2025-04-20 18:40:19] Production.ERROR: pbx CDR StartTime 2025-04-20 15:40:06 - End Time 2025-04-20 18:40:06 [2025-04-20 18:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 18:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952158', 'tblTempUsageDetail_20' ) start [2025-04-20 18:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952158', 'tblTempUsageDetail_20' ) end [2025-04-20 18:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952158', 'tblTempVendorCDR_20' ) start [2025-04-20 18:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952158', 'tblTempVendorCDR_20' ) end [2025-04-20 18:40:19] Production.INFO: ProcessCDR(1,14952158,1,1,2) [2025-04-20 18:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952158', 'tblTempUsageDetail_20' ) start [2025-04-20 18:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952158', 'tblTempUsageDetail_20' ) end [2025-04-20 18:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 18:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 18:40:23] Production.INFO: ==17546== Releasing lock... [2025-04-20 18:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 18:40:23] Production.INFO: 46 MB #Memory Used# [2025-04-20 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 15:41:05 [end_date_ymd] => 2025-04-20 18:41:05 [RateCDR] => 1 ) [2025-04-20 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-20 15:41:05' and `end` < '2025-04-20 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-20 18:41:18] Production.INFO: count ==2379 [2025-04-20 18:41:19] Production.ERROR: pbx CDR StartTime 2025-04-20 15:41:05 - End Time 2025-04-20 18:41:05 [2025-04-20 18:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952163', 'tblTempUsageDetail_20' ) start [2025-04-20 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952163', 'tblTempUsageDetail_20' ) end [2025-04-20 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952163', 'tblTempVendorCDR_20' ) start [2025-04-20 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952163', 'tblTempVendorCDR_20' ) end [2025-04-20 18:41:19] Production.INFO: ProcessCDR(1,14952163,1,1,2) [2025-04-20 18:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952163', 'tblTempUsageDetail_20' ) start [2025-04-20 18:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952163', 'tblTempUsageDetail_20' ) end [2025-04-20 18:41:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 18:41:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 18:41:23] Production.INFO: ==17620== Releasing lock... [2025-04-20 18:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 18:41:23] Production.INFO: 46 MB #Memory Used# [2025-04-20 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 15:42:05 [end_date_ymd] => 2025-04-20 18:42:05 [RateCDR] => 1 ) [2025-04-20 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-20 15:42:05' and `end` < '2025-04-20 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-20 18:42:18] Production.INFO: count ==2368 [2025-04-20 18:42:19] Production.ERROR: pbx CDR StartTime 2025-04-20 15:42:05 - End Time 2025-04-20 18:42:05 [2025-04-20 18:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952168', 'tblTempUsageDetail_20' ) start [2025-04-20 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952168', 'tblTempUsageDetail_20' ) end [2025-04-20 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952168', 'tblTempVendorCDR_20' ) start [2025-04-20 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952168', 'tblTempVendorCDR_20' ) end [2025-04-20 18:42:19] Production.INFO: ProcessCDR(1,14952168,1,1,2) [2025-04-20 18:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952168', 'tblTempUsageDetail_20' ) start [2025-04-20 18:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952168', 'tblTempUsageDetail_20' ) end [2025-04-20 18:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 18:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 18:42:22] Production.INFO: ==17692== Releasing lock... [2025-04-20 18:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 18:42:22] Production.INFO: 46 MB #Memory Used# [2025-04-20 18:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 15:43:06 [end_date_ymd] => 2025-04-20 18:43:06 [RateCDR] => 1 ) [2025-04-20 18:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 15:43:06' and `end` < '2025-04-20 18:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 18:43:18] Production.INFO: count ==2368 [2025-04-20 18:43:19] Production.ERROR: pbx CDR StartTime 2025-04-20 15:43:06 - End Time 2025-04-20 18:43:06 [2025-04-20 18:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952173', 'tblTempUsageDetail_20' ) start [2025-04-20 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952173', 'tblTempUsageDetail_20' ) end [2025-04-20 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952173', 'tblTempVendorCDR_20' ) start [2025-04-20 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952173', 'tblTempVendorCDR_20' ) end [2025-04-20 18:43:19] Production.INFO: ProcessCDR(1,14952173,1,1,2) [2025-04-20 18:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952173', 'tblTempUsageDetail_20' ) start [2025-04-20 18:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952173', 'tblTempUsageDetail_20' ) end [2025-04-20 18:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 18:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 18:43:23] Production.INFO: ==17773== Releasing lock... [2025-04-20 18:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 18:43:23] Production.INFO: 46 MB #Memory Used# [2025-04-20 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 15:44:05 [end_date_ymd] => 2025-04-20 18:44:05 [RateCDR] => 1 ) [2025-04-20 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-20 15:44:05' and `end` < '2025-04-20 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-20 18:44:18] Production.INFO: count ==2365 [2025-04-20 18:44:19] Production.ERROR: pbx CDR StartTime 2025-04-20 15:44:05 - End Time 2025-04-20 18:44:05 [2025-04-20 18:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952178', 'tblTempUsageDetail_20' ) start [2025-04-20 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952178', 'tblTempUsageDetail_20' ) end [2025-04-20 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952178', 'tblTempVendorCDR_20' ) start [2025-04-20 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952178', 'tblTempVendorCDR_20' ) end [2025-04-20 18:44:19] Production.INFO: ProcessCDR(1,14952178,1,1,2) [2025-04-20 18:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952178', 'tblTempUsageDetail_20' ) start [2025-04-20 18:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952178', 'tblTempUsageDetail_20' ) end [2025-04-20 18:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 18:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 18:44:23] Production.INFO: ==17846== Releasing lock... [2025-04-20 18:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 18:44:23] Production.INFO: 45.75 MB #Memory Used# [2025-04-20 18:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 15:45:06 [end_date_ymd] => 2025-04-20 18:45:06 [RateCDR] => 1 ) [2025-04-20 18:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 15:45:06' and `end` < '2025-04-20 18:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 18:45:19] Production.INFO: count ==2369 [2025-04-20 18:45:19] Production.ERROR: pbx CDR StartTime 2025-04-20 15:45:06 - End Time 2025-04-20 18:45:06 [2025-04-20 18:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952183', 'tblTempUsageDetail_20' ) start [2025-04-20 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952183', 'tblTempUsageDetail_20' ) end [2025-04-20 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952183', 'tblTempVendorCDR_20' ) start [2025-04-20 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952183', 'tblTempVendorCDR_20' ) end [2025-04-20 18:45:20] Production.INFO: ProcessCDR(1,14952183,1,1,2) [2025-04-20 18:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952183', 'tblTempUsageDetail_20' ) start [2025-04-20 18:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952183', 'tblTempUsageDetail_20' ) end [2025-04-20 18:45:25] Production.ERROR: pbx prc_insertCDR start [2025-04-20 18:45:25] Production.ERROR: pbx prc_insertCDR end [2025-04-20 18:45:25] Production.INFO: ==17926== Releasing lock... [2025-04-20 18:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 18:45:25] Production.INFO: 46 MB #Memory Used# [2025-04-20 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 15:46:05 [end_date_ymd] => 2025-04-20 18:46:05 [RateCDR] => 1 ) [2025-04-20 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-20 15:46:05' and `end` < '2025-04-20 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-20 18:46:18] Production.INFO: count ==2373 [2025-04-20 18:46:19] Production.ERROR: pbx CDR StartTime 2025-04-20 15:46:05 - End Time 2025-04-20 18:46:05 [2025-04-20 18:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952188', 'tblTempUsageDetail_20' ) start [2025-04-20 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952188', 'tblTempUsageDetail_20' ) end [2025-04-20 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952188', 'tblTempVendorCDR_20' ) start [2025-04-20 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952188', 'tblTempVendorCDR_20' ) end [2025-04-20 18:46:19] Production.INFO: ProcessCDR(1,14952188,1,1,2) [2025-04-20 18:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952188', 'tblTempUsageDetail_20' ) start [2025-04-20 18:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952188', 'tblTempUsageDetail_20' ) end [2025-04-20 18:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 18:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 18:46:22] Production.INFO: ==18007== Releasing lock... [2025-04-20 18:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 18:46:22] Production.INFO: 46 MB #Memory Used# [2025-04-20 18:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 15:47:06 [end_date_ymd] => 2025-04-20 18:47:06 [RateCDR] => 1 ) [2025-04-20 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-20 15:47:06' and `end` < '2025-04-20 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-20 18:47:18] Production.INFO: count ==2371 [2025-04-20 18:47:19] Production.ERROR: pbx CDR StartTime 2025-04-20 15:47:06 - End Time 2025-04-20 18:47:06 [2025-04-20 18:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952193', 'tblTempUsageDetail_20' ) start [2025-04-20 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952193', 'tblTempUsageDetail_20' ) end [2025-04-20 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952193', 'tblTempVendorCDR_20' ) start [2025-04-20 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952193', 'tblTempVendorCDR_20' ) end [2025-04-20 18:47:19] Production.INFO: ProcessCDR(1,14952193,1,1,2) [2025-04-20 18:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952193', 'tblTempUsageDetail_20' ) start [2025-04-20 18:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952193', 'tblTempUsageDetail_20' ) end [2025-04-20 18:47:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 18:47:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 18:47:23] Production.INFO: ==18082== Releasing lock... [2025-04-20 18:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 18:47:23] Production.INFO: 46 MB #Memory Used# [2025-04-20 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 15:48:05 [end_date_ymd] => 2025-04-20 18:48:05 [RateCDR] => 1 ) [2025-04-20 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-20 15:48:05' and `end` < '2025-04-20 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-20 18:48:18] Production.INFO: count ==2369 [2025-04-20 18:48:19] Production.ERROR: pbx CDR StartTime 2025-04-20 15:48:05 - End Time 2025-04-20 18:48:05 [2025-04-20 18:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952198', 'tblTempUsageDetail_20' ) start [2025-04-20 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952198', 'tblTempUsageDetail_20' ) end [2025-04-20 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952198', 'tblTempVendorCDR_20' ) start [2025-04-20 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952198', 'tblTempVendorCDR_20' ) end [2025-04-20 18:48:19] Production.INFO: ProcessCDR(1,14952198,1,1,2) [2025-04-20 18:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952198', 'tblTempUsageDetail_20' ) start [2025-04-20 18:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952198', 'tblTempUsageDetail_20' ) end [2025-04-20 18:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 18:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 18:48:22] Production.INFO: ==18153== Releasing lock... [2025-04-20 18:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 18:48:22] Production.INFO: 46 MB #Memory Used# [2025-04-20 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 15:49:05 [end_date_ymd] => 2025-04-20 18:49:05 [RateCDR] => 1 ) [2025-04-20 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-20 15:49:05' and `end` < '2025-04-20 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-20 18:49:18] Production.INFO: count ==2369 [2025-04-20 18:49:19] Production.ERROR: pbx CDR StartTime 2025-04-20 15:49:05 - End Time 2025-04-20 18:49:05 [2025-04-20 18:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952203', 'tblTempUsageDetail_20' ) start [2025-04-20 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952203', 'tblTempUsageDetail_20' ) end [2025-04-20 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952203', 'tblTempVendorCDR_20' ) start [2025-04-20 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952203', 'tblTempVendorCDR_20' ) end [2025-04-20 18:49:19] Production.INFO: ProcessCDR(1,14952203,1,1,2) [2025-04-20 18:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952203', 'tblTempUsageDetail_20' ) start [2025-04-20 18:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952203', 'tblTempUsageDetail_20' ) end [2025-04-20 18:49:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 18:49:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 18:49:24] Production.INFO: ==18230== Releasing lock... [2025-04-20 18:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 18:49:24] Production.INFO: 46 MB #Memory Used# [2025-04-20 18:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 15:50:05 [end_date_ymd] => 2025-04-20 18:50:05 [RateCDR] => 1 ) [2025-04-20 18: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-20 15:50:05' and `end` < '2025-04-20 18: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-20 18:50:18] Production.INFO: count ==2366 [2025-04-20 18:50:19] Production.ERROR: pbx CDR StartTime 2025-04-20 15:50:05 - End Time 2025-04-20 18:50:05 [2025-04-20 18:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952208', 'tblTempUsageDetail_20' ) start [2025-04-20 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952208', 'tblTempUsageDetail_20' ) end [2025-04-20 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952208', 'tblTempVendorCDR_20' ) start [2025-04-20 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952208', 'tblTempVendorCDR_20' ) end [2025-04-20 18:50:19] Production.INFO: ProcessCDR(1,14952208,1,1,2) [2025-04-20 18:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952208', 'tblTempUsageDetail_20' ) start [2025-04-20 18:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952208', 'tblTempUsageDetail_20' ) end [2025-04-20 18:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 18:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 18:50:22] Production.INFO: ==18306== Releasing lock... [2025-04-20 18:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 18:50:22] Production.INFO: 45.75 MB #Memory Used# [2025-04-20 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 15:51:05 [end_date_ymd] => 2025-04-20 18:51:05 [RateCDR] => 1 ) [2025-04-20 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-20 15:51:05' and `end` < '2025-04-20 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-20 18:51:18] Production.INFO: count ==2372 [2025-04-20 18:51:18] Production.ERROR: pbx CDR StartTime 2025-04-20 15:51:05 - End Time 2025-04-20 18:51:05 [2025-04-20 18:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 18:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952214', 'tblTempUsageDetail_20' ) start [2025-04-20 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952214', 'tblTempUsageDetail_20' ) end [2025-04-20 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952214', 'tblTempVendorCDR_20' ) start [2025-04-20 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952214', 'tblTempVendorCDR_20' ) end [2025-04-20 18:51:19] Production.INFO: ProcessCDR(1,14952214,1,1,2) [2025-04-20 18:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952214', 'tblTempUsageDetail_20' ) start [2025-04-20 18:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952214', 'tblTempUsageDetail_20' ) end [2025-04-20 18:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 18:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 18:51:22] Production.INFO: ==18381== Releasing lock... [2025-04-20 18:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 18:51:22] Production.INFO: 46 MB #Memory Used# [2025-04-20 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 15:52:05 [end_date_ymd] => 2025-04-20 18:52:05 [RateCDR] => 1 ) [2025-04-20 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-20 15:52:05' and `end` < '2025-04-20 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-20 18:52:18] Production.INFO: count ==2368 [2025-04-20 18:52:19] Production.ERROR: pbx CDR StartTime 2025-04-20 15:52:05 - End Time 2025-04-20 18:52:05 [2025-04-20 18:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952219', 'tblTempUsageDetail_20' ) start [2025-04-20 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952219', 'tblTempUsageDetail_20' ) end [2025-04-20 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952219', 'tblTempVendorCDR_20' ) start [2025-04-20 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952219', 'tblTempVendorCDR_20' ) end [2025-04-20 18:52:19] Production.INFO: ProcessCDR(1,14952219,1,1,2) [2025-04-20 18:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952219', 'tblTempUsageDetail_20' ) start [2025-04-20 18:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952219', 'tblTempUsageDetail_20' ) end [2025-04-20 18:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 18:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 18:52:22] Production.INFO: ==18469== Releasing lock... [2025-04-20 18:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 18:52:22] Production.INFO: 46 MB #Memory Used# [2025-04-20 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 15:53:05 [end_date_ymd] => 2025-04-20 18:53:05 [RateCDR] => 1 ) [2025-04-20 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-20 15:53:05' and `end` < '2025-04-20 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-20 18:53:17] Production.INFO: count ==2361 [2025-04-20 18:53:18] Production.ERROR: pbx CDR StartTime 2025-04-20 15:53:05 - End Time 2025-04-20 18:53:05 [2025-04-20 18:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952224', 'tblTempUsageDetail_20' ) start [2025-04-20 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952224', 'tblTempUsageDetail_20' ) end [2025-04-20 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952224', 'tblTempVendorCDR_20' ) start [2025-04-20 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952224', 'tblTempVendorCDR_20' ) end [2025-04-20 18:53:18] Production.INFO: ProcessCDR(1,14952224,1,1,2) [2025-04-20 18:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952224', 'tblTempUsageDetail_20' ) start [2025-04-20 18:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952224', 'tblTempUsageDetail_20' ) end [2025-04-20 18:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 18:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 18:53:22] Production.INFO: ==18543== Releasing lock... [2025-04-20 18:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 18:53:22] Production.INFO: 45.75 MB #Memory Used# [2025-04-20 18:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 15:54:06 [end_date_ymd] => 2025-04-20 18:54:06 [RateCDR] => 1 ) [2025-04-20 18:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 15:54:06' and `end` < '2025-04-20 18:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 18:54:19] Production.INFO: count ==2355 [2025-04-20 18:54:19] Production.ERROR: pbx CDR StartTime 2025-04-20 15:54:06 - End Time 2025-04-20 18:54:06 [2025-04-20 18:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952229', 'tblTempUsageDetail_20' ) start [2025-04-20 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952229', 'tblTempUsageDetail_20' ) end [2025-04-20 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952229', 'tblTempVendorCDR_20' ) start [2025-04-20 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952229', 'tblTempVendorCDR_20' ) end [2025-04-20 18:54:19] Production.INFO: ProcessCDR(1,14952229,1,1,2) [2025-04-20 18:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952229', 'tblTempUsageDetail_20' ) start [2025-04-20 18:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952229', 'tblTempUsageDetail_20' ) end [2025-04-20 18:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 18:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 18:54:23] Production.INFO: ==18617== Releasing lock... [2025-04-20 18:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 18:54:23] Production.INFO: 46 MB #Memory Used# [2025-04-20 18:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 15:55:06 [end_date_ymd] => 2025-04-20 18:55:06 [RateCDR] => 1 ) [2025-04-20 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-20 15:55:06' and `end` < '2025-04-20 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-20 18:55:18] Production.INFO: count ==2354 [2025-04-20 18:55:19] Production.ERROR: pbx CDR StartTime 2025-04-20 15:55:06 - End Time 2025-04-20 18:55:06 [2025-04-20 18:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952234', 'tblTempUsageDetail_20' ) start [2025-04-20 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952234', 'tblTempUsageDetail_20' ) end [2025-04-20 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952234', 'tblTempVendorCDR_20' ) start [2025-04-20 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952234', 'tblTempVendorCDR_20' ) end [2025-04-20 18:55:19] Production.INFO: ProcessCDR(1,14952234,1,1,2) [2025-04-20 18:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952234', 'tblTempUsageDetail_20' ) start [2025-04-20 18:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952234', 'tblTempUsageDetail_20' ) end [2025-04-20 18:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 18:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 18:55:23] Production.INFO: ==18726== Releasing lock... [2025-04-20 18:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 18:55:23] Production.INFO: 45.75 MB #Memory Used# [2025-04-20 18:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 15:56:06 [end_date_ymd] => 2025-04-20 18:56:06 [RateCDR] => 1 ) [2025-04-20 18:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 15:56:06' and `end` < '2025-04-20 18:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 18:56:18] Production.INFO: count ==2355 [2025-04-20 18:56:19] Production.ERROR: pbx CDR StartTime 2025-04-20 15:56:06 - End Time 2025-04-20 18:56:06 [2025-04-20 18:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952239', 'tblTempUsageDetail_20' ) start [2025-04-20 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952239', 'tblTempUsageDetail_20' ) end [2025-04-20 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952239', 'tblTempVendorCDR_20' ) start [2025-04-20 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952239', 'tblTempVendorCDR_20' ) end [2025-04-20 18:56:19] Production.INFO: ProcessCDR(1,14952239,1,1,2) [2025-04-20 18:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952239', 'tblTempUsageDetail_20' ) start [2025-04-20 18:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952239', 'tblTempUsageDetail_20' ) end [2025-04-20 18:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 18:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 18:56:23] Production.INFO: ==18806== Releasing lock... [2025-04-20 18:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 18:56:23] Production.INFO: 46 MB #Memory Used# [2025-04-20 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 15:57:05 [end_date_ymd] => 2025-04-20 18:57:05 [RateCDR] => 1 ) [2025-04-20 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-20 15:57:05' and `end` < '2025-04-20 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-20 18:57:18] Production.INFO: count ==2357 [2025-04-20 18:57:19] Production.ERROR: pbx CDR StartTime 2025-04-20 15:57:05 - End Time 2025-04-20 18:57:05 [2025-04-20 18:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952244', 'tblTempUsageDetail_20' ) start [2025-04-20 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952244', 'tblTempUsageDetail_20' ) end [2025-04-20 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952244', 'tblTempVendorCDR_20' ) start [2025-04-20 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952244', 'tblTempVendorCDR_20' ) end [2025-04-20 18:57:19] Production.INFO: ProcessCDR(1,14952244,1,1,2) [2025-04-20 18:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952244', 'tblTempUsageDetail_20' ) start [2025-04-20 18:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952244', 'tblTempUsageDetail_20' ) end [2025-04-20 18:57:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 18:57:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 18:57:24] Production.INFO: ==18881== Releasing lock... [2025-04-20 18:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 18:57:24] Production.INFO: 46 MB #Memory Used# [2025-04-20 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 15:58:05 [end_date_ymd] => 2025-04-20 18:58:05 [RateCDR] => 1 ) [2025-04-20 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-20 15:58:05' and `end` < '2025-04-20 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-20 18:58:18] Production.INFO: count ==2358 [2025-04-20 18:58:18] Production.ERROR: pbx CDR StartTime 2025-04-20 15:58:05 - End Time 2025-04-20 18:58:05 [2025-04-20 18:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 18:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952249', 'tblTempUsageDetail_20' ) start [2025-04-20 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952249', 'tblTempUsageDetail_20' ) end [2025-04-20 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952249', 'tblTempVendorCDR_20' ) start [2025-04-20 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952249', 'tblTempVendorCDR_20' ) end [2025-04-20 18:58:19] Production.INFO: ProcessCDR(1,14952249,1,1,2) [2025-04-20 18:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952249', 'tblTempUsageDetail_20' ) start [2025-04-20 18:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952249', 'tblTempUsageDetail_20' ) end [2025-04-20 18:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 18:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 18:58:22] Production.INFO: ==18953== Releasing lock... [2025-04-20 18:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 18:58:22] Production.INFO: 46 MB #Memory Used# [2025-04-20 18:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 15:59:04 [end_date_ymd] => 2025-04-20 18:59:04 [RateCDR] => 1 ) [2025-04-20 18: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-20 15:59:04' and `end` < '2025-04-20 18: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-20 18:59:17] Production.INFO: count ==2361 [2025-04-20 18:59:18] Production.ERROR: pbx CDR StartTime 2025-04-20 15:59:04 - End Time 2025-04-20 18:59:04 [2025-04-20 18:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952254', 'tblTempUsageDetail_20' ) start [2025-04-20 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952254', 'tblTempUsageDetail_20' ) end [2025-04-20 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952254', 'tblTempVendorCDR_20' ) start [2025-04-20 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952254', 'tblTempVendorCDR_20' ) end [2025-04-20 18:59:18] Production.INFO: ProcessCDR(1,14952254,1,1,2) [2025-04-20 18:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 18:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 18:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952254', 'tblTempUsageDetail_20' ) start [2025-04-20 18:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952254', 'tblTempUsageDetail_20' ) end [2025-04-20 18:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 18:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 18:59:23] Production.INFO: ==19048== Releasing lock... [2025-04-20 18:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 18:59:23] Production.INFO: 46 MB #Memory Used# [2025-04-20 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 16:00:06 [end_date_ymd] => 2025-04-20 19:00:06 [RateCDR] => 1 ) [2025-04-20 19:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 16:00:06' and `end` < '2025-04-20 19:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 19:00:19] Production.INFO: count ==2361 [2025-04-20 19:00:20] Production.ERROR: pbx CDR StartTime 2025-04-20 16:00:06 - End Time 2025-04-20 19:00:06 [2025-04-20 19:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952260', 'tblTempUsageDetail_20' ) start [2025-04-20 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952260', 'tblTempUsageDetail_20' ) end [2025-04-20 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952260', 'tblTempVendorCDR_20' ) start [2025-04-20 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952260', 'tblTempVendorCDR_20' ) end [2025-04-20 19:00:20] Production.INFO: ProcessCDR(1,14952260,1,1,2) [2025-04-20 19:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952260', 'tblTempUsageDetail_20' ) start [2025-04-20 19:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952260', 'tblTempUsageDetail_20' ) end [2025-04-20 19:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 19:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 19:00:23] Production.INFO: ==19126== Releasing lock... [2025-04-20 19:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 19:00:23] Production.INFO: 45.75 MB #Memory Used# [2025-04-20 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 16:01:05 [end_date_ymd] => 2025-04-20 19:01:05 [RateCDR] => 1 ) [2025-04-20 19:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 16:01:05' and `end` < '2025-04-20 19:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 19:01:18] Production.INFO: count ==2366 [2025-04-20 19:01:19] Production.ERROR: pbx CDR StartTime 2025-04-20 16:01:05 - End Time 2025-04-20 19:01:05 [2025-04-20 19:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952265', 'tblTempUsageDetail_20' ) start [2025-04-20 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952265', 'tblTempUsageDetail_20' ) end [2025-04-20 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952265', 'tblTempVendorCDR_20' ) start [2025-04-20 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952265', 'tblTempVendorCDR_20' ) end [2025-04-20 19:01:19] Production.INFO: ProcessCDR(1,14952265,1,1,2) [2025-04-20 19:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952265', 'tblTempUsageDetail_20' ) start [2025-04-20 19:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952265', 'tblTempUsageDetail_20' ) end [2025-04-20 19:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 19:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 19:01:23] Production.INFO: ==19212== Releasing lock... [2025-04-20 19:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 19:01:23] Production.INFO: 45.75 MB #Memory Used# [2025-04-20 19:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 16:02:05 [end_date_ymd] => 2025-04-20 19:02:05 [RateCDR] => 1 ) [2025-04-20 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-20 16:02:05' and `end` < '2025-04-20 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-20 19:02:19] Production.INFO: count ==2366 [2025-04-20 19:02:19] Production.ERROR: pbx CDR StartTime 2025-04-20 16:02:05 - End Time 2025-04-20 19:02:05 [2025-04-20 19:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952270', 'tblTempUsageDetail_20' ) start [2025-04-20 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952270', 'tblTempUsageDetail_20' ) end [2025-04-20 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952270', 'tblTempVendorCDR_20' ) start [2025-04-20 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952270', 'tblTempVendorCDR_20' ) end [2025-04-20 19:02:19] Production.INFO: ProcessCDR(1,14952270,1,1,2) [2025-04-20 19:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952270', 'tblTempUsageDetail_20' ) start [2025-04-20 19:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952270', 'tblTempUsageDetail_20' ) end [2025-04-20 19:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 19:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 19:02:23] Production.INFO: ==19370== Releasing lock... [2025-04-20 19:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 19:02:23] Production.INFO: 45.75 MB #Memory Used# [2025-04-20 19:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 16:03:06 [end_date_ymd] => 2025-04-20 19:03:06 [RateCDR] => 1 ) [2025-04-20 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-20 16:03:06' and `end` < '2025-04-20 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-20 19:03:18] Production.INFO: count ==2369 [2025-04-20 19:03:19] Production.ERROR: pbx CDR StartTime 2025-04-20 16:03:06 - End Time 2025-04-20 19:03:06 [2025-04-20 19:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952275', 'tblTempUsageDetail_20' ) start [2025-04-20 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952275', 'tblTempUsageDetail_20' ) end [2025-04-20 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952275', 'tblTempVendorCDR_20' ) start [2025-04-20 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952275', 'tblTempVendorCDR_20' ) end [2025-04-20 19:03:19] Production.INFO: ProcessCDR(1,14952275,1,1,2) [2025-04-20 19:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952275', 'tblTempUsageDetail_20' ) start [2025-04-20 19:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952275', 'tblTempUsageDetail_20' ) end [2025-04-20 19:03:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 19:03:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 19:03:24] Production.INFO: ==19443== Releasing lock... [2025-04-20 19:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 19:03:24] Production.INFO: 46.25 MB #Memory Used# [2025-04-20 19:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 16:04:05 [end_date_ymd] => 2025-04-20 19:04:05 [RateCDR] => 1 ) [2025-04-20 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-20 16:04:05' and `end` < '2025-04-20 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-20 19:04:18] Production.INFO: count ==2371 [2025-04-20 19:04:19] Production.ERROR: pbx CDR StartTime 2025-04-20 16:04:05 - End Time 2025-04-20 19:04:05 [2025-04-20 19:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952280', 'tblTempUsageDetail_20' ) start [2025-04-20 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952280', 'tblTempUsageDetail_20' ) end [2025-04-20 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952280', 'tblTempVendorCDR_20' ) start [2025-04-20 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952280', 'tblTempVendorCDR_20' ) end [2025-04-20 19:04:19] Production.INFO: ProcessCDR(1,14952280,1,1,2) [2025-04-20 19:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952280', 'tblTempUsageDetail_20' ) start [2025-04-20 19:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952280', 'tblTempUsageDetail_20' ) end [2025-04-20 19:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 19:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 19:04:22] Production.INFO: ==19518== Releasing lock... [2025-04-20 19:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 19:04:22] Production.INFO: 46 MB #Memory Used# [2025-04-20 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 16:05:05 [end_date_ymd] => 2025-04-20 19:05:05 [RateCDR] => 1 ) [2025-04-20 19:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 16:05:05' and `end` < '2025-04-20 19:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 19:05:18] Production.INFO: count ==2375 [2025-04-20 19:05:19] Production.ERROR: pbx CDR StartTime 2025-04-20 16:05:05 - End Time 2025-04-20 19:05:05 [2025-04-20 19:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952285', 'tblTempUsageDetail_20' ) start [2025-04-20 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952285', 'tblTempUsageDetail_20' ) end [2025-04-20 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952285', 'tblTempVendorCDR_20' ) start [2025-04-20 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952285', 'tblTempVendorCDR_20' ) end [2025-04-20 19:05:19] Production.INFO: ProcessCDR(1,14952285,1,1,2) [2025-04-20 19:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952285', 'tblTempUsageDetail_20' ) start [2025-04-20 19:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952285', 'tblTempUsageDetail_20' ) end [2025-04-20 19:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 19:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 19:05:22] Production.INFO: ==19668== Releasing lock... [2025-04-20 19:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 19:05:22] Production.INFO: 46 MB #Memory Used# [2025-04-20 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 16:06:05 [end_date_ymd] => 2025-04-20 19:06:05 [RateCDR] => 1 ) [2025-04-20 19:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 16:06:05' and `end` < '2025-04-20 19:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 19:06:18] Production.INFO: count ==2375 [2025-04-20 19:06:19] Production.ERROR: pbx CDR StartTime 2025-04-20 16:06:05 - End Time 2025-04-20 19:06:05 [2025-04-20 19:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952290', 'tblTempUsageDetail_20' ) start [2025-04-20 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952290', 'tblTempUsageDetail_20' ) end [2025-04-20 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952290', 'tblTempVendorCDR_20' ) start [2025-04-20 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952290', 'tblTempVendorCDR_20' ) end [2025-04-20 19:06:19] Production.INFO: ProcessCDR(1,14952290,1,1,2) [2025-04-20 19:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952290', 'tblTempUsageDetail_20' ) start [2025-04-20 19:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952290', 'tblTempUsageDetail_20' ) end [2025-04-20 19:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 19:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 19:06:22] Production.INFO: ==19760== Releasing lock... [2025-04-20 19:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 19:06:22] Production.INFO: 46 MB #Memory Used# [2025-04-20 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 16:07:05 [end_date_ymd] => 2025-04-20 19:07:05 [RateCDR] => 1 ) [2025-04-20 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-20 16:07:05' and `end` < '2025-04-20 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-20 19:07:18] Production.INFO: count ==2380 [2025-04-20 19:07:19] Production.ERROR: pbx CDR StartTime 2025-04-20 16:07:05 - End Time 2025-04-20 19:07:05 [2025-04-20 19:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952295', 'tblTempUsageDetail_20' ) start [2025-04-20 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952295', 'tblTempUsageDetail_20' ) end [2025-04-20 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952295', 'tblTempVendorCDR_20' ) start [2025-04-20 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952295', 'tblTempVendorCDR_20' ) end [2025-04-20 19:07:19] Production.INFO: ProcessCDR(1,14952295,1,1,2) [2025-04-20 19:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952295', 'tblTempUsageDetail_20' ) start [2025-04-20 19:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952295', 'tblTempUsageDetail_20' ) end [2025-04-20 19:07:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 19:07:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 19:07:24] Production.INFO: ==19834== Releasing lock... [2025-04-20 19:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 19:07:24] Production.INFO: 46 MB #Memory Used# [2025-04-20 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 16:08:05 [end_date_ymd] => 2025-04-20 19:08:05 [RateCDR] => 1 ) [2025-04-20 19:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 16:08:05' and `end` < '2025-04-20 19:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 19:08:18] Production.INFO: count ==2377 [2025-04-20 19:08:19] Production.ERROR: pbx CDR StartTime 2025-04-20 16:08:05 - End Time 2025-04-20 19:08:05 [2025-04-20 19:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952300', 'tblTempUsageDetail_20' ) start [2025-04-20 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952300', 'tblTempUsageDetail_20' ) end [2025-04-20 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952300', 'tblTempVendorCDR_20' ) start [2025-04-20 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952300', 'tblTempVendorCDR_20' ) end [2025-04-20 19:08:19] Production.INFO: ProcessCDR(1,14952300,1,1,2) [2025-04-20 19:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952300', 'tblTempUsageDetail_20' ) start [2025-04-20 19:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952300', 'tblTempUsageDetail_20' ) end [2025-04-20 19:08:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 19:08:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 19:08:23] Production.INFO: ==19945== Releasing lock... [2025-04-20 19:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 19:08:23] Production.INFO: 46 MB #Memory Used# [2025-04-20 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 16:09:05 [end_date_ymd] => 2025-04-20 19:09:05 [RateCDR] => 1 ) [2025-04-20 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-20 16:09:05' and `end` < '2025-04-20 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-20 19:09:18] Production.INFO: count ==2376 [2025-04-20 19:09:19] Production.ERROR: pbx CDR StartTime 2025-04-20 16:09:05 - End Time 2025-04-20 19:09:05 [2025-04-20 19:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952305', 'tblTempUsageDetail_20' ) start [2025-04-20 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952305', 'tblTempUsageDetail_20' ) end [2025-04-20 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952305', 'tblTempVendorCDR_20' ) start [2025-04-20 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952305', 'tblTempVendorCDR_20' ) end [2025-04-20 19:09:19] Production.INFO: ProcessCDR(1,14952305,1,1,2) [2025-04-20 19:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952305', 'tblTempUsageDetail_20' ) start [2025-04-20 19:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952305', 'tblTempUsageDetail_20' ) end [2025-04-20 19:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 19:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 19:09:22] Production.INFO: ==20059== Releasing lock... [2025-04-20 19:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 19:09:22] Production.INFO: 46 MB #Memory Used# [2025-04-20 19:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 16:10:07 [end_date_ymd] => 2025-04-20 19:10:07 [RateCDR] => 1 ) [2025-04-20 19: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-20 16:10:07' and `end` < '2025-04-20 19: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-20 19:10:19] Production.INFO: count ==2377 [2025-04-20 19:10:20] Production.ERROR: pbx CDR StartTime 2025-04-20 16:10:07 - End Time 2025-04-20 19:10:07 [2025-04-20 19:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952311', 'tblTempUsageDetail_20' ) start [2025-04-20 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952311', 'tblTempUsageDetail_20' ) end [2025-04-20 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952311', 'tblTempVendorCDR_20' ) start [2025-04-20 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952311', 'tblTempVendorCDR_20' ) end [2025-04-20 19:10:20] Production.INFO: ProcessCDR(1,14952311,1,1,2) [2025-04-20 19:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952311', 'tblTempUsageDetail_20' ) start [2025-04-20 19:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952311', 'tblTempUsageDetail_20' ) end [2025-04-20 19:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 19:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 19:10:24] Production.INFO: ==20179== Releasing lock... [2025-04-20 19:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 19:10:24] Production.INFO: 46 MB #Memory Used# [2025-04-20 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 16:11:05 [end_date_ymd] => 2025-04-20 19:11:05 [RateCDR] => 1 ) [2025-04-20 19:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 16:11:05' and `end` < '2025-04-20 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-20 19:11:18] Production.INFO: count ==2371 [2025-04-20 19:11:19] Production.ERROR: pbx CDR StartTime 2025-04-20 16:11:05 - End Time 2025-04-20 19:11:05 [2025-04-20 19:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952316', 'tblTempUsageDetail_20' ) start [2025-04-20 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952316', 'tblTempUsageDetail_20' ) end [2025-04-20 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952316', 'tblTempVendorCDR_20' ) start [2025-04-20 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952316', 'tblTempVendorCDR_20' ) end [2025-04-20 19:11:19] Production.INFO: ProcessCDR(1,14952316,1,1,2) [2025-04-20 19:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952316', 'tblTempUsageDetail_20' ) start [2025-04-20 19:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952316', 'tblTempUsageDetail_20' ) end [2025-04-20 19:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 19:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 19:11:23] Production.INFO: ==20251== Releasing lock... [2025-04-20 19:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 19:11:23] Production.INFO: 46 MB #Memory Used# [2025-04-20 19:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 16:12:06 [end_date_ymd] => 2025-04-20 19:12:06 [RateCDR] => 1 ) [2025-04-20 19:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 16:12:06' and `end` < '2025-04-20 19:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 19:12:18] Production.INFO: count ==2365 [2025-04-20 19:12:19] Production.ERROR: pbx CDR StartTime 2025-04-20 16:12:06 - End Time 2025-04-20 19:12:06 [2025-04-20 19:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952321', 'tblTempUsageDetail_20' ) start [2025-04-20 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952321', 'tblTempUsageDetail_20' ) end [2025-04-20 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952321', 'tblTempVendorCDR_20' ) start [2025-04-20 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952321', 'tblTempVendorCDR_20' ) end [2025-04-20 19:12:19] Production.INFO: ProcessCDR(1,14952321,1,1,2) [2025-04-20 19:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952321', 'tblTempUsageDetail_20' ) start [2025-04-20 19:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952321', 'tblTempUsageDetail_20' ) end [2025-04-20 19:12:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 19:12:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 19:12:24] Production.INFO: ==20404== Releasing lock... [2025-04-20 19:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 19:12:24] Production.INFO: 45.75 MB #Memory Used# [2025-04-20 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 16:13:05 [end_date_ymd] => 2025-04-20 19:13:05 [RateCDR] => 1 ) [2025-04-20 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-20 16:13:05' and `end` < '2025-04-20 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-20 19:13:18] Production.INFO: count ==2363 [2025-04-20 19:13:19] Production.ERROR: pbx CDR StartTime 2025-04-20 16:13:05 - End Time 2025-04-20 19:13:05 [2025-04-20 19:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952326', 'tblTempUsageDetail_20' ) start [2025-04-20 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952326', 'tblTempUsageDetail_20' ) end [2025-04-20 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952326', 'tblTempVendorCDR_20' ) start [2025-04-20 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952326', 'tblTempVendorCDR_20' ) end [2025-04-20 19:13:19] Production.INFO: ProcessCDR(1,14952326,1,1,2) [2025-04-20 19:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952326', 'tblTempUsageDetail_20' ) start [2025-04-20 19:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952326', 'tblTempUsageDetail_20' ) end [2025-04-20 19:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 19:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 19:13:22] Production.INFO: ==20478== Releasing lock... [2025-04-20 19:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 19:13:22] Production.INFO: 45.75 MB #Memory Used# [2025-04-20 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 16:14:05 [end_date_ymd] => 2025-04-20 19:14:05 [RateCDR] => 1 ) [2025-04-20 19:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 16:14:05' and `end` < '2025-04-20 19:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 19:14:18] Production.INFO: count ==2363 [2025-04-20 19:14:19] Production.ERROR: pbx CDR StartTime 2025-04-20 16:14:05 - End Time 2025-04-20 19:14:05 [2025-04-20 19:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952331', 'tblTempUsageDetail_20' ) start [2025-04-20 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952331', 'tblTempUsageDetail_20' ) end [2025-04-20 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952331', 'tblTempVendorCDR_20' ) start [2025-04-20 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952331', 'tblTempVendorCDR_20' ) end [2025-04-20 19:14:19] Production.INFO: ProcessCDR(1,14952331,1,1,2) [2025-04-20 19:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952331', 'tblTempUsageDetail_20' ) start [2025-04-20 19:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952331', 'tblTempUsageDetail_20' ) end [2025-04-20 19:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 19:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 19:14:22] Production.INFO: ==20552== Releasing lock... [2025-04-20 19:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 19:14:22] Production.INFO: 45.75 MB #Memory Used# [2025-04-20 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 16:15:05 [end_date_ymd] => 2025-04-20 19:15:05 [RateCDR] => 1 ) [2025-04-20 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-20 16:15:05' and `end` < '2025-04-20 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-20 19:15:18] Production.INFO: count ==2366 [2025-04-20 19:15:19] Production.ERROR: pbx CDR StartTime 2025-04-20 16:15:05 - End Time 2025-04-20 19:15:05 [2025-04-20 19:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952336', 'tblTempUsageDetail_20' ) start [2025-04-20 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952336', 'tblTempUsageDetail_20' ) end [2025-04-20 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952336', 'tblTempVendorCDR_20' ) start [2025-04-20 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952336', 'tblTempVendorCDR_20' ) end [2025-04-20 19:15:19] Production.INFO: ProcessCDR(1,14952336,1,1,2) [2025-04-20 19:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952336', 'tblTempUsageDetail_20' ) start [2025-04-20 19:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952336', 'tblTempUsageDetail_20' ) end [2025-04-20 19:15:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 19:15:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 19:15:23] Production.INFO: ==20717== Releasing lock... [2025-04-20 19:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 19:15:23] Production.INFO: 45.75 MB #Memory Used# [2025-04-20 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 16:16:05 [end_date_ymd] => 2025-04-20 19:16:05 [RateCDR] => 1 ) [2025-04-20 19:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 16:16:05' and `end` < '2025-04-20 19:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 19:16:18] Production.INFO: count ==2372 [2025-04-20 19:16:19] Production.ERROR: pbx CDR StartTime 2025-04-20 16:16:05 - End Time 2025-04-20 19:16:05 [2025-04-20 19:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952341', 'tblTempUsageDetail_20' ) start [2025-04-20 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952341', 'tblTempUsageDetail_20' ) end [2025-04-20 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952341', 'tblTempVendorCDR_20' ) start [2025-04-20 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952341', 'tblTempVendorCDR_20' ) end [2025-04-20 19:16:19] Production.INFO: ProcessCDR(1,14952341,1,1,2) [2025-04-20 19:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952341', 'tblTempUsageDetail_20' ) start [2025-04-20 19:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952341', 'tblTempUsageDetail_20' ) end [2025-04-20 19:16:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 19:16:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 19:16:24] Production.INFO: ==20786== Releasing lock... [2025-04-20 19:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 19:16:24] Production.INFO: 46.25 MB #Memory Used# [2025-04-20 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 16:17:05 [end_date_ymd] => 2025-04-20 19:17:05 [RateCDR] => 1 ) [2025-04-20 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-20 16:17:05' and `end` < '2025-04-20 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-20 19:17:18] Production.INFO: count ==2370 [2025-04-20 19:17:18] Production.ERROR: pbx CDR StartTime 2025-04-20 16:17:05 - End Time 2025-04-20 19:17:05 [2025-04-20 19:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952346', 'tblTempUsageDetail_20' ) start [2025-04-20 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952346', 'tblTempUsageDetail_20' ) end [2025-04-20 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952346', 'tblTempVendorCDR_20' ) start [2025-04-20 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952346', 'tblTempVendorCDR_20' ) end [2025-04-20 19:17:18] Production.INFO: ProcessCDR(1,14952346,1,1,2) [2025-04-20 19:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952346', 'tblTempUsageDetail_20' ) start [2025-04-20 19:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952346', 'tblTempUsageDetail_20' ) end [2025-04-20 19:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 19:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 19:17:22] Production.INFO: ==20865== Releasing lock... [2025-04-20 19:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 19:17:22] Production.INFO: 46 MB #Memory Used# [2025-04-20 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 16:18:05 [end_date_ymd] => 2025-04-20 19:18:05 [RateCDR] => 1 ) [2025-04-20 19:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 16:18:05' and `end` < '2025-04-20 19:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 19:18:18] Production.INFO: count ==2365 [2025-04-20 19:18:19] Production.ERROR: pbx CDR StartTime 2025-04-20 16:18:05 - End Time 2025-04-20 19:18:05 [2025-04-20 19:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952351', 'tblTempUsageDetail_20' ) start [2025-04-20 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952351', 'tblTempUsageDetail_20' ) end [2025-04-20 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952351', 'tblTempVendorCDR_20' ) start [2025-04-20 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952351', 'tblTempVendorCDR_20' ) end [2025-04-20 19:18:19] Production.INFO: ProcessCDR(1,14952351,1,1,2) [2025-04-20 19:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952351', 'tblTempUsageDetail_20' ) start [2025-04-20 19:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952351', 'tblTempUsageDetail_20' ) end [2025-04-20 19:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 19:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 19:18:22] Production.INFO: ==20939== Releasing lock... [2025-04-20 19:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 19:18:22] Production.INFO: 45.75 MB #Memory Used# [2025-04-20 19:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 16:19:04 [end_date_ymd] => 2025-04-20 19:19:04 [RateCDR] => 1 ) [2025-04-20 19: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-20 16:19:04' and `end` < '2025-04-20 19: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-20 19:19:17] Production.INFO: count ==2366 [2025-04-20 19:19:18] Production.ERROR: pbx CDR StartTime 2025-04-20 16:19:04 - End Time 2025-04-20 19:19:04 [2025-04-20 19:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952356', 'tblTempUsageDetail_20' ) start [2025-04-20 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952356', 'tblTempUsageDetail_20' ) end [2025-04-20 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952356', 'tblTempVendorCDR_20' ) start [2025-04-20 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952356', 'tblTempVendorCDR_20' ) end [2025-04-20 19:19:18] Production.INFO: ProcessCDR(1,14952356,1,1,2) [2025-04-20 19:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952356', 'tblTempUsageDetail_20' ) start [2025-04-20 19:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952356', 'tblTempUsageDetail_20' ) end [2025-04-20 19:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 19:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 19:19:21] Production.INFO: ==21008== Releasing lock... [2025-04-20 19:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 19:19:21] Production.INFO: 45.75 MB #Memory Used# [2025-04-20 19:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 16:20:06 [end_date_ymd] => 2025-04-20 19:20:06 [RateCDR] => 1 ) [2025-04-20 19:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 16:20:06' and `end` < '2025-04-20 19:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 19:20:19] Production.INFO: count ==2372 [2025-04-20 19:20:20] Production.ERROR: pbx CDR StartTime 2025-04-20 16:20:06 - End Time 2025-04-20 19:20:06 [2025-04-20 19:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952362', 'tblTempUsageDetail_20' ) start [2025-04-20 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952362', 'tblTempUsageDetail_20' ) end [2025-04-20 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952362', 'tblTempVendorCDR_20' ) start [2025-04-20 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952362', 'tblTempVendorCDR_20' ) end [2025-04-20 19:20:20] Production.INFO: ProcessCDR(1,14952362,1,1,2) [2025-04-20 19:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952362', 'tblTempUsageDetail_20' ) start [2025-04-20 19:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952362', 'tblTempUsageDetail_20' ) end [2025-04-20 19:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 19:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 19:20:23] Production.INFO: ==21082== Releasing lock... [2025-04-20 19:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 19:20:23] Production.INFO: 46 MB #Memory Used# [2025-04-20 19:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 16:21:06 [end_date_ymd] => 2025-04-20 19:21:06 [RateCDR] => 1 ) [2025-04-20 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-20 16:21:06' and `end` < '2025-04-20 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-20 19:21:18] Production.INFO: count ==2357 [2025-04-20 19:21:19] Production.ERROR: pbx CDR StartTime 2025-04-20 16:21:06 - End Time 2025-04-20 19:21:06 [2025-04-20 19:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952367', 'tblTempUsageDetail_20' ) start [2025-04-20 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952367', 'tblTempUsageDetail_20' ) end [2025-04-20 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952367', 'tblTempVendorCDR_20' ) start [2025-04-20 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952367', 'tblTempVendorCDR_20' ) end [2025-04-20 19:21:19] Production.INFO: ProcessCDR(1,14952367,1,1,2) [2025-04-20 19:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952367', 'tblTempUsageDetail_20' ) start [2025-04-20 19:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952367', 'tblTempUsageDetail_20' ) end [2025-04-20 19:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 19:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 19:21:23] Production.INFO: ==21159== Releasing lock... [2025-04-20 19:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 19:21:23] Production.INFO: 46 MB #Memory Used# [2025-04-20 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 16:22:05 [end_date_ymd] => 2025-04-20 19:22:05 [RateCDR] => 1 ) [2025-04-20 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-20 16:22:05' and `end` < '2025-04-20 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-20 19:22:18] Production.INFO: count ==2354 [2025-04-20 19:22:19] Production.ERROR: pbx CDR StartTime 2025-04-20 16:22:05 - End Time 2025-04-20 19:22:05 [2025-04-20 19:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952372', 'tblTempUsageDetail_20' ) start [2025-04-20 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952372', 'tblTempUsageDetail_20' ) end [2025-04-20 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952372', 'tblTempVendorCDR_20' ) start [2025-04-20 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952372', 'tblTempVendorCDR_20' ) end [2025-04-20 19:22:19] Production.INFO: ProcessCDR(1,14952372,1,1,2) [2025-04-20 19:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952372', 'tblTempUsageDetail_20' ) start [2025-04-20 19:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952372', 'tblTempUsageDetail_20' ) end [2025-04-20 19:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 19:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 19:22:22] Production.INFO: ==21233== Releasing lock... [2025-04-20 19:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 19:22:22] Production.INFO: 45.75 MB #Memory Used# [2025-04-20 19:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 16:23:06 [end_date_ymd] => 2025-04-20 19:23:06 [RateCDR] => 1 ) [2025-04-20 19: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-20 16:23:06' and `end` < '2025-04-20 19: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-20 19:23:19] Production.INFO: count ==2352 [2025-04-20 19:23:19] Production.ERROR: pbx CDR StartTime 2025-04-20 16:23:06 - End Time 2025-04-20 19:23:06 [2025-04-20 19:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952377', 'tblTempUsageDetail_20' ) start [2025-04-20 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952377', 'tblTempUsageDetail_20' ) end [2025-04-20 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952377', 'tblTempVendorCDR_20' ) start [2025-04-20 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952377', 'tblTempVendorCDR_20' ) end [2025-04-20 19:23:19] Production.INFO: ProcessCDR(1,14952377,1,1,2) [2025-04-20 19:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952377', 'tblTempUsageDetail_20' ) start [2025-04-20 19:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952377', 'tblTempUsageDetail_20' ) end [2025-04-20 19:23:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 19:23:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 19:23:24] Production.INFO: ==21308== Releasing lock... [2025-04-20 19:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 19:23:24] Production.INFO: 46 MB #Memory Used# [2025-04-20 19:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 16:24:05 [end_date_ymd] => 2025-04-20 19:24:05 [RateCDR] => 1 ) [2025-04-20 19:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 16:24:05' and `end` < '2025-04-20 19:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 19:24:18] Production.INFO: count ==2355 [2025-04-20 19:24:19] Production.ERROR: pbx CDR StartTime 2025-04-20 16:24:05 - End Time 2025-04-20 19:24:05 [2025-04-20 19:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952382', 'tblTempUsageDetail_20' ) start [2025-04-20 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952382', 'tblTempUsageDetail_20' ) end [2025-04-20 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952382', 'tblTempVendorCDR_20' ) start [2025-04-20 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952382', 'tblTempVendorCDR_20' ) end [2025-04-20 19:24:19] Production.INFO: ProcessCDR(1,14952382,1,1,2) [2025-04-20 19:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952382', 'tblTempUsageDetail_20' ) start [2025-04-20 19:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952382', 'tblTempUsageDetail_20' ) end [2025-04-20 19:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 19:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 19:24:22] Production.INFO: ==21384== Releasing lock... [2025-04-20 19:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 19:24:22] Production.INFO: 45.75 MB #Memory Used# [2025-04-20 19:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 16:25:06 [end_date_ymd] => 2025-04-20 19:25:06 [RateCDR] => 1 ) [2025-04-20 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-20 16:25:06' and `end` < '2025-04-20 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-20 19:25:18] Production.INFO: count ==2354 [2025-04-20 19:25:19] Production.ERROR: pbx CDR StartTime 2025-04-20 16:25:06 - End Time 2025-04-20 19:25:06 [2025-04-20 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952387', 'tblTempUsageDetail_20' ) start [2025-04-20 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952387', 'tblTempUsageDetail_20' ) end [2025-04-20 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952387', 'tblTempVendorCDR_20' ) start [2025-04-20 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952387', 'tblTempVendorCDR_20' ) end [2025-04-20 19:25:19] Production.INFO: ProcessCDR(1,14952387,1,1,2) [2025-04-20 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952387', 'tblTempUsageDetail_20' ) start [2025-04-20 19:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952387', 'tblTempUsageDetail_20' ) end [2025-04-20 19:25:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 19:25:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 19:25:23] Production.INFO: ==21456== Releasing lock... [2025-04-20 19:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 19:25:23] Production.INFO: 46 MB #Memory Used# [2025-04-20 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 16:26:05 [end_date_ymd] => 2025-04-20 19:26:05 [RateCDR] => 1 ) [2025-04-20 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-20 16:26:05' and `end` < '2025-04-20 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-20 19:26:17] Production.INFO: count ==2348 [2025-04-20 19:26:18] Production.ERROR: pbx CDR StartTime 2025-04-20 16:26:05 - End Time 2025-04-20 19:26:05 [2025-04-20 19:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952392', 'tblTempUsageDetail_20' ) start [2025-04-20 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952392', 'tblTempUsageDetail_20' ) end [2025-04-20 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952392', 'tblTempVendorCDR_20' ) start [2025-04-20 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952392', 'tblTempVendorCDR_20' ) end [2025-04-20 19:26:18] Production.INFO: ProcessCDR(1,14952392,1,1,2) [2025-04-20 19:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952392', 'tblTempUsageDetail_20' ) start [2025-04-20 19:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952392', 'tblTempUsageDetail_20' ) end [2025-04-20 19:26:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 19:26:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 19:26:23] Production.INFO: ==21569== Releasing lock... [2025-04-20 19:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 19:26:23] Production.INFO: 45.75 MB #Memory Used# [2025-04-20 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 16:27:05 [end_date_ymd] => 2025-04-20 19:27:05 [RateCDR] => 1 ) [2025-04-20 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-20 16:27:05' and `end` < '2025-04-20 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-20 19:27:18] Production.INFO: count ==2345 [2025-04-20 19:27:19] Production.ERROR: pbx CDR StartTime 2025-04-20 16:27:05 - End Time 2025-04-20 19:27:05 [2025-04-20 19:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952397', 'tblTempUsageDetail_20' ) start [2025-04-20 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952397', 'tblTempUsageDetail_20' ) end [2025-04-20 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952397', 'tblTempVendorCDR_20' ) start [2025-04-20 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952397', 'tblTempVendorCDR_20' ) end [2025-04-20 19:27:19] Production.INFO: ProcessCDR(1,14952397,1,1,2) [2025-04-20 19:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952397', 'tblTempUsageDetail_20' ) start [2025-04-20 19:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952397', 'tblTempUsageDetail_20' ) end [2025-04-20 19:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 19:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 19:27:22] Production.INFO: ==21641== Releasing lock... [2025-04-20 19:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 19:27:22] Production.INFO: 45.75 MB #Memory Used# [2025-04-20 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 16:28:05 [end_date_ymd] => 2025-04-20 19:28:05 [RateCDR] => 1 ) [2025-04-20 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-20 16:28:05' and `end` < '2025-04-20 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-20 19:28:17] Production.INFO: count ==2344 [2025-04-20 19:28:18] Production.ERROR: pbx CDR StartTime 2025-04-20 16:28:05 - End Time 2025-04-20 19:28:05 [2025-04-20 19:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952402', 'tblTempUsageDetail_20' ) start [2025-04-20 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952402', 'tblTempUsageDetail_20' ) end [2025-04-20 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952402', 'tblTempVendorCDR_20' ) start [2025-04-20 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952402', 'tblTempVendorCDR_20' ) end [2025-04-20 19:28:18] Production.INFO: ProcessCDR(1,14952402,1,1,2) [2025-04-20 19:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952402', 'tblTempUsageDetail_20' ) start [2025-04-20 19:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952402', 'tblTempUsageDetail_20' ) end [2025-04-20 19:28:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 19:28:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 19:28:23] Production.INFO: ==21715== Releasing lock... [2025-04-20 19:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 19:28:23] Production.INFO: 45.75 MB #Memory Used# [2025-04-20 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 16:29:05 [end_date_ymd] => 2025-04-20 19:29:05 [RateCDR] => 1 ) [2025-04-20 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-20 16:29:05' and `end` < '2025-04-20 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-20 19:29:18] Production.INFO: count ==2343 [2025-04-20 19:29:19] Production.ERROR: pbx CDR StartTime 2025-04-20 16:29:05 - End Time 2025-04-20 19:29:05 [2025-04-20 19:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952407', 'tblTempUsageDetail_20' ) start [2025-04-20 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952407', 'tblTempUsageDetail_20' ) end [2025-04-20 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952407', 'tblTempVendorCDR_20' ) start [2025-04-20 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952407', 'tblTempVendorCDR_20' ) end [2025-04-20 19:29:19] Production.INFO: ProcessCDR(1,14952407,1,1,2) [2025-04-20 19:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952407', 'tblTempUsageDetail_20' ) start [2025-04-20 19:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952407', 'tblTempUsageDetail_20' ) end [2025-04-20 19:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 19:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 19:29:22] Production.INFO: ==21790== Releasing lock... [2025-04-20 19:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 19:29:22] Production.INFO: 45.75 MB #Memory Used# [2025-04-20 19:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 16:30:07 [end_date_ymd] => 2025-04-20 19:30:07 [RateCDR] => 1 ) [2025-04-20 19: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-20 16:30:07' and `end` < '2025-04-20 19: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-20 19:30:20] Production.INFO: count ==2346 [2025-04-20 19:30:20] Production.ERROR: pbx CDR StartTime 2025-04-20 16:30:07 - End Time 2025-04-20 19:30:07 [2025-04-20 19:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952413', 'tblTempUsageDetail_20' ) start [2025-04-20 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952413', 'tblTempUsageDetail_20' ) end [2025-04-20 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952413', 'tblTempVendorCDR_20' ) start [2025-04-20 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952413', 'tblTempVendorCDR_20' ) end [2025-04-20 19:30:20] Production.INFO: ProcessCDR(1,14952413,1,1,2) [2025-04-20 19:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952413', 'tblTempUsageDetail_20' ) start [2025-04-20 19:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952413', 'tblTempUsageDetail_20' ) end [2025-04-20 19:30:25] Production.ERROR: pbx prc_insertCDR start [2025-04-20 19:30:25] Production.ERROR: pbx prc_insertCDR end [2025-04-20 19:30:25] Production.INFO: ==21863== Releasing lock... [2025-04-20 19:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 19:30:25] Production.INFO: 45.75 MB #Memory Used# [2025-04-20 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 16:31:05 [end_date_ymd] => 2025-04-20 19:31:05 [RateCDR] => 1 ) [2025-04-20 19:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 16:31:05' and `end` < '2025-04-20 19:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 19:31:18] Production.INFO: count ==2382 [2025-04-20 19:31:19] Production.ERROR: pbx CDR StartTime 2025-04-20 16:31:05 - End Time 2025-04-20 19:31:05 [2025-04-20 19:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952418', 'tblTempUsageDetail_20' ) start [2025-04-20 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952418', 'tblTempUsageDetail_20' ) end [2025-04-20 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952418', 'tblTempVendorCDR_20' ) start [2025-04-20 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952418', 'tblTempVendorCDR_20' ) end [2025-04-20 19:31:19] Production.INFO: ProcessCDR(1,14952418,1,1,2) [2025-04-20 19:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952418', 'tblTempUsageDetail_20' ) start [2025-04-20 19:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952418', 'tblTempUsageDetail_20' ) end [2025-04-20 19:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 19:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 19:31:22] Production.INFO: ==21936== Releasing lock... [2025-04-20 19:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 19:31:22] Production.INFO: 46 MB #Memory Used# [2025-04-20 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 16:32:05 [end_date_ymd] => 2025-04-20 19:32:05 [RateCDR] => 1 ) [2025-04-20 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-20 16:32:05' and `end` < '2025-04-20 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-20 19:32:18] Production.INFO: count ==2383 [2025-04-20 19:32:19] Production.ERROR: pbx CDR StartTime 2025-04-20 16:32:05 - End Time 2025-04-20 19:32:05 [2025-04-20 19:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952423', 'tblTempUsageDetail_20' ) start [2025-04-20 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952423', 'tblTempUsageDetail_20' ) end [2025-04-20 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952423', 'tblTempVendorCDR_20' ) start [2025-04-20 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952423', 'tblTempVendorCDR_20' ) end [2025-04-20 19:32:19] Production.INFO: ProcessCDR(1,14952423,1,1,2) [2025-04-20 19:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952423', 'tblTempUsageDetail_20' ) start [2025-04-20 19:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952423', 'tblTempUsageDetail_20' ) end [2025-04-20 19:32:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 19:32:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 19:32:24] Production.INFO: ==22006== Releasing lock... [2025-04-20 19:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 19:32:24] Production.INFO: 46 MB #Memory Used# [2025-04-20 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 16:33:05 [end_date_ymd] => 2025-04-20 19:33:05 [RateCDR] => 1 ) [2025-04-20 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-20 16:33:05' and `end` < '2025-04-20 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-20 19:33:18] Production.INFO: count ==2384 [2025-04-20 19:33:18] Production.ERROR: pbx CDR StartTime 2025-04-20 16:33:05 - End Time 2025-04-20 19:33:05 [2025-04-20 19:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952428', 'tblTempUsageDetail_20' ) start [2025-04-20 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952428', 'tblTempUsageDetail_20' ) end [2025-04-20 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952428', 'tblTempVendorCDR_20' ) start [2025-04-20 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952428', 'tblTempVendorCDR_20' ) end [2025-04-20 19:33:19] Production.INFO: ProcessCDR(1,14952428,1,1,2) [2025-04-20 19:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952428', 'tblTempUsageDetail_20' ) start [2025-04-20 19:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952428', 'tblTempUsageDetail_20' ) end [2025-04-20 19:33:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 19:33:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 19:33:24] Production.INFO: ==22083== Releasing lock... [2025-04-20 19:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 19:33:24] Production.INFO: 46.25 MB #Memory Used# [2025-04-20 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 16:34:05 [end_date_ymd] => 2025-04-20 19:34:05 [RateCDR] => 1 ) [2025-04-20 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-20 16:34:05' and `end` < '2025-04-20 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-20 19:34:18] Production.INFO: count ==2386 [2025-04-20 19:34:19] Production.ERROR: pbx CDR StartTime 2025-04-20 16:34:05 - End Time 2025-04-20 19:34:05 [2025-04-20 19:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952433', 'tblTempUsageDetail_20' ) start [2025-04-20 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952433', 'tblTempUsageDetail_20' ) end [2025-04-20 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952433', 'tblTempVendorCDR_20' ) start [2025-04-20 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952433', 'tblTempVendorCDR_20' ) end [2025-04-20 19:34:19] Production.INFO: ProcessCDR(1,14952433,1,1,2) [2025-04-20 19:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952433', 'tblTempUsageDetail_20' ) start [2025-04-20 19:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952433', 'tblTempUsageDetail_20' ) end [2025-04-20 19:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 19:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 19:34:22] Production.INFO: ==22163== Releasing lock... [2025-04-20 19:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 19:34:22] Production.INFO: 46.25 MB #Memory Used# [2025-04-20 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 16:35:05 [end_date_ymd] => 2025-04-20 19:35:05 [RateCDR] => 1 ) [2025-04-20 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-20 16:35:05' and `end` < '2025-04-20 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-20 19:35:18] Production.INFO: count ==2385 [2025-04-20 19:35:18] Production.ERROR: pbx CDR StartTime 2025-04-20 16:35:05 - End Time 2025-04-20 19:35:05 [2025-04-20 19:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952438', 'tblTempUsageDetail_20' ) start [2025-04-20 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952438', 'tblTempUsageDetail_20' ) end [2025-04-20 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952438', 'tblTempVendorCDR_20' ) start [2025-04-20 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952438', 'tblTempVendorCDR_20' ) end [2025-04-20 19:35:18] Production.INFO: ProcessCDR(1,14952438,1,1,2) [2025-04-20 19:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952438', 'tblTempUsageDetail_20' ) start [2025-04-20 19:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952438', 'tblTempUsageDetail_20' ) end [2025-04-20 19:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 19:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 19:35:22] Production.INFO: ==22251== Releasing lock... [2025-04-20 19:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 19:35:22] Production.INFO: 46 MB #Memory Used# [2025-04-20 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 16:36:05 [end_date_ymd] => 2025-04-20 19:36:05 [RateCDR] => 1 ) [2025-04-20 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-20 16:36:05' and `end` < '2025-04-20 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-20 19:36:18] Production.INFO: count ==2384 [2025-04-20 19:36:19] Production.ERROR: pbx CDR StartTime 2025-04-20 16:36:05 - End Time 2025-04-20 19:36:05 [2025-04-20 19:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952443', 'tblTempUsageDetail_20' ) start [2025-04-20 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952443', 'tblTempUsageDetail_20' ) end [2025-04-20 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952443', 'tblTempVendorCDR_20' ) start [2025-04-20 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952443', 'tblTempVendorCDR_20' ) end [2025-04-20 19:36:19] Production.INFO: ProcessCDR(1,14952443,1,1,2) [2025-04-20 19:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952443', 'tblTempUsageDetail_20' ) start [2025-04-20 19:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952443', 'tblTempUsageDetail_20' ) end [2025-04-20 19:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 19:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 19:36:22] Production.INFO: ==22330== Releasing lock... [2025-04-20 19:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 19:36:22] Production.INFO: 46.5 MB #Memory Used# [2025-04-20 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 16:37:05 [end_date_ymd] => 2025-04-20 19:37:05 [RateCDR] => 1 ) [2025-04-20 19:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 16:37:05' and `end` < '2025-04-20 19:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 19:37:18] Production.INFO: count ==2386 [2025-04-20 19:37:19] Production.ERROR: pbx CDR StartTime 2025-04-20 16:37:05 - End Time 2025-04-20 19:37:05 [2025-04-20 19:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952448', 'tblTempUsageDetail_20' ) start [2025-04-20 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952448', 'tblTempUsageDetail_20' ) end [2025-04-20 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952448', 'tblTempVendorCDR_20' ) start [2025-04-20 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952448', 'tblTempVendorCDR_20' ) end [2025-04-20 19:37:19] Production.INFO: ProcessCDR(1,14952448,1,1,2) [2025-04-20 19:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952448', 'tblTempUsageDetail_20' ) start [2025-04-20 19:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952448', 'tblTempUsageDetail_20' ) end [2025-04-20 19:37:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 19:37:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 19:37:24] Production.INFO: ==22408== Releasing lock... [2025-04-20 19:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 19:37:24] Production.INFO: 46.5 MB #Memory Used# [2025-04-20 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 16:38:05 [end_date_ymd] => 2025-04-20 19:38:05 [RateCDR] => 1 ) [2025-04-20 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-20 16:38:05' and `end` < '2025-04-20 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-20 19:38:18] Production.INFO: count ==2386 [2025-04-20 19:38:19] Production.ERROR: pbx CDR StartTime 2025-04-20 16:38:05 - End Time 2025-04-20 19:38:05 [2025-04-20 19:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952453', 'tblTempUsageDetail_20' ) start [2025-04-20 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952453', 'tblTempUsageDetail_20' ) end [2025-04-20 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952453', 'tblTempVendorCDR_20' ) start [2025-04-20 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952453', 'tblTempVendorCDR_20' ) end [2025-04-20 19:38:19] Production.INFO: ProcessCDR(1,14952453,1,1,2) [2025-04-20 19:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952453', 'tblTempUsageDetail_20' ) start [2025-04-20 19:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952453', 'tblTempUsageDetail_20' ) end [2025-04-20 19:38:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 19:38:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 19:38:24] Production.INFO: ==22498== Releasing lock... [2025-04-20 19:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 19:38:24] Production.INFO: 46.25 MB #Memory Used# [2025-04-20 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 16:39:05 [end_date_ymd] => 2025-04-20 19:39:05 [RateCDR] => 1 ) [2025-04-20 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-20 16:39:05' and `end` < '2025-04-20 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-20 19:39:18] Production.INFO: count ==2384 [2025-04-20 19:39:19] Production.ERROR: pbx CDR StartTime 2025-04-20 16:39:05 - End Time 2025-04-20 19:39:05 [2025-04-20 19:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952458', 'tblTempUsageDetail_20' ) start [2025-04-20 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952458', 'tblTempUsageDetail_20' ) end [2025-04-20 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952458', 'tblTempVendorCDR_20' ) start [2025-04-20 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952458', 'tblTempVendorCDR_20' ) end [2025-04-20 19:39:19] Production.INFO: ProcessCDR(1,14952458,1,1,2) [2025-04-20 19:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952458', 'tblTempUsageDetail_20' ) start [2025-04-20 19:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952458', 'tblTempUsageDetail_20' ) end [2025-04-20 19:39:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 19:39:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 19:39:24] Production.INFO: ==22583== Releasing lock... [2025-04-20 19:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 19:39:24] Production.INFO: 46 MB #Memory Used# [2025-04-20 19:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 16:40:05 [end_date_ymd] => 2025-04-20 19:40:05 [RateCDR] => 1 ) [2025-04-20 19: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-20 16:40:05' and `end` < '2025-04-20 19: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-20 19:40:18] Production.INFO: count ==2382 [2025-04-20 19:40:19] Production.ERROR: pbx CDR StartTime 2025-04-20 16:40:05 - End Time 2025-04-20 19:40:05 [2025-04-20 19:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952464', 'tblTempUsageDetail_20' ) start [2025-04-20 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952464', 'tblTempUsageDetail_20' ) end [2025-04-20 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952464', 'tblTempVendorCDR_20' ) start [2025-04-20 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952464', 'tblTempVendorCDR_20' ) end [2025-04-20 19:40:19] Production.INFO: ProcessCDR(1,14952464,1,1,2) [2025-04-20 19:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952464', 'tblTempUsageDetail_20' ) start [2025-04-20 19:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952464', 'tblTempUsageDetail_20' ) end [2025-04-20 19:40:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 19:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 19:40:24] Production.INFO: ==22667== Releasing lock... [2025-04-20 19:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 19:40:24] Production.INFO: 46 MB #Memory Used# [2025-04-20 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 16:41:05 [end_date_ymd] => 2025-04-20 19:41:05 [RateCDR] => 1 ) [2025-04-20 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-20 16:41:05' and `end` < '2025-04-20 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-20 19:41:18] Production.INFO: count ==2375 [2025-04-20 19:41:18] Production.ERROR: pbx CDR StartTime 2025-04-20 16:41:05 - End Time 2025-04-20 19:41:05 [2025-04-20 19:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952469', 'tblTempUsageDetail_20' ) start [2025-04-20 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952469', 'tblTempUsageDetail_20' ) end [2025-04-20 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952469', 'tblTempVendorCDR_20' ) start [2025-04-20 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952469', 'tblTempVendorCDR_20' ) end [2025-04-20 19:41:19] Production.INFO: ProcessCDR(1,14952469,1,1,2) [2025-04-20 19:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952469', 'tblTempUsageDetail_20' ) start [2025-04-20 19:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952469', 'tblTempUsageDetail_20' ) end [2025-04-20 19:41:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 19:41:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 19:41:24] Production.INFO: ==22792== Releasing lock... [2025-04-20 19:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 19:41:24] Production.INFO: 46 MB #Memory Used# [2025-04-20 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 16:42:05 [end_date_ymd] => 2025-04-20 19:42:05 [RateCDR] => 1 ) [2025-04-20 19:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 16:42:05' and `end` < '2025-04-20 19:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 19:42:18] Production.INFO: count ==2373 [2025-04-20 19:42:18] Production.ERROR: pbx CDR StartTime 2025-04-20 16:42:05 - End Time 2025-04-20 19:42:05 [2025-04-20 19:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952474', 'tblTempUsageDetail_20' ) start [2025-04-20 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952474', 'tblTempUsageDetail_20' ) end [2025-04-20 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952474', 'tblTempVendorCDR_20' ) start [2025-04-20 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952474', 'tblTempVendorCDR_20' ) end [2025-04-20 19:42:18] Production.INFO: ProcessCDR(1,14952474,1,1,2) [2025-04-20 19:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952474', 'tblTempUsageDetail_20' ) start [2025-04-20 19:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952474', 'tblTempUsageDetail_20' ) end [2025-04-20 19:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 19:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 19:42:22] Production.INFO: ==22878== Releasing lock... [2025-04-20 19:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 19:42:22] Production.INFO: 46 MB #Memory Used# [2025-04-20 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 16:43:05 [end_date_ymd] => 2025-04-20 19:43:05 [RateCDR] => 1 ) [2025-04-20 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-20 16:43:05' and `end` < '2025-04-20 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-20 19:43:18] Production.INFO: count ==2373 [2025-04-20 19:43:19] Production.ERROR: pbx CDR StartTime 2025-04-20 16:43:05 - End Time 2025-04-20 19:43:05 [2025-04-20 19:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952479', 'tblTempUsageDetail_20' ) start [2025-04-20 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952479', 'tblTempUsageDetail_20' ) end [2025-04-20 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952479', 'tblTempVendorCDR_20' ) start [2025-04-20 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952479', 'tblTempVendorCDR_20' ) end [2025-04-20 19:43:19] Production.INFO: ProcessCDR(1,14952479,1,1,2) [2025-04-20 19:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952479', 'tblTempUsageDetail_20' ) start [2025-04-20 19:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952479', 'tblTempUsageDetail_20' ) end [2025-04-20 19:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 19:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 19:43:23] Production.INFO: ==22957== Releasing lock... [2025-04-20 19:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 19:43:23] Production.INFO: 46 MB #Memory Used# [2025-04-20 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 16:44:05 [end_date_ymd] => 2025-04-20 19:44:05 [RateCDR] => 1 ) [2025-04-20 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-20 16:44:05' and `end` < '2025-04-20 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-20 19:44:18] Production.INFO: count ==2378 [2025-04-20 19:44:19] Production.ERROR: pbx CDR StartTime 2025-04-20 16:44:05 - End Time 2025-04-20 19:44:05 [2025-04-20 19:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952484', 'tblTempUsageDetail_20' ) start [2025-04-20 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952484', 'tblTempUsageDetail_20' ) end [2025-04-20 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952484', 'tblTempVendorCDR_20' ) start [2025-04-20 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952484', 'tblTempVendorCDR_20' ) end [2025-04-20 19:44:19] Production.INFO: ProcessCDR(1,14952484,1,1,2) [2025-04-20 19:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952484', 'tblTempUsageDetail_20' ) start [2025-04-20 19:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952484', 'tblTempUsageDetail_20' ) end [2025-04-20 19:44:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 19:44:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 19:44:24] Production.INFO: ==23028== Releasing lock... [2025-04-20 19:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 19:44:24] Production.INFO: 46 MB #Memory Used# [2025-04-20 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 16:45:05 [end_date_ymd] => 2025-04-20 19:45:05 [RateCDR] => 1 ) [2025-04-20 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-20 16:45:05' and `end` < '2025-04-20 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-20 19:45:18] Production.INFO: count ==2378 [2025-04-20 19:45:19] Production.ERROR: pbx CDR StartTime 2025-04-20 16:45:05 - End Time 2025-04-20 19:45:05 [2025-04-20 19:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952489', 'tblTempUsageDetail_20' ) start [2025-04-20 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952489', 'tblTempUsageDetail_20' ) end [2025-04-20 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952489', 'tblTempVendorCDR_20' ) start [2025-04-20 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952489', 'tblTempVendorCDR_20' ) end [2025-04-20 19:45:19] Production.INFO: ProcessCDR(1,14952489,1,1,2) [2025-04-20 19:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952489', 'tblTempUsageDetail_20' ) start [2025-04-20 19:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952489', 'tblTempUsageDetail_20' ) end [2025-04-20 19:45:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 19:45:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 19:45:24] Production.INFO: ==23101== Releasing lock... [2025-04-20 19:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 19:45:24] Production.INFO: 46 MB #Memory Used# [2025-04-20 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 16:46:05 [end_date_ymd] => 2025-04-20 19:46:05 [RateCDR] => 1 ) [2025-04-20 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-20 16:46:05' and `end` < '2025-04-20 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-20 19:46:18] Production.INFO: count ==2381 [2025-04-20 19:46:19] Production.ERROR: pbx CDR StartTime 2025-04-20 16:46:05 - End Time 2025-04-20 19:46:05 [2025-04-20 19:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952494', 'tblTempUsageDetail_20' ) start [2025-04-20 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952494', 'tblTempUsageDetail_20' ) end [2025-04-20 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952494', 'tblTempVendorCDR_20' ) start [2025-04-20 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952494', 'tblTempVendorCDR_20' ) end [2025-04-20 19:46:19] Production.INFO: ProcessCDR(1,14952494,1,1,2) [2025-04-20 19:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952494', 'tblTempUsageDetail_20' ) start [2025-04-20 19:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952494', 'tblTempUsageDetail_20' ) end [2025-04-20 19:46:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 19:46:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 19:46:24] Production.INFO: ==23170== Releasing lock... [2025-04-20 19:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 19:46:24] Production.INFO: 46 MB #Memory Used# [2025-04-20 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 16:47:05 [end_date_ymd] => 2025-04-20 19:47:05 [RateCDR] => 1 ) [2025-04-20 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-20 16:47:05' and `end` < '2025-04-20 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-20 19:47:18] Production.INFO: count ==2380 [2025-04-20 19:47:19] Production.ERROR: pbx CDR StartTime 2025-04-20 16:47:05 - End Time 2025-04-20 19:47:05 [2025-04-20 19:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952499', 'tblTempUsageDetail_20' ) start [2025-04-20 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952499', 'tblTempUsageDetail_20' ) end [2025-04-20 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952499', 'tblTempVendorCDR_20' ) start [2025-04-20 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952499', 'tblTempVendorCDR_20' ) end [2025-04-20 19:47:19] Production.INFO: ProcessCDR(1,14952499,1,1,2) [2025-04-20 19:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952499', 'tblTempUsageDetail_20' ) start [2025-04-20 19:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952499', 'tblTempUsageDetail_20' ) end [2025-04-20 19:47:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 19:47:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 19:47:24] Production.INFO: ==23247== Releasing lock... [2025-04-20 19:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 19:47:24] Production.INFO: 46 MB #Memory Used# [2025-04-20 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 16:48:05 [end_date_ymd] => 2025-04-20 19:48:05 [RateCDR] => 1 ) [2025-04-20 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-20 16:48:05' and `end` < '2025-04-20 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-20 19:48:18] Production.INFO: count ==2377 [2025-04-20 19:48:18] Production.ERROR: pbx CDR StartTime 2025-04-20 16:48:05 - End Time 2025-04-20 19:48:05 [2025-04-20 19:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952504', 'tblTempUsageDetail_20' ) start [2025-04-20 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952504', 'tblTempUsageDetail_20' ) end [2025-04-20 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952504', 'tblTempVendorCDR_20' ) start [2025-04-20 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952504', 'tblTempVendorCDR_20' ) end [2025-04-20 19:48:18] Production.INFO: ProcessCDR(1,14952504,1,1,2) [2025-04-20 19:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952504', 'tblTempUsageDetail_20' ) start [2025-04-20 19:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952504', 'tblTempUsageDetail_20' ) end [2025-04-20 19:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 19:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 19:48:22] Production.INFO: ==23327== Releasing lock... [2025-04-20 19:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 19:48:22] Production.INFO: 46 MB #Memory Used# [2025-04-20 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 16:49:05 [end_date_ymd] => 2025-04-20 19:49:05 [RateCDR] => 1 ) [2025-04-20 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-20 16:49:05' and `end` < '2025-04-20 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-20 19:49:18] Production.INFO: count ==2376 [2025-04-20 19:49:19] Production.ERROR: pbx CDR StartTime 2025-04-20 16:49:05 - End Time 2025-04-20 19:49:05 [2025-04-20 19:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952509', 'tblTempUsageDetail_20' ) start [2025-04-20 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952509', 'tblTempUsageDetail_20' ) end [2025-04-20 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952509', 'tblTempVendorCDR_20' ) start [2025-04-20 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952509', 'tblTempVendorCDR_20' ) end [2025-04-20 19:49:19] Production.INFO: ProcessCDR(1,14952509,1,1,2) [2025-04-20 19:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952509', 'tblTempUsageDetail_20' ) start [2025-04-20 19:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952509', 'tblTempUsageDetail_20' ) end [2025-04-20 19:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 19:49:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 19:49:23] Production.INFO: ==23412== Releasing lock... [2025-04-20 19:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 19:49:23] Production.INFO: 46 MB #Memory Used# [2025-04-20 19:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 16:50:06 [end_date_ymd] => 2025-04-20 19:50:06 [RateCDR] => 1 ) [2025-04-20 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-20 16:50:06' and `end` < '2025-04-20 19:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 19:50:19] Production.INFO: count ==2379 [2025-04-20 19:50:20] Production.ERROR: pbx CDR StartTime 2025-04-20 16:50:06 - End Time 2025-04-20 19:50:06 [2025-04-20 19:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952514', 'tblTempUsageDetail_20' ) start [2025-04-20 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952514', 'tblTempUsageDetail_20' ) end [2025-04-20 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952514', 'tblTempVendorCDR_20' ) start [2025-04-20 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952514', 'tblTempVendorCDR_20' ) end [2025-04-20 19:50:20] Production.INFO: ProcessCDR(1,14952514,1,1,2) [2025-04-20 19:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952514', 'tblTempUsageDetail_20' ) start [2025-04-20 19:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952514', 'tblTempUsageDetail_20' ) end [2025-04-20 19:50:25] Production.ERROR: pbx prc_insertCDR start [2025-04-20 19:50:25] Production.ERROR: pbx prc_insertCDR end [2025-04-20 19:50:25] Production.INFO: ==23487== Releasing lock... [2025-04-20 19:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 19:50:25] Production.INFO: 46 MB #Memory Used# [2025-04-20 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 16:51:05 [end_date_ymd] => 2025-04-20 19:51:05 [RateCDR] => 1 ) [2025-04-20 19:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 16:51:05' and `end` < '2025-04-20 19:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 19:51:18] Production.INFO: count ==2370 [2025-04-20 19:51:19] Production.ERROR: pbx CDR StartTime 2025-04-20 16:51:05 - End Time 2025-04-20 19:51:05 [2025-04-20 19:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952520', 'tblTempUsageDetail_20' ) start [2025-04-20 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952520', 'tblTempUsageDetail_20' ) end [2025-04-20 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952520', 'tblTempVendorCDR_20' ) start [2025-04-20 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952520', 'tblTempVendorCDR_20' ) end [2025-04-20 19:51:19] Production.INFO: ProcessCDR(1,14952520,1,1,2) [2025-04-20 19:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952520', 'tblTempUsageDetail_20' ) start [2025-04-20 19:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952520', 'tblTempUsageDetail_20' ) end [2025-04-20 19:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 19:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 19:51:22] Production.INFO: ==23564== Releasing lock... [2025-04-20 19:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 19:51:22] Production.INFO: 46 MB #Memory Used# [2025-04-20 19:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 16:52:05 [end_date_ymd] => 2025-04-20 19:52:05 [RateCDR] => 1 ) [2025-04-20 19:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 16:52:05' and `end` < '2025-04-20 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-20 19:52:18] Production.INFO: count ==2372 [2025-04-20 19:52:19] Production.ERROR: pbx CDR StartTime 2025-04-20 16:52:05 - End Time 2025-04-20 19:52:05 [2025-04-20 19:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952525', 'tblTempUsageDetail_20' ) start [2025-04-20 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952525', 'tblTempUsageDetail_20' ) end [2025-04-20 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952525', 'tblTempVendorCDR_20' ) start [2025-04-20 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952525', 'tblTempVendorCDR_20' ) end [2025-04-20 19:52:19] Production.INFO: ProcessCDR(1,14952525,1,1,2) [2025-04-20 19:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952525', 'tblTempUsageDetail_20' ) start [2025-04-20 19:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952525', 'tblTempUsageDetail_20' ) end [2025-04-20 19:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 19:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 19:52:23] Production.INFO: ==23636== Releasing lock... [2025-04-20 19:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 19:52:23] Production.INFO: 46 MB #Memory Used# [2025-04-20 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 16:53:05 [end_date_ymd] => 2025-04-20 19:53:05 [RateCDR] => 1 ) [2025-04-20 19:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 16:53:05' and `end` < '2025-04-20 19:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 19:53:18] Production.INFO: count ==2377 [2025-04-20 19:53:19] Production.ERROR: pbx CDR StartTime 2025-04-20 16:53:05 - End Time 2025-04-20 19:53:05 [2025-04-20 19:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952530', 'tblTempUsageDetail_20' ) start [2025-04-20 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952530', 'tblTempUsageDetail_20' ) end [2025-04-20 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952530', 'tblTempVendorCDR_20' ) start [2025-04-20 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952530', 'tblTempVendorCDR_20' ) end [2025-04-20 19:53:19] Production.INFO: ProcessCDR(1,14952530,1,1,2) [2025-04-20 19:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952530', 'tblTempUsageDetail_20' ) start [2025-04-20 19:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952530', 'tblTempUsageDetail_20' ) end [2025-04-20 19:53:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 19:53:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 19:53:24] Production.INFO: ==23711== Releasing lock... [2025-04-20 19:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 19:53:24] Production.INFO: 46 MB #Memory Used# [2025-04-20 19:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 16:54:06 [end_date_ymd] => 2025-04-20 19:54:06 [RateCDR] => 1 ) [2025-04-20 19: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-20 16:54:06' and `end` < '2025-04-20 19: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-20 19:54:19] Production.INFO: count ==2382 [2025-04-20 19:54:19] Production.ERROR: pbx CDR StartTime 2025-04-20 16:54:06 - End Time 2025-04-20 19:54:06 [2025-04-20 19:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952535', 'tblTempUsageDetail_20' ) start [2025-04-20 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952535', 'tblTempUsageDetail_20' ) end [2025-04-20 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952535', 'tblTempVendorCDR_20' ) start [2025-04-20 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952535', 'tblTempVendorCDR_20' ) end [2025-04-20 19:54:19] Production.INFO: ProcessCDR(1,14952535,1,1,2) [2025-04-20 19:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952535', 'tblTempUsageDetail_20' ) start [2025-04-20 19:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952535', 'tblTempUsageDetail_20' ) end [2025-04-20 19:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 19:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 19:54:23] Production.INFO: ==23785== Releasing lock... [2025-04-20 19:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 19:54:23] Production.INFO: 46 MB #Memory Used# [2025-04-20 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 16:55:05 [end_date_ymd] => 2025-04-20 19:55:05 [RateCDR] => 1 ) [2025-04-20 19:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 16:55:05' and `end` < '2025-04-20 19:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 19:55:18] Production.INFO: count ==2375 [2025-04-20 19:55:19] Production.ERROR: pbx CDR StartTime 2025-04-20 16:55:05 - End Time 2025-04-20 19:55:05 [2025-04-20 19:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952540', 'tblTempUsageDetail_20' ) start [2025-04-20 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952540', 'tblTempUsageDetail_20' ) end [2025-04-20 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952540', 'tblTempVendorCDR_20' ) start [2025-04-20 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952540', 'tblTempVendorCDR_20' ) end [2025-04-20 19:55:19] Production.INFO: ProcessCDR(1,14952540,1,1,2) [2025-04-20 19:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952540', 'tblTempUsageDetail_20' ) start [2025-04-20 19:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952540', 'tblTempUsageDetail_20' ) end [2025-04-20 19:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 19:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 19:55:23] Production.INFO: ==23859== Releasing lock... [2025-04-20 19:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 19:55:23] Production.INFO: 46 MB #Memory Used# [2025-04-20 19:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 16:56:06 [end_date_ymd] => 2025-04-20 19:56:06 [RateCDR] => 1 ) [2025-04-20 19: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-20 16:56:06' and `end` < '2025-04-20 19: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-20 19:56:19] Production.INFO: count ==2374 [2025-04-20 19:56:19] Production.ERROR: pbx CDR StartTime 2025-04-20 16:56:06 - End Time 2025-04-20 19:56:06 [2025-04-20 19:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952545', 'tblTempUsageDetail_20' ) start [2025-04-20 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952545', 'tblTempUsageDetail_20' ) end [2025-04-20 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952545', 'tblTempVendorCDR_20' ) start [2025-04-20 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952545', 'tblTempVendorCDR_20' ) end [2025-04-20 19:56:19] Production.INFO: ProcessCDR(1,14952545,1,1,2) [2025-04-20 19:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952545', 'tblTempUsageDetail_20' ) start [2025-04-20 19:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952545', 'tblTempUsageDetail_20' ) end [2025-04-20 19:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 19:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 19:56:23] Production.INFO: ==23930== Releasing lock... [2025-04-20 19:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 19:56:23] Production.INFO: 45.75 MB #Memory Used# [2025-04-20 19:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 16:57:04 [end_date_ymd] => 2025-04-20 19:57:04 [RateCDR] => 1 ) [2025-04-20 19:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 16:57:04' and `end` < '2025-04-20 19:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 19:57:17] Production.INFO: count ==2373 [2025-04-20 19:57:18] Production.ERROR: pbx CDR StartTime 2025-04-20 16:57:04 - End Time 2025-04-20 19:57:04 [2025-04-20 19:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952550', 'tblTempUsageDetail_20' ) start [2025-04-20 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952550', 'tblTempUsageDetail_20' ) end [2025-04-20 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952550', 'tblTempVendorCDR_20' ) start [2025-04-20 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952550', 'tblTempVendorCDR_20' ) end [2025-04-20 19:57:18] Production.INFO: ProcessCDR(1,14952550,1,1,2) [2025-04-20 19:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952550', 'tblTempUsageDetail_20' ) start [2025-04-20 19:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952550', 'tblTempUsageDetail_20' ) end [2025-04-20 19:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 19:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 19:57:21] Production.INFO: ==24041== Releasing lock... [2025-04-20 19:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 19:57:21] Production.INFO: 46 MB #Memory Used# [2025-04-20 19:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 16:58:06 [end_date_ymd] => 2025-04-20 19:58:06 [RateCDR] => 1 ) [2025-04-20 19: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-20 16:58:06' and `end` < '2025-04-20 19: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-20 19:58:19] Production.INFO: count ==2373 [2025-04-20 19:58:20] Production.ERROR: pbx CDR StartTime 2025-04-20 16:58:06 - End Time 2025-04-20 19:58:06 [2025-04-20 19:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 19:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952555', 'tblTempUsageDetail_20' ) start [2025-04-20 19:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952555', 'tblTempUsageDetail_20' ) end [2025-04-20 19:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952555', 'tblTempVendorCDR_20' ) start [2025-04-20 19:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952555', 'tblTempVendorCDR_20' ) end [2025-04-20 19:58:20] Production.INFO: ProcessCDR(1,14952555,1,1,2) [2025-04-20 19:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952555', 'tblTempUsageDetail_20' ) start [2025-04-20 19:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952555', 'tblTempUsageDetail_20' ) end [2025-04-20 19:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 19:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 19:58:23] Production.INFO: ==24116== Releasing lock... [2025-04-20 19:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 19:58:23] Production.INFO: 46.25 MB #Memory Used# [2025-04-20 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 16:59:05 [end_date_ymd] => 2025-04-20 19:59:05 [RateCDR] => 1 ) [2025-04-20 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-20 16:59:05' and `end` < '2025-04-20 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-20 19:59:17] Production.INFO: count ==2375 [2025-04-20 19:59:18] Production.ERROR: pbx CDR StartTime 2025-04-20 16:59:05 - End Time 2025-04-20 19:59:05 [2025-04-20 19:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952560', 'tblTempUsageDetail_20' ) start [2025-04-20 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952560', 'tblTempUsageDetail_20' ) end [2025-04-20 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952560', 'tblTempVendorCDR_20' ) start [2025-04-20 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952560', 'tblTempVendorCDR_20' ) end [2025-04-20 19:59:18] Production.INFO: ProcessCDR(1,14952560,1,1,2) [2025-04-20 19:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 19:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 19:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952560', 'tblTempUsageDetail_20' ) start [2025-04-20 19:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952560', 'tblTempUsageDetail_20' ) end [2025-04-20 19:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 19:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 19:59:22] Production.INFO: ==24186== Releasing lock... [2025-04-20 19:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 19:59:22] Production.INFO: 46 MB #Memory Used# [2025-04-20 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 17:00:06 [end_date_ymd] => 2025-04-20 20:00:06 [RateCDR] => 1 ) [2025-04-20 20:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 17:00:06' and `end` < '2025-04-20 20:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 20:00:19] Production.INFO: count ==2375 [2025-04-20 20:00:20] Production.ERROR: pbx CDR StartTime 2025-04-20 17:00:06 - End Time 2025-04-20 20:00:06 [2025-04-20 20:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952566', 'tblTempUsageDetail_20' ) start [2025-04-20 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952566', 'tblTempUsageDetail_20' ) end [2025-04-20 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952566', 'tblTempVendorCDR_20' ) start [2025-04-20 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952566', 'tblTempVendorCDR_20' ) end [2025-04-20 20:00:20] Production.INFO: ProcessCDR(1,14952566,1,1,2) [2025-04-20 20:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952566', 'tblTempUsageDetail_20' ) start [2025-04-20 20:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952566', 'tblTempUsageDetail_20' ) end [2025-04-20 20:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 20:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 20:00:24] Production.INFO: ==24262== Releasing lock... [2025-04-20 20:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 20:00:24] Production.INFO: 46 MB #Memory Used# [2025-04-20 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 17:01:05 [end_date_ymd] => 2025-04-20 20:01:05 [RateCDR] => 1 ) [2025-04-20 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-20 17:01:05' and `end` < '2025-04-20 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-20 20:01:17] Production.INFO: count ==2387 [2025-04-20 20:01:18] Production.ERROR: pbx CDR StartTime 2025-04-20 17:01:05 - End Time 2025-04-20 20:01:05 [2025-04-20 20:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952571', 'tblTempUsageDetail_20' ) start [2025-04-20 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952571', 'tblTempUsageDetail_20' ) end [2025-04-20 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952571', 'tblTempVendorCDR_20' ) start [2025-04-20 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952571', 'tblTempVendorCDR_20' ) end [2025-04-20 20:01:18] Production.INFO: ProcessCDR(1,14952571,1,1,2) [2025-04-20 20:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952571', 'tblTempUsageDetail_20' ) start [2025-04-20 20:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952571', 'tblTempUsageDetail_20' ) end [2025-04-20 20:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 20:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 20:01:22] Production.INFO: ==24388== Releasing lock... [2025-04-20 20:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 20:01:22] Production.INFO: 46.25 MB #Memory Used# [2025-04-20 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 17:02:05 [end_date_ymd] => 2025-04-20 20:02:05 [RateCDR] => 1 ) [2025-04-20 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-20 17:02:05' and `end` < '2025-04-20 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-20 20:02:18] Production.INFO: count ==2393 [2025-04-20 20:02:18] Production.ERROR: pbx CDR StartTime 2025-04-20 17:02:05 - End Time 2025-04-20 20:02:05 [2025-04-20 20:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952576', 'tblTempUsageDetail_20' ) start [2025-04-20 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952576', 'tblTempUsageDetail_20' ) end [2025-04-20 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952576', 'tblTempVendorCDR_20' ) start [2025-04-20 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952576', 'tblTempVendorCDR_20' ) end [2025-04-20 20:02:19] Production.INFO: ProcessCDR(1,14952576,1,1,2) [2025-04-20 20:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952576', 'tblTempUsageDetail_20' ) start [2025-04-20 20:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952576', 'tblTempUsageDetail_20' ) end [2025-04-20 20:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 20:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 20:02:23] Production.INFO: ==24461== Releasing lock... [2025-04-20 20:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 20:02:23] Production.INFO: 46 MB #Memory Used# [2025-04-20 20:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 17:03:06 [end_date_ymd] => 2025-04-20 20:03:06 [RateCDR] => 1 ) [2025-04-20 20:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 17:03:06' and `end` < '2025-04-20 20:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 20:03:18] Production.INFO: count ==2394 [2025-04-20 20:03:19] Production.ERROR: pbx CDR StartTime 2025-04-20 17:03:06 - End Time 2025-04-20 20:03:06 [2025-04-20 20:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952581', 'tblTempUsageDetail_20' ) start [2025-04-20 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952581', 'tblTempUsageDetail_20' ) end [2025-04-20 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952581', 'tblTempVendorCDR_20' ) start [2025-04-20 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952581', 'tblTempVendorCDR_20' ) end [2025-04-20 20:03:19] Production.INFO: ProcessCDR(1,14952581,1,1,2) [2025-04-20 20:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952581', 'tblTempUsageDetail_20' ) start [2025-04-20 20:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952581', 'tblTempUsageDetail_20' ) end [2025-04-20 20:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 20:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 20:03:23] Production.INFO: ==24572== Releasing lock... [2025-04-20 20:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 20:03:23] Production.INFO: 46.5 MB #Memory Used# [2025-04-20 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 17:04:05 [end_date_ymd] => 2025-04-20 20:04:05 [RateCDR] => 1 ) [2025-04-20 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-20 17:04:05' and `end` < '2025-04-20 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-20 20:04:18] Production.INFO: count ==2395 [2025-04-20 20:04:18] Production.ERROR: pbx CDR StartTime 2025-04-20 17:04:05 - End Time 2025-04-20 20:04:05 [2025-04-20 20:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952586', 'tblTempUsageDetail_20' ) start [2025-04-20 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952586', 'tblTempUsageDetail_20' ) end [2025-04-20 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952586', 'tblTempVendorCDR_20' ) start [2025-04-20 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952586', 'tblTempVendorCDR_20' ) end [2025-04-20 20:04:18] Production.INFO: ProcessCDR(1,14952586,1,1,2) [2025-04-20 20:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952586', 'tblTempUsageDetail_20' ) start [2025-04-20 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952586', 'tblTempUsageDetail_20' ) end [2025-04-20 20:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 20:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 20:04:22] Production.INFO: ==24648== Releasing lock... [2025-04-20 20:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 20:04:22] Production.INFO: 46 MB #Memory Used# [2025-04-20 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 17:05:05 [end_date_ymd] => 2025-04-20 20:05:05 [RateCDR] => 1 ) [2025-04-20 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-20 17:05:05' and `end` < '2025-04-20 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-20 20:05:19] Production.INFO: count ==2394 [2025-04-20 20:05:19] Production.ERROR: pbx CDR StartTime 2025-04-20 17:05:05 - End Time 2025-04-20 20:05:05 [2025-04-20 20:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952591', 'tblTempUsageDetail_20' ) start [2025-04-20 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952591', 'tblTempUsageDetail_20' ) end [2025-04-20 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952591', 'tblTempVendorCDR_20' ) start [2025-04-20 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952591', 'tblTempVendorCDR_20' ) end [2025-04-20 20:05:19] Production.INFO: ProcessCDR(1,14952591,1,1,2) [2025-04-20 20:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952591', 'tblTempUsageDetail_20' ) start [2025-04-20 20:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952591', 'tblTempUsageDetail_20' ) end [2025-04-20 20:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 20:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 20:05:23] Production.INFO: ==24724== Releasing lock... [2025-04-20 20:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 20:05:23] Production.INFO: 46 MB #Memory Used# [2025-04-20 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 17:06:05 [end_date_ymd] => 2025-04-20 20:06:05 [RateCDR] => 1 ) [2025-04-20 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-20 17:06:05' and `end` < '2025-04-20 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-20 20:06:18] Production.INFO: count ==2398 [2025-04-20 20:06:19] Production.ERROR: pbx CDR StartTime 2025-04-20 17:06:05 - End Time 2025-04-20 20:06:05 [2025-04-20 20:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952596', 'tblTempUsageDetail_20' ) start [2025-04-20 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952596', 'tblTempUsageDetail_20' ) end [2025-04-20 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952596', 'tblTempVendorCDR_20' ) start [2025-04-20 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952596', 'tblTempVendorCDR_20' ) end [2025-04-20 20:06:19] Production.INFO: ProcessCDR(1,14952596,1,1,2) [2025-04-20 20:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952596', 'tblTempUsageDetail_20' ) start [2025-04-20 20:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952596', 'tblTempUsageDetail_20' ) end [2025-04-20 20:06:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 20:06:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 20:06:24] Production.INFO: ==24800== Releasing lock... [2025-04-20 20:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 20:06:24] Production.INFO: 46 MB #Memory Used# [2025-04-20 20:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 17:07:06 [end_date_ymd] => 2025-04-20 20:07:06 [RateCDR] => 1 ) [2025-04-20 20:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 17:07:06' and `end` < '2025-04-20 20:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 20:07:19] Production.INFO: count ==2403 [2025-04-20 20:07:19] Production.ERROR: pbx CDR StartTime 2025-04-20 17:07:06 - End Time 2025-04-20 20:07:06 [2025-04-20 20:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952601', 'tblTempUsageDetail_20' ) start [2025-04-20 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952601', 'tblTempUsageDetail_20' ) end [2025-04-20 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952601', 'tblTempVendorCDR_20' ) start [2025-04-20 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952601', 'tblTempVendorCDR_20' ) end [2025-04-20 20:07:20] Production.INFO: ProcessCDR(1,14952601,1,1,2) [2025-04-20 20:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952601', 'tblTempUsageDetail_20' ) start [2025-04-20 20:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952601', 'tblTempUsageDetail_20' ) end [2025-04-20 20:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 20:07:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 20:07:23] Production.INFO: ==24873== Releasing lock... [2025-04-20 20:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 20:07:23] Production.INFO: 46.25 MB #Memory Used# [2025-04-20 20:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 17:08:05 [end_date_ymd] => 2025-04-20 20:08:05 [RateCDR] => 1 ) [2025-04-20 20:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 17:08:05' and `end` < '2025-04-20 20:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 20:08:18] Production.INFO: count ==2402 [2025-04-20 20:08:19] Production.ERROR: pbx CDR StartTime 2025-04-20 17:08:05 - End Time 2025-04-20 20:08:05 [2025-04-20 20:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952606', 'tblTempUsageDetail_20' ) start [2025-04-20 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952606', 'tblTempUsageDetail_20' ) end [2025-04-20 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952606', 'tblTempVendorCDR_20' ) start [2025-04-20 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952606', 'tblTempVendorCDR_20' ) end [2025-04-20 20:08:19] Production.INFO: ProcessCDR(1,14952606,1,1,2) [2025-04-20 20:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952606', 'tblTempUsageDetail_20' ) start [2025-04-20 20:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952606', 'tblTempUsageDetail_20' ) end [2025-04-20 20:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 20:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 20:08:22] Production.INFO: ==24947== Releasing lock... [2025-04-20 20:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 20:08:22] Production.INFO: 46.25 MB #Memory Used# [2025-04-20 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 17:09:05 [end_date_ymd] => 2025-04-20 20:09:05 [RateCDR] => 1 ) [2025-04-20 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-20 17:09:05' and `end` < '2025-04-20 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-20 20:09:18] Production.INFO: count ==2404 [2025-04-20 20:09:19] Production.ERROR: pbx CDR StartTime 2025-04-20 17:09:05 - End Time 2025-04-20 20:09:05 [2025-04-20 20:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952611', 'tblTempUsageDetail_20' ) start [2025-04-20 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952611', 'tblTempUsageDetail_20' ) end [2025-04-20 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952611', 'tblTempVendorCDR_20' ) start [2025-04-20 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952611', 'tblTempVendorCDR_20' ) end [2025-04-20 20:09:19] Production.INFO: ProcessCDR(1,14952611,1,1,2) [2025-04-20 20:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952611', 'tblTempUsageDetail_20' ) start [2025-04-20 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952611', 'tblTempUsageDetail_20' ) end [2025-04-20 20:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 20:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 20:09:22] Production.INFO: ==25021== Releasing lock... [2025-04-20 20:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 20:09:22] Production.INFO: 46.25 MB #Memory Used# [2025-04-20 20:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 17:10:05 [end_date_ymd] => 2025-04-20 20:10:05 [RateCDR] => 1 ) [2025-04-20 20:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 17:10:05' and `end` < '2025-04-20 20:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 20:10:18] Production.INFO: count ==2389 [2025-04-20 20:10:19] Production.ERROR: pbx CDR StartTime 2025-04-20 17:10:05 - End Time 2025-04-20 20:10:05 [2025-04-20 20:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952616', 'tblTempUsageDetail_20' ) start [2025-04-20 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952616', 'tblTempUsageDetail_20' ) end [2025-04-20 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952616', 'tblTempVendorCDR_20' ) start [2025-04-20 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952616', 'tblTempVendorCDR_20' ) end [2025-04-20 20:10:19] Production.INFO: ProcessCDR(1,14952616,1,1,2) [2025-04-20 20:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952616', 'tblTempUsageDetail_20' ) start [2025-04-20 20:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952616', 'tblTempUsageDetail_20' ) end [2025-04-20 20:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 20:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 20:10:22] Production.INFO: ==25096== Releasing lock... [2025-04-20 20:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 20:10:22] Production.INFO: 46.25 MB #Memory Used# [2025-04-20 20:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 17:11:06 [end_date_ymd] => 2025-04-20 20:11:06 [RateCDR] => 1 ) [2025-04-20 20: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-20 17:11:06' and `end` < '2025-04-20 20: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-20 20:11:18] Production.INFO: count ==2341 [2025-04-20 20:11:19] Production.ERROR: pbx CDR StartTime 2025-04-20 17:11:06 - End Time 2025-04-20 20:11:06 [2025-04-20 20:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952622', 'tblTempUsageDetail_20' ) start [2025-04-20 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952622', 'tblTempUsageDetail_20' ) end [2025-04-20 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952622', 'tblTempVendorCDR_20' ) start [2025-04-20 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952622', 'tblTempVendorCDR_20' ) end [2025-04-20 20:11:19] Production.INFO: ProcessCDR(1,14952622,1,1,2) [2025-04-20 20:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952622', 'tblTempUsageDetail_20' ) start [2025-04-20 20:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952622', 'tblTempUsageDetail_20' ) end [2025-04-20 20:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 20:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 20:11:23] Production.INFO: ==25171== Releasing lock... [2025-04-20 20:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 20:11:23] Production.INFO: 45.75 MB #Memory Used# [2025-04-20 20:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 17:12:05 [end_date_ymd] => 2025-04-20 20:12:05 [RateCDR] => 1 ) [2025-04-20 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-20 17:12:05' and `end` < '2025-04-20 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-20 20:12:18] Production.INFO: count ==2326 [2025-04-20 20:12:19] Production.ERROR: pbx CDR StartTime 2025-04-20 17:12:05 - End Time 2025-04-20 20:12:05 [2025-04-20 20:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952627', 'tblTempUsageDetail_20' ) start [2025-04-20 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952627', 'tblTempUsageDetail_20' ) end [2025-04-20 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952627', 'tblTempVendorCDR_20' ) start [2025-04-20 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952627', 'tblTempVendorCDR_20' ) end [2025-04-20 20:12:19] Production.INFO: ProcessCDR(1,14952627,1,1,2) [2025-04-20 20:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952627', 'tblTempUsageDetail_20' ) start [2025-04-20 20:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952627', 'tblTempUsageDetail_20' ) end [2025-04-20 20:12:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 20:12:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 20:12:23] Production.INFO: ==25287== Releasing lock... [2025-04-20 20:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 20:12:23] Production.INFO: 45.75 MB #Memory Used# [2025-04-20 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 17:13:05 [end_date_ymd] => 2025-04-20 20:13:05 [RateCDR] => 1 ) [2025-04-20 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-20 17:13:05' and `end` < '2025-04-20 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-20 20:13:18] Production.INFO: count ==2318 [2025-04-20 20:13:18] Production.ERROR: pbx CDR StartTime 2025-04-20 17:13:05 - End Time 2025-04-20 20:13:05 [2025-04-20 20:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952632', 'tblTempUsageDetail_20' ) start [2025-04-20 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952632', 'tblTempUsageDetail_20' ) end [2025-04-20 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952632', 'tblTempVendorCDR_20' ) start [2025-04-20 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952632', 'tblTempVendorCDR_20' ) end [2025-04-20 20:13:18] Production.INFO: ProcessCDR(1,14952632,1,1,2) [2025-04-20 20:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952632', 'tblTempUsageDetail_20' ) start [2025-04-20 20:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952632', 'tblTempUsageDetail_20' ) end [2025-04-20 20:13:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 20:13:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 20:13:23] Production.INFO: ==25362== Releasing lock... [2025-04-20 20:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 20:13:23] Production.INFO: 45.5 MB #Memory Used# [2025-04-20 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 17:14:05 [end_date_ymd] => 2025-04-20 20:14:05 [RateCDR] => 1 ) [2025-04-20 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-20 17:14:05' and `end` < '2025-04-20 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-20 20:14:18] Production.INFO: count ==2302 [2025-04-20 20:14:19] Production.ERROR: pbx CDR StartTime 2025-04-20 17:14:05 - End Time 2025-04-20 20:14:05 [2025-04-20 20:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952637', 'tblTempUsageDetail_20' ) start [2025-04-20 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952637', 'tblTempUsageDetail_20' ) end [2025-04-20 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952637', 'tblTempVendorCDR_20' ) start [2025-04-20 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952637', 'tblTempVendorCDR_20' ) end [2025-04-20 20:14:19] Production.INFO: ProcessCDR(1,14952637,1,1,2) [2025-04-20 20:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952637', 'tblTempUsageDetail_20' ) start [2025-04-20 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952637', 'tblTempUsageDetail_20' ) end [2025-04-20 20:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 20:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 20:14:22] Production.INFO: ==25436== Releasing lock... [2025-04-20 20:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 20:14:22] Production.INFO: 45.5 MB #Memory Used# [2025-04-20 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 17:15:05 [end_date_ymd] => 2025-04-20 20:15:05 [RateCDR] => 1 ) [2025-04-20 20:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 17:15:05' and `end` < '2025-04-20 20:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 20:15:18] Production.INFO: count ==2286 [2025-04-20 20:15:19] Production.ERROR: pbx CDR StartTime 2025-04-20 17:15:05 - End Time 2025-04-20 20:15:05 [2025-04-20 20:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952642', 'tblTempUsageDetail_20' ) start [2025-04-20 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952642', 'tblTempUsageDetail_20' ) end [2025-04-20 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952642', 'tblTempVendorCDR_20' ) start [2025-04-20 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952642', 'tblTempVendorCDR_20' ) end [2025-04-20 20:15:19] Production.INFO: ProcessCDR(1,14952642,1,1,2) [2025-04-20 20:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952642', 'tblTempUsageDetail_20' ) start [2025-04-20 20:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952642', 'tblTempUsageDetail_20' ) end [2025-04-20 20:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 20:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 20:15:22] Production.INFO: ==25509== Releasing lock... [2025-04-20 20:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 20:15:22] Production.INFO: 45.5 MB #Memory Used# [2025-04-20 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 17:16:05 [end_date_ymd] => 2025-04-20 20:16:05 [RateCDR] => 1 ) [2025-04-20 20:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 17:16:05' and `end` < '2025-04-20 20:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 20:16:18] Production.INFO: count ==2271 [2025-04-20 20:16:19] Production.ERROR: pbx CDR StartTime 2025-04-20 17:16:05 - End Time 2025-04-20 20:16:05 [2025-04-20 20:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952647', 'tblTempUsageDetail_20' ) start [2025-04-20 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952647', 'tblTempUsageDetail_20' ) end [2025-04-20 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952647', 'tblTempVendorCDR_20' ) start [2025-04-20 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952647', 'tblTempVendorCDR_20' ) end [2025-04-20 20:16:19] Production.INFO: ProcessCDR(1,14952647,1,1,2) [2025-04-20 20:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952647', 'tblTempUsageDetail_20' ) start [2025-04-20 20:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952647', 'tblTempUsageDetail_20' ) end [2025-04-20 20:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 20:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 20:16:22] Production.INFO: ==25580== Releasing lock... [2025-04-20 20:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 20:16:22] Production.INFO: 45.25 MB #Memory Used# [2025-04-20 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 17:17:05 [end_date_ymd] => 2025-04-20 20:17:05 [RateCDR] => 1 ) [2025-04-20 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-20 17:17:05' and `end` < '2025-04-20 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-20 20:17:18] Production.INFO: count ==2253 [2025-04-20 20:17:18] Production.ERROR: pbx CDR StartTime 2025-04-20 17:17:05 - End Time 2025-04-20 20:17:05 [2025-04-20 20:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952652', 'tblTempUsageDetail_20' ) start [2025-04-20 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952652', 'tblTempUsageDetail_20' ) end [2025-04-20 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952652', 'tblTempVendorCDR_20' ) start [2025-04-20 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952652', 'tblTempVendorCDR_20' ) end [2025-04-20 20:17:18] Production.INFO: ProcessCDR(1,14952652,1,1,2) [2025-04-20 20:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952652', 'tblTempUsageDetail_20' ) start [2025-04-20 20:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952652', 'tblTempUsageDetail_20' ) end [2025-04-20 20:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 20:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 20:17:22] Production.INFO: ==25652== Releasing lock... [2025-04-20 20:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 20:17:22] Production.INFO: 45.25 MB #Memory Used# [2025-04-20 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 17:18:05 [end_date_ymd] => 2025-04-20 20:18:05 [RateCDR] => 1 ) [2025-04-20 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-20 17:18:05' and `end` < '2025-04-20 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-20 20:18:18] Production.INFO: count ==2249 [2025-04-20 20:18:19] Production.ERROR: pbx CDR StartTime 2025-04-20 17:18:05 - End Time 2025-04-20 20:18:05 [2025-04-20 20:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952657', 'tblTempUsageDetail_20' ) start [2025-04-20 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952657', 'tblTempUsageDetail_20' ) end [2025-04-20 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952657', 'tblTempVendorCDR_20' ) start [2025-04-20 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952657', 'tblTempVendorCDR_20' ) end [2025-04-20 20:18:19] Production.INFO: ProcessCDR(1,14952657,1,1,2) [2025-04-20 20:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952657', 'tblTempUsageDetail_20' ) start [2025-04-20 20:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952657', 'tblTempUsageDetail_20' ) end [2025-04-20 20:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 20:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 20:18:22] Production.INFO: ==25733== Releasing lock... [2025-04-20 20:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 20:18:22] Production.INFO: 45.25 MB #Memory Used# [2025-04-20 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 17:19:05 [end_date_ymd] => 2025-04-20 20:19:05 [RateCDR] => 1 ) [2025-04-20 20:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 17:19:05' and `end` < '2025-04-20 20:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 20:19:17] Production.INFO: count ==2247 [2025-04-20 20:19:18] Production.ERROR: pbx CDR StartTime 2025-04-20 17:19:05 - End Time 2025-04-20 20:19:05 [2025-04-20 20:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952662', 'tblTempUsageDetail_20' ) start [2025-04-20 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952662', 'tblTempUsageDetail_20' ) end [2025-04-20 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952662', 'tblTempVendorCDR_20' ) start [2025-04-20 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952662', 'tblTempVendorCDR_20' ) end [2025-04-20 20:19:18] Production.INFO: ProcessCDR(1,14952662,1,1,2) [2025-04-20 20:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952662', 'tblTempUsageDetail_20' ) start [2025-04-20 20:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952662', 'tblTempUsageDetail_20' ) end [2025-04-20 20:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 20:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 20:19:22] Production.INFO: ==25813== Releasing lock... [2025-04-20 20:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 20:19:22] Production.INFO: 45.25 MB #Memory Used# [2025-04-20 20:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 17:20:05 [end_date_ymd] => 2025-04-20 20:20:05 [RateCDR] => 1 ) [2025-04-20 20: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-20 17:20:05' and `end` < '2025-04-20 20: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-20 20:20:18] Production.INFO: count ==2236 [2025-04-20 20:20:18] Production.ERROR: pbx CDR StartTime 2025-04-20 17:20:05 - End Time 2025-04-20 20:20:05 [2025-04-20 20:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 20:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952668', 'tblTempUsageDetail_20' ) start [2025-04-20 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952668', 'tblTempUsageDetail_20' ) end [2025-04-20 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952668', 'tblTempVendorCDR_20' ) start [2025-04-20 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952668', 'tblTempVendorCDR_20' ) end [2025-04-20 20:20:19] Production.INFO: ProcessCDR(1,14952668,1,1,2) [2025-04-20 20:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952668', 'tblTempUsageDetail_20' ) start [2025-04-20 20:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952668', 'tblTempUsageDetail_20' ) end [2025-04-20 20:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 20:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 20:20:22] Production.INFO: ==25891== Releasing lock... [2025-04-20 20:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 20:20:22] Production.INFO: 45.25 MB #Memory Used# [2025-04-20 20:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 17:21:06 [end_date_ymd] => 2025-04-20 20:21:06 [RateCDR] => 1 ) [2025-04-20 20: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-20 17:21:06' and `end` < '2025-04-20 20: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-20 20:21:19] Production.INFO: count ==2248 [2025-04-20 20:21:20] Production.ERROR: pbx CDR StartTime 2025-04-20 17:21:06 - End Time 2025-04-20 20:21:06 [2025-04-20 20:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 20:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952673', 'tblTempUsageDetail_20' ) start [2025-04-20 20:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952673', 'tblTempUsageDetail_20' ) end [2025-04-20 20:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952673', 'tblTempVendorCDR_20' ) start [2025-04-20 20:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952673', 'tblTempVendorCDR_20' ) end [2025-04-20 20:21:20] Production.INFO: ProcessCDR(1,14952673,1,1,2) [2025-04-20 20:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952673', 'tblTempUsageDetail_20' ) start [2025-04-20 20:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952673', 'tblTempUsageDetail_20' ) end [2025-04-20 20:21:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 20:21:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 20:21:23] Production.INFO: ==25965== Releasing lock... [2025-04-20 20:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 20:21:23] Production.INFO: 45.25 MB #Memory Used# [2025-04-20 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 17:22:05 [end_date_ymd] => 2025-04-20 20:22:05 [RateCDR] => 1 ) [2025-04-20 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-20 17:22:05' and `end` < '2025-04-20 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-20 20:22:18] Production.INFO: count ==2238 [2025-04-20 20:22:19] Production.ERROR: pbx CDR StartTime 2025-04-20 17:22:05 - End Time 2025-04-20 20:22:05 [2025-04-20 20:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952678', 'tblTempUsageDetail_20' ) start [2025-04-20 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952678', 'tblTempUsageDetail_20' ) end [2025-04-20 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952678', 'tblTempVendorCDR_20' ) start [2025-04-20 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952678', 'tblTempVendorCDR_20' ) end [2025-04-20 20:22:19] Production.INFO: ProcessCDR(1,14952678,1,1,2) [2025-04-20 20:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952678', 'tblTempUsageDetail_20' ) start [2025-04-20 20:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952678', 'tblTempUsageDetail_20' ) end [2025-04-20 20:22:25] Production.ERROR: pbx prc_insertCDR start [2025-04-20 20:22:25] Production.ERROR: pbx prc_insertCDR end [2025-04-20 20:22:25] Production.INFO: ==26039== Releasing lock... [2025-04-20 20:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 20:22:25] Production.INFO: 45 MB #Memory Used# [2025-04-20 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 17:23:05 [end_date_ymd] => 2025-04-20 20:23:05 [RateCDR] => 1 ) [2025-04-20 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-20 17:23:05' and `end` < '2025-04-20 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-20 20:23:18] Production.INFO: count ==2225 [2025-04-20 20:23:20] Production.ERROR: pbx CDR StartTime 2025-04-20 17:23:05 - End Time 2025-04-20 20:23:05 [2025-04-20 20:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 20:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952683', 'tblTempUsageDetail_20' ) start [2025-04-20 20:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952683', 'tblTempUsageDetail_20' ) end [2025-04-20 20:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952683', 'tblTempVendorCDR_20' ) start [2025-04-20 20:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952683', 'tblTempVendorCDR_20' ) end [2025-04-20 20:23:20] Production.INFO: ProcessCDR(1,14952683,1,1,2) [2025-04-20 20:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952683', 'tblTempUsageDetail_20' ) start [2025-04-20 20:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952683', 'tblTempUsageDetail_20' ) end [2025-04-20 20:23:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 20:23:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 20:23:23] Production.INFO: ==26112== Releasing lock... [2025-04-20 20:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 20:23:23] Production.INFO: 45 MB #Memory Used# [2025-04-20 20:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 17:24:05 [end_date_ymd] => 2025-04-20 20:24:05 [RateCDR] => 1 ) [2025-04-20 20:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 17:24:05' and `end` < '2025-04-20 20:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 20:24:18] Production.INFO: count ==2213 [2025-04-20 20:24:18] Production.ERROR: pbx CDR StartTime 2025-04-20 17:24:05 - End Time 2025-04-20 20:24:05 [2025-04-20 20:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952688', 'tblTempUsageDetail_20' ) start [2025-04-20 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952688', 'tblTempUsageDetail_20' ) end [2025-04-20 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952688', 'tblTempVendorCDR_20' ) start [2025-04-20 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952688', 'tblTempVendorCDR_20' ) end [2025-04-20 20:24:19] Production.INFO: ProcessCDR(1,14952688,1,1,2) [2025-04-20 20:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952688', 'tblTempUsageDetail_20' ) start [2025-04-20 20:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952688', 'tblTempUsageDetail_20' ) end [2025-04-20 20:24:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 20:24:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 20:24:23] Production.INFO: ==26183== Releasing lock... [2025-04-20 20:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 20:24:23] Production.INFO: 45 MB #Memory Used# [2025-04-20 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 17:25:05 [end_date_ymd] => 2025-04-20 20:25:05 [RateCDR] => 1 ) [2025-04-20 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-20 17:25:05' and `end` < '2025-04-20 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-20 20:25:18] Production.INFO: count ==2206 [2025-04-20 20:25:19] Production.ERROR: pbx CDR StartTime 2025-04-20 17:25:05 - End Time 2025-04-20 20:25:05 [2025-04-20 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952693', 'tblTempUsageDetail_20' ) start [2025-04-20 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952693', 'tblTempUsageDetail_20' ) end [2025-04-20 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952693', 'tblTempVendorCDR_20' ) start [2025-04-20 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952693', 'tblTempVendorCDR_20' ) end [2025-04-20 20:25:19] Production.INFO: ProcessCDR(1,14952693,1,1,2) [2025-04-20 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952693', 'tblTempUsageDetail_20' ) start [2025-04-20 20:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952693', 'tblTempUsageDetail_20' ) end [2025-04-20 20:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 20:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 20:25:22] Production.INFO: ==26256== Releasing lock... [2025-04-20 20:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 20:25:22] Production.INFO: 45.25 MB #Memory Used# [2025-04-20 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 17:26:05 [end_date_ymd] => 2025-04-20 20:26:05 [RateCDR] => 1 ) [2025-04-20 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-20 17:26:05' and `end` < '2025-04-20 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-20 20:26:18] Production.INFO: count ==2193 [2025-04-20 20:26:18] Production.ERROR: pbx CDR StartTime 2025-04-20 17:26:05 - End Time 2025-04-20 20:26:05 [2025-04-20 20:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952698', 'tblTempUsageDetail_20' ) start [2025-04-20 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952698', 'tblTempUsageDetail_20' ) end [2025-04-20 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952698', 'tblTempVendorCDR_20' ) start [2025-04-20 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952698', 'tblTempVendorCDR_20' ) end [2025-04-20 20:26:18] Production.INFO: ProcessCDR(1,14952698,1,1,2) [2025-04-20 20:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952698', 'tblTempUsageDetail_20' ) start [2025-04-20 20:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952698', 'tblTempUsageDetail_20' ) end [2025-04-20 20:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 20:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 20:26:22] Production.INFO: ==26326== Releasing lock... [2025-04-20 20:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 20:26:22] Production.INFO: 44.75 MB #Memory Used# [2025-04-20 20:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 17:27:04 [end_date_ymd] => 2025-04-20 20:27:04 [RateCDR] => 1 ) [2025-04-20 20:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 17:27:04' and `end` < '2025-04-20 20:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 20:27:17] Production.INFO: count ==2182 [2025-04-20 20:27:18] Production.ERROR: pbx CDR StartTime 2025-04-20 17:27:04 - End Time 2025-04-20 20:27:04 [2025-04-20 20:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952703', 'tblTempUsageDetail_20' ) start [2025-04-20 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952703', 'tblTempUsageDetail_20' ) end [2025-04-20 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952703', 'tblTempVendorCDR_20' ) start [2025-04-20 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952703', 'tblTempVendorCDR_20' ) end [2025-04-20 20:27:18] Production.INFO: ProcessCDR(1,14952703,1,1,2) [2025-04-20 20:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952703', 'tblTempUsageDetail_20' ) start [2025-04-20 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952703', 'tblTempUsageDetail_20' ) end [2025-04-20 20:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 20:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 20:27:22] Production.INFO: ==26398== Releasing lock... [2025-04-20 20:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 20:27:22] Production.INFO: 44.5 MB #Memory Used# [2025-04-20 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 17:28:05 [end_date_ymd] => 2025-04-20 20:28:05 [RateCDR] => 1 ) [2025-04-20 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-20 17:28:05' and `end` < '2025-04-20 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-20 20:28:18] Production.INFO: count ==2174 [2025-04-20 20:28:19] Production.ERROR: pbx CDR StartTime 2025-04-20 17:28:05 - End Time 2025-04-20 20:28:05 [2025-04-20 20:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952708', 'tblTempUsageDetail_20' ) start [2025-04-20 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952708', 'tblTempUsageDetail_20' ) end [2025-04-20 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952708', 'tblTempVendorCDR_20' ) start [2025-04-20 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952708', 'tblTempVendorCDR_20' ) end [2025-04-20 20:28:19] Production.INFO: ProcessCDR(1,14952708,1,1,2) [2025-04-20 20:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952708', 'tblTempUsageDetail_20' ) start [2025-04-20 20:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952708', 'tblTempUsageDetail_20' ) end [2025-04-20 20:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 20:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 20:28:22] Production.INFO: ==26514== Releasing lock... [2025-04-20 20:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 20:28:22] Production.INFO: 44.75 MB #Memory Used# [2025-04-20 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 17:29:05 [end_date_ymd] => 2025-04-20 20:29:05 [RateCDR] => 1 ) [2025-04-20 20:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 17:29:05' and `end` < '2025-04-20 20:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 20:29:18] Production.INFO: count ==2173 [2025-04-20 20:29:19] Production.ERROR: pbx CDR StartTime 2025-04-20 17:29:05 - End Time 2025-04-20 20:29:05 [2025-04-20 20:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952713', 'tblTempUsageDetail_20' ) start [2025-04-20 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952713', 'tblTempUsageDetail_20' ) end [2025-04-20 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952713', 'tblTempVendorCDR_20' ) start [2025-04-20 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952713', 'tblTempVendorCDR_20' ) end [2025-04-20 20:29:19] Production.INFO: ProcessCDR(1,14952713,1,1,2) [2025-04-20 20:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952713', 'tblTempUsageDetail_20' ) start [2025-04-20 20:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952713', 'tblTempUsageDetail_20' ) end [2025-04-20 20:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 20:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 20:29:22] Production.INFO: ==26583== Releasing lock... [2025-04-20 20:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 20:29:22] Production.INFO: 44.75 MB #Memory Used# [2025-04-20 20:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 17:30:07 [end_date_ymd] => 2025-04-20 20:30:07 [RateCDR] => 1 ) [2025-04-20 20:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 17:30:07' and `end` < '2025-04-20 20:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 20:30:19] Production.INFO: count ==2160 [2025-04-20 20:30:20] Production.ERROR: pbx CDR StartTime 2025-04-20 17:30:07 - End Time 2025-04-20 20:30:07 [2025-04-20 20:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952719', 'tblTempUsageDetail_20' ) start [2025-04-20 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952719', 'tblTempUsageDetail_20' ) end [2025-04-20 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952719', 'tblTempVendorCDR_20' ) start [2025-04-20 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952719', 'tblTempVendorCDR_20' ) end [2025-04-20 20:30:20] Production.INFO: ProcessCDR(1,14952719,1,1,2) [2025-04-20 20:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952719', 'tblTempUsageDetail_20' ) start [2025-04-20 20:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952719', 'tblTempUsageDetail_20' ) end [2025-04-20 20:30:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 20:30:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 20:30:24] Production.INFO: ==26661== Releasing lock... [2025-04-20 20:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 20:30:24] Production.INFO: 44.75 MB #Memory Used# [2025-04-20 20:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 17:31:06 [end_date_ymd] => 2025-04-20 20:31:06 [RateCDR] => 1 ) [2025-04-20 20:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 17:31:06' and `end` < '2025-04-20 20:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 20:31:19] Production.INFO: count ==2142 [2025-04-20 20:31:19] Production.ERROR: pbx CDR StartTime 2025-04-20 17:31:06 - End Time 2025-04-20 20:31:06 [2025-04-20 20:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952724', 'tblTempUsageDetail_20' ) start [2025-04-20 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952724', 'tblTempUsageDetail_20' ) end [2025-04-20 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952724', 'tblTempVendorCDR_20' ) start [2025-04-20 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952724', 'tblTempVendorCDR_20' ) end [2025-04-20 20:31:19] Production.INFO: ProcessCDR(1,14952724,1,1,2) [2025-04-20 20:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952724', 'tblTempUsageDetail_20' ) start [2025-04-20 20:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952724', 'tblTempUsageDetail_20' ) end [2025-04-20 20:31:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 20:31:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 20:31:24] Production.INFO: ==26740== Releasing lock... [2025-04-20 20:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 20:31:24] Production.INFO: 44.25 MB #Memory Used# [2025-04-20 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 17:32:05 [end_date_ymd] => 2025-04-20 20:32:05 [RateCDR] => 1 ) [2025-04-20 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-20 17:32:05' and `end` < '2025-04-20 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-20 20:32:18] Production.INFO: count ==2136 [2025-04-20 20:32:19] Production.ERROR: pbx CDR StartTime 2025-04-20 17:32:05 - End Time 2025-04-20 20:32:05 [2025-04-20 20:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952729', 'tblTempUsageDetail_20' ) start [2025-04-20 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952729', 'tblTempUsageDetail_20' ) end [2025-04-20 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952729', 'tblTempVendorCDR_20' ) start [2025-04-20 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952729', 'tblTempVendorCDR_20' ) end [2025-04-20 20:32:19] Production.INFO: ProcessCDR(1,14952729,1,1,2) [2025-04-20 20:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952729', 'tblTempUsageDetail_20' ) start [2025-04-20 20:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952729', 'tblTempUsageDetail_20' ) end [2025-04-20 20:32:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 20:32:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 20:32:24] Production.INFO: ==26819== Releasing lock... [2025-04-20 20:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 20:32:24] Production.INFO: 44 MB #Memory Used# [2025-04-20 20:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 17:33:06 [end_date_ymd] => 2025-04-20 20:33:06 [RateCDR] => 1 ) [2025-04-20 20:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 17:33:06' and `end` < '2025-04-20 20:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 20:33:18] Production.INFO: count ==2123 [2025-04-20 20:33:19] Production.ERROR: pbx CDR StartTime 2025-04-20 17:33:06 - End Time 2025-04-20 20:33:06 [2025-04-20 20:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952734', 'tblTempUsageDetail_20' ) start [2025-04-20 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952734', 'tblTempUsageDetail_20' ) end [2025-04-20 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952734', 'tblTempVendorCDR_20' ) start [2025-04-20 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952734', 'tblTempVendorCDR_20' ) end [2025-04-20 20:33:19] Production.INFO: ProcessCDR(1,14952734,1,1,2) [2025-04-20 20:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952734', 'tblTempUsageDetail_20' ) start [2025-04-20 20:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952734', 'tblTempUsageDetail_20' ) end [2025-04-20 20:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 20:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 20:33:23] Production.INFO: ==26893== Releasing lock... [2025-04-20 20:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 20:33:23] Production.INFO: 44.5 MB #Memory Used# [2025-04-20 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 17:34:05 [end_date_ymd] => 2025-04-20 20:34:05 [RateCDR] => 1 ) [2025-04-20 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-20 17:34:05' and `end` < '2025-04-20 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-20 20:34:18] Production.INFO: count ==2111 [2025-04-20 20:34:19] Production.ERROR: pbx CDR StartTime 2025-04-20 17:34:05 - End Time 2025-04-20 20:34:05 [2025-04-20 20:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952739', 'tblTempUsageDetail_20' ) start [2025-04-20 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952739', 'tblTempUsageDetail_20' ) end [2025-04-20 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952739', 'tblTempVendorCDR_20' ) start [2025-04-20 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952739', 'tblTempVendorCDR_20' ) end [2025-04-20 20:34:19] Production.INFO: ProcessCDR(1,14952739,1,1,2) [2025-04-20 20:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952739', 'tblTempUsageDetail_20' ) start [2025-04-20 20:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952739', 'tblTempUsageDetail_20' ) end [2025-04-20 20:34:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 20:34:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 20:34:24] Production.INFO: ==26966== Releasing lock... [2025-04-20 20:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 20:34:24] Production.INFO: 44.25 MB #Memory Used# [2025-04-20 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 17:35:05 [end_date_ymd] => 2025-04-20 20:35:05 [RateCDR] => 1 ) [2025-04-20 20:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 17:35:05' and `end` < '2025-04-20 20:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 20:35:18] Production.INFO: count ==2102 [2025-04-20 20:35:19] Production.ERROR: pbx CDR StartTime 2025-04-20 17:35:05 - End Time 2025-04-20 20:35:05 [2025-04-20 20:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952744', 'tblTempUsageDetail_20' ) start [2025-04-20 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952744', 'tblTempUsageDetail_20' ) end [2025-04-20 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952744', 'tblTempVendorCDR_20' ) start [2025-04-20 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952744', 'tblTempVendorCDR_20' ) end [2025-04-20 20:35:19] Production.INFO: ProcessCDR(1,14952744,1,1,2) [2025-04-20 20:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952744', 'tblTempUsageDetail_20' ) start [2025-04-20 20:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952744', 'tblTempUsageDetail_20' ) end [2025-04-20 20:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 20:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 20:35:23] Production.INFO: ==27043== Releasing lock... [2025-04-20 20:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 20:35:23] Production.INFO: 44.25 MB #Memory Used# [2025-04-20 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 17:36:05 [end_date_ymd] => 2025-04-20 20:36:05 [RateCDR] => 1 ) [2025-04-20 20:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 17:36:05' and `end` < '2025-04-20 20:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 20:36:18] Production.INFO: count ==2103 [2025-04-20 20:36:18] Production.ERROR: pbx CDR StartTime 2025-04-20 17:36:05 - End Time 2025-04-20 20:36:05 [2025-04-20 20:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952749', 'tblTempUsageDetail_20' ) start [2025-04-20 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952749', 'tblTempUsageDetail_20' ) end [2025-04-20 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952749', 'tblTempVendorCDR_20' ) start [2025-04-20 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952749', 'tblTempVendorCDR_20' ) end [2025-04-20 20:36:18] Production.INFO: ProcessCDR(1,14952749,1,1,2) [2025-04-20 20:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952749', 'tblTempUsageDetail_20' ) start [2025-04-20 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952749', 'tblTempUsageDetail_20' ) end [2025-04-20 20:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 20:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 20:36:22] Production.INFO: ==27115== Releasing lock... [2025-04-20 20:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 20:36:22] Production.INFO: 44 MB #Memory Used# [2025-04-20 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 17:37:05 [end_date_ymd] => 2025-04-20 20:37:05 [RateCDR] => 1 ) [2025-04-20 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-20 17:37:05' and `end` < '2025-04-20 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-20 20:37:18] Production.INFO: count ==2107 [2025-04-20 20:37:19] Production.ERROR: pbx CDR StartTime 2025-04-20 17:37:05 - End Time 2025-04-20 20:37:05 [2025-04-20 20:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952754', 'tblTempUsageDetail_20' ) start [2025-04-20 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952754', 'tblTempUsageDetail_20' ) end [2025-04-20 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952754', 'tblTempVendorCDR_20' ) start [2025-04-20 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952754', 'tblTempVendorCDR_20' ) end [2025-04-20 20:37:19] Production.INFO: ProcessCDR(1,14952754,1,1,2) [2025-04-20 20:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952754', 'tblTempUsageDetail_20' ) start [2025-04-20 20:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952754', 'tblTempUsageDetail_20' ) end [2025-04-20 20:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 20:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 20:37:22] Production.INFO: ==27188== Releasing lock... [2025-04-20 20:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 20:37:22] Production.INFO: 44.25 MB #Memory Used# [2025-04-20 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 17:38:05 [end_date_ymd] => 2025-04-20 20:38:05 [RateCDR] => 1 ) [2025-04-20 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-20 17:38:05' and `end` < '2025-04-20 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-20 20:38:18] Production.INFO: count ==2101 [2025-04-20 20:38:18] Production.ERROR: pbx CDR StartTime 2025-04-20 17:38:05 - End Time 2025-04-20 20:38:05 [2025-04-20 20:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952759', 'tblTempUsageDetail_20' ) start [2025-04-20 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952759', 'tblTempUsageDetail_20' ) end [2025-04-20 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952759', 'tblTempVendorCDR_20' ) start [2025-04-20 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952759', 'tblTempVendorCDR_20' ) end [2025-04-20 20:38:18] Production.INFO: ProcessCDR(1,14952759,1,1,2) [2025-04-20 20:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952759', 'tblTempUsageDetail_20' ) start [2025-04-20 20:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952759', 'tblTempUsageDetail_20' ) end [2025-04-20 20:38:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 20:38:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 20:38:24] Production.INFO: ==27264== Releasing lock... [2025-04-20 20:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 20:38:24] Production.INFO: 44 MB #Memory Used# [2025-04-20 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 17:39:05 [end_date_ymd] => 2025-04-20 20:39:05 [RateCDR] => 1 ) [2025-04-20 20:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 17:39:05' and `end` < '2025-04-20 20:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 20:39:18] Production.INFO: count ==2065 [2025-04-20 20:39:19] Production.ERROR: pbx CDR StartTime 2025-04-20 17:39:05 - End Time 2025-04-20 20:39:05 [2025-04-20 20:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952764', 'tblTempUsageDetail_20' ) start [2025-04-20 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952764', 'tblTempUsageDetail_20' ) end [2025-04-20 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952764', 'tblTempVendorCDR_20' ) start [2025-04-20 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952764', 'tblTempVendorCDR_20' ) end [2025-04-20 20:39:19] Production.INFO: ProcessCDR(1,14952764,1,1,2) [2025-04-20 20:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952764', 'tblTempUsageDetail_20' ) start [2025-04-20 20:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952764', 'tblTempUsageDetail_20' ) end [2025-04-20 20:39:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 20:39:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 20:39:24] Production.INFO: ==27337== Releasing lock... [2025-04-20 20:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 20:39:24] Production.INFO: 43.75 MB #Memory Used# [2025-04-20 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 17:40:06 [end_date_ymd] => 2025-04-20 20:40:06 [RateCDR] => 1 ) [2025-04-20 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-20 17:40:06' and `end` < '2025-04-20 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-20 20:40:19] Production.INFO: count ==2036 [2025-04-20 20:40:20] Production.ERROR: pbx CDR StartTime 2025-04-20 17:40:06 - End Time 2025-04-20 20:40:06 [2025-04-20 20:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952770', 'tblTempUsageDetail_20' ) start [2025-04-20 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952770', 'tblTempUsageDetail_20' ) end [2025-04-20 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952770', 'tblTempVendorCDR_20' ) start [2025-04-20 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952770', 'tblTempVendorCDR_20' ) end [2025-04-20 20:40:20] Production.INFO: ProcessCDR(1,14952770,1,1,2) [2025-04-20 20:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952770', 'tblTempUsageDetail_20' ) start [2025-04-20 20:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952770', 'tblTempUsageDetail_20' ) end [2025-04-20 20:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 20:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 20:40:23] Production.INFO: ==27415== Releasing lock... [2025-04-20 20:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 20:40:23] Production.INFO: 43.5 MB #Memory Used# [2025-04-20 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 17:41:05 [end_date_ymd] => 2025-04-20 20:41:05 [RateCDR] => 1 ) [2025-04-20 20:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 17:41:05' and `end` < '2025-04-20 20:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 20:41:17] Production.INFO: count ==2042 [2025-04-20 20:41:18] Production.ERROR: pbx CDR StartTime 2025-04-20 17:41:05 - End Time 2025-04-20 20:41:05 [2025-04-20 20:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952775', 'tblTempUsageDetail_20' ) start [2025-04-20 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952775', 'tblTempUsageDetail_20' ) end [2025-04-20 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952775', 'tblTempVendorCDR_20' ) start [2025-04-20 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952775', 'tblTempVendorCDR_20' ) end [2025-04-20 20:41:18] Production.INFO: ProcessCDR(1,14952775,1,1,2) [2025-04-20 20:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952775', 'tblTempUsageDetail_20' ) start [2025-04-20 20:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952775', 'tblTempUsageDetail_20' ) end [2025-04-20 20:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 20:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 20:41:21] Production.INFO: ==27491== Releasing lock... [2025-04-20 20:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 20:41:21] Production.INFO: 43.5 MB #Memory Used# [2025-04-20 20:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 17:42:06 [end_date_ymd] => 2025-04-20 20:42:06 [RateCDR] => 1 ) [2025-04-20 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-20 17:42:06' and `end` < '2025-04-20 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-20 20:42:19] Production.INFO: count ==2021 [2025-04-20 20:42:19] Production.ERROR: pbx CDR StartTime 2025-04-20 17:42:06 - End Time 2025-04-20 20:42:06 [2025-04-20 20:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952780', 'tblTempUsageDetail_20' ) start [2025-04-20 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952780', 'tblTempUsageDetail_20' ) end [2025-04-20 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952780', 'tblTempVendorCDR_20' ) start [2025-04-20 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952780', 'tblTempVendorCDR_20' ) end [2025-04-20 20:42:19] Production.INFO: ProcessCDR(1,14952780,1,1,2) [2025-04-20 20:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952780', 'tblTempUsageDetail_20' ) start [2025-04-20 20:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952780', 'tblTempUsageDetail_20' ) end [2025-04-20 20:42:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 20:42:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 20:42:24] Production.INFO: ==27562== Releasing lock... [2025-04-20 20:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 20:42:24] Production.INFO: 43.25 MB #Memory Used# [2025-04-20 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 17:43:05 [end_date_ymd] => 2025-04-20 20:43:05 [RateCDR] => 1 ) [2025-04-20 20:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 17:43:05' and `end` < '2025-04-20 20:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 20:43:18] Production.INFO: count ==2007 [2025-04-20 20:43:18] Production.ERROR: pbx CDR StartTime 2025-04-20 17:43:05 - End Time 2025-04-20 20:43:05 [2025-04-20 20:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952785', 'tblTempUsageDetail_20' ) start [2025-04-20 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952785', 'tblTempUsageDetail_20' ) end [2025-04-20 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952785', 'tblTempVendorCDR_20' ) start [2025-04-20 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952785', 'tblTempVendorCDR_20' ) end [2025-04-20 20:43:18] Production.INFO: ProcessCDR(1,14952785,1,1,2) [2025-04-20 20:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952785', 'tblTempUsageDetail_20' ) start [2025-04-20 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952785', 'tblTempUsageDetail_20' ) end [2025-04-20 20:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 20:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 20:43:22] Production.INFO: ==27672== Releasing lock... [2025-04-20 20:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 20:43:22] Production.INFO: 43.25 MB #Memory Used# [2025-04-20 20:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 17:44:06 [end_date_ymd] => 2025-04-20 20:44:06 [RateCDR] => 1 ) [2025-04-20 20: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-20 17:44:06' and `end` < '2025-04-20 20: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-20 20:44:19] Production.INFO: count ==1990 [2025-04-20 20:44:19] Production.ERROR: pbx CDR StartTime 2025-04-20 17:44:06 - End Time 2025-04-20 20:44:06 [2025-04-20 20:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952790', 'tblTempUsageDetail_20' ) start [2025-04-20 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952790', 'tblTempUsageDetail_20' ) end [2025-04-20 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952790', 'tblTempVendorCDR_20' ) start [2025-04-20 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952790', 'tblTempVendorCDR_20' ) end [2025-04-20 20:44:20] Production.INFO: ProcessCDR(1,14952790,1,1,2) [2025-04-20 20:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952790', 'tblTempUsageDetail_20' ) start [2025-04-20 20:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952790', 'tblTempUsageDetail_20' ) end [2025-04-20 20:44:25] Production.ERROR: pbx prc_insertCDR start [2025-04-20 20:44:25] Production.ERROR: pbx prc_insertCDR end [2025-04-20 20:44:25] Production.INFO: ==27750== Releasing lock... [2025-04-20 20:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 20:44:25] Production.INFO: 43 MB #Memory Used# [2025-04-20 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 17:45:05 [end_date_ymd] => 2025-04-20 20:45:05 [RateCDR] => 1 ) [2025-04-20 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-20 17:45:05' and `end` < '2025-04-20 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-20 20:45:17] Production.INFO: count ==1981 [2025-04-20 20:45:18] Production.ERROR: pbx CDR StartTime 2025-04-20 17:45:05 - End Time 2025-04-20 20:45:05 [2025-04-20 20:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952795', 'tblTempUsageDetail_20' ) start [2025-04-20 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952795', 'tblTempUsageDetail_20' ) end [2025-04-20 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952795', 'tblTempVendorCDR_20' ) start [2025-04-20 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952795', 'tblTempVendorCDR_20' ) end [2025-04-20 20:45:18] Production.INFO: ProcessCDR(1,14952795,1,1,2) [2025-04-20 20:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952795', 'tblTempUsageDetail_20' ) start [2025-04-20 20:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952795', 'tblTempUsageDetail_20' ) end [2025-04-20 20:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 20:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 20:45:21] Production.INFO: ==27820== Releasing lock... [2025-04-20 20:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 20:45:21] Production.INFO: 42.75 MB #Memory Used# [2025-04-20 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 17:46:05 [end_date_ymd] => 2025-04-20 20:46:05 [RateCDR] => 1 ) [2025-04-20 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-20 17:46:05' and `end` < '2025-04-20 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-20 20:46:18] Production.INFO: count ==1959 [2025-04-20 20:46:18] Production.ERROR: pbx CDR StartTime 2025-04-20 17:46:05 - End Time 2025-04-20 20:46:05 [2025-04-20 20:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952800', 'tblTempUsageDetail_20' ) start [2025-04-20 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952800', 'tblTempUsageDetail_20' ) end [2025-04-20 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952800', 'tblTempVendorCDR_20' ) start [2025-04-20 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952800', 'tblTempVendorCDR_20' ) end [2025-04-20 20:46:19] Production.INFO: ProcessCDR(1,14952800,1,1,2) [2025-04-20 20:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952800', 'tblTempUsageDetail_20' ) start [2025-04-20 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952800', 'tblTempUsageDetail_20' ) end [2025-04-20 20:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 20:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 20:46:22] Production.INFO: ==27899== Releasing lock... [2025-04-20 20:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 20:46:22] Production.INFO: 42.75 MB #Memory Used# [2025-04-20 20:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 17:47:05 [end_date_ymd] => 2025-04-20 20:47:05 [RateCDR] => 1 ) [2025-04-20 20:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 17:47:05' and `end` < '2025-04-20 20:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 20:47:17] Production.INFO: count ==1948 [2025-04-20 20:47:18] Production.ERROR: pbx CDR StartTime 2025-04-20 17:47:05 - End Time 2025-04-20 20:47:05 [2025-04-20 20:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952805', 'tblTempUsageDetail_20' ) start [2025-04-20 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952805', 'tblTempUsageDetail_20' ) end [2025-04-20 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952805', 'tblTempVendorCDR_20' ) start [2025-04-20 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952805', 'tblTempVendorCDR_20' ) end [2025-04-20 20:47:18] Production.INFO: ProcessCDR(1,14952805,1,1,2) [2025-04-20 20:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952805', 'tblTempUsageDetail_20' ) start [2025-04-20 20:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952805', 'tblTempUsageDetail_20' ) end [2025-04-20 20:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 20:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 20:47:21] Production.INFO: ==27972== Releasing lock... [2025-04-20 20:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 20:47:21] Production.INFO: 42.75 MB #Memory Used# [2025-04-20 20:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 17:48:06 [end_date_ymd] => 2025-04-20 20:48:06 [RateCDR] => 1 ) [2025-04-20 20: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-20 17:48:06' and `end` < '2025-04-20 20: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-20 20:48:18] Production.INFO: count ==1942 [2025-04-20 20:48:19] Production.ERROR: pbx CDR StartTime 2025-04-20 17:48:06 - End Time 2025-04-20 20:48:06 [2025-04-20 20:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952810', 'tblTempUsageDetail_20' ) start [2025-04-20 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952810', 'tblTempUsageDetail_20' ) end [2025-04-20 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952810', 'tblTempVendorCDR_20' ) start [2025-04-20 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952810', 'tblTempVendorCDR_20' ) end [2025-04-20 20:48:19] Production.INFO: ProcessCDR(1,14952810,1,1,2) [2025-04-20 20:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952810', 'tblTempUsageDetail_20' ) start [2025-04-20 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952810', 'tblTempUsageDetail_20' ) end [2025-04-20 20:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 20:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 20:48:23] Production.INFO: ==28045== Releasing lock... [2025-04-20 20:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 20:48:23] Production.INFO: 43 MB #Memory Used# [2025-04-20 20:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 17:49:04 [end_date_ymd] => 2025-04-20 20:49:04 [RateCDR] => 1 ) [2025-04-20 20:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 17:49:04' and `end` < '2025-04-20 20:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 20:49:17] Production.INFO: count ==1929 [2025-04-20 20:49:18] Production.ERROR: pbx CDR StartTime 2025-04-20 17:49:04 - End Time 2025-04-20 20:49:04 [2025-04-20 20:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952815', 'tblTempUsageDetail_20' ) start [2025-04-20 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952815', 'tblTempUsageDetail_20' ) end [2025-04-20 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952815', 'tblTempVendorCDR_20' ) start [2025-04-20 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952815', 'tblTempVendorCDR_20' ) end [2025-04-20 20:49:18] Production.INFO: ProcessCDR(1,14952815,1,1,2) [2025-04-20 20:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952815', 'tblTempUsageDetail_20' ) start [2025-04-20 20:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952815', 'tblTempUsageDetail_20' ) end [2025-04-20 20:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 20:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 20:49:21] Production.INFO: ==28123== Releasing lock... [2025-04-20 20:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 20:49:21] Production.INFO: 42.5 MB #Memory Used# [2025-04-20 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 17:50:06 [end_date_ymd] => 2025-04-20 20:50:06 [RateCDR] => 1 ) [2025-04-20 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-20 17:50:06' and `end` < '2025-04-20 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-20 20:50:19] Production.INFO: count ==1915 [2025-04-20 20:50:19] Production.ERROR: pbx CDR StartTime 2025-04-20 17:50:06 - End Time 2025-04-20 20:50:06 [2025-04-20 20:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952820', 'tblTempUsageDetail_20' ) start [2025-04-20 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952820', 'tblTempUsageDetail_20' ) end [2025-04-20 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952820', 'tblTempVendorCDR_20' ) start [2025-04-20 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952820', 'tblTempVendorCDR_20' ) end [2025-04-20 20:50:19] Production.INFO: ProcessCDR(1,14952820,1,1,2) [2025-04-20 20:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952820', 'tblTempUsageDetail_20' ) start [2025-04-20 20:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952820', 'tblTempUsageDetail_20' ) end [2025-04-20 20:50:25] Production.ERROR: pbx prc_insertCDR start [2025-04-20 20:50:25] Production.ERROR: pbx prc_insertCDR end [2025-04-20 20:50:25] Production.INFO: ==28203== Releasing lock... [2025-04-20 20:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 20:50:25] Production.INFO: 42.25 MB #Memory Used# [2025-04-20 20:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 17:51:06 [end_date_ymd] => 2025-04-20 20:51:06 [RateCDR] => 1 ) [2025-04-20 20:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 17:51:06' and `end` < '2025-04-20 20:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 20:51:18] Production.INFO: count ==1858 [2025-04-20 20:51:19] Production.ERROR: pbx CDR StartTime 2025-04-20 17:51:06 - End Time 2025-04-20 20:51:06 [2025-04-20 20:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952826', 'tblTempUsageDetail_20' ) start [2025-04-20 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952826', 'tblTempUsageDetail_20' ) end [2025-04-20 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952826', 'tblTempVendorCDR_20' ) start [2025-04-20 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952826', 'tblTempVendorCDR_20' ) end [2025-04-20 20:51:19] Production.INFO: ProcessCDR(1,14952826,1,1,2) [2025-04-20 20:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952826', 'tblTempUsageDetail_20' ) start [2025-04-20 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952826', 'tblTempUsageDetail_20' ) end [2025-04-20 20:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 20:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 20:51:22] Production.INFO: ==28278== Releasing lock... [2025-04-20 20:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 20:51:22] Production.INFO: 42 MB #Memory Used# [2025-04-20 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 17:52:05 [end_date_ymd] => 2025-04-20 20:52:05 [RateCDR] => 1 ) [2025-04-20 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-20 17:52:05' and `end` < '2025-04-20 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-20 20:52:18] Production.INFO: count ==1843 [2025-04-20 20:52:19] Production.ERROR: pbx CDR StartTime 2025-04-20 17:52:05 - End Time 2025-04-20 20:52:05 [2025-04-20 20:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952831', 'tblTempUsageDetail_20' ) start [2025-04-20 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952831', 'tblTempUsageDetail_20' ) end [2025-04-20 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952831', 'tblTempVendorCDR_20' ) start [2025-04-20 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952831', 'tblTempVendorCDR_20' ) end [2025-04-20 20:52:19] Production.INFO: ProcessCDR(1,14952831,1,1,2) [2025-04-20 20:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952831', 'tblTempUsageDetail_20' ) start [2025-04-20 20:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952831', 'tblTempUsageDetail_20' ) end [2025-04-20 20:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 20:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 20:52:22] Production.INFO: ==28349== Releasing lock... [2025-04-20 20:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 20:52:22] Production.INFO: 42 MB #Memory Used# [2025-04-20 20:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 17:53:06 [end_date_ymd] => 2025-04-20 20:53:06 [RateCDR] => 1 ) [2025-04-20 20:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 17:53:06' and `end` < '2025-04-20 20:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 20:53:18] Production.INFO: count ==1822 [2025-04-20 20:53:19] Production.ERROR: pbx CDR StartTime 2025-04-20 17:53:06 - End Time 2025-04-20 20:53:06 [2025-04-20 20:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952836', 'tblTempUsageDetail_20' ) start [2025-04-20 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952836', 'tblTempUsageDetail_20' ) end [2025-04-20 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952836', 'tblTempVendorCDR_20' ) start [2025-04-20 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952836', 'tblTempVendorCDR_20' ) end [2025-04-20 20:53:19] Production.INFO: ProcessCDR(1,14952836,1,1,2) [2025-04-20 20:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952836', 'tblTempUsageDetail_20' ) start [2025-04-20 20:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952836', 'tblTempUsageDetail_20' ) end [2025-04-20 20:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 20:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 20:53:23] Production.INFO: ==28421== Releasing lock... [2025-04-20 20:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 20:53:23] Production.INFO: 41.75 MB #Memory Used# [2025-04-20 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 17:54:05 [end_date_ymd] => 2025-04-20 20:54:05 [RateCDR] => 1 ) [2025-04-20 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-20 17:54:05' and `end` < '2025-04-20 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-20 20:54:18] Production.INFO: count ==1811 [2025-04-20 20:54:19] Production.ERROR: pbx CDR StartTime 2025-04-20 17:54:05 - End Time 2025-04-20 20:54:05 [2025-04-20 20:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952841', 'tblTempUsageDetail_20' ) start [2025-04-20 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952841', 'tblTempUsageDetail_20' ) end [2025-04-20 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952841', 'tblTempVendorCDR_20' ) start [2025-04-20 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952841', 'tblTempVendorCDR_20' ) end [2025-04-20 20:54:19] Production.INFO: ProcessCDR(1,14952841,1,1,2) [2025-04-20 20:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952841', 'tblTempUsageDetail_20' ) start [2025-04-20 20:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952841', 'tblTempUsageDetail_20' ) end [2025-04-20 20:54:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 20:54:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 20:54:24] Production.INFO: ==28496== Releasing lock... [2025-04-20 20:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 20:54:24] Production.INFO: 41.75 MB #Memory Used# [2025-04-20 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 17:55:05 [end_date_ymd] => 2025-04-20 20:55:05 [RateCDR] => 1 ) [2025-04-20 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-20 17:55:05' and `end` < '2025-04-20 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-20 20:55:18] Production.INFO: count ==1805 [2025-04-20 20:55:18] Production.ERROR: pbx CDR StartTime 2025-04-20 17:55:05 - End Time 2025-04-20 20:55:05 [2025-04-20 20:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952846', 'tblTempUsageDetail_20' ) start [2025-04-20 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952846', 'tblTempUsageDetail_20' ) end [2025-04-20 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952846', 'tblTempVendorCDR_20' ) start [2025-04-20 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952846', 'tblTempVendorCDR_20' ) end [2025-04-20 20:55:19] Production.INFO: ProcessCDR(1,14952846,1,1,2) [2025-04-20 20:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952846', 'tblTempUsageDetail_20' ) start [2025-04-20 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952846', 'tblTempUsageDetail_20' ) end [2025-04-20 20:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 20:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 20:55:22] Production.INFO: ==28569== Releasing lock... [2025-04-20 20:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 20:55:22] Production.INFO: 41.25 MB #Memory Used# [2025-04-20 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 17:56:05 [end_date_ymd] => 2025-04-20 20:56:05 [RateCDR] => 1 ) [2025-04-20 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-20 17:56:05' and `end` < '2025-04-20 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-20 20:56:18] Production.INFO: count ==1797 [2025-04-20 20:56:18] Production.ERROR: pbx CDR StartTime 2025-04-20 17:56:05 - End Time 2025-04-20 20:56:05 [2025-04-20 20:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952851', 'tblTempUsageDetail_20' ) start [2025-04-20 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952851', 'tblTempUsageDetail_20' ) end [2025-04-20 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952851', 'tblTempVendorCDR_20' ) start [2025-04-20 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952851', 'tblTempVendorCDR_20' ) end [2025-04-20 20:56:18] Production.INFO: ProcessCDR(1,14952851,1,1,2) [2025-04-20 20:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952851', 'tblTempUsageDetail_20' ) start [2025-04-20 20:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952851', 'tblTempUsageDetail_20' ) end [2025-04-20 20:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 20:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 20:56:23] Production.INFO: ==28645== Releasing lock... [2025-04-20 20:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 20:56:23] Production.INFO: 41.5 MB #Memory Used# [2025-04-20 20:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 17:57:06 [end_date_ymd] => 2025-04-20 20:57:06 [RateCDR] => 1 ) [2025-04-20 20:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 17:57:06' and `end` < '2025-04-20 20:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 20:57:18] Production.INFO: count ==1786 [2025-04-20 20:57:19] Production.ERROR: pbx CDR StartTime 2025-04-20 17:57:06 - End Time 2025-04-20 20:57:06 [2025-04-20 20:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952856', 'tblTempUsageDetail_20' ) start [2025-04-20 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952856', 'tblTempUsageDetail_20' ) end [2025-04-20 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952856', 'tblTempVendorCDR_20' ) start [2025-04-20 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952856', 'tblTempVendorCDR_20' ) end [2025-04-20 20:57:19] Production.INFO: ProcessCDR(1,14952856,1,1,2) [2025-04-20 20:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952856', 'tblTempUsageDetail_20' ) start [2025-04-20 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952856', 'tblTempUsageDetail_20' ) end [2025-04-20 20:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 20:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 20:57:22] Production.INFO: ==28720== Releasing lock... [2025-04-20 20:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 20:57:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-20 20:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 17:58:04 [end_date_ymd] => 2025-04-20 20:58:04 [RateCDR] => 1 ) [2025-04-20 20:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 17:58:04' and `end` < '2025-04-20 20:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 20:58:17] Production.INFO: count ==1780 [2025-04-20 20:58:18] Production.ERROR: pbx CDR StartTime 2025-04-20 17:58:04 - End Time 2025-04-20 20:58:04 [2025-04-20 20:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952861', 'tblTempUsageDetail_20' ) start [2025-04-20 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952861', 'tblTempUsageDetail_20' ) end [2025-04-20 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952861', 'tblTempVendorCDR_20' ) start [2025-04-20 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952861', 'tblTempVendorCDR_20' ) end [2025-04-20 20:58:18] Production.INFO: ProcessCDR(1,14952861,1,1,2) [2025-04-20 20:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952861', 'tblTempUsageDetail_20' ) start [2025-04-20 20:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952861', 'tblTempUsageDetail_20' ) end [2025-04-20 20:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 20:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 20:58:21] Production.INFO: ==28806== Releasing lock... [2025-04-20 20:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 20:58:21] Production.INFO: 41.25 MB #Memory Used# [2025-04-20 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 17:59:05 [end_date_ymd] => 2025-04-20 20:59:05 [RateCDR] => 1 ) [2025-04-20 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-20 17:59:05' and `end` < '2025-04-20 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-20 20:59:18] Production.INFO: count ==1781 [2025-04-20 20:59:18] Production.ERROR: pbx CDR StartTime 2025-04-20 17:59:05 - End Time 2025-04-20 20:59:05 [2025-04-20 20:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952866', 'tblTempUsageDetail_20' ) start [2025-04-20 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952866', 'tblTempUsageDetail_20' ) end [2025-04-20 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952866', 'tblTempVendorCDR_20' ) start [2025-04-20 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952866', 'tblTempVendorCDR_20' ) end [2025-04-20 20:59:18] Production.INFO: ProcessCDR(1,14952866,1,1,2) [2025-04-20 20:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 20:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952866', 'tblTempUsageDetail_20' ) start [2025-04-20 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952866', 'tblTempUsageDetail_20' ) end [2025-04-20 20:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 20:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 20:59:22] Production.INFO: ==28919== Releasing lock... [2025-04-20 20:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 20:59:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-20 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 18:00:06 [end_date_ymd] => 2025-04-20 21:00:06 [RateCDR] => 1 ) [2025-04-20 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-20 18:00:06' and `end` < '2025-04-20 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-20 21:00:19] Production.INFO: count ==1781 [2025-04-20 21:00:20] Production.ERROR: pbx CDR StartTime 2025-04-20 18:00:06 - End Time 2025-04-20 21:00:06 [2025-04-20 21:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952872', 'tblTempUsageDetail_20' ) start [2025-04-20 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952872', 'tblTempUsageDetail_20' ) end [2025-04-20 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952872', 'tblTempVendorCDR_20' ) start [2025-04-20 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952872', 'tblTempVendorCDR_20' ) end [2025-04-20 21:00:20] Production.INFO: ProcessCDR(1,14952872,1,1,2) [2025-04-20 21:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952872', 'tblTempUsageDetail_20' ) start [2025-04-20 21:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952872', 'tblTempUsageDetail_20' ) end [2025-04-20 21:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 21:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 21:00:23] Production.INFO: ==28994== Releasing lock... [2025-04-20 21:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 21:00:23] Production.INFO: 41.5 MB #Memory Used# [2025-04-20 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 18:01:05 [end_date_ymd] => 2025-04-20 21:01:05 [RateCDR] => 1 ) [2025-04-20 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-20 18:01:05' and `end` < '2025-04-20 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-20 21:01:18] Production.INFO: count ==1755 [2025-04-20 21:01:19] Production.ERROR: pbx CDR StartTime 2025-04-20 18:01:05 - End Time 2025-04-20 21:01:05 [2025-04-20 21:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952877', 'tblTempUsageDetail_20' ) start [2025-04-20 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952877', 'tblTempUsageDetail_20' ) end [2025-04-20 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952877', 'tblTempVendorCDR_20' ) start [2025-04-20 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952877', 'tblTempVendorCDR_20' ) end [2025-04-20 21:01:19] Production.INFO: ProcessCDR(1,14952877,1,1,2) [2025-04-20 21:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952877', 'tblTempUsageDetail_20' ) start [2025-04-20 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952877', 'tblTempUsageDetail_20' ) end [2025-04-20 21:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 21:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 21:01:22] Production.INFO: ==29083== Releasing lock... [2025-04-20 21:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 21:01:22] Production.INFO: 41.25 MB #Memory Used# [2025-04-20 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 18:02:05 [end_date_ymd] => 2025-04-20 21:02:05 [RateCDR] => 1 ) [2025-04-20 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-20 18:02:05' and `end` < '2025-04-20 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-20 21:02:18] Production.INFO: count ==1755 [2025-04-20 21:02:19] Production.ERROR: pbx CDR StartTime 2025-04-20 18:02:05 - End Time 2025-04-20 21:02:05 [2025-04-20 21:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952882', 'tblTempUsageDetail_20' ) start [2025-04-20 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952882', 'tblTempUsageDetail_20' ) end [2025-04-20 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952882', 'tblTempVendorCDR_20' ) start [2025-04-20 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952882', 'tblTempVendorCDR_20' ) end [2025-04-20 21:02:19] Production.INFO: ProcessCDR(1,14952882,1,1,2) [2025-04-20 21:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952882', 'tblTempUsageDetail_20' ) start [2025-04-20 21:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952882', 'tblTempUsageDetail_20' ) end [2025-04-20 21:02:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 21:02:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 21:02:24] Production.INFO: ==29155== Releasing lock... [2025-04-20 21:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 21:02:24] Production.INFO: 41.5 MB #Memory Used# [2025-04-20 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 18:03:05 [end_date_ymd] => 2025-04-20 21:03:05 [RateCDR] => 1 ) [2025-04-20 21:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 18:03:05' and `end` < '2025-04-20 21:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 21:03:18] Production.INFO: count ==1756 [2025-04-20 21:03:18] Production.ERROR: pbx CDR StartTime 2025-04-20 18:03:05 - End Time 2025-04-20 21:03:05 [2025-04-20 21:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952887', 'tblTempUsageDetail_20' ) start [2025-04-20 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952887', 'tblTempUsageDetail_20' ) end [2025-04-20 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952887', 'tblTempVendorCDR_20' ) start [2025-04-20 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952887', 'tblTempVendorCDR_20' ) end [2025-04-20 21:03:18] Production.INFO: ProcessCDR(1,14952887,1,1,2) [2025-04-20 21:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952887', 'tblTempUsageDetail_20' ) start [2025-04-20 21:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952887', 'tblTempUsageDetail_20' ) end [2025-04-20 21:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 21:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 21:03:23] Production.INFO: ==29229== Releasing lock... [2025-04-20 21:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 21:03:23] Production.INFO: 41 MB #Memory Used# [2025-04-20 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 18:04:05 [end_date_ymd] => 2025-04-20 21:04:05 [RateCDR] => 1 ) [2025-04-20 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-20 18:04:05' and `end` < '2025-04-20 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-20 21:04:18] Production.INFO: count ==1754 [2025-04-20 21:04:19] Production.ERROR: pbx CDR StartTime 2025-04-20 18:04:05 - End Time 2025-04-20 21:04:05 [2025-04-20 21:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952892', 'tblTempUsageDetail_20' ) start [2025-04-20 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952892', 'tblTempUsageDetail_20' ) end [2025-04-20 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952892', 'tblTempVendorCDR_20' ) start [2025-04-20 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952892', 'tblTempVendorCDR_20' ) end [2025-04-20 21:04:19] Production.INFO: ProcessCDR(1,14952892,1,1,2) [2025-04-20 21:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952892', 'tblTempUsageDetail_20' ) start [2025-04-20 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952892', 'tblTempUsageDetail_20' ) end [2025-04-20 21:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 21:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 21:04:22] Production.INFO: ==29301== Releasing lock... [2025-04-20 21:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 21:04:22] Production.INFO: 41.25 MB #Memory Used# [2025-04-20 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 18:05:05 [end_date_ymd] => 2025-04-20 21:05:05 [RateCDR] => 1 ) [2025-04-20 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-20 18:05:05' and `end` < '2025-04-20 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-20 21:05:18] Production.INFO: count ==1753 [2025-04-20 21:05:19] Production.ERROR: pbx CDR StartTime 2025-04-20 18:05:05 - End Time 2025-04-20 21:05:05 [2025-04-20 21:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952897', 'tblTempUsageDetail_20' ) start [2025-04-20 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952897', 'tblTempUsageDetail_20' ) end [2025-04-20 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952897', 'tblTempVendorCDR_20' ) start [2025-04-20 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952897', 'tblTempVendorCDR_20' ) end [2025-04-20 21:05:19] Production.INFO: ProcessCDR(1,14952897,1,1,2) [2025-04-20 21:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952897', 'tblTempUsageDetail_20' ) start [2025-04-20 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952897', 'tblTempUsageDetail_20' ) end [2025-04-20 21:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 21:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 21:05:22] Production.INFO: ==29377== Releasing lock... [2025-04-20 21:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 21:05:22] Production.INFO: 41.25 MB #Memory Used# [2025-04-20 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 18:06:05 [end_date_ymd] => 2025-04-20 21:06:05 [RateCDR] => 1 ) [2025-04-20 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-20 18:06:05' and `end` < '2025-04-20 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-20 21:06:18] Production.INFO: count ==1755 [2025-04-20 21:06:18] Production.ERROR: pbx CDR StartTime 2025-04-20 18:06:05 - End Time 2025-04-20 21:06:05 [2025-04-20 21:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952902', 'tblTempUsageDetail_20' ) start [2025-04-20 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952902', 'tblTempUsageDetail_20' ) end [2025-04-20 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952902', 'tblTempVendorCDR_20' ) start [2025-04-20 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952902', 'tblTempVendorCDR_20' ) end [2025-04-20 21:06:18] Production.INFO: ProcessCDR(1,14952902,1,1,2) [2025-04-20 21:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952902', 'tblTempUsageDetail_20' ) start [2025-04-20 21:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952902', 'tblTempUsageDetail_20' ) end [2025-04-20 21:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 21:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 21:06:22] Production.INFO: ==29449== Releasing lock... [2025-04-20 21:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 21:06:22] Production.INFO: 41.25 MB #Memory Used# [2025-04-20 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 18:07:05 [end_date_ymd] => 2025-04-20 21:07:05 [RateCDR] => 1 ) [2025-04-20 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-20 18:07:05' and `end` < '2025-04-20 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-20 21:07:18] Production.INFO: count ==1755 [2025-04-20 21:07:18] Production.ERROR: pbx CDR StartTime 2025-04-20 18:07:05 - End Time 2025-04-20 21:07:05 [2025-04-20 21:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952907', 'tblTempUsageDetail_20' ) start [2025-04-20 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952907', 'tblTempUsageDetail_20' ) end [2025-04-20 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952907', 'tblTempVendorCDR_20' ) start [2025-04-20 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952907', 'tblTempVendorCDR_20' ) end [2025-04-20 21:07:18] Production.INFO: ProcessCDR(1,14952907,1,1,2) [2025-04-20 21:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952907', 'tblTempUsageDetail_20' ) start [2025-04-20 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952907', 'tblTempUsageDetail_20' ) end [2025-04-20 21:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 21:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 21:07:22] Production.INFO: ==29530== Releasing lock... [2025-04-20 21:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 21:07:22] Production.INFO: 41.25 MB #Memory Used# [2025-04-20 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 18:08:05 [end_date_ymd] => 2025-04-20 21:08:05 [RateCDR] => 1 ) [2025-04-20 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-20 18:08:05' and `end` < '2025-04-20 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-20 21:08:18] Production.INFO: count ==1754 [2025-04-20 21:08:18] Production.ERROR: pbx CDR StartTime 2025-04-20 18:08:05 - End Time 2025-04-20 21:08:05 [2025-04-20 21:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952912', 'tblTempUsageDetail_20' ) start [2025-04-20 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952912', 'tblTempUsageDetail_20' ) end [2025-04-20 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952912', 'tblTempVendorCDR_20' ) start [2025-04-20 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952912', 'tblTempVendorCDR_20' ) end [2025-04-20 21:08:19] Production.INFO: ProcessCDR(1,14952912,1,1,2) [2025-04-20 21:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952912', 'tblTempUsageDetail_20' ) start [2025-04-20 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952912', 'tblTempUsageDetail_20' ) end [2025-04-20 21:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 21:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 21:08:22] Production.INFO: ==29606== Releasing lock... [2025-04-20 21:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 21:08:22] Production.INFO: 41 MB #Memory Used# [2025-04-20 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 18:09:05 [end_date_ymd] => 2025-04-20 21:09:05 [RateCDR] => 1 ) [2025-04-20 21:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 18:09:05' and `end` < '2025-04-20 21:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 21:09:18] Production.INFO: count ==1752 [2025-04-20 21:09:18] Production.ERROR: pbx CDR StartTime 2025-04-20 18:09:05 - End Time 2025-04-20 21:09:05 [2025-04-20 21:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952917', 'tblTempUsageDetail_20' ) start [2025-04-20 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952917', 'tblTempUsageDetail_20' ) end [2025-04-20 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952917', 'tblTempVendorCDR_20' ) start [2025-04-20 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952917', 'tblTempVendorCDR_20' ) end [2025-04-20 21:09:18] Production.INFO: ProcessCDR(1,14952917,1,1,2) [2025-04-20 21:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952917', 'tblTempUsageDetail_20' ) start [2025-04-20 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952917', 'tblTempUsageDetail_20' ) end [2025-04-20 21:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 21:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 21:09:22] Production.INFO: ==29678== Releasing lock... [2025-04-20 21:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 21:09:22] Production.INFO: 41 MB #Memory Used# [2025-04-20 21:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 18:10:07 [end_date_ymd] => 2025-04-20 21:10:07 [RateCDR] => 1 ) [2025-04-20 21: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-20 18:10:07' and `end` < '2025-04-20 21: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-20 21:10:19] Production.INFO: count ==1753 [2025-04-20 21:10:20] Production.ERROR: pbx CDR StartTime 2025-04-20 18:10:07 - End Time 2025-04-20 21:10:07 [2025-04-20 21:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952922', 'tblTempUsageDetail_20' ) start [2025-04-20 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952922', 'tblTempUsageDetail_20' ) end [2025-04-20 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952922', 'tblTempVendorCDR_20' ) start [2025-04-20 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952922', 'tblTempVendorCDR_20' ) end [2025-04-20 21:10:20] Production.INFO: ProcessCDR(1,14952922,1,1,2) [2025-04-20 21:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952922', 'tblTempUsageDetail_20' ) start [2025-04-20 21:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952922', 'tblTempUsageDetail_20' ) end [2025-04-20 21:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 21:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 21:10:24] Production.INFO: ==29756== Releasing lock... [2025-04-20 21:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 21:10:24] Production.INFO: 41 MB #Memory Used# [2025-04-20 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 18:11:05 [end_date_ymd] => 2025-04-20 21:11:05 [RateCDR] => 1 ) [2025-04-20 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-20 18:11:05' and `end` < '2025-04-20 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-20 21:11:18] Production.INFO: count ==1747 [2025-04-20 21:11:18] Production.ERROR: pbx CDR StartTime 2025-04-20 18:11:05 - End Time 2025-04-20 21:11:05 [2025-04-20 21:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952928', 'tblTempUsageDetail_20' ) start [2025-04-20 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952928', 'tblTempUsageDetail_20' ) end [2025-04-20 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952928', 'tblTempVendorCDR_20' ) start [2025-04-20 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952928', 'tblTempVendorCDR_20' ) end [2025-04-20 21:11:18] Production.INFO: ProcessCDR(1,14952928,1,1,2) [2025-04-20 21:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952928', 'tblTempUsageDetail_20' ) start [2025-04-20 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952928', 'tblTempUsageDetail_20' ) end [2025-04-20 21:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 21:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 21:11:22] Production.INFO: ==29834== Releasing lock... [2025-04-20 21:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 21:11:22] Production.INFO: 41.25 MB #Memory Used# [2025-04-20 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 18:12:05 [end_date_ymd] => 2025-04-20 21:12:05 [RateCDR] => 1 ) [2025-04-20 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-20 18:12:05' and `end` < '2025-04-20 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-20 21:12:18] Production.INFO: count ==1744 [2025-04-20 21:12:18] Production.ERROR: pbx CDR StartTime 2025-04-20 18:12:05 - End Time 2025-04-20 21:12:05 [2025-04-20 21:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952933', 'tblTempUsageDetail_20' ) start [2025-04-20 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952933', 'tblTempUsageDetail_20' ) end [2025-04-20 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952933', 'tblTempVendorCDR_20' ) start [2025-04-20 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952933', 'tblTempVendorCDR_20' ) end [2025-04-20 21:12:18] Production.INFO: ProcessCDR(1,14952933,1,1,2) [2025-04-20 21:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952933', 'tblTempUsageDetail_20' ) start [2025-04-20 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952933', 'tblTempUsageDetail_20' ) end [2025-04-20 21:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 21:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 21:12:22] Production.INFO: ==29903== Releasing lock... [2025-04-20 21:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 21:12:22] Production.INFO: 41.25 MB #Memory Used# [2025-04-20 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 18:13:05 [end_date_ymd] => 2025-04-20 21:13:05 [RateCDR] => 1 ) [2025-04-20 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-20 18:13:05' and `end` < '2025-04-20 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-20 21:13:18] Production.INFO: count ==1746 [2025-04-20 21:13:18] Production.ERROR: pbx CDR StartTime 2025-04-20 18:13:05 - End Time 2025-04-20 21:13:05 [2025-04-20 21:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952938', 'tblTempUsageDetail_20' ) start [2025-04-20 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952938', 'tblTempUsageDetail_20' ) end [2025-04-20 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952938', 'tblTempVendorCDR_20' ) start [2025-04-20 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952938', 'tblTempVendorCDR_20' ) end [2025-04-20 21:13:18] Production.INFO: ProcessCDR(1,14952938,1,1,2) [2025-04-20 21:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952938', 'tblTempUsageDetail_20' ) start [2025-04-20 21:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952938', 'tblTempUsageDetail_20' ) end [2025-04-20 21:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 21:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 21:13:22] Production.INFO: ==29980== Releasing lock... [2025-04-20 21:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 21:13:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-20 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 18:14:05 [end_date_ymd] => 2025-04-20 21:14:05 [RateCDR] => 1 ) [2025-04-20 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-20 18:14:05' and `end` < '2025-04-20 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-20 21:14:18] Production.INFO: count ==1750 [2025-04-20 21:14:19] Production.ERROR: pbx CDR StartTime 2025-04-20 18:14:05 - End Time 2025-04-20 21:14:05 [2025-04-20 21:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952943', 'tblTempUsageDetail_20' ) start [2025-04-20 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952943', 'tblTempUsageDetail_20' ) end [2025-04-20 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952943', 'tblTempVendorCDR_20' ) start [2025-04-20 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952943', 'tblTempVendorCDR_20' ) end [2025-04-20 21:14:19] Production.INFO: ProcessCDR(1,14952943,1,1,2) [2025-04-20 21:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952943', 'tblTempUsageDetail_20' ) start [2025-04-20 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952943', 'tblTempUsageDetail_20' ) end [2025-04-20 21:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 21:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 21:14:22] Production.INFO: ==30095== Releasing lock... [2025-04-20 21:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 21:14:22] Production.INFO: 41 MB #Memory Used# [2025-04-20 21:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 18:15:04 [end_date_ymd] => 2025-04-20 21:15:04 [RateCDR] => 1 ) [2025-04-20 21: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-20 18:15:04' and `end` < '2025-04-20 21: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-20 21:15:17] Production.INFO: count ==1745 [2025-04-20 21:15:18] Production.ERROR: pbx CDR StartTime 2025-04-20 18:15:04 - End Time 2025-04-20 21:15:04 [2025-04-20 21:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952948', 'tblTempUsageDetail_20' ) start [2025-04-20 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952948', 'tblTempUsageDetail_20' ) end [2025-04-20 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952948', 'tblTempVendorCDR_20' ) start [2025-04-20 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952948', 'tblTempVendorCDR_20' ) end [2025-04-20 21:15:18] Production.INFO: ProcessCDR(1,14952948,1,1,2) [2025-04-20 21:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952948', 'tblTempUsageDetail_20' ) start [2025-04-20 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952948', 'tblTempUsageDetail_20' ) end [2025-04-20 21:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 21:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 21:15:21] Production.INFO: ==30164== Releasing lock... [2025-04-20 21:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 21:15:21] Production.INFO: 41.25 MB #Memory Used# [2025-04-20 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 18:16:05 [end_date_ymd] => 2025-04-20 21:16:05 [RateCDR] => 1 ) [2025-04-20 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-20 18:16:05' and `end` < '2025-04-20 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-20 21:16:18] Production.INFO: count ==1748 [2025-04-20 21:16:19] Production.ERROR: pbx CDR StartTime 2025-04-20 18:16:05 - End Time 2025-04-20 21:16:05 [2025-04-20 21:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952953', 'tblTempUsageDetail_20' ) start [2025-04-20 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952953', 'tblTempUsageDetail_20' ) end [2025-04-20 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952953', 'tblTempVendorCDR_20' ) start [2025-04-20 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952953', 'tblTempVendorCDR_20' ) end [2025-04-20 21:16:19] Production.INFO: ProcessCDR(1,14952953,1,1,2) [2025-04-20 21:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952953', 'tblTempUsageDetail_20' ) start [2025-04-20 21:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952953', 'tblTempUsageDetail_20' ) end [2025-04-20 21:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 21:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 21:16:23] Production.INFO: ==30240== Releasing lock... [2025-04-20 21:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 21:16:23] Production.INFO: 41 MB #Memory Used# [2025-04-20 21:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 18:17:06 [end_date_ymd] => 2025-04-20 21:17:06 [RateCDR] => 1 ) [2025-04-20 21: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-20 18:17:06' and `end` < '2025-04-20 21: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-20 21:17:18] Production.INFO: count ==1736 [2025-04-20 21:17:19] Production.ERROR: pbx CDR StartTime 2025-04-20 18:17:06 - End Time 2025-04-20 21:17:06 [2025-04-20 21:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952958', 'tblTempUsageDetail_20' ) start [2025-04-20 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952958', 'tblTempUsageDetail_20' ) end [2025-04-20 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952958', 'tblTempVendorCDR_20' ) start [2025-04-20 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952958', 'tblTempVendorCDR_20' ) end [2025-04-20 21:17:19] Production.INFO: ProcessCDR(1,14952958,1,1,2) [2025-04-20 21:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952958', 'tblTempUsageDetail_20' ) start [2025-04-20 21:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952958', 'tblTempUsageDetail_20' ) end [2025-04-20 21:17:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 21:17:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 21:17:24] Production.INFO: ==30315== Releasing lock... [2025-04-20 21:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 21:17:24] Production.INFO: 41.25 MB #Memory Used# [2025-04-20 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 18:18:05 [end_date_ymd] => 2025-04-20 21:18:05 [RateCDR] => 1 ) [2025-04-20 21:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 18:18:05' and `end` < '2025-04-20 21:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 21:18:18] Production.INFO: count ==1723 [2025-04-20 21:18:18] Production.ERROR: pbx CDR StartTime 2025-04-20 18:18:05 - End Time 2025-04-20 21:18:05 [2025-04-20 21:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952963', 'tblTempUsageDetail_20' ) start [2025-04-20 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952963', 'tblTempUsageDetail_20' ) end [2025-04-20 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952963', 'tblTempVendorCDR_20' ) start [2025-04-20 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952963', 'tblTempVendorCDR_20' ) end [2025-04-20 21:18:18] Production.INFO: ProcessCDR(1,14952963,1,1,2) [2025-04-20 21:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952963', 'tblTempUsageDetail_20' ) start [2025-04-20 21:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952963', 'tblTempUsageDetail_20' ) end [2025-04-20 21:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 21:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 21:18:21] Production.INFO: ==30397== Releasing lock... [2025-04-20 21:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 21:18:21] Production.INFO: 41 MB #Memory Used# [2025-04-20 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 18:19:05 [end_date_ymd] => 2025-04-20 21:19:05 [RateCDR] => 1 ) [2025-04-20 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-20 18:19:05' and `end` < '2025-04-20 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-20 21:19:18] Production.INFO: count ==1714 [2025-04-20 21:19:19] Production.ERROR: pbx CDR StartTime 2025-04-20 18:19:05 - End Time 2025-04-20 21:19:05 [2025-04-20 21:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952968', 'tblTempUsageDetail_20' ) start [2025-04-20 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952968', 'tblTempUsageDetail_20' ) end [2025-04-20 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952968', 'tblTempVendorCDR_20' ) start [2025-04-20 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952968', 'tblTempVendorCDR_20' ) end [2025-04-20 21:19:19] Production.INFO: ProcessCDR(1,14952968,1,1,2) [2025-04-20 21:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952968', 'tblTempUsageDetail_20' ) start [2025-04-20 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952968', 'tblTempUsageDetail_20' ) end [2025-04-20 21:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 21:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 21:19:22] Production.INFO: ==30473== Releasing lock... [2025-04-20 21:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 21:19:22] Production.INFO: 41 MB #Memory Used# [2025-04-20 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 18:20:06 [end_date_ymd] => 2025-04-20 21:20:06 [RateCDR] => 1 ) [2025-04-20 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-20 18:20:06' and `end` < '2025-04-20 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-20 21:20:19] Production.INFO: count ==1701 [2025-04-20 21:20:19] Production.ERROR: pbx CDR StartTime 2025-04-20 18:20:06 - End Time 2025-04-20 21:20:06 [2025-04-20 21:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952974', 'tblTempUsageDetail_20' ) start [2025-04-20 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952974', 'tblTempUsageDetail_20' ) end [2025-04-20 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952974', 'tblTempVendorCDR_20' ) start [2025-04-20 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952974', 'tblTempVendorCDR_20' ) end [2025-04-20 21:20:19] Production.INFO: ProcessCDR(1,14952974,1,1,2) [2025-04-20 21:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952974', 'tblTempUsageDetail_20' ) start [2025-04-20 21:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952974', 'tblTempUsageDetail_20' ) end [2025-04-20 21:20:25] Production.ERROR: pbx prc_insertCDR start [2025-04-20 21:20:25] Production.ERROR: pbx prc_insertCDR end [2025-04-20 21:20:25] Production.INFO: ==30544== Releasing lock... [2025-04-20 21:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 21:20:25] Production.INFO: 41 MB #Memory Used# [2025-04-20 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 18:21:05 [end_date_ymd] => 2025-04-20 21:21:05 [RateCDR] => 1 ) [2025-04-20 21:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 18:21:05' and `end` < '2025-04-20 21:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 21:21:18] Production.INFO: count ==1610 [2025-04-20 21:21:18] Production.ERROR: pbx CDR StartTime 2025-04-20 18:21:05 - End Time 2025-04-20 21:21:05 [2025-04-20 21:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952979', 'tblTempUsageDetail_20' ) start [2025-04-20 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952979', 'tblTempUsageDetail_20' ) end [2025-04-20 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952979', 'tblTempVendorCDR_20' ) start [2025-04-20 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952979', 'tblTempVendorCDR_20' ) end [2025-04-20 21:21:19] Production.INFO: ProcessCDR(1,14952979,1,1,2) [2025-04-20 21:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952979', 'tblTempUsageDetail_20' ) start [2025-04-20 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952979', 'tblTempUsageDetail_20' ) end [2025-04-20 21:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 21:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 21:21:22] Production.INFO: ==30630== Releasing lock... [2025-04-20 21:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 21:21:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-20 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 18:22:05 [end_date_ymd] => 2025-04-20 21:22:05 [RateCDR] => 1 ) [2025-04-20 21:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 18:22:05' and `end` < '2025-04-20 21:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 21:22:18] Production.INFO: count ==1588 [2025-04-20 21:22:18] Production.ERROR: pbx CDR StartTime 2025-04-20 18:22:05 - End Time 2025-04-20 21:22:05 [2025-04-20 21:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952984', 'tblTempUsageDetail_20' ) start [2025-04-20 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952984', 'tblTempUsageDetail_20' ) end [2025-04-20 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952984', 'tblTempVendorCDR_20' ) start [2025-04-20 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952984', 'tblTempVendorCDR_20' ) end [2025-04-20 21:22:18] Production.INFO: ProcessCDR(1,14952984,1,1,2) [2025-04-20 21:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952984', 'tblTempUsageDetail_20' ) start [2025-04-20 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952984', 'tblTempUsageDetail_20' ) end [2025-04-20 21:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 21:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 21:22:22] Production.INFO: ==30706== Releasing lock... [2025-04-20 21:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 21:22:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-20 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 18:23:05 [end_date_ymd] => 2025-04-20 21:23:05 [RateCDR] => 1 ) [2025-04-20 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-20 18:23:05' and `end` < '2025-04-20 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-20 21:23:18] Production.INFO: count ==1576 [2025-04-20 21:23:18] Production.ERROR: pbx CDR StartTime 2025-04-20 18:23:05 - End Time 2025-04-20 21:23:05 [2025-04-20 21:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952989', 'tblTempUsageDetail_20' ) start [2025-04-20 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952989', 'tblTempUsageDetail_20' ) end [2025-04-20 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952989', 'tblTempVendorCDR_20' ) start [2025-04-20 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952989', 'tblTempVendorCDR_20' ) end [2025-04-20 21:23:18] Production.INFO: ProcessCDR(1,14952989,1,1,2) [2025-04-20 21:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952989', 'tblTempUsageDetail_20' ) start [2025-04-20 21:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952989', 'tblTempUsageDetail_20' ) end [2025-04-20 21:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 21:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 21:23:21] Production.INFO: ==30780== Releasing lock... [2025-04-20 21:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 21:23:21] Production.INFO: 40 MB #Memory Used# [2025-04-20 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 18:24:05 [end_date_ymd] => 2025-04-20 21:24:05 [RateCDR] => 1 ) [2025-04-20 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-20 18:24:05' and `end` < '2025-04-20 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-20 21:24:17] Production.INFO: count ==1563 [2025-04-20 21:24:18] Production.ERROR: pbx CDR StartTime 2025-04-20 18:24:05 - End Time 2025-04-20 21:24:05 [2025-04-20 21:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952994', 'tblTempUsageDetail_20' ) start [2025-04-20 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952994', 'tblTempUsageDetail_20' ) end [2025-04-20 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952994', 'tblTempVendorCDR_20' ) start [2025-04-20 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952994', 'tblTempVendorCDR_20' ) end [2025-04-20 21:24:18] Production.INFO: ProcessCDR(1,14952994,1,1,2) [2025-04-20 21:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952994', 'tblTempUsageDetail_20' ) start [2025-04-20 21:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952994', 'tblTempUsageDetail_20' ) end [2025-04-20 21:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 21:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 21:24:21] Production.INFO: ==30853== Releasing lock... [2025-04-20 21:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 21:24:21] Production.INFO: 39.75 MB #Memory Used# [2025-04-20 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 18:25:05 [end_date_ymd] => 2025-04-20 21:25:05 [RateCDR] => 1 ) [2025-04-20 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-20 18:25:05' and `end` < '2025-04-20 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-20 21:25:18] Production.INFO: count ==1554 [2025-04-20 21:25:18] Production.ERROR: pbx CDR StartTime 2025-04-20 18:25:05 - End Time 2025-04-20 21:25:05 [2025-04-20 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952999', 'tblTempUsageDetail_20' ) start [2025-04-20 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14952999', 'tblTempUsageDetail_20' ) end [2025-04-20 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952999', 'tblTempVendorCDR_20' ) start [2025-04-20 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14952999', 'tblTempVendorCDR_20' ) end [2025-04-20 21:25:18] Production.INFO: ProcessCDR(1,14952999,1,1,2) [2025-04-20 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14952999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14952999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14952999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14952999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952999', 'tblTempUsageDetail_20' ) start [2025-04-20 21:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14952999', 'tblTempUsageDetail_20' ) end [2025-04-20 21:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 21:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 21:25:22] Production.INFO: ==30930== Releasing lock... [2025-04-20 21:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 21:25:22] Production.INFO: 40 MB #Memory Used# [2025-04-20 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 18:26:05 [end_date_ymd] => 2025-04-20 21:26:05 [RateCDR] => 1 ) [2025-04-20 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-20 18:26:05' and `end` < '2025-04-20 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-20 21:26:17] Production.INFO: count ==1540 [2025-04-20 21:26:18] Production.ERROR: pbx CDR StartTime 2025-04-20 18:26:05 - End Time 2025-04-20 21:26:05 [2025-04-20 21:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953004', 'tblTempUsageDetail_20' ) start [2025-04-20 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953004', 'tblTempUsageDetail_20' ) end [2025-04-20 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953004', 'tblTempVendorCDR_20' ) start [2025-04-20 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953004', 'tblTempVendorCDR_20' ) end [2025-04-20 21:26:18] Production.INFO: ProcessCDR(1,14953004,1,1,2) [2025-04-20 21:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953004', 'tblTempUsageDetail_20' ) start [2025-04-20 21:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953004', 'tblTempUsageDetail_20' ) end [2025-04-20 21:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 21:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 21:26:21] Production.INFO: ==31002== Releasing lock... [2025-04-20 21:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 21:26:21] Production.INFO: 40.25 MB #Memory Used# [2025-04-20 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 18:27:05 [end_date_ymd] => 2025-04-20 21:27:05 [RateCDR] => 1 ) [2025-04-20 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-20 18:27:05' and `end` < '2025-04-20 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-20 21:27:18] Production.INFO: count ==1528 [2025-04-20 21:27:18] Production.ERROR: pbx CDR StartTime 2025-04-20 18:27:05 - End Time 2025-04-20 21:27:05 [2025-04-20 21:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953009', 'tblTempUsageDetail_20' ) start [2025-04-20 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953009', 'tblTempUsageDetail_20' ) end [2025-04-20 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953009', 'tblTempVendorCDR_20' ) start [2025-04-20 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953009', 'tblTempVendorCDR_20' ) end [2025-04-20 21:27:18] Production.INFO: ProcessCDR(1,14953009,1,1,2) [2025-04-20 21:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953009', 'tblTempUsageDetail_20' ) start [2025-04-20 21:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953009', 'tblTempUsageDetail_20' ) end [2025-04-20 21:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 21:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 21:27:22] Production.INFO: ==31084== Releasing lock... [2025-04-20 21:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 21:27:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-20 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 18:28:05 [end_date_ymd] => 2025-04-20 21:28:05 [RateCDR] => 1 ) [2025-04-20 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-20 18:28:05' and `end` < '2025-04-20 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-20 21:28:18] Production.INFO: count ==1514 [2025-04-20 21:28:18] Production.ERROR: pbx CDR StartTime 2025-04-20 18:28:05 - End Time 2025-04-20 21:28:05 [2025-04-20 21:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953014', 'tblTempUsageDetail_20' ) start [2025-04-20 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953014', 'tblTempUsageDetail_20' ) end [2025-04-20 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953014', 'tblTempVendorCDR_20' ) start [2025-04-20 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953014', 'tblTempVendorCDR_20' ) end [2025-04-20 21:28:18] Production.INFO: ProcessCDR(1,14953014,1,1,2) [2025-04-20 21:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953014', 'tblTempUsageDetail_20' ) start [2025-04-20 21:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953014', 'tblTempUsageDetail_20' ) end [2025-04-20 21:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 21:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 21:28:22] Production.INFO: ==31154== Releasing lock... [2025-04-20 21:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 21:28:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-20 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 18:29:05 [end_date_ymd] => 2025-04-20 21:29:05 [RateCDR] => 1 ) [2025-04-20 21:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 18:29:05' and `end` < '2025-04-20 21:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 21:29:18] Production.INFO: count ==1506 [2025-04-20 21:29:18] Production.ERROR: pbx CDR StartTime 2025-04-20 18:29:05 - End Time 2025-04-20 21:29:05 [2025-04-20 21:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953019', 'tblTempUsageDetail_20' ) start [2025-04-20 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953019', 'tblTempUsageDetail_20' ) end [2025-04-20 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953019', 'tblTempVendorCDR_20' ) start [2025-04-20 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953019', 'tblTempVendorCDR_20' ) end [2025-04-20 21:29:18] Production.INFO: ProcessCDR(1,14953019,1,1,2) [2025-04-20 21:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953019', 'tblTempUsageDetail_20' ) start [2025-04-20 21:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953019', 'tblTempUsageDetail_20' ) end [2025-04-20 21:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 21:29:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 21:29:23] Production.INFO: ==31270== Releasing lock... [2025-04-20 21:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 21:29:23] Production.INFO: 39.75 MB #Memory Used# [2025-04-20 21:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 18:30:06 [end_date_ymd] => 2025-04-20 21:30:06 [RateCDR] => 1 ) [2025-04-20 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-20 18:30:06' and `end` < '2025-04-20 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-20 21:30:19] Production.INFO: count ==1498 [2025-04-20 21:30:19] Production.ERROR: pbx CDR StartTime 2025-04-20 18:30:06 - End Time 2025-04-20 21:30:06 [2025-04-20 21:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953025', 'tblTempUsageDetail_20' ) start [2025-04-20 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953025', 'tblTempUsageDetail_20' ) end [2025-04-20 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953025', 'tblTempVendorCDR_20' ) start [2025-04-20 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953025', 'tblTempVendorCDR_20' ) end [2025-04-20 21:30:20] Production.INFO: ProcessCDR(1,14953025,1,1,2) [2025-04-20 21:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953025', 'tblTempUsageDetail_20' ) start [2025-04-20 21:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953025', 'tblTempUsageDetail_20' ) end [2025-04-20 21:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 21:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 21:30:23] Production.INFO: ==31347== Releasing lock... [2025-04-20 21:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 21:30:23] Production.INFO: 39.25 MB #Memory Used# [2025-04-20 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 18:31:05 [end_date_ymd] => 2025-04-20 21:31:05 [RateCDR] => 1 ) [2025-04-20 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-20 18:31:05' and `end` < '2025-04-20 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-20 21:31:17] Production.INFO: count ==1432 [2025-04-20 21:31:18] Production.ERROR: pbx CDR StartTime 2025-04-20 18:31:05 - End Time 2025-04-20 21:31:05 [2025-04-20 21:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953030', 'tblTempUsageDetail_20' ) start [2025-04-20 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953030', 'tblTempUsageDetail_20' ) end [2025-04-20 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953030', 'tblTempVendorCDR_20' ) start [2025-04-20 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953030', 'tblTempVendorCDR_20' ) end [2025-04-20 21:31:18] Production.INFO: ProcessCDR(1,14953030,1,1,2) [2025-04-20 21:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953030', 'tblTempUsageDetail_20' ) start [2025-04-20 21:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953030', 'tblTempUsageDetail_20' ) end [2025-04-20 21:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 21:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 21:31:21] Production.INFO: ==31419== Releasing lock... [2025-04-20 21:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 21:31:21] Production.INFO: 39 MB #Memory Used# [2025-04-20 21:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 18:32:06 [end_date_ymd] => 2025-04-20 21:32:06 [RateCDR] => 1 ) [2025-04-20 21:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 18:32:06' and `end` < '2025-04-20 21:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 21:32:19] Production.INFO: count ==1428 [2025-04-20 21:32:19] Production.ERROR: pbx CDR StartTime 2025-04-20 18:32:06 - End Time 2025-04-20 21:32:06 [2025-04-20 21:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953035', 'tblTempUsageDetail_20' ) start [2025-04-20 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953035', 'tblTempUsageDetail_20' ) end [2025-04-20 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953035', 'tblTempVendorCDR_20' ) start [2025-04-20 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953035', 'tblTempVendorCDR_20' ) end [2025-04-20 21:32:19] Production.INFO: ProcessCDR(1,14953035,1,1,2) [2025-04-20 21:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953035', 'tblTempUsageDetail_20' ) start [2025-04-20 21:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953035', 'tblTempUsageDetail_20' ) end [2025-04-20 21:32:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 21:32:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 21:32:23] Production.INFO: ==31493== Releasing lock... [2025-04-20 21:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 21:32:23] Production.INFO: 39 MB #Memory Used# [2025-04-20 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 18:33:05 [end_date_ymd] => 2025-04-20 21:33:05 [RateCDR] => 1 ) [2025-04-20 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-20 18:33:05' and `end` < '2025-04-20 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-20 21:33:17] Production.INFO: count ==1426 [2025-04-20 21:33:18] Production.ERROR: pbx CDR StartTime 2025-04-20 18:33:05 - End Time 2025-04-20 21:33:05 [2025-04-20 21:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953040', 'tblTempUsageDetail_20' ) start [2025-04-20 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953040', 'tblTempUsageDetail_20' ) end [2025-04-20 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953040', 'tblTempVendorCDR_20' ) start [2025-04-20 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953040', 'tblTempVendorCDR_20' ) end [2025-04-20 21:33:18] Production.INFO: ProcessCDR(1,14953040,1,1,2) [2025-04-20 21:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953040', 'tblTempUsageDetail_20' ) start [2025-04-20 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953040', 'tblTempUsageDetail_20' ) end [2025-04-20 21:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 21:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 21:33:22] Production.INFO: ==31564== Releasing lock... [2025-04-20 21:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 21:33:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-20 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 18:34:05 [end_date_ymd] => 2025-04-20 21:34:05 [RateCDR] => 1 ) [2025-04-20 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-20 18:34:05' and `end` < '2025-04-20 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-20 21:34:18] Production.INFO: count ==1427 [2025-04-20 21:34:18] Production.ERROR: pbx CDR StartTime 2025-04-20 18:34:05 - End Time 2025-04-20 21:34:05 [2025-04-20 21:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953045', 'tblTempUsageDetail_20' ) start [2025-04-20 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953045', 'tblTempUsageDetail_20' ) end [2025-04-20 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953045', 'tblTempVendorCDR_20' ) start [2025-04-20 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953045', 'tblTempVendorCDR_20' ) end [2025-04-20 21:34:18] Production.INFO: ProcessCDR(1,14953045,1,1,2) [2025-04-20 21:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953045', 'tblTempUsageDetail_20' ) start [2025-04-20 21:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953045', 'tblTempUsageDetail_20' ) end [2025-04-20 21:34:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 21:34:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 21:34:23] Production.INFO: ==31637== Releasing lock... [2025-04-20 21:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 21:34:23] Production.INFO: 38.75 MB #Memory Used# [2025-04-20 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 18:35:05 [end_date_ymd] => 2025-04-20 21:35:05 [RateCDR] => 1 ) [2025-04-20 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-20 18:35:05' and `end` < '2025-04-20 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-20 21:35:18] Production.INFO: count ==1426 [2025-04-20 21:35:18] Production.ERROR: pbx CDR StartTime 2025-04-20 18:35:05 - End Time 2025-04-20 21:35:05 [2025-04-20 21:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953050', 'tblTempUsageDetail_20' ) start [2025-04-20 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953050', 'tblTempUsageDetail_20' ) end [2025-04-20 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953050', 'tblTempVendorCDR_20' ) start [2025-04-20 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953050', 'tblTempVendorCDR_20' ) end [2025-04-20 21:35:18] Production.INFO: ProcessCDR(1,14953050,1,1,2) [2025-04-20 21:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953050', 'tblTempUsageDetail_20' ) start [2025-04-20 21:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953050', 'tblTempUsageDetail_20' ) end [2025-04-20 21:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 21:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 21:35:23] Production.INFO: ==31717== Releasing lock... [2025-04-20 21:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 21:35:23] Production.INFO: 38.75 MB #Memory Used# [2025-04-20 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 18:36:05 [end_date_ymd] => 2025-04-20 21:36:05 [RateCDR] => 1 ) [2025-04-20 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-20 18:36:05' and `end` < '2025-04-20 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-20 21:36:18] Production.INFO: count ==1424 [2025-04-20 21:36:19] Production.ERROR: pbx CDR StartTime 2025-04-20 18:36:05 - End Time 2025-04-20 21:36:05 [2025-04-20 21:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953055', 'tblTempUsageDetail_20' ) start [2025-04-20 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953055', 'tblTempUsageDetail_20' ) end [2025-04-20 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953055', 'tblTempVendorCDR_20' ) start [2025-04-20 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953055', 'tblTempVendorCDR_20' ) end [2025-04-20 21:36:19] Production.INFO: ProcessCDR(1,14953055,1,1,2) [2025-04-20 21:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953055', 'tblTempUsageDetail_20' ) start [2025-04-20 21:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953055', 'tblTempUsageDetail_20' ) end [2025-04-20 21:36:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 21:36:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 21:36:24] Production.INFO: ==31792== Releasing lock... [2025-04-20 21:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 21:36:24] Production.INFO: 39 MB #Memory Used# [2025-04-20 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 18:37:05 [end_date_ymd] => 2025-04-20 21:37:05 [RateCDR] => 1 ) [2025-04-20 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-20 18:37:05' and `end` < '2025-04-20 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-20 21:37:17] Production.INFO: count ==1421 [2025-04-20 21:37:18] Production.ERROR: pbx CDR StartTime 2025-04-20 18:37:05 - End Time 2025-04-20 21:37:05 [2025-04-20 21:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953060', 'tblTempUsageDetail_20' ) start [2025-04-20 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953060', 'tblTempUsageDetail_20' ) end [2025-04-20 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953060', 'tblTempVendorCDR_20' ) start [2025-04-20 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953060', 'tblTempVendorCDR_20' ) end [2025-04-20 21:37:18] Production.INFO: ProcessCDR(1,14953060,1,1,2) [2025-04-20 21:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953060', 'tblTempUsageDetail_20' ) start [2025-04-20 21:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953060', 'tblTempUsageDetail_20' ) end [2025-04-20 21:37:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 21:37:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 21:37:23] Production.INFO: ==31867== Releasing lock... [2025-04-20 21:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 21:37:23] Production.INFO: 38.75 MB #Memory Used# [2025-04-20 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 18:38:05 [end_date_ymd] => 2025-04-20 21:38:05 [RateCDR] => 1 ) [2025-04-20 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-20 18:38:05' and `end` < '2025-04-20 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-20 21:38:18] Production.INFO: count ==1421 [2025-04-20 21:38:18] Production.ERROR: pbx CDR StartTime 2025-04-20 18:38:05 - End Time 2025-04-20 21:38:05 [2025-04-20 21:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953065', 'tblTempUsageDetail_20' ) start [2025-04-20 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953065', 'tblTempUsageDetail_20' ) end [2025-04-20 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953065', 'tblTempVendorCDR_20' ) start [2025-04-20 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953065', 'tblTempVendorCDR_20' ) end [2025-04-20 21:38:19] Production.INFO: ProcessCDR(1,14953065,1,1,2) [2025-04-20 21:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953065', 'tblTempUsageDetail_20' ) start [2025-04-20 21:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953065', 'tblTempUsageDetail_20' ) end [2025-04-20 21:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 21:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 21:38:23] Production.INFO: ==31943== Releasing lock... [2025-04-20 21:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 21:38:23] Production.INFO: 38.75 MB #Memory Used# [2025-04-20 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 18:39:05 [end_date_ymd] => 2025-04-20 21:39:05 [RateCDR] => 1 ) [2025-04-20 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-20 18:39:05' and `end` < '2025-04-20 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-20 21:39:18] Production.INFO: count ==1421 [2025-04-20 21:39:18] Production.ERROR: pbx CDR StartTime 2025-04-20 18:39:05 - End Time 2025-04-20 21:39:05 [2025-04-20 21:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953070', 'tblTempUsageDetail_20' ) start [2025-04-20 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953070', 'tblTempUsageDetail_20' ) end [2025-04-20 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953070', 'tblTempVendorCDR_20' ) start [2025-04-20 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953070', 'tblTempVendorCDR_20' ) end [2025-04-20 21:39:18] Production.INFO: ProcessCDR(1,14953070,1,1,2) [2025-04-20 21:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953070', 'tblTempUsageDetail_20' ) start [2025-04-20 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953070', 'tblTempUsageDetail_20' ) end [2025-04-20 21:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 21:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 21:39:22] Production.INFO: ==32015== Releasing lock... [2025-04-20 21:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 21:39:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-20 21:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 18:40:05 [end_date_ymd] => 2025-04-20 21:40:05 [RateCDR] => 1 ) [2025-04-20 21:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 18:40:05' and `end` < '2025-04-20 21:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 21:40:18] Production.INFO: count ==1421 [2025-04-20 21:40:19] Production.ERROR: pbx CDR StartTime 2025-04-20 18:40:05 - End Time 2025-04-20 21:40:05 [2025-04-20 21:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953076', 'tblTempUsageDetail_20' ) start [2025-04-20 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953076', 'tblTempUsageDetail_20' ) end [2025-04-20 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953076', 'tblTempVendorCDR_20' ) start [2025-04-20 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953076', 'tblTempVendorCDR_20' ) end [2025-04-20 21:40:19] Production.INFO: ProcessCDR(1,14953076,1,1,2) [2025-04-20 21:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953076', 'tblTempUsageDetail_20' ) start [2025-04-20 21:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953076', 'tblTempUsageDetail_20' ) end [2025-04-20 21:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 21:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 21:40:23] Production.INFO: ==32095== Releasing lock... [2025-04-20 21:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 21:40:23] Production.INFO: 39 MB #Memory Used# [2025-04-20 21:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 18:41:06 [end_date_ymd] => 2025-04-20 21:41:06 [RateCDR] => 1 ) [2025-04-20 21:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 18:41:06' and `end` < '2025-04-20 21:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 21:41:18] Production.INFO: count ==1420 [2025-04-20 21:41:19] Production.ERROR: pbx CDR StartTime 2025-04-20 18:41:06 - End Time 2025-04-20 21:41:06 [2025-04-20 21:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953081', 'tblTempUsageDetail_20' ) start [2025-04-20 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953081', 'tblTempUsageDetail_20' ) end [2025-04-20 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953081', 'tblTempVendorCDR_20' ) start [2025-04-20 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953081', 'tblTempVendorCDR_20' ) end [2025-04-20 21:41:19] Production.INFO: ProcessCDR(1,14953081,1,1,2) [2025-04-20 21:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953081', 'tblTempUsageDetail_20' ) start [2025-04-20 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953081', 'tblTempUsageDetail_20' ) end [2025-04-20 21:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 21:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 21:41:22] Production.INFO: ==32176== Releasing lock... [2025-04-20 21:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 21:41:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-20 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 18:42:05 [end_date_ymd] => 2025-04-20 21:42:05 [RateCDR] => 1 ) [2025-04-20 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-20 18:42:05' and `end` < '2025-04-20 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-20 21:42:18] Production.INFO: count ==1422 [2025-04-20 21:42:18] Production.ERROR: pbx CDR StartTime 2025-04-20 18:42:05 - End Time 2025-04-20 21:42:05 [2025-04-20 21:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953086', 'tblTempUsageDetail_20' ) start [2025-04-20 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953086', 'tblTempUsageDetail_20' ) end [2025-04-20 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953086', 'tblTempVendorCDR_20' ) start [2025-04-20 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953086', 'tblTempVendorCDR_20' ) end [2025-04-20 21:42:18] Production.INFO: ProcessCDR(1,14953086,1,1,2) [2025-04-20 21:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953086', 'tblTempUsageDetail_20' ) start [2025-04-20 21:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953086', 'tblTempUsageDetail_20' ) end [2025-04-20 21:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 21:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 21:42:23] Production.INFO: ==32259== Releasing lock... [2025-04-20 21:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 21:42:23] Production.INFO: 38.75 MB #Memory Used# [2025-04-20 21:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 18:43:06 [end_date_ymd] => 2025-04-20 21:43:06 [RateCDR] => 1 ) [2025-04-20 21: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-20 18:43:06' and `end` < '2025-04-20 21: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-20 21:43:18] Production.INFO: count ==1421 [2025-04-20 21:43:19] Production.ERROR: pbx CDR StartTime 2025-04-20 18:43:06 - End Time 2025-04-20 21:43:06 [2025-04-20 21:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953091', 'tblTempUsageDetail_20' ) start [2025-04-20 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953091', 'tblTempUsageDetail_20' ) end [2025-04-20 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953091', 'tblTempVendorCDR_20' ) start [2025-04-20 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953091', 'tblTempVendorCDR_20' ) end [2025-04-20 21:43:19] Production.INFO: ProcessCDR(1,14953091,1,1,2) [2025-04-20 21:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953091', 'tblTempUsageDetail_20' ) start [2025-04-20 21:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953091', 'tblTempUsageDetail_20' ) end [2025-04-20 21:43:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 21:43:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 21:43:24] Production.INFO: ==32331== Releasing lock... [2025-04-20 21:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 21:43:24] Production.INFO: 39 MB #Memory Used# [2025-04-20 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 18:44:05 [end_date_ymd] => 2025-04-20 21:44:05 [RateCDR] => 1 ) [2025-04-20 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-20 18:44:05' and `end` < '2025-04-20 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-20 21:44:18] Production.INFO: count ==1421 [2025-04-20 21:44:18] Production.ERROR: pbx CDR StartTime 2025-04-20 18:44:05 - End Time 2025-04-20 21:44:05 [2025-04-20 21:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953096', 'tblTempUsageDetail_20' ) start [2025-04-20 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953096', 'tblTempUsageDetail_20' ) end [2025-04-20 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953096', 'tblTempVendorCDR_20' ) start [2025-04-20 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953096', 'tblTempVendorCDR_20' ) end [2025-04-20 21:44:18] Production.INFO: ProcessCDR(1,14953096,1,1,2) [2025-04-20 21:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953096', 'tblTempUsageDetail_20' ) start [2025-04-20 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953096', 'tblTempUsageDetail_20' ) end [2025-04-20 21:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 21:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 21:44:22] Production.INFO: ==32403== Releasing lock... [2025-04-20 21:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 21:44:22] Production.INFO: 39 MB #Memory Used# [2025-04-20 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 18:45:05 [end_date_ymd] => 2025-04-20 21:45:05 [RateCDR] => 1 ) [2025-04-20 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-20 18:45:05' and `end` < '2025-04-20 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-20 21:45:18] Production.INFO: count ==1419 [2025-04-20 21:45:18] Production.ERROR: pbx CDR StartTime 2025-04-20 18:45:05 - End Time 2025-04-20 21:45:05 [2025-04-20 21:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953101', 'tblTempUsageDetail_20' ) start [2025-04-20 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953101', 'tblTempUsageDetail_20' ) end [2025-04-20 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953101', 'tblTempVendorCDR_20' ) start [2025-04-20 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953101', 'tblTempVendorCDR_20' ) end [2025-04-20 21:45:19] Production.INFO: ProcessCDR(1,14953101,1,1,2) [2025-04-20 21:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953101', 'tblTempUsageDetail_20' ) start [2025-04-20 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953101', 'tblTempUsageDetail_20' ) end [2025-04-20 21:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 21:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 21:45:22] Production.INFO: ==32517== Releasing lock... [2025-04-20 21:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 21:45:22] Production.INFO: 39 MB #Memory Used# [2025-04-20 21:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 18:46:06 [end_date_ymd] => 2025-04-20 21:46:06 [RateCDR] => 1 ) [2025-04-20 21:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 18:46:06' and `end` < '2025-04-20 21:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 21:46:19] Production.INFO: count ==1426 [2025-04-20 21:46:19] Production.ERROR: pbx CDR StartTime 2025-04-20 18:46:06 - End Time 2025-04-20 21:46:06 [2025-04-20 21:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953106', 'tblTempUsageDetail_20' ) start [2025-04-20 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953106', 'tblTempUsageDetail_20' ) end [2025-04-20 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953106', 'tblTempVendorCDR_20' ) start [2025-04-20 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953106', 'tblTempVendorCDR_20' ) end [2025-04-20 21:46:19] Production.INFO: ProcessCDR(1,14953106,1,1,2) [2025-04-20 21:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953106', 'tblTempUsageDetail_20' ) start [2025-04-20 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953106', 'tblTempUsageDetail_20' ) end [2025-04-20 21:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 21:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 21:46:22] Production.INFO: ==32591== Releasing lock... [2025-04-20 21:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 21:46:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-20 21:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 18:47:04 [end_date_ymd] => 2025-04-20 21:47:04 [RateCDR] => 1 ) [2025-04-20 21: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-20 18:47:04' and `end` < '2025-04-20 21: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-20 21:47:17] Production.INFO: count ==1434 [2025-04-20 21:47:17] Production.ERROR: pbx CDR StartTime 2025-04-20 18:47:04 - End Time 2025-04-20 21:47:04 [2025-04-20 21:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 21:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953111', 'tblTempUsageDetail_20' ) start [2025-04-20 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953111', 'tblTempUsageDetail_20' ) end [2025-04-20 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953111', 'tblTempVendorCDR_20' ) start [2025-04-20 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953111', 'tblTempVendorCDR_20' ) end [2025-04-20 21:47:18] Production.INFO: ProcessCDR(1,14953111,1,1,2) [2025-04-20 21:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953111', 'tblTempUsageDetail_20' ) start [2025-04-20 21:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953111', 'tblTempUsageDetail_20' ) end [2025-04-20 21:47:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 21:47:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 21:47:23] Production.INFO: ==32666== Releasing lock... [2025-04-20 21:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 21:47:23] Production.INFO: 39.25 MB #Memory Used# [2025-04-20 21:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 18:48:06 [end_date_ymd] => 2025-04-20 21:48:06 [RateCDR] => 1 ) [2025-04-20 21:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 18:48:06' and `end` < '2025-04-20 21:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 21:48:18] Production.INFO: count ==1435 [2025-04-20 21:48:19] Production.ERROR: pbx CDR StartTime 2025-04-20 18:48:06 - End Time 2025-04-20 21:48:06 [2025-04-20 21:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953116', 'tblTempUsageDetail_20' ) start [2025-04-20 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953116', 'tblTempUsageDetail_20' ) end [2025-04-20 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953116', 'tblTempVendorCDR_20' ) start [2025-04-20 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953116', 'tblTempVendorCDR_20' ) end [2025-04-20 21:48:19] Production.INFO: ProcessCDR(1,14953116,1,1,2) [2025-04-20 21:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953116', 'tblTempUsageDetail_20' ) start [2025-04-20 21:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953116', 'tblTempUsageDetail_20' ) end [2025-04-20 21:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 21:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 21:48:22] Production.INFO: ==32742== Releasing lock... [2025-04-20 21:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 21:48:22] Production.INFO: 39 MB #Memory Used# [2025-04-20 21:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 18:49:04 [end_date_ymd] => 2025-04-20 21:49:04 [RateCDR] => 1 ) [2025-04-20 21:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 18:49:04' and `end` < '2025-04-20 21:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 21:49:17] Production.INFO: count ==1436 [2025-04-20 21:49:17] Production.ERROR: pbx CDR StartTime 2025-04-20 18:49:04 - End Time 2025-04-20 21:49:04 [2025-04-20 21:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953121', 'tblTempUsageDetail_20' ) start [2025-04-20 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953121', 'tblTempUsageDetail_20' ) end [2025-04-20 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953121', 'tblTempVendorCDR_20' ) start [2025-04-20 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953121', 'tblTempVendorCDR_20' ) end [2025-04-20 21:49:17] Production.INFO: ProcessCDR(1,14953121,1,1,2) [2025-04-20 21:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953121', 'tblTempUsageDetail_20' ) start [2025-04-20 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953121', 'tblTempUsageDetail_20' ) end [2025-04-20 21:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 21:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 21:49:21] Production.INFO: ==371== Releasing lock... [2025-04-20 21:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 21:49:21] Production.INFO: 38.75 MB #Memory Used# [2025-04-20 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 18:50:06 [end_date_ymd] => 2025-04-20 21:50:06 [RateCDR] => 1 ) [2025-04-20 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-20 18:50:06' and `end` < '2025-04-20 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-20 21:50:19] Production.INFO: count ==1442 [2025-04-20 21:50:19] Production.ERROR: pbx CDR StartTime 2025-04-20 18:50:06 - End Time 2025-04-20 21:50:06 [2025-04-20 21:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953126', 'tblTempUsageDetail_20' ) start [2025-04-20 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953126', 'tblTempUsageDetail_20' ) end [2025-04-20 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953126', 'tblTempVendorCDR_20' ) start [2025-04-20 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953126', 'tblTempVendorCDR_20' ) end [2025-04-20 21:50:19] Production.INFO: ProcessCDR(1,14953126,1,1,2) [2025-04-20 21:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953126', 'tblTempUsageDetail_20' ) start [2025-04-20 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953126', 'tblTempUsageDetail_20' ) end [2025-04-20 21:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 21:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 21:50:22] Production.INFO: ==445== Releasing lock... [2025-04-20 21:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 21:50:22] Production.INFO: 39 MB #Memory Used# [2025-04-20 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 18:51:05 [end_date_ymd] => 2025-04-20 21:51:05 [RateCDR] => 1 ) [2025-04-20 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-20 18:51:05' and `end` < '2025-04-20 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-20 21:51:17] Production.INFO: count ==1473 [2025-04-20 21:51:18] Production.ERROR: pbx CDR StartTime 2025-04-20 18:51:05 - End Time 2025-04-20 21:51:05 [2025-04-20 21:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953132', 'tblTempUsageDetail_20' ) start [2025-04-20 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953132', 'tblTempUsageDetail_20' ) end [2025-04-20 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953132', 'tblTempVendorCDR_20' ) start [2025-04-20 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953132', 'tblTempVendorCDR_20' ) end [2025-04-20 21:51:18] Production.INFO: ProcessCDR(1,14953132,1,1,2) [2025-04-20 21:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953132', 'tblTempUsageDetail_20' ) start [2025-04-20 21:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953132', 'tblTempUsageDetail_20' ) end [2025-04-20 21:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 21:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 21:51:21] Production.INFO: ==525== Releasing lock... [2025-04-20 21:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 21:51:21] Production.INFO: 39.75 MB #Memory Used# [2025-04-20 21:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 18:52:06 [end_date_ymd] => 2025-04-20 21:52:06 [RateCDR] => 1 ) [2025-04-20 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-20 18:52:06' and `end` < '2025-04-20 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-20 21:52:19] Production.INFO: count ==1474 [2025-04-20 21:52:19] Production.ERROR: pbx CDR StartTime 2025-04-20 18:52:06 - End Time 2025-04-20 21:52:06 [2025-04-20 21:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953137', 'tblTempUsageDetail_20' ) start [2025-04-20 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953137', 'tblTempUsageDetail_20' ) end [2025-04-20 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953137', 'tblTempVendorCDR_20' ) start [2025-04-20 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953137', 'tblTempVendorCDR_20' ) end [2025-04-20 21:52:19] Production.INFO: ProcessCDR(1,14953137,1,1,2) [2025-04-20 21:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953137', 'tblTempUsageDetail_20' ) start [2025-04-20 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953137', 'tblTempUsageDetail_20' ) end [2025-04-20 21:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 21:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 21:52:22] Production.INFO: ==611== Releasing lock... [2025-04-20 21:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 21:52:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-20 21:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 18:53:04 [end_date_ymd] => 2025-04-20 21:53:04 [RateCDR] => 1 ) [2025-04-20 21: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-20 18:53:04' and `end` < '2025-04-20 21: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-20 21:53:17] Production.INFO: count ==1480 [2025-04-20 21:53:18] Production.ERROR: pbx CDR StartTime 2025-04-20 18:53:04 - End Time 2025-04-20 21:53:04 [2025-04-20 21:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953142', 'tblTempUsageDetail_20' ) start [2025-04-20 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953142', 'tblTempUsageDetail_20' ) end [2025-04-20 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953142', 'tblTempVendorCDR_20' ) start [2025-04-20 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953142', 'tblTempVendorCDR_20' ) end [2025-04-20 21:53:18] Production.INFO: ProcessCDR(1,14953142,1,1,2) [2025-04-20 21:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953142', 'tblTempUsageDetail_20' ) start [2025-04-20 21:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953142', 'tblTempUsageDetail_20' ) end [2025-04-20 21:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 21:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 21:53:22] Production.INFO: ==717== Releasing lock... [2025-04-20 21:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 21:53:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-20 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 18:54:05 [end_date_ymd] => 2025-04-20 21:54:05 [RateCDR] => 1 ) [2025-04-20 21:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 18:54:05' and `end` < '2025-04-20 21:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 21:54:18] Production.INFO: count ==1481 [2025-04-20 21:54:18] Production.ERROR: pbx CDR StartTime 2025-04-20 18:54:05 - End Time 2025-04-20 21:54:05 [2025-04-20 21:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953147', 'tblTempUsageDetail_20' ) start [2025-04-20 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953147', 'tblTempUsageDetail_20' ) end [2025-04-20 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953147', 'tblTempVendorCDR_20' ) start [2025-04-20 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953147', 'tblTempVendorCDR_20' ) end [2025-04-20 21:54:18] Production.INFO: ProcessCDR(1,14953147,1,1,2) [2025-04-20 21:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953147', 'tblTempUsageDetail_20' ) start [2025-04-20 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953147', 'tblTempUsageDetail_20' ) end [2025-04-20 21:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 21:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 21:54:21] Production.INFO: ==803== Releasing lock... [2025-04-20 21:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 21:54:21] Production.INFO: 39.25 MB #Memory Used# [2025-04-20 21:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 18:55:06 [end_date_ymd] => 2025-04-20 21:55:06 [RateCDR] => 1 ) [2025-04-20 21: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-20 18:55:06' and `end` < '2025-04-20 21: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-20 21:55:19] Production.INFO: count ==1478 [2025-04-20 21:55:19] Production.ERROR: pbx CDR StartTime 2025-04-20 18:55:06 - End Time 2025-04-20 21:55:06 [2025-04-20 21:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953152', 'tblTempUsageDetail_20' ) start [2025-04-20 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953152', 'tblTempUsageDetail_20' ) end [2025-04-20 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953152', 'tblTempVendorCDR_20' ) start [2025-04-20 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953152', 'tblTempVendorCDR_20' ) end [2025-04-20 21:55:19] Production.INFO: ProcessCDR(1,14953152,1,1,2) [2025-04-20 21:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953152', 'tblTempUsageDetail_20' ) start [2025-04-20 21:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953152', 'tblTempUsageDetail_20' ) end [2025-04-20 21:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 21:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 21:55:23] Production.INFO: ==875== Releasing lock... [2025-04-20 21:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 21:55:23] Production.INFO: 39.5 MB #Memory Used# [2025-04-20 21:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 18:56:05 [end_date_ymd] => 2025-04-20 21:56:05 [RateCDR] => 1 ) [2025-04-20 21:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 18:56:05' and `end` < '2025-04-20 21:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 21:56:18] Production.INFO: count ==1491 [2025-04-20 21:56:18] Production.ERROR: pbx CDR StartTime 2025-04-20 18:56:05 - End Time 2025-04-20 21:56:05 [2025-04-20 21:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953157', 'tblTempUsageDetail_20' ) start [2025-04-20 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953157', 'tblTempUsageDetail_20' ) end [2025-04-20 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953157', 'tblTempVendorCDR_20' ) start [2025-04-20 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953157', 'tblTempVendorCDR_20' ) end [2025-04-20 21:56:18] Production.INFO: ProcessCDR(1,14953157,1,1,2) [2025-04-20 21:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953157', 'tblTempUsageDetail_20' ) start [2025-04-20 21:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953157', 'tblTempUsageDetail_20' ) end [2025-04-20 21:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 21:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 21:56:23] Production.INFO: ==947== Releasing lock... [2025-04-20 21:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 21:56:23] Production.INFO: 39.25 MB #Memory Used# [2025-04-20 21:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 18:57:06 [end_date_ymd] => 2025-04-20 21:57:06 [RateCDR] => 1 ) [2025-04-20 21:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 18:57:06' and `end` < '2025-04-20 21:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 21:57:18] Production.INFO: count ==1491 [2025-04-20 21:57:19] Production.ERROR: pbx CDR StartTime 2025-04-20 18:57:06 - End Time 2025-04-20 21:57:06 [2025-04-20 21:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953162', 'tblTempUsageDetail_20' ) start [2025-04-20 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953162', 'tblTempUsageDetail_20' ) end [2025-04-20 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953162', 'tblTempVendorCDR_20' ) start [2025-04-20 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953162', 'tblTempVendorCDR_20' ) end [2025-04-20 21:57:19] Production.INFO: ProcessCDR(1,14953162,1,1,2) [2025-04-20 21:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953162', 'tblTempUsageDetail_20' ) start [2025-04-20 21:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953162', 'tblTempUsageDetail_20' ) end [2025-04-20 21:57:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 21:57:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 21:57:24] Production.INFO: ==1020== Releasing lock... [2025-04-20 21:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 21:57:24] Production.INFO: 39.5 MB #Memory Used# [2025-04-20 21:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 18:58:06 [end_date_ymd] => 2025-04-20 21:58:06 [RateCDR] => 1 ) [2025-04-20 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-20 18:58:06' and `end` < '2025-04-20 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-20 21:58:19] Production.INFO: count ==1491 [2025-04-20 21:58:19] Production.ERROR: pbx CDR StartTime 2025-04-20 18:58:06 - End Time 2025-04-20 21:58:06 [2025-04-20 21:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953167', 'tblTempUsageDetail_20' ) start [2025-04-20 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953167', 'tblTempUsageDetail_20' ) end [2025-04-20 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953167', 'tblTempVendorCDR_20' ) start [2025-04-20 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953167', 'tblTempVendorCDR_20' ) end [2025-04-20 21:58:19] Production.INFO: ProcessCDR(1,14953167,1,1,2) [2025-04-20 21:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953167', 'tblTempUsageDetail_20' ) start [2025-04-20 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953167', 'tblTempUsageDetail_20' ) end [2025-04-20 21:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 21:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 21:58:23] Production.INFO: ==1096== Releasing lock... [2025-04-20 21:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 21:58:23] Production.INFO: 39.25 MB #Memory Used# [2025-04-20 21:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 18:59:06 [end_date_ymd] => 2025-04-20 21:59:06 [RateCDR] => 1 ) [2025-04-20 21: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-20 18:59:06' and `end` < '2025-04-20 21: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-20 21:59:18] Production.INFO: count ==1491 [2025-04-20 21:59:19] Production.ERROR: pbx CDR StartTime 2025-04-20 18:59:06 - End Time 2025-04-20 21:59:06 [2025-04-20 21:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953172', 'tblTempUsageDetail_20' ) start [2025-04-20 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953172', 'tblTempUsageDetail_20' ) end [2025-04-20 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953172', 'tblTempVendorCDR_20' ) start [2025-04-20 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953172', 'tblTempVendorCDR_20' ) end [2025-04-20 21:59:19] Production.INFO: ProcessCDR(1,14953172,1,1,2) [2025-04-20 21:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 21:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 21:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953172', 'tblTempUsageDetail_20' ) start [2025-04-20 21:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953172', 'tblTempUsageDetail_20' ) end [2025-04-20 21:59:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 21:59:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 21:59:24] Production.INFO: ==1183== Releasing lock... [2025-04-20 21:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 21:59:24] Production.INFO: 39.75 MB #Memory Used# [2025-04-20 22:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 19:00:05 [end_date_ymd] => 2025-04-20 22:00:05 [RateCDR] => 1 ) [2025-04-20 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-20 19:00:05' and `end` < '2025-04-20 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-20 22:00:18] Production.INFO: count ==1492 [2025-04-20 22:00:18] Production.ERROR: pbx CDR StartTime 2025-04-20 19:00:05 - End Time 2025-04-20 22:00:05 [2025-04-20 22:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953178', 'tblTempUsageDetail_20' ) start [2025-04-20 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953178', 'tblTempUsageDetail_20' ) end [2025-04-20 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953178', 'tblTempVendorCDR_20' ) start [2025-04-20 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953178', 'tblTempVendorCDR_20' ) end [2025-04-20 22:00:19] Production.INFO: ProcessCDR(1,14953178,1,1,2) [2025-04-20 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953178', 'tblTempUsageDetail_20' ) start [2025-04-20 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953178', 'tblTempUsageDetail_20' ) end [2025-04-20 22:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 22:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 22:00:22] Production.INFO: ==1316== Releasing lock... [2025-04-20 22:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 22:00:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-20 22:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 19:01:06 [end_date_ymd] => 2025-04-20 22:01:06 [RateCDR] => 1 ) [2025-04-20 22:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 19:01:06' and `end` < '2025-04-20 22:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 22:01:18] Production.INFO: count ==1494 [2025-04-20 22:01:19] Production.ERROR: pbx CDR StartTime 2025-04-20 19:01:06 - End Time 2025-04-20 22:01:06 [2025-04-20 22:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953183', 'tblTempUsageDetail_20' ) start [2025-04-20 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953183', 'tblTempUsageDetail_20' ) end [2025-04-20 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953183', 'tblTempVendorCDR_20' ) start [2025-04-20 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953183', 'tblTempVendorCDR_20' ) end [2025-04-20 22:01:19] Production.INFO: ProcessCDR(1,14953183,1,1,2) [2025-04-20 22:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953183', 'tblTempUsageDetail_20' ) start [2025-04-20 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953183', 'tblTempUsageDetail_20' ) end [2025-04-20 22:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 22:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 22:01:22] Production.INFO: ==1407== Releasing lock... [2025-04-20 22:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 22:01:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-20 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 19:02:05 [end_date_ymd] => 2025-04-20 22:02:05 [RateCDR] => 1 ) [2025-04-20 22:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 19:02:05' and `end` < '2025-04-20 22:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 22:02:18] Production.INFO: count ==1495 [2025-04-20 22:02:18] Production.ERROR: pbx CDR StartTime 2025-04-20 19:02:05 - End Time 2025-04-20 22:02:05 [2025-04-20 22:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953188', 'tblTempUsageDetail_20' ) start [2025-04-20 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953188', 'tblTempUsageDetail_20' ) end [2025-04-20 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953188', 'tblTempVendorCDR_20' ) start [2025-04-20 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953188', 'tblTempVendorCDR_20' ) end [2025-04-20 22:02:18] Production.INFO: ProcessCDR(1,14953188,1,1,2) [2025-04-20 22:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953188', 'tblTempUsageDetail_20' ) start [2025-04-20 22:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953188', 'tblTempUsageDetail_20' ) end [2025-04-20 22:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 22:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 22:02:22] Production.INFO: ==1479== Releasing lock... [2025-04-20 22:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 22:02:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-20 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 19:03:05 [end_date_ymd] => 2025-04-20 22:03:05 [RateCDR] => 1 ) [2025-04-20 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-20 19:03:05' and `end` < '2025-04-20 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-20 22:03:18] Production.INFO: count ==1497 [2025-04-20 22:03:18] Production.ERROR: pbx CDR StartTime 2025-04-20 19:03:05 - End Time 2025-04-20 22:03:05 [2025-04-20 22:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953193', 'tblTempUsageDetail_20' ) start [2025-04-20 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953193', 'tblTempUsageDetail_20' ) end [2025-04-20 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953193', 'tblTempVendorCDR_20' ) start [2025-04-20 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953193', 'tblTempVendorCDR_20' ) end [2025-04-20 22:03:18] Production.INFO: ProcessCDR(1,14953193,1,1,2) [2025-04-20 22:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953193', 'tblTempUsageDetail_20' ) start [2025-04-20 22:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953193', 'tblTempUsageDetail_20' ) end [2025-04-20 22:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 22:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 22:03:23] Production.INFO: ==1593== Releasing lock... [2025-04-20 22:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 22:03:23] Production.INFO: 39.5 MB #Memory Used# [2025-04-20 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 19:04:05 [end_date_ymd] => 2025-04-20 22:04:05 [RateCDR] => 1 ) [2025-04-20 22:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 19:04:05' and `end` < '2025-04-20 22:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 22:04:18] Production.INFO: count ==1497 [2025-04-20 22:04:18] Production.ERROR: pbx CDR StartTime 2025-04-20 19:04:05 - End Time 2025-04-20 22:04:05 [2025-04-20 22:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953198', 'tblTempUsageDetail_20' ) start [2025-04-20 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953198', 'tblTempUsageDetail_20' ) end [2025-04-20 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953198', 'tblTempVendorCDR_20' ) start [2025-04-20 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953198', 'tblTempVendorCDR_20' ) end [2025-04-20 22:04:18] Production.INFO: ProcessCDR(1,14953198,1,1,2) [2025-04-20 22:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953198', 'tblTempUsageDetail_20' ) start [2025-04-20 22:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953198', 'tblTempUsageDetail_20' ) end [2025-04-20 22:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 22:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 22:04:22] Production.INFO: ==1663== Releasing lock... [2025-04-20 22:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 22:04:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-20 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 19:05:05 [end_date_ymd] => 2025-04-20 22:05:05 [RateCDR] => 1 ) [2025-04-20 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-20 19:05:05' and `end` < '2025-04-20 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-20 22:05:18] Production.INFO: count ==1496 [2025-04-20 22:05:18] Production.ERROR: pbx CDR StartTime 2025-04-20 19:05:05 - End Time 2025-04-20 22:05:05 [2025-04-20 22:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953203', 'tblTempUsageDetail_20' ) start [2025-04-20 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953203', 'tblTempUsageDetail_20' ) end [2025-04-20 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953203', 'tblTempVendorCDR_20' ) start [2025-04-20 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953203', 'tblTempVendorCDR_20' ) end [2025-04-20 22:05:18] Production.INFO: ProcessCDR(1,14953203,1,1,2) [2025-04-20 22:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953203', 'tblTempUsageDetail_20' ) start [2025-04-20 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953203', 'tblTempUsageDetail_20' ) end [2025-04-20 22:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 22:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 22:05:22] Production.INFO: ==1741== Releasing lock... [2025-04-20 22:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 22:05:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-20 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 19:06:05 [end_date_ymd] => 2025-04-20 22:06:05 [RateCDR] => 1 ) [2025-04-20 22:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 19:06:05' and `end` < '2025-04-20 22:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 22:06:18] Production.INFO: count ==1508 [2025-04-20 22:06:19] Production.ERROR: pbx CDR StartTime 2025-04-20 19:06:05 - End Time 2025-04-20 22:06:05 [2025-04-20 22:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953208', 'tblTempUsageDetail_20' ) start [2025-04-20 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953208', 'tblTempUsageDetail_20' ) end [2025-04-20 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953208', 'tblTempVendorCDR_20' ) start [2025-04-20 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953208', 'tblTempVendorCDR_20' ) end [2025-04-20 22:06:19] Production.INFO: ProcessCDR(1,14953208,1,1,2) [2025-04-20 22:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953208', 'tblTempUsageDetail_20' ) start [2025-04-20 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953208', 'tblTempUsageDetail_20' ) end [2025-04-20 22:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 22:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 22:06:22] Production.INFO: ==1814== Releasing lock... [2025-04-20 22:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 22:06:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-20 22:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 19:07:06 [end_date_ymd] => 2025-04-20 22:07:06 [RateCDR] => 1 ) [2025-04-20 22: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-20 19:07:06' and `end` < '2025-04-20 22: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-20 22:07:19] Production.INFO: count ==1504 [2025-04-20 22:07:19] Production.ERROR: pbx CDR StartTime 2025-04-20 19:07:06 - End Time 2025-04-20 22:07:06 [2025-04-20 22:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953213', 'tblTempUsageDetail_20' ) start [2025-04-20 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953213', 'tblTempUsageDetail_20' ) end [2025-04-20 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953213', 'tblTempVendorCDR_20' ) start [2025-04-20 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953213', 'tblTempVendorCDR_20' ) end [2025-04-20 22:07:19] Production.INFO: ProcessCDR(1,14953213,1,1,2) [2025-04-20 22:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953213', 'tblTempUsageDetail_20' ) start [2025-04-20 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953213', 'tblTempUsageDetail_20' ) end [2025-04-20 22:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 22:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 22:07:22] Production.INFO: ==1898== Releasing lock... [2025-04-20 22:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 22:07:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-20 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 19:08:05 [end_date_ymd] => 2025-04-20 22:08:05 [RateCDR] => 1 ) [2025-04-20 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-20 19:08:05' and `end` < '2025-04-20 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-20 22:08:18] Production.INFO: count ==1508 [2025-04-20 22:08:18] Production.ERROR: pbx CDR StartTime 2025-04-20 19:08:05 - End Time 2025-04-20 22:08:05 [2025-04-20 22:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953218', 'tblTempUsageDetail_20' ) start [2025-04-20 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953218', 'tblTempUsageDetail_20' ) end [2025-04-20 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953218', 'tblTempVendorCDR_20' ) start [2025-04-20 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953218', 'tblTempVendorCDR_20' ) end [2025-04-20 22:08:18] Production.INFO: ProcessCDR(1,14953218,1,1,2) [2025-04-20 22:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953218', 'tblTempUsageDetail_20' ) start [2025-04-20 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953218', 'tblTempUsageDetail_20' ) end [2025-04-20 22:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 22:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 22:08:21] Production.INFO: ==1978== Releasing lock... [2025-04-20 22:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 22:08:21] Production.INFO: 39.5 MB #Memory Used# [2025-04-20 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 19:09:05 [end_date_ymd] => 2025-04-20 22:09:05 [RateCDR] => 1 ) [2025-04-20 22:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 19:09:05' and `end` < '2025-04-20 22:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 22:09:17] Production.INFO: count ==1508 [2025-04-20 22:09:18] Production.ERROR: pbx CDR StartTime 2025-04-20 19:09:05 - End Time 2025-04-20 22:09:05 [2025-04-20 22:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953223', 'tblTempUsageDetail_20' ) start [2025-04-20 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953223', 'tblTempUsageDetail_20' ) end [2025-04-20 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953223', 'tblTempVendorCDR_20' ) start [2025-04-20 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953223', 'tblTempVendorCDR_20' ) end [2025-04-20 22:09:18] Production.INFO: ProcessCDR(1,14953223,1,1,2) [2025-04-20 22:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953223', 'tblTempUsageDetail_20' ) start [2025-04-20 22:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953223', 'tblTempUsageDetail_20' ) end [2025-04-20 22:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 22:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 22:09:21] Production.INFO: ==2057== Releasing lock... [2025-04-20 22:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 22:09:21] Production.INFO: 39.5 MB #Memory Used# [2025-04-20 22:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 19:10:05 [end_date_ymd] => 2025-04-20 22:10:05 [RateCDR] => 1 ) [2025-04-20 22:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 19:10:05' and `end` < '2025-04-20 22:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 22:10:18] Production.INFO: count ==1508 [2025-04-20 22:10:18] Production.ERROR: pbx CDR StartTime 2025-04-20 19:10:05 - End Time 2025-04-20 22:10:05 [2025-04-20 22:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953228', 'tblTempUsageDetail_20' ) start [2025-04-20 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953228', 'tblTempUsageDetail_20' ) end [2025-04-20 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953228', 'tblTempVendorCDR_20' ) start [2025-04-20 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953228', 'tblTempVendorCDR_20' ) end [2025-04-20 22:10:19] Production.INFO: ProcessCDR(1,14953228,1,1,2) [2025-04-20 22:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953228', 'tblTempUsageDetail_20' ) start [2025-04-20 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953228', 'tblTempUsageDetail_20' ) end [2025-04-20 22:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 22:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 22:10:22] Production.INFO: ==2130== Releasing lock... [2025-04-20 22:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 22:10:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-20 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 19:11:05 [end_date_ymd] => 2025-04-20 22:11:05 [RateCDR] => 1 ) [2025-04-20 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-20 19:11:05' and `end` < '2025-04-20 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-20 22:11:18] Production.INFO: count ==1483 [2025-04-20 22:11:19] Production.ERROR: pbx CDR StartTime 2025-04-20 19:11:05 - End Time 2025-04-20 22:11:05 [2025-04-20 22:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953234', 'tblTempUsageDetail_20' ) start [2025-04-20 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953234', 'tblTempUsageDetail_20' ) end [2025-04-20 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953234', 'tblTempVendorCDR_20' ) start [2025-04-20 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953234', 'tblTempVendorCDR_20' ) end [2025-04-20 22:11:19] Production.INFO: ProcessCDR(1,14953234,1,1,2) [2025-04-20 22:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953234', 'tblTempUsageDetail_20' ) start [2025-04-20 22:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953234', 'tblTempUsageDetail_20' ) end [2025-04-20 22:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 22:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 22:11:23] Production.INFO: ==2209== Releasing lock... [2025-04-20 22:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 22:11:23] Production.INFO: 39.5 MB #Memory Used# [2025-04-20 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 19:12:05 [end_date_ymd] => 2025-04-20 22:12:05 [RateCDR] => 1 ) [2025-04-20 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-20 19:12:05' and `end` < '2025-04-20 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-20 22:12:18] Production.INFO: count ==1487 [2025-04-20 22:12:18] Production.ERROR: pbx CDR StartTime 2025-04-20 19:12:05 - End Time 2025-04-20 22:12:05 [2025-04-20 22:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953239', 'tblTempUsageDetail_20' ) start [2025-04-20 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953239', 'tblTempUsageDetail_20' ) end [2025-04-20 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953239', 'tblTempVendorCDR_20' ) start [2025-04-20 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953239', 'tblTempVendorCDR_20' ) end [2025-04-20 22:12:18] Production.INFO: ProcessCDR(1,14953239,1,1,2) [2025-04-20 22:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953239', 'tblTempUsageDetail_20' ) start [2025-04-20 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953239', 'tblTempUsageDetail_20' ) end [2025-04-20 22:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 22:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 22:12:21] Production.INFO: ==2280== Releasing lock... [2025-04-20 22:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 22:12:21] Production.INFO: 39.25 MB #Memory Used# [2025-04-20 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 19:13:05 [end_date_ymd] => 2025-04-20 22:13:05 [RateCDR] => 1 ) [2025-04-20 22:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 19:13:05' and `end` < '2025-04-20 22:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 22:13:18] Production.INFO: count ==1485 [2025-04-20 22:13:18] Production.ERROR: pbx CDR StartTime 2025-04-20 19:13:05 - End Time 2025-04-20 22:13:05 [2025-04-20 22:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953244', 'tblTempUsageDetail_20' ) start [2025-04-20 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953244', 'tblTempUsageDetail_20' ) end [2025-04-20 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953244', 'tblTempVendorCDR_20' ) start [2025-04-20 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953244', 'tblTempVendorCDR_20' ) end [2025-04-20 22:13:18] Production.INFO: ProcessCDR(1,14953244,1,1,2) [2025-04-20 22:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953244', 'tblTempUsageDetail_20' ) start [2025-04-20 22:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953244', 'tblTempUsageDetail_20' ) end [2025-04-20 22:13:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 22:13:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 22:13:23] Production.INFO: ==2357== Releasing lock... [2025-04-20 22:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 22:13:23] Production.INFO: 39.5 MB #Memory Used# [2025-04-20 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 19:14:05 [end_date_ymd] => 2025-04-20 22:14:05 [RateCDR] => 1 ) [2025-04-20 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-20 19:14:05' and `end` < '2025-04-20 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-20 22:14:18] Production.INFO: count ==1484 [2025-04-20 22:14:18] Production.ERROR: pbx CDR StartTime 2025-04-20 19:14:05 - End Time 2025-04-20 22:14:05 [2025-04-20 22:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953249', 'tblTempUsageDetail_20' ) start [2025-04-20 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953249', 'tblTempUsageDetail_20' ) end [2025-04-20 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953249', 'tblTempVendorCDR_20' ) start [2025-04-20 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953249', 'tblTempVendorCDR_20' ) end [2025-04-20 22:14:18] Production.INFO: ProcessCDR(1,14953249,1,1,2) [2025-04-20 22:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953249', 'tblTempUsageDetail_20' ) start [2025-04-20 22:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953249', 'tblTempUsageDetail_20' ) end [2025-04-20 22:14:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 22:14:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 22:14:23] Production.INFO: ==2439== Releasing lock... [2025-04-20 22:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 22:14:23] Production.INFO: 39.5 MB #Memory Used# [2025-04-20 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 19:15:05 [end_date_ymd] => 2025-04-20 22:15:05 [RateCDR] => 1 ) [2025-04-20 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-20 19:15:05' and `end` < '2025-04-20 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-20 22:15:18] Production.INFO: count ==1484 [2025-04-20 22:15:18] Production.ERROR: pbx CDR StartTime 2025-04-20 19:15:05 - End Time 2025-04-20 22:15:05 [2025-04-20 22:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953254', 'tblTempUsageDetail_20' ) start [2025-04-20 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953254', 'tblTempUsageDetail_20' ) end [2025-04-20 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953254', 'tblTempVendorCDR_20' ) start [2025-04-20 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953254', 'tblTempVendorCDR_20' ) end [2025-04-20 22:15:18] Production.INFO: ProcessCDR(1,14953254,1,1,2) [2025-04-20 22:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953254', 'tblTempUsageDetail_20' ) start [2025-04-20 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953254', 'tblTempUsageDetail_20' ) end [2025-04-20 22:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 22:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 22:15:21] Production.INFO: ==2509== Releasing lock... [2025-04-20 22:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 22:15:21] Production.INFO: 39.75 MB #Memory Used# [2025-04-20 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 19:16:05 [end_date_ymd] => 2025-04-20 22:16:05 [RateCDR] => 1 ) [2025-04-20 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-20 19:16:05' and `end` < '2025-04-20 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-20 22:16:18] Production.INFO: count ==1475 [2025-04-20 22:16:19] Production.ERROR: pbx CDR StartTime 2025-04-20 19:16:05 - End Time 2025-04-20 22:16:05 [2025-04-20 22:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953259', 'tblTempUsageDetail_20' ) start [2025-04-20 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953259', 'tblTempUsageDetail_20' ) end [2025-04-20 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953259', 'tblTempVendorCDR_20' ) start [2025-04-20 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953259', 'tblTempVendorCDR_20' ) end [2025-04-20 22:16:19] Production.INFO: ProcessCDR(1,14953259,1,1,2) [2025-04-20 22:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953259', 'tblTempUsageDetail_20' ) start [2025-04-20 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953259', 'tblTempUsageDetail_20' ) end [2025-04-20 22:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 22:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 22:16:22] Production.INFO: ==2623== Releasing lock... [2025-04-20 22:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 22:16:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-20 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 19:17:05 [end_date_ymd] => 2025-04-20 22:17:05 [RateCDR] => 1 ) [2025-04-20 22:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 19:17:05' and `end` < '2025-04-20 22:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 22:17:18] Production.INFO: count ==1470 [2025-04-20 22:17:18] Production.ERROR: pbx CDR StartTime 2025-04-20 19:17:05 - End Time 2025-04-20 22:17:05 [2025-04-20 22:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953264', 'tblTempUsageDetail_20' ) start [2025-04-20 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953264', 'tblTempUsageDetail_20' ) end [2025-04-20 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953264', 'tblTempVendorCDR_20' ) start [2025-04-20 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953264', 'tblTempVendorCDR_20' ) end [2025-04-20 22:17:18] Production.INFO: ProcessCDR(1,14953264,1,1,2) [2025-04-20 22:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953264', 'tblTempUsageDetail_20' ) start [2025-04-20 22:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953264', 'tblTempUsageDetail_20' ) end [2025-04-20 22:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 22:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 22:17:23] Production.INFO: ==2695== Releasing lock... [2025-04-20 22:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 22:17:23] Production.INFO: 39 MB #Memory Used# [2025-04-20 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 19:18:05 [end_date_ymd] => 2025-04-20 22:18:05 [RateCDR] => 1 ) [2025-04-20 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-20 19:18:05' and `end` < '2025-04-20 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-20 22:18:18] Production.INFO: count ==1467 [2025-04-20 22:18:19] Production.ERROR: pbx CDR StartTime 2025-04-20 19:18:05 - End Time 2025-04-20 22:18:05 [2025-04-20 22:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953269', 'tblTempUsageDetail_20' ) start [2025-04-20 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953269', 'tblTempUsageDetail_20' ) end [2025-04-20 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953269', 'tblTempVendorCDR_20' ) start [2025-04-20 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953269', 'tblTempVendorCDR_20' ) end [2025-04-20 22:18:19] Production.INFO: ProcessCDR(1,14953269,1,1,2) [2025-04-20 22:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953269', 'tblTempUsageDetail_20' ) start [2025-04-20 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953269', 'tblTempUsageDetail_20' ) end [2025-04-20 22:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 22:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 22:18:22] Production.INFO: ==2773== Releasing lock... [2025-04-20 22:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 22:18:22] Production.INFO: 39 MB #Memory Used# [2025-04-20 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 19:19:05 [end_date_ymd] => 2025-04-20 22:19:05 [RateCDR] => 1 ) [2025-04-20 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-20 19:19:05' and `end` < '2025-04-20 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-20 22:19:17] Production.INFO: count ==1468 [2025-04-20 22:19:18] Production.ERROR: pbx CDR StartTime 2025-04-20 19:19:05 - End Time 2025-04-20 22:19:05 [2025-04-20 22:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953274', 'tblTempUsageDetail_20' ) start [2025-04-20 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953274', 'tblTempUsageDetail_20' ) end [2025-04-20 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953274', 'tblTempVendorCDR_20' ) start [2025-04-20 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953274', 'tblTempVendorCDR_20' ) end [2025-04-20 22:19:18] Production.INFO: ProcessCDR(1,14953274,1,1,2) [2025-04-20 22:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953274', 'tblTempUsageDetail_20' ) start [2025-04-20 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953274', 'tblTempUsageDetail_20' ) end [2025-04-20 22:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 22:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 22:19:21] Production.INFO: ==2850== Releasing lock... [2025-04-20 22:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 22:19:21] Production.INFO: 39 MB #Memory Used# [2025-04-20 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 19:20:06 [end_date_ymd] => 2025-04-20 22:20:06 [RateCDR] => 1 ) [2025-04-20 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-20 19:20:06' and `end` < '2025-04-20 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-20 22:20:19] Production.INFO: count ==1464 [2025-04-20 22:20:19] Production.ERROR: pbx CDR StartTime 2025-04-20 19:20:06 - End Time 2025-04-20 22:20:06 [2025-04-20 22:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953280', 'tblTempUsageDetail_20' ) start [2025-04-20 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953280', 'tblTempUsageDetail_20' ) end [2025-04-20 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953280', 'tblTempVendorCDR_20' ) start [2025-04-20 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953280', 'tblTempVendorCDR_20' ) end [2025-04-20 22:20:19] Production.INFO: ProcessCDR(1,14953280,1,1,2) [2025-04-20 22:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953280', 'tblTempUsageDetail_20' ) start [2025-04-20 22:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953280', 'tblTempUsageDetail_20' ) end [2025-04-20 22:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 22:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 22:20:23] Production.INFO: ==2929== Releasing lock... [2025-04-20 22:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 22:20:23] Production.INFO: 39.5 MB #Memory Used# [2025-04-20 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 19:21:05 [end_date_ymd] => 2025-04-20 22:21:05 [RateCDR] => 1 ) [2025-04-20 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-20 19:21:05' and `end` < '2025-04-20 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-20 22:21:18] Production.INFO: count ==1462 [2025-04-20 22:21:18] Production.ERROR: pbx CDR StartTime 2025-04-20 19:21:05 - End Time 2025-04-20 22:21:05 [2025-04-20 22:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953285', 'tblTempUsageDetail_20' ) start [2025-04-20 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953285', 'tblTempUsageDetail_20' ) end [2025-04-20 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953285', 'tblTempVendorCDR_20' ) start [2025-04-20 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953285', 'tblTempVendorCDR_20' ) end [2025-04-20 22:21:19] Production.INFO: ProcessCDR(1,14953285,1,1,2) [2025-04-20 22:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953285', 'tblTempUsageDetail_20' ) start [2025-04-20 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953285', 'tblTempUsageDetail_20' ) end [2025-04-20 22:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 22:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 22:21:22] Production.INFO: ==3033== Releasing lock... [2025-04-20 22:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 22:21:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-20 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 19:22:05 [end_date_ymd] => 2025-04-20 22:22:05 [RateCDR] => 1 ) [2025-04-20 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-20 19:22:05' and `end` < '2025-04-20 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-20 22:22:18] Production.INFO: count ==1461 [2025-04-20 22:22:19] Production.ERROR: pbx CDR StartTime 2025-04-20 19:22:05 - End Time 2025-04-20 22:22:05 [2025-04-20 22:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953290', 'tblTempUsageDetail_20' ) start [2025-04-20 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953290', 'tblTempUsageDetail_20' ) end [2025-04-20 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953290', 'tblTempVendorCDR_20' ) start [2025-04-20 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953290', 'tblTempVendorCDR_20' ) end [2025-04-20 22:22:19] Production.INFO: ProcessCDR(1,14953290,1,1,2) [2025-04-20 22:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953290', 'tblTempUsageDetail_20' ) start [2025-04-20 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953290', 'tblTempUsageDetail_20' ) end [2025-04-20 22:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 22:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 22:22:22] Production.INFO: ==3108== Releasing lock... [2025-04-20 22:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 22:22:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-20 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 19:23:04 [end_date_ymd] => 2025-04-20 22:23:04 [RateCDR] => 1 ) [2025-04-20 22:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 19:23:04' and `end` < '2025-04-20 22:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 22:23:17] Production.INFO: count ==1464 [2025-04-20 22:23:18] Production.ERROR: pbx CDR StartTime 2025-04-20 19:23:04 - End Time 2025-04-20 22:23:04 [2025-04-20 22:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953295', 'tblTempUsageDetail_20' ) start [2025-04-20 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953295', 'tblTempUsageDetail_20' ) end [2025-04-20 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953295', 'tblTempVendorCDR_20' ) start [2025-04-20 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953295', 'tblTempVendorCDR_20' ) end [2025-04-20 22:23:18] Production.INFO: ProcessCDR(1,14953295,1,1,2) [2025-04-20 22:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953295', 'tblTempUsageDetail_20' ) start [2025-04-20 22:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953295', 'tblTempUsageDetail_20' ) end [2025-04-20 22:23:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 22:23:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 22:23:23] Production.INFO: ==3188== Releasing lock... [2025-04-20 22:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 22:23:23] Production.INFO: 39.25 MB #Memory Used# [2025-04-20 22:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 19:24:06 [end_date_ymd] => 2025-04-20 22:24:06 [RateCDR] => 1 ) [2025-04-20 22:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 19:24:06' and `end` < '2025-04-20 22:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 22:24:18] Production.INFO: count ==1463 [2025-04-20 22:24:19] Production.ERROR: pbx CDR StartTime 2025-04-20 19:24:06 - End Time 2025-04-20 22:24:06 [2025-04-20 22:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953300', 'tblTempUsageDetail_20' ) start [2025-04-20 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953300', 'tblTempUsageDetail_20' ) end [2025-04-20 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953300', 'tblTempVendorCDR_20' ) start [2025-04-20 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953300', 'tblTempVendorCDR_20' ) end [2025-04-20 22:24:19] Production.INFO: ProcessCDR(1,14953300,1,1,2) [2025-04-20 22:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953300', 'tblTempUsageDetail_20' ) start [2025-04-20 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953300', 'tblTempUsageDetail_20' ) end [2025-04-20 22:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 22:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 22:24:22] Production.INFO: ==3269== Releasing lock... [2025-04-20 22:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 22:24:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-20 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 19:25:05 [end_date_ymd] => 2025-04-20 22:25:05 [RateCDR] => 1 ) [2025-04-20 22:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 19:25:05' and `end` < '2025-04-20 22:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 22:25:17] Production.INFO: count ==1460 [2025-04-20 22:25:18] Production.ERROR: pbx CDR StartTime 2025-04-20 19:25:05 - End Time 2025-04-20 22:25:05 [2025-04-20 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953305', 'tblTempUsageDetail_20' ) start [2025-04-20 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953305', 'tblTempUsageDetail_20' ) end [2025-04-20 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953305', 'tblTempVendorCDR_20' ) start [2025-04-20 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953305', 'tblTempVendorCDR_20' ) end [2025-04-20 22:25:18] Production.INFO: ProcessCDR(1,14953305,1,1,2) [2025-04-20 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953305', 'tblTempUsageDetail_20' ) start [2025-04-20 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953305', 'tblTempUsageDetail_20' ) end [2025-04-20 22:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 22:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 22:25:21] Production.INFO: ==3346== Releasing lock... [2025-04-20 22:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 22:25:21] Production.INFO: 39.25 MB #Memory Used# [2025-04-20 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 19:26:05 [end_date_ymd] => 2025-04-20 22:26:05 [RateCDR] => 1 ) [2025-04-20 22:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 19:26:05' and `end` < '2025-04-20 22:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 22:26:17] Production.INFO: count ==1462 [2025-04-20 22:26:18] Production.ERROR: pbx CDR StartTime 2025-04-20 19:26:05 - End Time 2025-04-20 22:26:05 [2025-04-20 22:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953310', 'tblTempUsageDetail_20' ) start [2025-04-20 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953310', 'tblTempUsageDetail_20' ) end [2025-04-20 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953310', 'tblTempVendorCDR_20' ) start [2025-04-20 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953310', 'tblTempVendorCDR_20' ) end [2025-04-20 22:26:18] Production.INFO: ProcessCDR(1,14953310,1,1,2) [2025-04-20 22:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953310', 'tblTempUsageDetail_20' ) start [2025-04-20 22:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953310', 'tblTempUsageDetail_20' ) end [2025-04-20 22:26:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 22:26:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 22:26:23] Production.INFO: ==3417== Releasing lock... [2025-04-20 22:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 22:26:23] Production.INFO: 39 MB #Memory Used# [2025-04-20 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 19:27:05 [end_date_ymd] => 2025-04-20 22:27:05 [RateCDR] => 1 ) [2025-04-20 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-20 19:27:05' and `end` < '2025-04-20 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-20 22:27:18] Production.INFO: count ==1465 [2025-04-20 22:27:18] Production.ERROR: pbx CDR StartTime 2025-04-20 19:27:05 - End Time 2025-04-20 22:27:05 [2025-04-20 22:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953315', 'tblTempUsageDetail_20' ) start [2025-04-20 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953315', 'tblTempUsageDetail_20' ) end [2025-04-20 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953315', 'tblTempVendorCDR_20' ) start [2025-04-20 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953315', 'tblTempVendorCDR_20' ) end [2025-04-20 22:27:18] Production.INFO: ProcessCDR(1,14953315,1,1,2) [2025-04-20 22:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953315', 'tblTempUsageDetail_20' ) start [2025-04-20 22:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953315', 'tblTempUsageDetail_20' ) end [2025-04-20 22:27:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 22:27:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 22:27:23] Production.INFO: ==3494== Releasing lock... [2025-04-20 22:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 22:27:23] Production.INFO: 39 MB #Memory Used# [2025-04-20 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 19:28:05 [end_date_ymd] => 2025-04-20 22:28:05 [RateCDR] => 1 ) [2025-04-20 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-20 19:28:05' and `end` < '2025-04-20 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-20 22:28:18] Production.INFO: count ==1461 [2025-04-20 22:28:18] Production.ERROR: pbx CDR StartTime 2025-04-20 19:28:05 - End Time 2025-04-20 22:28:05 [2025-04-20 22:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953320', 'tblTempUsageDetail_20' ) start [2025-04-20 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953320', 'tblTempUsageDetail_20' ) end [2025-04-20 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953320', 'tblTempVendorCDR_20' ) start [2025-04-20 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953320', 'tblTempVendorCDR_20' ) end [2025-04-20 22:28:18] Production.INFO: ProcessCDR(1,14953320,1,1,2) [2025-04-20 22:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953320', 'tblTempUsageDetail_20' ) start [2025-04-20 22:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953320', 'tblTempUsageDetail_20' ) end [2025-04-20 22:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 22:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 22:28:21] Production.INFO: ==3569== Releasing lock... [2025-04-20 22:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 22:28:21] Production.INFO: 39.25 MB #Memory Used# [2025-04-20 22:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 19:29:06 [end_date_ymd] => 2025-04-20 22:29:06 [RateCDR] => 1 ) [2025-04-20 22:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 19:29:06' and `end` < '2025-04-20 22:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 22:29:18] Production.INFO: count ==1457 [2025-04-20 22:29:19] Production.ERROR: pbx CDR StartTime 2025-04-20 19:29:06 - End Time 2025-04-20 22:29:06 [2025-04-20 22:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953325', 'tblTempUsageDetail_20' ) start [2025-04-20 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953325', 'tblTempUsageDetail_20' ) end [2025-04-20 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953325', 'tblTempVendorCDR_20' ) start [2025-04-20 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953325', 'tblTempVendorCDR_20' ) end [2025-04-20 22:29:19] Production.INFO: ProcessCDR(1,14953325,1,1,2) [2025-04-20 22:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953325', 'tblTempUsageDetail_20' ) start [2025-04-20 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953325', 'tblTempUsageDetail_20' ) end [2025-04-20 22:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 22:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 22:29:22] Production.INFO: ==3644== Releasing lock... [2025-04-20 22:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 22:29:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-20 22:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 19:30:05 [end_date_ymd] => 2025-04-20 22:30:05 [RateCDR] => 1 ) [2025-04-20 22: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-20 19:30:05' and `end` < '2025-04-20 22: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-20 22:30:18] Production.INFO: count ==1452 [2025-04-20 22:30:18] Production.ERROR: pbx CDR StartTime 2025-04-20 19:30:05 - End Time 2025-04-20 22:30:05 [2025-04-20 22:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953330', 'tblTempUsageDetail_20' ) start [2025-04-20 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953330', 'tblTempUsageDetail_20' ) end [2025-04-20 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953330', 'tblTempVendorCDR_20' ) start [2025-04-20 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953330', 'tblTempVendorCDR_20' ) end [2025-04-20 22:30:18] Production.INFO: ProcessCDR(1,14953330,1,1,2) [2025-04-20 22:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953330', 'tblTempUsageDetail_20' ) start [2025-04-20 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953330', 'tblTempUsageDetail_20' ) end [2025-04-20 22:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 22:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 22:30:22] Production.INFO: ==3721== Releasing lock... [2025-04-20 22:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 22:30:22] Production.INFO: 39 MB #Memory Used# [2025-04-20 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 19:31:05 [end_date_ymd] => 2025-04-20 22:31:05 [RateCDR] => 1 ) [2025-04-20 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-20 19:31:05' and `end` < '2025-04-20 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-20 22:31:18] Production.INFO: count ==1419 [2025-04-20 22:31:19] Production.ERROR: pbx CDR StartTime 2025-04-20 19:31:05 - End Time 2025-04-20 22:31:05 [2025-04-20 22:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953336', 'tblTempUsageDetail_20' ) start [2025-04-20 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953336', 'tblTempUsageDetail_20' ) end [2025-04-20 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953336', 'tblTempVendorCDR_20' ) start [2025-04-20 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953336', 'tblTempVendorCDR_20' ) end [2025-04-20 22:31:19] Production.INFO: ProcessCDR(1,14953336,1,1,2) [2025-04-20 22:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953336', 'tblTempUsageDetail_20' ) start [2025-04-20 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953336', 'tblTempUsageDetail_20' ) end [2025-04-20 22:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 22:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 22:31:22] Production.INFO: ==3832== Releasing lock... [2025-04-20 22:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 22:31:22] Production.INFO: 39 MB #Memory Used# [2025-04-20 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 19:32:05 [end_date_ymd] => 2025-04-20 22:32:05 [RateCDR] => 1 ) [2025-04-20 22:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 19:32:05' and `end` < '2025-04-20 22:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 22:32:18] Production.INFO: count ==1416 [2025-04-20 22:32:18] Production.ERROR: pbx CDR StartTime 2025-04-20 19:32:05 - End Time 2025-04-20 22:32:05 [2025-04-20 22:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953341', 'tblTempUsageDetail_20' ) start [2025-04-20 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953341', 'tblTempUsageDetail_20' ) end [2025-04-20 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953341', 'tblTempVendorCDR_20' ) start [2025-04-20 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953341', 'tblTempVendorCDR_20' ) end [2025-04-20 22:32:18] Production.INFO: ProcessCDR(1,14953341,1,1,2) [2025-04-20 22:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953341', 'tblTempUsageDetail_20' ) start [2025-04-20 22:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953341', 'tblTempUsageDetail_20' ) end [2025-04-20 22:32:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 22:32:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 22:32:23] Production.INFO: ==3907== Releasing lock... [2025-04-20 22:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 22:32:23] Production.INFO: 38.75 MB #Memory Used# [2025-04-20 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 19:33:05 [end_date_ymd] => 2025-04-20 22:33:05 [RateCDR] => 1 ) [2025-04-20 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-20 19:33:05' and `end` < '2025-04-20 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-20 22:33:18] Production.INFO: count ==1416 [2025-04-20 22:33:18] Production.ERROR: pbx CDR StartTime 2025-04-20 19:33:05 - End Time 2025-04-20 22:33:05 [2025-04-20 22:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953346', 'tblTempUsageDetail_20' ) start [2025-04-20 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953346', 'tblTempUsageDetail_20' ) end [2025-04-20 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953346', 'tblTempVendorCDR_20' ) start [2025-04-20 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953346', 'tblTempVendorCDR_20' ) end [2025-04-20 22:33:18] Production.INFO: ProcessCDR(1,14953346,1,1,2) [2025-04-20 22:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953346', 'tblTempUsageDetail_20' ) start [2025-04-20 22:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953346', 'tblTempUsageDetail_20' ) end [2025-04-20 22:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 22:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 22:33:23] Production.INFO: ==3990== Releasing lock... [2025-04-20 22:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 22:33:23] Production.INFO: 39.5 MB #Memory Used# [2025-04-20 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 19:34:05 [end_date_ymd] => 2025-04-20 22:34:05 [RateCDR] => 1 ) [2025-04-20 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-20 19:34:05' and `end` < '2025-04-20 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-20 22:34:18] Production.INFO: count ==1414 [2025-04-20 22:34:18] Production.ERROR: pbx CDR StartTime 2025-04-20 19:34:05 - End Time 2025-04-20 22:34:05 [2025-04-20 22:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953351', 'tblTempUsageDetail_20' ) start [2025-04-20 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953351', 'tblTempUsageDetail_20' ) end [2025-04-20 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953351', 'tblTempVendorCDR_20' ) start [2025-04-20 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953351', 'tblTempVendorCDR_20' ) end [2025-04-20 22:34:18] Production.INFO: ProcessCDR(1,14953351,1,1,2) [2025-04-20 22:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953351', 'tblTempUsageDetail_20' ) start [2025-04-20 22:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953351', 'tblTempUsageDetail_20' ) end [2025-04-20 22:34:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 22:34:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 22:34:23] Production.INFO: ==4067== Releasing lock... [2025-04-20 22:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 22:34:23] Production.INFO: 38.75 MB #Memory Used# [2025-04-20 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 19:35:05 [end_date_ymd] => 2025-04-20 22:35:05 [RateCDR] => 1 ) [2025-04-20 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-20 19:35:05' and `end` < '2025-04-20 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-20 22:35:18] Production.INFO: count ==1411 [2025-04-20 22:35:18] Production.ERROR: pbx CDR StartTime 2025-04-20 19:35:05 - End Time 2025-04-20 22:35:05 [2025-04-20 22:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953356', 'tblTempUsageDetail_20' ) start [2025-04-20 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953356', 'tblTempUsageDetail_20' ) end [2025-04-20 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953356', 'tblTempVendorCDR_20' ) start [2025-04-20 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953356', 'tblTempVendorCDR_20' ) end [2025-04-20 22:35:18] Production.INFO: ProcessCDR(1,14953356,1,1,2) [2025-04-20 22:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953356', 'tblTempUsageDetail_20' ) start [2025-04-20 22:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953356', 'tblTempUsageDetail_20' ) end [2025-04-20 22:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 22:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 22:35:23] Production.INFO: ==4148== Releasing lock... [2025-04-20 22:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 22:35:23] Production.INFO: 38.5 MB #Memory Used# [2025-04-20 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 19:36:05 [end_date_ymd] => 2025-04-20 22:36:05 [RateCDR] => 1 ) [2025-04-20 22:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 19:36:05' and `end` < '2025-04-20 22:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 22:36:18] Production.INFO: count ==1410 [2025-04-20 22:36:18] Production.ERROR: pbx CDR StartTime 2025-04-20 19:36:05 - End Time 2025-04-20 22:36:05 [2025-04-20 22:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953361', 'tblTempUsageDetail_20' ) start [2025-04-20 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953361', 'tblTempUsageDetail_20' ) end [2025-04-20 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953361', 'tblTempVendorCDR_20' ) start [2025-04-20 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953361', 'tblTempVendorCDR_20' ) end [2025-04-20 22:36:18] Production.INFO: ProcessCDR(1,14953361,1,1,2) [2025-04-20 22:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953361', 'tblTempUsageDetail_20' ) start [2025-04-20 22:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953361', 'tblTempUsageDetail_20' ) end [2025-04-20 22:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 22:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 22:36:21] Production.INFO: ==4220== Releasing lock... [2025-04-20 22:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 22:36:21] Production.INFO: 38.5 MB #Memory Used# [2025-04-20 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 19:37:05 [end_date_ymd] => 2025-04-20 22:37:05 [RateCDR] => 1 ) [2025-04-20 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-20 19:37:05' and `end` < '2025-04-20 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-20 22:37:17] Production.INFO: count ==1409 [2025-04-20 22:37:18] Production.ERROR: pbx CDR StartTime 2025-04-20 19:37:05 - End Time 2025-04-20 22:37:05 [2025-04-20 22:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953366', 'tblTempUsageDetail_20' ) start [2025-04-20 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953366', 'tblTempUsageDetail_20' ) end [2025-04-20 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953366', 'tblTempVendorCDR_20' ) start [2025-04-20 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953366', 'tblTempVendorCDR_20' ) end [2025-04-20 22:37:18] Production.INFO: ProcessCDR(1,14953366,1,1,2) [2025-04-20 22:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953366', 'tblTempUsageDetail_20' ) start [2025-04-20 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953366', 'tblTempUsageDetail_20' ) end [2025-04-20 22:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 22:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 22:37:21] Production.INFO: ==4292== Releasing lock... [2025-04-20 22:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 22:37:21] Production.INFO: 38.75 MB #Memory Used# [2025-04-20 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 19:38:05 [end_date_ymd] => 2025-04-20 22:38:05 [RateCDR] => 1 ) [2025-04-20 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-20 19:38:05' and `end` < '2025-04-20 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-20 22:38:18] Production.INFO: count ==1406 [2025-04-20 22:38:18] Production.ERROR: pbx CDR StartTime 2025-04-20 19:38:05 - End Time 2025-04-20 22:38:05 [2025-04-20 22:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953371', 'tblTempUsageDetail_20' ) start [2025-04-20 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953371', 'tblTempUsageDetail_20' ) end [2025-04-20 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953371', 'tblTempVendorCDR_20' ) start [2025-04-20 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953371', 'tblTempVendorCDR_20' ) end [2025-04-20 22:38:18] Production.INFO: ProcessCDR(1,14953371,1,1,2) [2025-04-20 22:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953371', 'tblTempUsageDetail_20' ) start [2025-04-20 22:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953371', 'tblTempUsageDetail_20' ) end [2025-04-20 22:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 22:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 22:38:23] Production.INFO: ==4370== Releasing lock... [2025-04-20 22:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 22:38:23] Production.INFO: 38.75 MB #Memory Used# [2025-04-20 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 19:39:05 [end_date_ymd] => 2025-04-20 22:39:05 [RateCDR] => 1 ) [2025-04-20 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-20 19:39:05' and `end` < '2025-04-20 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-20 22:39:18] Production.INFO: count ==1405 [2025-04-20 22:39:19] Production.ERROR: pbx CDR StartTime 2025-04-20 19:39:05 - End Time 2025-04-20 22:39:05 [2025-04-20 22:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953376', 'tblTempUsageDetail_20' ) start [2025-04-20 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953376', 'tblTempUsageDetail_20' ) end [2025-04-20 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953376', 'tblTempVendorCDR_20' ) start [2025-04-20 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953376', 'tblTempVendorCDR_20' ) end [2025-04-20 22:39:19] Production.INFO: ProcessCDR(1,14953376,1,1,2) [2025-04-20 22:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953376', 'tblTempUsageDetail_20' ) start [2025-04-20 22:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953376', 'tblTempUsageDetail_20' ) end [2025-04-20 22:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 22:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 22:39:22] Production.INFO: ==4452== Releasing lock... [2025-04-20 22:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 22:39:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-20 22:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 19:40:06 [end_date_ymd] => 2025-04-20 22:40:06 [RateCDR] => 1 ) [2025-04-20 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-20 19:40:06' and `end` < '2025-04-20 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-20 22:40:18] Production.INFO: count ==1407 [2025-04-20 22:40:19] Production.ERROR: pbx CDR StartTime 2025-04-20 19:40:06 - End Time 2025-04-20 22:40:06 [2025-04-20 22:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953382', 'tblTempUsageDetail_20' ) start [2025-04-20 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953382', 'tblTempUsageDetail_20' ) end [2025-04-20 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953382', 'tblTempVendorCDR_20' ) start [2025-04-20 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953382', 'tblTempVendorCDR_20' ) end [2025-04-20 22:40:19] Production.INFO: ProcessCDR(1,14953382,1,1,2) [2025-04-20 22:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953382', 'tblTempUsageDetail_20' ) start [2025-04-20 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953382', 'tblTempUsageDetail_20' ) end [2025-04-20 22:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 22:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 22:40:22] Production.INFO: ==4525== Releasing lock... [2025-04-20 22:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 22:40:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-20 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 19:41:05 [end_date_ymd] => 2025-04-20 22:41:05 [RateCDR] => 1 ) [2025-04-20 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-20 19:41:05' and `end` < '2025-04-20 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-20 22:41:18] Production.INFO: count ==1388 [2025-04-20 22:41:18] Production.ERROR: pbx CDR StartTime 2025-04-20 19:41:05 - End Time 2025-04-20 22:41:05 [2025-04-20 22:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953387', 'tblTempUsageDetail_20' ) start [2025-04-20 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953387', 'tblTempUsageDetail_20' ) end [2025-04-20 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953387', 'tblTempVendorCDR_20' ) start [2025-04-20 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953387', 'tblTempVendorCDR_20' ) end [2025-04-20 22:41:18] Production.INFO: ProcessCDR(1,14953387,1,1,2) [2025-04-20 22:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953387', 'tblTempUsageDetail_20' ) start [2025-04-20 22:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953387', 'tblTempUsageDetail_20' ) end [2025-04-20 22:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 22:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 22:41:22] Production.INFO: ==4609== Releasing lock... [2025-04-20 22:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 22:41:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-20 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 19:42:05 [end_date_ymd] => 2025-04-20 22:42:05 [RateCDR] => 1 ) [2025-04-20 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-20 19:42:05' and `end` < '2025-04-20 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-20 22:42:18] Production.INFO: count ==1389 [2025-04-20 22:42:18] Production.ERROR: pbx CDR StartTime 2025-04-20 19:42:05 - End Time 2025-04-20 22:42:05 [2025-04-20 22:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953392', 'tblTempUsageDetail_20' ) start [2025-04-20 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953392', 'tblTempUsageDetail_20' ) end [2025-04-20 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953392', 'tblTempVendorCDR_20' ) start [2025-04-20 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953392', 'tblTempVendorCDR_20' ) end [2025-04-20 22:42:18] Production.INFO: ProcessCDR(1,14953392,1,1,2) [2025-04-20 22:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953392', 'tblTempUsageDetail_20' ) start [2025-04-20 22:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953392', 'tblTempUsageDetail_20' ) end [2025-04-20 22:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 22:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 22:42:23] Production.INFO: ==4686== Releasing lock... [2025-04-20 22:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 22:42:23] Production.INFO: 38.75 MB #Memory Used# [2025-04-20 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 19:43:05 [end_date_ymd] => 2025-04-20 22:43:05 [RateCDR] => 1 ) [2025-04-20 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-20 19:43:05' and `end` < '2025-04-20 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-20 22:43:18] Production.INFO: count ==1387 [2025-04-20 22:43:18] Production.ERROR: pbx CDR StartTime 2025-04-20 19:43:05 - End Time 2025-04-20 22:43:05 [2025-04-20 22:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953397', 'tblTempUsageDetail_20' ) start [2025-04-20 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953397', 'tblTempUsageDetail_20' ) end [2025-04-20 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953397', 'tblTempVendorCDR_20' ) start [2025-04-20 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953397', 'tblTempVendorCDR_20' ) end [2025-04-20 22:43:18] Production.INFO: ProcessCDR(1,14953397,1,1,2) [2025-04-20 22:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953397', 'tblTempUsageDetail_20' ) start [2025-04-20 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953397', 'tblTempUsageDetail_20' ) end [2025-04-20 22:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 22:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 22:43:22] Production.INFO: ==4758== Releasing lock... [2025-04-20 22:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 22:43:22] Production.INFO: 39 MB #Memory Used# [2025-04-20 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 19:44:05 [end_date_ymd] => 2025-04-20 22:44:05 [RateCDR] => 1 ) [2025-04-20 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-20 19:44:05' and `end` < '2025-04-20 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-20 22:44:18] Production.INFO: count ==1381 [2025-04-20 22:44:18] Production.ERROR: pbx CDR StartTime 2025-04-20 19:44:05 - End Time 2025-04-20 22:44:05 [2025-04-20 22:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953402', 'tblTempUsageDetail_20' ) start [2025-04-20 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953402', 'tblTempUsageDetail_20' ) end [2025-04-20 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953402', 'tblTempVendorCDR_20' ) start [2025-04-20 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953402', 'tblTempVendorCDR_20' ) end [2025-04-20 22:44:18] Production.INFO: ProcessCDR(1,14953402,1,1,2) [2025-04-20 22:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953402', 'tblTempUsageDetail_20' ) start [2025-04-20 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953402', 'tblTempUsageDetail_20' ) end [2025-04-20 22:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 22:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 22:44:21] Production.INFO: ==4850== Releasing lock... [2025-04-20 22:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 22:44:21] Production.INFO: 38.75 MB #Memory Used# [2025-04-20 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 19:45:05 [end_date_ymd] => 2025-04-20 22:45:05 [RateCDR] => 1 ) [2025-04-20 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-20 19:45:05' and `end` < '2025-04-20 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-20 22:45:18] Production.INFO: count ==1380 [2025-04-20 22:45:18] Production.ERROR: pbx CDR StartTime 2025-04-20 19:45:05 - End Time 2025-04-20 22:45:05 [2025-04-20 22:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953407', 'tblTempUsageDetail_20' ) start [2025-04-20 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953407', 'tblTempUsageDetail_20' ) end [2025-04-20 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953407', 'tblTempVendorCDR_20' ) start [2025-04-20 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953407', 'tblTempVendorCDR_20' ) end [2025-04-20 22:45:18] Production.INFO: ProcessCDR(1,14953407,1,1,2) [2025-04-20 22:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953407', 'tblTempUsageDetail_20' ) start [2025-04-20 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953407', 'tblTempUsageDetail_20' ) end [2025-04-20 22:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 22:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 22:45:22] Production.INFO: ==4924== Releasing lock... [2025-04-20 22:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 22:45:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-20 22:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 19:46:04 [end_date_ymd] => 2025-04-20 22:46:04 [RateCDR] => 1 ) [2025-04-20 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-20 19:46:04' and `end` < '2025-04-20 22:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 22:46:17] Production.INFO: count ==1374 [2025-04-20 22:46:18] Production.ERROR: pbx CDR StartTime 2025-04-20 19:46:04 - End Time 2025-04-20 22:46:04 [2025-04-20 22:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953412', 'tblTempUsageDetail_20' ) start [2025-04-20 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953412', 'tblTempUsageDetail_20' ) end [2025-04-20 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953412', 'tblTempVendorCDR_20' ) start [2025-04-20 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953412', 'tblTempVendorCDR_20' ) end [2025-04-20 22:46:18] Production.INFO: ProcessCDR(1,14953412,1,1,2) [2025-04-20 22:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953412', 'tblTempUsageDetail_20' ) start [2025-04-20 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953412', 'tblTempUsageDetail_20' ) end [2025-04-20 22:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 22:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 22:46:21] Production.INFO: ==4996== Releasing lock... [2025-04-20 22:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 22:46:21] Production.INFO: 38.5 MB #Memory Used# [2025-04-20 22:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 19:47:06 [end_date_ymd] => 2025-04-20 22:47:06 [RateCDR] => 1 ) [2025-04-20 22: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-20 19:47:06' and `end` < '2025-04-20 22: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-20 22:47:18] Production.INFO: count ==1373 [2025-04-20 22:47:19] Production.ERROR: pbx CDR StartTime 2025-04-20 19:47:06 - End Time 2025-04-20 22:47:06 [2025-04-20 22:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953417', 'tblTempUsageDetail_20' ) start [2025-04-20 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953417', 'tblTempUsageDetail_20' ) end [2025-04-20 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953417', 'tblTempVendorCDR_20' ) start [2025-04-20 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953417', 'tblTempVendorCDR_20' ) end [2025-04-20 22:47:19] Production.INFO: ProcessCDR(1,14953417,1,1,2) [2025-04-20 22:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953417', 'tblTempUsageDetail_20' ) start [2025-04-20 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953417', 'tblTempUsageDetail_20' ) end [2025-04-20 22:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 22:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 22:47:22] Production.INFO: ==5112== Releasing lock... [2025-04-20 22:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 22:47:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-20 22:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 19:48:04 [end_date_ymd] => 2025-04-20 22:48:04 [RateCDR] => 1 ) [2025-04-20 22: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-20 19:48:04' and `end` < '2025-04-20 22: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-20 22:48:17] Production.INFO: count ==1374 [2025-04-20 22:48:18] Production.ERROR: pbx CDR StartTime 2025-04-20 19:48:04 - End Time 2025-04-20 22:48:04 [2025-04-20 22:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953422', 'tblTempUsageDetail_20' ) start [2025-04-20 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953422', 'tblTempUsageDetail_20' ) end [2025-04-20 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953422', 'tblTempVendorCDR_20' ) start [2025-04-20 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953422', 'tblTempVendorCDR_20' ) end [2025-04-20 22:48:18] Production.INFO: ProcessCDR(1,14953422,1,1,2) [2025-04-20 22:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953422', 'tblTempUsageDetail_20' ) start [2025-04-20 22:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953422', 'tblTempUsageDetail_20' ) end [2025-04-20 22:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 22:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 22:48:22] Production.INFO: ==5189== Releasing lock... [2025-04-20 22:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 22:48:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-20 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 19:49:05 [end_date_ymd] => 2025-04-20 22:49:05 [RateCDR] => 1 ) [2025-04-20 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-20 19:49:05' and `end` < '2025-04-20 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-20 22:49:18] Production.INFO: count ==1369 [2025-04-20 22:49:18] Production.ERROR: pbx CDR StartTime 2025-04-20 19:49:05 - End Time 2025-04-20 22:49:05 [2025-04-20 22:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953427', 'tblTempUsageDetail_20' ) start [2025-04-20 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953427', 'tblTempUsageDetail_20' ) end [2025-04-20 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953427', 'tblTempVendorCDR_20' ) start [2025-04-20 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953427', 'tblTempVendorCDR_20' ) end [2025-04-20 22:49:18] Production.INFO: ProcessCDR(1,14953427,1,1,2) [2025-04-20 22:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953427', 'tblTempUsageDetail_20' ) start [2025-04-20 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953427', 'tblTempUsageDetail_20' ) end [2025-04-20 22:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 22:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 22:49:22] Production.INFO: ==5268== Releasing lock... [2025-04-20 22:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 22:49:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-20 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 19:50:06 [end_date_ymd] => 2025-04-20 22:50:06 [RateCDR] => 1 ) [2025-04-20 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-20 19:50:06' and `end` < '2025-04-20 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-20 22:50:19] Production.INFO: count ==1365 [2025-04-20 22:50:19] Production.ERROR: pbx CDR StartTime 2025-04-20 19:50:06 - End Time 2025-04-20 22:50:06 [2025-04-20 22:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953433', 'tblTempUsageDetail_20' ) start [2025-04-20 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953433', 'tblTempUsageDetail_20' ) end [2025-04-20 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953433', 'tblTempVendorCDR_20' ) start [2025-04-20 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953433', 'tblTempVendorCDR_20' ) end [2025-04-20 22:50:19] Production.INFO: ProcessCDR(1,14953433,1,1,2) [2025-04-20 22:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953433', 'tblTempUsageDetail_20' ) start [2025-04-20 22:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953433', 'tblTempUsageDetail_20' ) end [2025-04-20 22:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 22:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 22:50:23] Production.INFO: ==5342== Releasing lock... [2025-04-20 22:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 22:50:23] Production.INFO: 38.5 MB #Memory Used# [2025-04-20 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 19:51:05 [end_date_ymd] => 2025-04-20 22:51:05 [RateCDR] => 1 ) [2025-04-20 22:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 19:51:05' and `end` < '2025-04-20 22:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 22:51:18] Production.INFO: count ==1347 [2025-04-20 22:51:18] Production.ERROR: pbx CDR StartTime 2025-04-20 19:51:05 - End Time 2025-04-20 22:51:05 [2025-04-20 22:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953438', 'tblTempUsageDetail_20' ) start [2025-04-20 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953438', 'tblTempUsageDetail_20' ) end [2025-04-20 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953438', 'tblTempVendorCDR_20' ) start [2025-04-20 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953438', 'tblTempVendorCDR_20' ) end [2025-04-20 22:51:18] Production.INFO: ProcessCDR(1,14953438,1,1,2) [2025-04-20 22:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953438', 'tblTempUsageDetail_20' ) start [2025-04-20 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953438', 'tblTempUsageDetail_20' ) end [2025-04-20 22:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 22:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 22:51:22] Production.INFO: ==5430== Releasing lock... [2025-04-20 22:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 22:51:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-20 22:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 19:52:06 [end_date_ymd] => 2025-04-20 22:52:06 [RateCDR] => 1 ) [2025-04-20 22:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 19:52:06' and `end` < '2025-04-20 22:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 22:52:18] Production.INFO: count ==1340 [2025-04-20 22:52:19] Production.ERROR: pbx CDR StartTime 2025-04-20 19:52:06 - End Time 2025-04-20 22:52:06 [2025-04-20 22:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953443', 'tblTempUsageDetail_20' ) start [2025-04-20 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953443', 'tblTempUsageDetail_20' ) end [2025-04-20 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953443', 'tblTempVendorCDR_20' ) start [2025-04-20 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953443', 'tblTempVendorCDR_20' ) end [2025-04-20 22:52:19] Production.INFO: ProcessCDR(1,14953443,1,1,2) [2025-04-20 22:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953443', 'tblTempUsageDetail_20' ) start [2025-04-20 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953443', 'tblTempUsageDetail_20' ) end [2025-04-20 22:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 22:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 22:52:22] Production.INFO: ==5507== Releasing lock... [2025-04-20 22:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 22:52:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-20 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 19:53:05 [end_date_ymd] => 2025-04-20 22:53:05 [RateCDR] => 1 ) [2025-04-20 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-20 19:53:05' and `end` < '2025-04-20 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-20 22:53:18] Production.INFO: count ==1331 [2025-04-20 22:53:18] Production.ERROR: pbx CDR StartTime 2025-04-20 19:53:05 - End Time 2025-04-20 22:53:05 [2025-04-20 22:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953448', 'tblTempUsageDetail_20' ) start [2025-04-20 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953448', 'tblTempUsageDetail_20' ) end [2025-04-20 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953448', 'tblTempVendorCDR_20' ) start [2025-04-20 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953448', 'tblTempVendorCDR_20' ) end [2025-04-20 22:53:18] Production.INFO: ProcessCDR(1,14953448,1,1,2) [2025-04-20 22:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953448', 'tblTempUsageDetail_20' ) start [2025-04-20 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953448', 'tblTempUsageDetail_20' ) end [2025-04-20 22:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 22:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 22:53:22] Production.INFO: ==5576== Releasing lock... [2025-04-20 22:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 22:53:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-20 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 19:54:05 [end_date_ymd] => 2025-04-20 22:54:05 [RateCDR] => 1 ) [2025-04-20 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-20 19:54:05' and `end` < '2025-04-20 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-20 22:54:18] Production.INFO: count ==1326 [2025-04-20 22:54:18] Production.ERROR: pbx CDR StartTime 2025-04-20 19:54:05 - End Time 2025-04-20 22:54:05 [2025-04-20 22:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953453', 'tblTempUsageDetail_20' ) start [2025-04-20 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953453', 'tblTempUsageDetail_20' ) end [2025-04-20 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953453', 'tblTempVendorCDR_20' ) start [2025-04-20 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953453', 'tblTempVendorCDR_20' ) end [2025-04-20 22:54:18] Production.INFO: ProcessCDR(1,14953453,1,1,2) [2025-04-20 22:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953453', 'tblTempUsageDetail_20' ) start [2025-04-20 22:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953453', 'tblTempUsageDetail_20' ) end [2025-04-20 22:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 22:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 22:54:23] Production.INFO: ==5651== Releasing lock... [2025-04-20 22:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 22:54:23] Production.INFO: 38 MB #Memory Used# [2025-04-20 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 19:55:05 [end_date_ymd] => 2025-04-20 22:55:05 [RateCDR] => 1 ) [2025-04-20 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-20 19:55:05' and `end` < '2025-04-20 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-20 22:55:18] Production.INFO: count ==1326 [2025-04-20 22:55:18] Production.ERROR: pbx CDR StartTime 2025-04-20 19:55:05 - End Time 2025-04-20 22:55:05 [2025-04-20 22:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953458', 'tblTempUsageDetail_20' ) start [2025-04-20 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953458', 'tblTempUsageDetail_20' ) end [2025-04-20 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953458', 'tblTempVendorCDR_20' ) start [2025-04-20 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953458', 'tblTempVendorCDR_20' ) end [2025-04-20 22:55:18] Production.INFO: ProcessCDR(1,14953458,1,1,2) [2025-04-20 22:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953458', 'tblTempUsageDetail_20' ) start [2025-04-20 22:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953458', 'tblTempUsageDetail_20' ) end [2025-04-20 22:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 22:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 22:55:22] Production.INFO: ==5730== Releasing lock... [2025-04-20 22:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 22:55:22] Production.INFO: 38 MB #Memory Used# [2025-04-20 22:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 19:56:06 [end_date_ymd] => 2025-04-20 22:56:06 [RateCDR] => 1 ) [2025-04-20 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-20 19:56:06' and `end` < '2025-04-20 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-20 22:56:18] Production.INFO: count ==1324 [2025-04-20 22:56:19] Production.ERROR: pbx CDR StartTime 2025-04-20 19:56:06 - End Time 2025-04-20 22:56:06 [2025-04-20 22:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953463', 'tblTempUsageDetail_20' ) start [2025-04-20 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953463', 'tblTempUsageDetail_20' ) end [2025-04-20 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953463', 'tblTempVendorCDR_20' ) start [2025-04-20 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953463', 'tblTempVendorCDR_20' ) end [2025-04-20 22:56:19] Production.INFO: ProcessCDR(1,14953463,1,1,2) [2025-04-20 22:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953463', 'tblTempUsageDetail_20' ) start [2025-04-20 22:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953463', 'tblTempUsageDetail_20' ) end [2025-04-20 22:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 22:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 22:56:22] Production.INFO: ==5802== Releasing lock... [2025-04-20 22:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 22:56:22] Production.INFO: 38 MB #Memory Used# [2025-04-20 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 19:57:05 [end_date_ymd] => 2025-04-20 22:57:05 [RateCDR] => 1 ) [2025-04-20 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-20 19:57:05' and `end` < '2025-04-20 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-20 22:57:17] Production.INFO: count ==1318 [2025-04-20 22:57:18] Production.ERROR: pbx CDR StartTime 2025-04-20 19:57:05 - End Time 2025-04-20 22:57:05 [2025-04-20 22:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953468', 'tblTempUsageDetail_20' ) start [2025-04-20 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953468', 'tblTempUsageDetail_20' ) end [2025-04-20 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953468', 'tblTempVendorCDR_20' ) start [2025-04-20 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953468', 'tblTempVendorCDR_20' ) end [2025-04-20 22:57:18] Production.INFO: ProcessCDR(1,14953468,1,1,2) [2025-04-20 22:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953468', 'tblTempUsageDetail_20' ) start [2025-04-20 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953468', 'tblTempUsageDetail_20' ) end [2025-04-20 22:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 22:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 22:57:21] Production.INFO: ==5877== Releasing lock... [2025-04-20 22:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 22:57:21] Production.INFO: 38.25 MB #Memory Used# [2025-04-20 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 19:58:05 [end_date_ymd] => 2025-04-20 22:58:05 [RateCDR] => 1 ) [2025-04-20 22:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 19:58:05' and `end` < '2025-04-20 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-20 22:58:18] Production.INFO: count ==1315 [2025-04-20 22:58:18] Production.ERROR: pbx CDR StartTime 2025-04-20 19:58:05 - End Time 2025-04-20 22:58:05 [2025-04-20 22:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953473', 'tblTempUsageDetail_20' ) start [2025-04-20 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953473', 'tblTempUsageDetail_20' ) end [2025-04-20 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953473', 'tblTempVendorCDR_20' ) start [2025-04-20 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953473', 'tblTempVendorCDR_20' ) end [2025-04-20 22:58:18] Production.INFO: ProcessCDR(1,14953473,1,1,2) [2025-04-20 22:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953473', 'tblTempUsageDetail_20' ) start [2025-04-20 22:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953473', 'tblTempUsageDetail_20' ) end [2025-04-20 22:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 22:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 22:58:22] Production.INFO: ==5952== Releasing lock... [2025-04-20 22:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 22:58:22] Production.INFO: 38 MB #Memory Used# [2025-04-20 22:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 19:59:04 [end_date_ymd] => 2025-04-20 22:59:04 [RateCDR] => 1 ) [2025-04-20 22: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-20 19:59:04' and `end` < '2025-04-20 22: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-20 22:59:17] Production.INFO: count ==1312 [2025-04-20 22:59:18] Production.ERROR: pbx CDR StartTime 2025-04-20 19:59:04 - End Time 2025-04-20 22:59:04 [2025-04-20 22:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953478', 'tblTempUsageDetail_20' ) start [2025-04-20 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953478', 'tblTempUsageDetail_20' ) end [2025-04-20 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953478', 'tblTempVendorCDR_20' ) start [2025-04-20 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953478', 'tblTempVendorCDR_20' ) end [2025-04-20 22:59:18] Production.INFO: ProcessCDR(1,14953478,1,1,2) [2025-04-20 22:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 22:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953478', 'tblTempUsageDetail_20' ) start [2025-04-20 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953478', 'tblTempUsageDetail_20' ) end [2025-04-20 22:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 22:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 22:59:21] Production.INFO: ==6025== Releasing lock... [2025-04-20 22:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 22:59:21] Production.INFO: 38.5 MB #Memory Used# [2025-04-20 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 20:00:06 [end_date_ymd] => 2025-04-20 23:00:06 [RateCDR] => 1 ) [2025-04-20 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-20 20:00:06' and `end` < '2025-04-20 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-20 23:00:18] Production.INFO: count ==1315 [2025-04-20 23:00:19] Production.ERROR: pbx CDR StartTime 2025-04-20 20:00:06 - End Time 2025-04-20 23:00:06 [2025-04-20 23:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953484', 'tblTempUsageDetail_20' ) start [2025-04-20 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953484', 'tblTempUsageDetail_20' ) end [2025-04-20 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953484', 'tblTempVendorCDR_20' ) start [2025-04-20 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953484', 'tblTempVendorCDR_20' ) end [2025-04-20 23:00:19] Production.INFO: ProcessCDR(1,14953484,1,1,2) [2025-04-20 23:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953484', 'tblTempUsageDetail_20' ) start [2025-04-20 23:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953484', 'tblTempUsageDetail_20' ) end [2025-04-20 23:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 23:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 23:00:24] Production.INFO: ==6103== Releasing lock... [2025-04-20 23:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 23:00:24] Production.INFO: 38 MB #Memory Used# [2025-04-20 23:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 20:01:06 [end_date_ymd] => 2025-04-20 23:01:06 [RateCDR] => 1 ) [2025-04-20 23: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-20 20:01:06' and `end` < '2025-04-20 23: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-20 23:01:19] Production.INFO: count ==1304 [2025-04-20 23:01:19] Production.ERROR: pbx CDR StartTime 2025-04-20 20:01:06 - End Time 2025-04-20 23:01:06 [2025-04-20 23:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953489', 'tblTempUsageDetail_20' ) start [2025-04-20 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953489', 'tblTempUsageDetail_20' ) end [2025-04-20 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953489', 'tblTempVendorCDR_20' ) start [2025-04-20 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953489', 'tblTempVendorCDR_20' ) end [2025-04-20 23:01:19] Production.INFO: ProcessCDR(1,14953489,1,1,2) [2025-04-20 23:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953489', 'tblTempUsageDetail_20' ) start [2025-04-20 23:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953489', 'tblTempUsageDetail_20' ) end [2025-04-20 23:01:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 23:01:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 23:01:24] Production.INFO: ==6229== Releasing lock... [2025-04-20 23:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 23:01:24] Production.INFO: 38 MB #Memory Used# [2025-04-20 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 20:02:05 [end_date_ymd] => 2025-04-20 23:02:05 [RateCDR] => 1 ) [2025-04-20 23:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 20:02:05' and `end` < '2025-04-20 23:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 23:02:18] Production.INFO: count ==1301 [2025-04-20 23:02:18] Production.ERROR: pbx CDR StartTime 2025-04-20 20:02:05 - End Time 2025-04-20 23:02:05 [2025-04-20 23:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953494', 'tblTempUsageDetail_20' ) start [2025-04-20 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953494', 'tblTempUsageDetail_20' ) end [2025-04-20 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953494', 'tblTempVendorCDR_20' ) start [2025-04-20 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953494', 'tblTempVendorCDR_20' ) end [2025-04-20 23:02:18] Production.INFO: ProcessCDR(1,14953494,1,1,2) [2025-04-20 23:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953494', 'tblTempUsageDetail_20' ) start [2025-04-20 23:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953494', 'tblTempUsageDetail_20' ) end [2025-04-20 23:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 23:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 23:02:23] Production.INFO: ==6386== Releasing lock... [2025-04-20 23:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 23:02:23] Production.INFO: 38.25 MB #Memory Used# [2025-04-20 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 20:03:04 [end_date_ymd] => 2025-04-20 23:03:04 [RateCDR] => 1 ) [2025-04-20 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-20 20:03:04' and `end` < '2025-04-20 23: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-20 23:03:17] Production.INFO: count ==1296 [2025-04-20 23:03:18] Production.ERROR: pbx CDR StartTime 2025-04-20 20:03:04 - End Time 2025-04-20 23:03:04 [2025-04-20 23:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953499', 'tblTempUsageDetail_20' ) start [2025-04-20 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953499', 'tblTempUsageDetail_20' ) end [2025-04-20 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953499', 'tblTempVendorCDR_20' ) start [2025-04-20 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953499', 'tblTempVendorCDR_20' ) end [2025-04-20 23:03:18] Production.INFO: ProcessCDR(1,14953499,1,1,2) [2025-04-20 23:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953499', 'tblTempUsageDetail_20' ) start [2025-04-20 23:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953499', 'tblTempUsageDetail_20' ) end [2025-04-20 23:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 23:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 23:03:21] Production.INFO: ==6461== Releasing lock... [2025-04-20 23:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 23:03:21] Production.INFO: 38.25 MB #Memory Used# [2025-04-20 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 20:04:05 [end_date_ymd] => 2025-04-20 23:04:05 [RateCDR] => 1 ) [2025-04-20 23:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 20:04:05' and `end` < '2025-04-20 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-20 23:04:17] Production.INFO: count ==1293 [2025-04-20 23:04:18] Production.ERROR: pbx CDR StartTime 2025-04-20 20:04:05 - End Time 2025-04-20 23:04:05 [2025-04-20 23:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953504', 'tblTempUsageDetail_20' ) start [2025-04-20 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953504', 'tblTempUsageDetail_20' ) end [2025-04-20 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953504', 'tblTempVendorCDR_20' ) start [2025-04-20 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953504', 'tblTempVendorCDR_20' ) end [2025-04-20 23:04:18] Production.INFO: ProcessCDR(1,14953504,1,1,2) [2025-04-20 23:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953504', 'tblTempUsageDetail_20' ) start [2025-04-20 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953504', 'tblTempUsageDetail_20' ) end [2025-04-20 23:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 23:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 23:04:21] Production.INFO: ==6533== Releasing lock... [2025-04-20 23:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 23:04:21] Production.INFO: 38.25 MB #Memory Used# [2025-04-20 23:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 20:05:06 [end_date_ymd] => 2025-04-20 23:05:06 [RateCDR] => 1 ) [2025-04-20 23:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 20:05:06' and `end` < '2025-04-20 23:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 23:05:18] Production.INFO: count ==1291 [2025-04-20 23:05:19] Production.ERROR: pbx CDR StartTime 2025-04-20 20:05:06 - End Time 2025-04-20 23:05:06 [2025-04-20 23:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953509', 'tblTempUsageDetail_20' ) start [2025-04-20 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953509', 'tblTempUsageDetail_20' ) end [2025-04-20 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953509', 'tblTempVendorCDR_20' ) start [2025-04-20 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953509', 'tblTempVendorCDR_20' ) end [2025-04-20 23:05:19] Production.INFO: ProcessCDR(1,14953509,1,1,2) [2025-04-20 23:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953509', 'tblTempUsageDetail_20' ) start [2025-04-20 23:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953509', 'tblTempUsageDetail_20' ) end [2025-04-20 23:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 23:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 23:05:22] Production.INFO: ==6688== Releasing lock... [2025-04-20 23:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 23:05:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-20 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 20:06:05 [end_date_ymd] => 2025-04-20 23:06:05 [RateCDR] => 1 ) [2025-04-20 23:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 20:06:05' and `end` < '2025-04-20 23:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 23:06:18] Production.INFO: count ==1282 [2025-04-20 23:06:18] Production.ERROR: pbx CDR StartTime 2025-04-20 20:06:05 - End Time 2025-04-20 23:06:05 [2025-04-20 23:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953514', 'tblTempUsageDetail_20' ) start [2025-04-20 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953514', 'tblTempUsageDetail_20' ) end [2025-04-20 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953514', 'tblTempVendorCDR_20' ) start [2025-04-20 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953514', 'tblTempVendorCDR_20' ) end [2025-04-20 23:06:18] Production.INFO: ProcessCDR(1,14953514,1,1,2) [2025-04-20 23:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953514', 'tblTempUsageDetail_20' ) start [2025-04-20 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953514', 'tblTempUsageDetail_20' ) end [2025-04-20 23:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 23:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 23:06:21] Production.INFO: ==6757== Releasing lock... [2025-04-20 23:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 23:06:21] Production.INFO: 38 MB #Memory Used# [2025-04-20 23:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 20:07:06 [end_date_ymd] => 2025-04-20 23:07:06 [RateCDR] => 1 ) [2025-04-20 23:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 20:07:06' and `end` < '2025-04-20 23:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 23:07:19] Production.INFO: count ==1275 [2025-04-20 23:07:19] Production.ERROR: pbx CDR StartTime 2025-04-20 20:07:06 - End Time 2025-04-20 23:07:06 [2025-04-20 23:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953519', 'tblTempUsageDetail_20' ) start [2025-04-20 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953519', 'tblTempUsageDetail_20' ) end [2025-04-20 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953519', 'tblTempVendorCDR_20' ) start [2025-04-20 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953519', 'tblTempVendorCDR_20' ) end [2025-04-20 23:07:19] Production.INFO: ProcessCDR(1,14953519,1,1,2) [2025-04-20 23:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953519', 'tblTempUsageDetail_20' ) start [2025-04-20 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953519', 'tblTempUsageDetail_20' ) end [2025-04-20 23:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 23:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 23:07:22] Production.INFO: ==6831== Releasing lock... [2025-04-20 23:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 23:07:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-20 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 20:08:05 [end_date_ymd] => 2025-04-20 23:08:05 [RateCDR] => 1 ) [2025-04-20 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-20 20:08:05' and `end` < '2025-04-20 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-20 23:08:18] Production.INFO: count ==1273 [2025-04-20 23:08:18] Production.ERROR: pbx CDR StartTime 2025-04-20 20:08:05 - End Time 2025-04-20 23:08:05 [2025-04-20 23:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953524', 'tblTempUsageDetail_20' ) start [2025-04-20 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953524', 'tblTempUsageDetail_20' ) end [2025-04-20 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953524', 'tblTempVendorCDR_20' ) start [2025-04-20 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953524', 'tblTempVendorCDR_20' ) end [2025-04-20 23:08:18] Production.INFO: ProcessCDR(1,14953524,1,1,2) [2025-04-20 23:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953524', 'tblTempUsageDetail_20' ) start [2025-04-20 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953524', 'tblTempUsageDetail_20' ) end [2025-04-20 23:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 23:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 23:08:21] Production.INFO: ==6984== Releasing lock... [2025-04-20 23:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 23:08:21] Production.INFO: 37.5 MB #Memory Used# [2025-04-20 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 20:09:05 [end_date_ymd] => 2025-04-20 23:09:05 [RateCDR] => 1 ) [2025-04-20 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-20 20:09:05' and `end` < '2025-04-20 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-20 23:09:18] Production.INFO: count ==1269 [2025-04-20 23:09:18] Production.ERROR: pbx CDR StartTime 2025-04-20 20:09:05 - End Time 2025-04-20 23:09:05 [2025-04-20 23:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953529', 'tblTempUsageDetail_20' ) start [2025-04-20 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953529', 'tblTempUsageDetail_20' ) end [2025-04-20 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953529', 'tblTempVendorCDR_20' ) start [2025-04-20 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953529', 'tblTempVendorCDR_20' ) end [2025-04-20 23:09:18] Production.INFO: ProcessCDR(1,14953529,1,1,2) [2025-04-20 23:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953529', 'tblTempUsageDetail_20' ) start [2025-04-20 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953529', 'tblTempUsageDetail_20' ) end [2025-04-20 23:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 23:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 23:09:21] Production.INFO: ==7056== Releasing lock... [2025-04-20 23:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 23:09:21] Production.INFO: 37.5 MB #Memory Used# [2025-04-20 23:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 20:10:05 [end_date_ymd] => 2025-04-20 23:10:05 [RateCDR] => 1 ) [2025-04-20 23: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-20 20:10:05' and `end` < '2025-04-20 23: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-20 23:10:18] Production.INFO: count ==1267 [2025-04-20 23:10:18] Production.ERROR: pbx CDR StartTime 2025-04-20 20:10:05 - End Time 2025-04-20 23:10:05 [2025-04-20 23:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953535', 'tblTempUsageDetail_20' ) start [2025-04-20 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953535', 'tblTempUsageDetail_20' ) end [2025-04-20 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953535', 'tblTempVendorCDR_20' ) start [2025-04-20 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953535', 'tblTempVendorCDR_20' ) end [2025-04-20 23:10:18] Production.INFO: ProcessCDR(1,14953535,1,1,2) [2025-04-20 23:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953535', 'tblTempUsageDetail_20' ) start [2025-04-20 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953535', 'tblTempUsageDetail_20' ) end [2025-04-20 23:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 23:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 23:10:22] Production.INFO: ==7137== Releasing lock... [2025-04-20 23:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 23:10:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-20 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 20:11:05 [end_date_ymd] => 2025-04-20 23:11:05 [RateCDR] => 1 ) [2025-04-20 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-20 20:11:05' and `end` < '2025-04-20 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-20 23:11:18] Production.INFO: count ==1259 [2025-04-20 23:11:18] Production.ERROR: pbx CDR StartTime 2025-04-20 20:11:05 - End Time 2025-04-20 23:11:05 [2025-04-20 23:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953540', 'tblTempUsageDetail_20' ) start [2025-04-20 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953540', 'tblTempUsageDetail_20' ) end [2025-04-20 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953540', 'tblTempVendorCDR_20' ) start [2025-04-20 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953540', 'tblTempVendorCDR_20' ) end [2025-04-20 23:11:18] Production.INFO: ProcessCDR(1,14953540,1,1,2) [2025-04-20 23:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953540', 'tblTempUsageDetail_20' ) start [2025-04-20 23:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953540', 'tblTempUsageDetail_20' ) end [2025-04-20 23:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 23:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 23:11:23] Production.INFO: ==7215== Releasing lock... [2025-04-20 23:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 23:11:23] Production.INFO: 37.75 MB #Memory Used# [2025-04-20 23:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 20:12:06 [end_date_ymd] => 2025-04-20 23:12:06 [RateCDR] => 1 ) [2025-04-20 23: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-20 20:12:06' and `end` < '2025-04-20 23: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-20 23:12:18] Production.INFO: count ==1259 [2025-04-20 23:12:19] Production.ERROR: pbx CDR StartTime 2025-04-20 20:12:06 - End Time 2025-04-20 23:12:06 [2025-04-20 23:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953545', 'tblTempUsageDetail_20' ) start [2025-04-20 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953545', 'tblTempUsageDetail_20' ) end [2025-04-20 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953545', 'tblTempVendorCDR_20' ) start [2025-04-20 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953545', 'tblTempVendorCDR_20' ) end [2025-04-20 23:12:19] Production.INFO: ProcessCDR(1,14953545,1,1,2) [2025-04-20 23:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953545', 'tblTempUsageDetail_20' ) start [2025-04-20 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953545', 'tblTempUsageDetail_20' ) end [2025-04-20 23:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 23:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 23:12:22] Production.INFO: ==7364== Releasing lock... [2025-04-20 23:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 23:12:22] Production.INFO: 38 MB #Memory Used# [2025-04-20 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 20:13:05 [end_date_ymd] => 2025-04-20 23:13:05 [RateCDR] => 1 ) [2025-04-20 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-20 20:13:05' and `end` < '2025-04-20 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-20 23:13:17] Production.INFO: count ==1259 [2025-04-20 23:13:18] Production.ERROR: pbx CDR StartTime 2025-04-20 20:13:05 - End Time 2025-04-20 23:13:05 [2025-04-20 23:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953550', 'tblTempUsageDetail_20' ) start [2025-04-20 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953550', 'tblTempUsageDetail_20' ) end [2025-04-20 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953550', 'tblTempVendorCDR_20' ) start [2025-04-20 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953550', 'tblTempVendorCDR_20' ) end [2025-04-20 23:13:18] Production.INFO: ProcessCDR(1,14953550,1,1,2) [2025-04-20 23:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953550', 'tblTempUsageDetail_20' ) start [2025-04-20 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953550', 'tblTempUsageDetail_20' ) end [2025-04-20 23:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 23:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 23:13:21] Production.INFO: ==7436== Releasing lock... [2025-04-20 23:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 23:13:21] Production.INFO: 37.75 MB #Memory Used# [2025-04-20 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 20:14:05 [end_date_ymd] => 2025-04-20 23:14:05 [RateCDR] => 1 ) [2025-04-20 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-20 20:14:05' and `end` < '2025-04-20 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-20 23:14:18] Production.INFO: count ==1262 [2025-04-20 23:14:18] Production.ERROR: pbx CDR StartTime 2025-04-20 20:14:05 - End Time 2025-04-20 23:14:05 [2025-04-20 23:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953555', 'tblTempUsageDetail_20' ) start [2025-04-20 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953555', 'tblTempUsageDetail_20' ) end [2025-04-20 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953555', 'tblTempVendorCDR_20' ) start [2025-04-20 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953555', 'tblTempVendorCDR_20' ) end [2025-04-20 23:14:18] Production.INFO: ProcessCDR(1,14953555,1,1,2) [2025-04-20 23:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953555', 'tblTempUsageDetail_20' ) start [2025-04-20 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953555', 'tblTempUsageDetail_20' ) end [2025-04-20 23:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 23:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 23:14:22] Production.INFO: ==7509== Releasing lock... [2025-04-20 23:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 23:14:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-20 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 20:15:05 [end_date_ymd] => 2025-04-20 23:15:05 [RateCDR] => 1 ) [2025-04-20 23:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 20:15:05' and `end` < '2025-04-20 23:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 23:15:17] Production.INFO: count ==1260 [2025-04-20 23:15:18] Production.ERROR: pbx CDR StartTime 2025-04-20 20:15:05 - End Time 2025-04-20 23:15:05 [2025-04-20 23:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953560', 'tblTempUsageDetail_20' ) start [2025-04-20 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953560', 'tblTempUsageDetail_20' ) end [2025-04-20 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953560', 'tblTempVendorCDR_20' ) start [2025-04-20 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953560', 'tblTempVendorCDR_20' ) end [2025-04-20 23:15:18] Production.INFO: ProcessCDR(1,14953560,1,1,2) [2025-04-20 23:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953560', 'tblTempUsageDetail_20' ) start [2025-04-20 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953560', 'tblTempUsageDetail_20' ) end [2025-04-20 23:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 23:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 23:15:21] Production.INFO: ==7668== Releasing lock... [2025-04-20 23:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 23:15:21] Production.INFO: 37.5 MB #Memory Used# [2025-04-20 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 20:16:05 [end_date_ymd] => 2025-04-20 23:16:05 [RateCDR] => 1 ) [2025-04-20 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-20 20:16:05' and `end` < '2025-04-20 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-20 23:16:18] Production.INFO: count ==1259 [2025-04-20 23:16:18] Production.ERROR: pbx CDR StartTime 2025-04-20 20:16:05 - End Time 2025-04-20 23:16:05 [2025-04-20 23:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953565', 'tblTempUsageDetail_20' ) start [2025-04-20 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953565', 'tblTempUsageDetail_20' ) end [2025-04-20 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953565', 'tblTempVendorCDR_20' ) start [2025-04-20 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953565', 'tblTempVendorCDR_20' ) end [2025-04-20 23:16:18] Production.INFO: ProcessCDR(1,14953565,1,1,2) [2025-04-20 23:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953565', 'tblTempUsageDetail_20' ) start [2025-04-20 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953565', 'tblTempUsageDetail_20' ) end [2025-04-20 23:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 23:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 23:16:22] Production.INFO: ==7742== Releasing lock... [2025-04-20 23:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 23:16:22] Production.INFO: 38 MB #Memory Used# [2025-04-20 23:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 20:17:04 [end_date_ymd] => 2025-04-20 23:17:04 [RateCDR] => 1 ) [2025-04-20 23: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-20 20:17:04' and `end` < '2025-04-20 23: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-20 23:17:17] Production.INFO: count ==1256 [2025-04-20 23:17:17] Production.ERROR: pbx CDR StartTime 2025-04-20 20:17:04 - End Time 2025-04-20 23:17:04 [2025-04-20 23:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953570', 'tblTempUsageDetail_20' ) start [2025-04-20 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953570', 'tblTempUsageDetail_20' ) end [2025-04-20 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953570', 'tblTempVendorCDR_20' ) start [2025-04-20 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953570', 'tblTempVendorCDR_20' ) end [2025-04-20 23:17:17] Production.INFO: ProcessCDR(1,14953570,1,1,2) [2025-04-20 23:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953570', 'tblTempUsageDetail_20' ) start [2025-04-20 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953570', 'tblTempUsageDetail_20' ) end [2025-04-20 23:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 23:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 23:17:21] Production.INFO: ==7855== Releasing lock... [2025-04-20 23:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 23:17:21] Production.INFO: 37.75 MB #Memory Used# [2025-04-20 23:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 20:18:06 [end_date_ymd] => 2025-04-20 23:18:06 [RateCDR] => 1 ) [2025-04-20 23: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-20 20:18:06' and `end` < '2025-04-20 23: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-20 23:18:18] Production.INFO: count ==1259 [2025-04-20 23:18:19] Production.ERROR: pbx CDR StartTime 2025-04-20 20:18:06 - End Time 2025-04-20 23:18:06 [2025-04-20 23:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953575', 'tblTempUsageDetail_20' ) start [2025-04-20 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953575', 'tblTempUsageDetail_20' ) end [2025-04-20 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953575', 'tblTempVendorCDR_20' ) start [2025-04-20 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953575', 'tblTempVendorCDR_20' ) end [2025-04-20 23:18:19] Production.INFO: ProcessCDR(1,14953575,1,1,2) [2025-04-20 23:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953575', 'tblTempUsageDetail_20' ) start [2025-04-20 23:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953575', 'tblTempUsageDetail_20' ) end [2025-04-20 23:18:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 23:18:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 23:18:24] Production.INFO: ==7929== Releasing lock... [2025-04-20 23:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 23:18:24] Production.INFO: 37.75 MB #Memory Used# [2025-04-20 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 20:19:05 [end_date_ymd] => 2025-04-20 23:19:05 [RateCDR] => 1 ) [2025-04-20 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-20 20:19:05' and `end` < '2025-04-20 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-20 23:19:18] Production.INFO: count ==1257 [2025-04-20 23:19:18] Production.ERROR: pbx CDR StartTime 2025-04-20 20:19:05 - End Time 2025-04-20 23:19:05 [2025-04-20 23:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953580', 'tblTempUsageDetail_20' ) start [2025-04-20 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953580', 'tblTempUsageDetail_20' ) end [2025-04-20 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953580', 'tblTempVendorCDR_20' ) start [2025-04-20 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953580', 'tblTempVendorCDR_20' ) end [2025-04-20 23:19:18] Production.INFO: ProcessCDR(1,14953580,1,1,2) [2025-04-20 23:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953580', 'tblTempUsageDetail_20' ) start [2025-04-20 23:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953580', 'tblTempUsageDetail_20' ) end [2025-04-20 23:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 23:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 23:19:22] Production.INFO: ==8001== Releasing lock... [2025-04-20 23:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 23:19:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-20 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 20:20:06 [end_date_ymd] => 2025-04-20 23:20:06 [RateCDR] => 1 ) [2025-04-20 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-20 20:20:06' and `end` < '2025-04-20 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-20 23:20:19] Production.INFO: count ==1254 [2025-04-20 23:20:19] Production.ERROR: pbx CDR StartTime 2025-04-20 20:20:06 - End Time 2025-04-20 23:20:06 [2025-04-20 23:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953586', 'tblTempUsageDetail_20' ) start [2025-04-20 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953586', 'tblTempUsageDetail_20' ) end [2025-04-20 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953586', 'tblTempVendorCDR_20' ) start [2025-04-20 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953586', 'tblTempVendorCDR_20' ) end [2025-04-20 23:20:19] Production.INFO: ProcessCDR(1,14953586,1,1,2) [2025-04-20 23:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953586', 'tblTempUsageDetail_20' ) start [2025-04-20 23:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953586', 'tblTempUsageDetail_20' ) end [2025-04-20 23:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 23:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 23:20:23] Production.INFO: ==8075== Releasing lock... [2025-04-20 23:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 23:20:23] Production.INFO: 38 MB #Memory Used# [2025-04-20 23:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 20:21:06 [end_date_ymd] => 2025-04-20 23:21:06 [RateCDR] => 1 ) [2025-04-20 23:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 20:21:06' and `end` < '2025-04-20 23:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 23:21:18] Production.INFO: count ==1213 [2025-04-20 23:21:18] Production.ERROR: pbx CDR StartTime 2025-04-20 20:21:06 - End Time 2025-04-20 23:21:06 [2025-04-20 23:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953591', 'tblTempUsageDetail_20' ) start [2025-04-20 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953591', 'tblTempUsageDetail_20' ) end [2025-04-20 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953591', 'tblTempVendorCDR_20' ) start [2025-04-20 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953591', 'tblTempVendorCDR_20' ) end [2025-04-20 23:21:19] Production.INFO: ProcessCDR(1,14953591,1,1,2) [2025-04-20 23:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953591', 'tblTempUsageDetail_20' ) start [2025-04-20 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953591', 'tblTempUsageDetail_20' ) end [2025-04-20 23:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 23:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 23:21:22] Production.INFO: ==8156== Releasing lock... [2025-04-20 23:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 23:21:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-20 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 20:22:05 [end_date_ymd] => 2025-04-20 23:22:05 [RateCDR] => 1 ) [2025-04-20 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-20 20:22:05' and `end` < '2025-04-20 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-20 23:22:18] Production.INFO: count ==1210 [2025-04-20 23:22:18] Production.ERROR: pbx CDR StartTime 2025-04-20 20:22:05 - End Time 2025-04-20 23:22:05 [2025-04-20 23:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953596', 'tblTempUsageDetail_20' ) start [2025-04-20 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953596', 'tblTempUsageDetail_20' ) end [2025-04-20 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953596', 'tblTempVendorCDR_20' ) start [2025-04-20 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953596', 'tblTempVendorCDR_20' ) end [2025-04-20 23:22:18] Production.INFO: ProcessCDR(1,14953596,1,1,2) [2025-04-20 23:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953596', 'tblTempUsageDetail_20' ) start [2025-04-20 23:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953596', 'tblTempUsageDetail_20' ) end [2025-04-20 23:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 23:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 23:22:22] Production.INFO: ==8228== Releasing lock... [2025-04-20 23:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 23:22:22] Production.INFO: 38 MB #Memory Used# [2025-04-20 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 20:23:05 [end_date_ymd] => 2025-04-20 23:23:05 [RateCDR] => 1 ) [2025-04-20 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-20 20:23:05' and `end` < '2025-04-20 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-20 23:23:17] Production.INFO: count ==1207 [2025-04-20 23:23:18] Production.ERROR: pbx CDR StartTime 2025-04-20 20:23:05 - End Time 2025-04-20 23:23:05 [2025-04-20 23:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953601', 'tblTempUsageDetail_20' ) start [2025-04-20 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953601', 'tblTempUsageDetail_20' ) end [2025-04-20 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953601', 'tblTempVendorCDR_20' ) start [2025-04-20 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953601', 'tblTempVendorCDR_20' ) end [2025-04-20 23:23:18] Production.INFO: ProcessCDR(1,14953601,1,1,2) [2025-04-20 23:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953601', 'tblTempUsageDetail_20' ) start [2025-04-20 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953601', 'tblTempUsageDetail_20' ) end [2025-04-20 23:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 23:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 23:23:21] Production.INFO: ==8300== Releasing lock... [2025-04-20 23:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 23:23:21] Production.INFO: 37.25 MB #Memory Used# [2025-04-20 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 20:24:05 [end_date_ymd] => 2025-04-20 23:24:05 [RateCDR] => 1 ) [2025-04-20 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-20 20:24:05' and `end` < '2025-04-20 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-20 23:24:18] Production.INFO: count ==1206 [2025-04-20 23:24:18] Production.ERROR: pbx CDR StartTime 2025-04-20 20:24:05 - End Time 2025-04-20 23:24:05 [2025-04-20 23:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953606', 'tblTempUsageDetail_20' ) start [2025-04-20 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953606', 'tblTempUsageDetail_20' ) end [2025-04-20 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953606', 'tblTempVendorCDR_20' ) start [2025-04-20 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953606', 'tblTempVendorCDR_20' ) end [2025-04-20 23:24:18] Production.INFO: ProcessCDR(1,14953606,1,1,2) [2025-04-20 23:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953606', 'tblTempUsageDetail_20' ) start [2025-04-20 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953606', 'tblTempUsageDetail_20' ) end [2025-04-20 23:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 23:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 23:24:22] Production.INFO: ==8376== Releasing lock... [2025-04-20 23:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 23:24:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-20 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 20:25:05 [end_date_ymd] => 2025-04-20 23:25:05 [RateCDR] => 1 ) [2025-04-20 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-20 20:25:05' and `end` < '2025-04-20 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-20 23:25:17] Production.INFO: count ==1200 [2025-04-20 23:25:18] Production.ERROR: pbx CDR StartTime 2025-04-20 20:25:05 - End Time 2025-04-20 23:25:05 [2025-04-20 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953611', 'tblTempUsageDetail_20' ) start [2025-04-20 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953611', 'tblTempUsageDetail_20' ) end [2025-04-20 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953611', 'tblTempVendorCDR_20' ) start [2025-04-20 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953611', 'tblTempVendorCDR_20' ) end [2025-04-20 23:25:18] Production.INFO: ProcessCDR(1,14953611,1,1,2) [2025-04-20 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953611', 'tblTempUsageDetail_20' ) start [2025-04-20 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953611', 'tblTempUsageDetail_20' ) end [2025-04-20 23:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 23:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 23:25:21] Production.INFO: ==8445== Releasing lock... [2025-04-20 23:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 23:25:21] Production.INFO: 37.25 MB #Memory Used# [2025-04-20 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 20:26:05 [end_date_ymd] => 2025-04-20 23:26:05 [RateCDR] => 1 ) [2025-04-20 23:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 20:26:05' and `end` < '2025-04-20 23:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 23:26:17] Production.INFO: count ==1195 [2025-04-20 23:26:18] Production.ERROR: pbx CDR StartTime 2025-04-20 20:26:05 - End Time 2025-04-20 23:26:05 [2025-04-20 23:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953616', 'tblTempUsageDetail_20' ) start [2025-04-20 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953616', 'tblTempUsageDetail_20' ) end [2025-04-20 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953616', 'tblTempVendorCDR_20' ) start [2025-04-20 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953616', 'tblTempVendorCDR_20' ) end [2025-04-20 23:26:18] Production.INFO: ProcessCDR(1,14953616,1,1,2) [2025-04-20 23:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953616', 'tblTempUsageDetail_20' ) start [2025-04-20 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953616', 'tblTempUsageDetail_20' ) end [2025-04-20 23:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 23:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 23:26:21] Production.INFO: ==8521== Releasing lock... [2025-04-20 23:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 23:26:21] Production.INFO: 37.75 MB #Memory Used# [2025-04-20 23:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 20:27:06 [end_date_ymd] => 2025-04-20 23:27:06 [RateCDR] => 1 ) [2025-04-20 23: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-20 20:27:06' and `end` < '2025-04-20 23: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-20 23:27:18] Production.INFO: count ==1195 [2025-04-20 23:27:19] Production.ERROR: pbx CDR StartTime 2025-04-20 20:27:06 - End Time 2025-04-20 23:27:06 [2025-04-20 23:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953621', 'tblTempUsageDetail_20' ) start [2025-04-20 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953621', 'tblTempUsageDetail_20' ) end [2025-04-20 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953621', 'tblTempVendorCDR_20' ) start [2025-04-20 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953621', 'tblTempVendorCDR_20' ) end [2025-04-20 23:27:19] Production.INFO: ProcessCDR(1,14953621,1,1,2) [2025-04-20 23:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953621', 'tblTempUsageDetail_20' ) start [2025-04-20 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953621', 'tblTempUsageDetail_20' ) end [2025-04-20 23:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 23:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 23:27:22] Production.INFO: ==8600== Releasing lock... [2025-04-20 23:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 23:27:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-20 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 20:28:05 [end_date_ymd] => 2025-04-20 23:28:05 [RateCDR] => 1 ) [2025-04-20 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-20 20:28:05' and `end` < '2025-04-20 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-20 23:28:18] Production.INFO: count ==1188 [2025-04-20 23:28:18] Production.ERROR: pbx CDR StartTime 2025-04-20 20:28:05 - End Time 2025-04-20 23:28:05 [2025-04-20 23:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953626', 'tblTempUsageDetail_20' ) start [2025-04-20 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953626', 'tblTempUsageDetail_20' ) end [2025-04-20 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953626', 'tblTempVendorCDR_20' ) start [2025-04-20 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953626', 'tblTempVendorCDR_20' ) end [2025-04-20 23:28:18] Production.INFO: ProcessCDR(1,14953626,1,1,2) [2025-04-20 23:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953626', 'tblTempUsageDetail_20' ) start [2025-04-20 23:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953626', 'tblTempUsageDetail_20' ) end [2025-04-20 23:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 23:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 23:28:22] Production.INFO: ==8670== Releasing lock... [2025-04-20 23:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 23:28:22] Production.INFO: 37 MB #Memory Used# [2025-04-20 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 20:29:05 [end_date_ymd] => 2025-04-20 23:29:05 [RateCDR] => 1 ) [2025-04-20 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-20 20:29:05' and `end` < '2025-04-20 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-20 23:29:18] Production.INFO: count ==1187 [2025-04-20 23:29:18] Production.ERROR: pbx CDR StartTime 2025-04-20 20:29:05 - End Time 2025-04-20 23:29:05 [2025-04-20 23:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953631', 'tblTempUsageDetail_20' ) start [2025-04-20 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953631', 'tblTempUsageDetail_20' ) end [2025-04-20 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953631', 'tblTempVendorCDR_20' ) start [2025-04-20 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953631', 'tblTempVendorCDR_20' ) end [2025-04-20 23:29:18] Production.INFO: ProcessCDR(1,14953631,1,1,2) [2025-04-20 23:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953631', 'tblTempUsageDetail_20' ) start [2025-04-20 23:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953631', 'tblTempUsageDetail_20' ) end [2025-04-20 23:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 23:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 23:29:21] Production.INFO: ==8749== Releasing lock... [2025-04-20 23:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 23:29:21] Production.INFO: 37 MB #Memory Used# [2025-04-20 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 20:30:06 [end_date_ymd] => 2025-04-20 23:30:06 [RateCDR] => 1 ) [2025-04-20 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-20 20:30:06' and `end` < '2025-04-20 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-20 23:30:18] Production.INFO: count ==1182 [2025-04-20 23:30:19] Production.ERROR: pbx CDR StartTime 2025-04-20 20:30:06 - End Time 2025-04-20 23:30:06 [2025-04-20 23:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953637', 'tblTempUsageDetail_20' ) start [2025-04-20 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953637', 'tblTempUsageDetail_20' ) end [2025-04-20 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953637', 'tblTempVendorCDR_20' ) start [2025-04-20 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953637', 'tblTempVendorCDR_20' ) end [2025-04-20 23:30:19] Production.INFO: ProcessCDR(1,14953637,1,1,2) [2025-04-20 23:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953637', 'tblTempUsageDetail_20' ) start [2025-04-20 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953637', 'tblTempUsageDetail_20' ) end [2025-04-20 23:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 23:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 23:30:22] Production.INFO: ==8825== Releasing lock... [2025-04-20 23:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 23:30:22] Production.INFO: 37 MB #Memory Used# [2025-04-20 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 20:31:05 [end_date_ymd] => 2025-04-20 23:31:05 [RateCDR] => 1 ) [2025-04-20 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-20 20:31:05' and `end` < '2025-04-20 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-20 23:31:18] Production.INFO: count ==1166 [2025-04-20 23:31:18] Production.ERROR: pbx CDR StartTime 2025-04-20 20:31:05 - End Time 2025-04-20 23:31:05 [2025-04-20 23:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953642', 'tblTempUsageDetail_20' ) start [2025-04-20 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953642', 'tblTempUsageDetail_20' ) end [2025-04-20 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953642', 'tblTempVendorCDR_20' ) start [2025-04-20 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953642', 'tblTempVendorCDR_20' ) end [2025-04-20 23:31:18] Production.INFO: ProcessCDR(1,14953642,1,1,2) [2025-04-20 23:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953642', 'tblTempUsageDetail_20' ) start [2025-04-20 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953642', 'tblTempUsageDetail_20' ) end [2025-04-20 23:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 23:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 23:31:21] Production.INFO: ==8902== Releasing lock... [2025-04-20 23:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 23:31:21] Production.INFO: 37 MB #Memory Used# [2025-04-20 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 20:32:05 [end_date_ymd] => 2025-04-20 23:32:05 [RateCDR] => 1 ) [2025-04-20 23:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 20:32:05' and `end` < '2025-04-20 23:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 23:32:17] Production.INFO: count ==1167 [2025-04-20 23:32:18] Production.ERROR: pbx CDR StartTime 2025-04-20 20:32:05 - End Time 2025-04-20 23:32:05 [2025-04-20 23:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953647', 'tblTempUsageDetail_20' ) start [2025-04-20 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953647', 'tblTempUsageDetail_20' ) end [2025-04-20 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953647', 'tblTempVendorCDR_20' ) start [2025-04-20 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953647', 'tblTempVendorCDR_20' ) end [2025-04-20 23:32:18] Production.INFO: ProcessCDR(1,14953647,1,1,2) [2025-04-20 23:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953647', 'tblTempUsageDetail_20' ) start [2025-04-20 23:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953647', 'tblTempUsageDetail_20' ) end [2025-04-20 23:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 23:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 23:32:21] Production.INFO: ==8974== Releasing lock... [2025-04-20 23:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 23:32:21] Production.INFO: 37.25 MB #Memory Used# [2025-04-20 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 20:33:05 [end_date_ymd] => 2025-04-20 23:33:05 [RateCDR] => 1 ) [2025-04-20 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-20 20:33:05' and `end` < '2025-04-20 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-20 23:33:18] Production.INFO: count ==1168 [2025-04-20 23:33:18] Production.ERROR: pbx CDR StartTime 2025-04-20 20:33:05 - End Time 2025-04-20 23:33:05 [2025-04-20 23:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953652', 'tblTempUsageDetail_20' ) start [2025-04-20 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953652', 'tblTempUsageDetail_20' ) end [2025-04-20 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953652', 'tblTempVendorCDR_20' ) start [2025-04-20 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953652', 'tblTempVendorCDR_20' ) end [2025-04-20 23:33:18] Production.INFO: ProcessCDR(1,14953652,1,1,2) [2025-04-20 23:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953652', 'tblTempUsageDetail_20' ) start [2025-04-20 23:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953652', 'tblTempUsageDetail_20' ) end [2025-04-20 23:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 23:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 23:33:22] Production.INFO: ==9085== Releasing lock... [2025-04-20 23:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 23:33:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-20 23:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 20:34:06 [end_date_ymd] => 2025-04-20 23:34:06 [RateCDR] => 1 ) [2025-04-20 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-20 20:34:06' and `end` < '2025-04-20 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-20 23:34:19] Production.INFO: count ==1164 [2025-04-20 23:34:19] Production.ERROR: pbx CDR StartTime 2025-04-20 20:34:06 - End Time 2025-04-20 23:34:06 [2025-04-20 23:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953657', 'tblTempUsageDetail_20' ) start [2025-04-20 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953657', 'tblTempUsageDetail_20' ) end [2025-04-20 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953657', 'tblTempVendorCDR_20' ) start [2025-04-20 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953657', 'tblTempVendorCDR_20' ) end [2025-04-20 23:34:19] Production.INFO: ProcessCDR(1,14953657,1,1,2) [2025-04-20 23:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953657', 'tblTempUsageDetail_20' ) start [2025-04-20 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953657', 'tblTempUsageDetail_20' ) end [2025-04-20 23:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 23:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 23:34:22] Production.INFO: ==9160== Releasing lock... [2025-04-20 23:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 23:34:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-20 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 20:35:05 [end_date_ymd] => 2025-04-20 23:35:05 [RateCDR] => 1 ) [2025-04-20 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-20 20:35:05' and `end` < '2025-04-20 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-20 23:35:17] Production.INFO: count ==1164 [2025-04-20 23:35:18] Production.ERROR: pbx CDR StartTime 2025-04-20 20:35:05 - End Time 2025-04-20 23:35:05 [2025-04-20 23:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953662', 'tblTempUsageDetail_20' ) start [2025-04-20 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953662', 'tblTempUsageDetail_20' ) end [2025-04-20 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953662', 'tblTempVendorCDR_20' ) start [2025-04-20 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953662', 'tblTempVendorCDR_20' ) end [2025-04-20 23:35:18] Production.INFO: ProcessCDR(1,14953662,1,1,2) [2025-04-20 23:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953662', 'tblTempUsageDetail_20' ) start [2025-04-20 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953662', 'tblTempUsageDetail_20' ) end [2025-04-20 23:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 23:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 23:35:21] Production.INFO: ==9232== Releasing lock... [2025-04-20 23:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 23:35:21] Production.INFO: 37 MB #Memory Used# [2025-04-20 23:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 20:36:06 [end_date_ymd] => 2025-04-20 23:36:06 [RateCDR] => 1 ) [2025-04-20 23:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 20:36:06' and `end` < '2025-04-20 23:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 23:36:18] Production.INFO: count ==1159 [2025-04-20 23:36:19] Production.ERROR: pbx CDR StartTime 2025-04-20 20:36:06 - End Time 2025-04-20 23:36:06 [2025-04-20 23:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953667', 'tblTempUsageDetail_20' ) start [2025-04-20 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953667', 'tblTempUsageDetail_20' ) end [2025-04-20 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953667', 'tblTempVendorCDR_20' ) start [2025-04-20 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953667', 'tblTempVendorCDR_20' ) end [2025-04-20 23:36:19] Production.INFO: ProcessCDR(1,14953667,1,1,2) [2025-04-20 23:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953667', 'tblTempUsageDetail_20' ) start [2025-04-20 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953667', 'tblTempUsageDetail_20' ) end [2025-04-20 23:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 23:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 23:36:22] Production.INFO: ==9311== Releasing lock... [2025-04-20 23:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 23:36:22] Production.INFO: 37 MB #Memory Used# [2025-04-20 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 20:37:05 [end_date_ymd] => 2025-04-20 23:37:05 [RateCDR] => 1 ) [2025-04-20 23:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 20:37:05' and `end` < '2025-04-20 23:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 23:37:18] Production.INFO: count ==1157 [2025-04-20 23:37:18] Production.ERROR: pbx CDR StartTime 2025-04-20 20:37:05 - End Time 2025-04-20 23:37:05 [2025-04-20 23:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953672', 'tblTempUsageDetail_20' ) start [2025-04-20 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953672', 'tblTempUsageDetail_20' ) end [2025-04-20 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953672', 'tblTempVendorCDR_20' ) start [2025-04-20 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953672', 'tblTempVendorCDR_20' ) end [2025-04-20 23:37:18] Production.INFO: ProcessCDR(1,14953672,1,1,2) [2025-04-20 23:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953672', 'tblTempUsageDetail_20' ) start [2025-04-20 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953672', 'tblTempUsageDetail_20' ) end [2025-04-20 23:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 23:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 23:37:22] Production.INFO: ==9383== Releasing lock... [2025-04-20 23:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 23:37:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-20 23:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 20:38:05 [end_date_ymd] => 2025-04-20 23:38:05 [RateCDR] => 1 ) [2025-04-20 23:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 20:38:05' and `end` < '2025-04-20 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-20 23:38:18] Production.INFO: count ==1151 [2025-04-20 23:38:18] Production.ERROR: pbx CDR StartTime 2025-04-20 20:38:05 - End Time 2025-04-20 23:38:05 [2025-04-20 23:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953677', 'tblTempUsageDetail_20' ) start [2025-04-20 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953677', 'tblTempUsageDetail_20' ) end [2025-04-20 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953677', 'tblTempVendorCDR_20' ) start [2025-04-20 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953677', 'tblTempVendorCDR_20' ) end [2025-04-20 23:38:19] Production.INFO: ProcessCDR(1,14953677,1,1,2) [2025-04-20 23:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953677', 'tblTempUsageDetail_20' ) start [2025-04-20 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953677', 'tblTempUsageDetail_20' ) end [2025-04-20 23:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 23:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 23:38:22] Production.INFO: ==9457== Releasing lock... [2025-04-20 23:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 23:38:22] Production.INFO: 37 MB #Memory Used# [2025-04-20 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 20:39:05 [end_date_ymd] => 2025-04-20 23:39:05 [RateCDR] => 1 ) [2025-04-20 23:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 20:39:05' and `end` < '2025-04-20 23:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 23:39:17] Production.INFO: count ==1145 [2025-04-20 23:39:18] Production.ERROR: pbx CDR StartTime 2025-04-20 20:39:05 - End Time 2025-04-20 23:39:05 [2025-04-20 23:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953682', 'tblTempUsageDetail_20' ) start [2025-04-20 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953682', 'tblTempUsageDetail_20' ) end [2025-04-20 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953682', 'tblTempVendorCDR_20' ) start [2025-04-20 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953682', 'tblTempVendorCDR_20' ) end [2025-04-20 23:39:18] Production.INFO: ProcessCDR(1,14953682,1,1,2) [2025-04-20 23:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953682', 'tblTempUsageDetail_20' ) start [2025-04-20 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953682', 'tblTempUsageDetail_20' ) end [2025-04-20 23:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 23:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 23:39:21] Production.INFO: ==9530== Releasing lock... [2025-04-20 23:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 23:39:21] Production.INFO: 37 MB #Memory Used# [2025-04-20 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 20:40:06 [end_date_ymd] => 2025-04-20 23:40:06 [RateCDR] => 1 ) [2025-04-20 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-20 20:40:06' and `end` < '2025-04-20 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-20 23:40:19] Production.INFO: count ==1146 [2025-04-20 23:40:19] Production.ERROR: pbx CDR StartTime 2025-04-20 20:40:06 - End Time 2025-04-20 23:40:06 [2025-04-20 23:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953688', 'tblTempUsageDetail_20' ) start [2025-04-20 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953688', 'tblTempUsageDetail_20' ) end [2025-04-20 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953688', 'tblTempVendorCDR_20' ) start [2025-04-20 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953688', 'tblTempVendorCDR_20' ) end [2025-04-20 23:40:19] Production.INFO: ProcessCDR(1,14953688,1,1,2) [2025-04-20 23:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953688', 'tblTempUsageDetail_20' ) start [2025-04-20 23:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953688', 'tblTempUsageDetail_20' ) end [2025-04-20 23:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 23:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 23:40:23] Production.INFO: ==9611== Releasing lock... [2025-04-20 23:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 23:40:23] Production.INFO: 37 MB #Memory Used# [2025-04-20 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 20:41:05 [end_date_ymd] => 2025-04-20 23:41:05 [RateCDR] => 1 ) [2025-04-20 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-20 20:41:05' and `end` < '2025-04-20 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-20 23:41:17] Production.INFO: count ==1109 [2025-04-20 23:41:18] Production.ERROR: pbx CDR StartTime 2025-04-20 20:41:05 - End Time 2025-04-20 23:41:05 [2025-04-20 23:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953693', 'tblTempUsageDetail_20' ) start [2025-04-20 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953693', 'tblTempUsageDetail_20' ) end [2025-04-20 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953693', 'tblTempVendorCDR_20' ) start [2025-04-20 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953693', 'tblTempVendorCDR_20' ) end [2025-04-20 23:41:18] Production.INFO: ProcessCDR(1,14953693,1,1,2) [2025-04-20 23:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953693', 'tblTempUsageDetail_20' ) start [2025-04-20 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953693', 'tblTempUsageDetail_20' ) end [2025-04-20 23:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 23:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 23:41:21] Production.INFO: ==9697== Releasing lock... [2025-04-20 23:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 23:41:21] Production.INFO: 36.75 MB #Memory Used# [2025-04-20 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 20:42:05 [end_date_ymd] => 2025-04-20 23:42:05 [RateCDR] => 1 ) [2025-04-20 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-20 20:42:05' and `end` < '2025-04-20 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-20 23:42:18] Production.INFO: count ==1106 [2025-04-20 23:42:18] Production.ERROR: pbx CDR StartTime 2025-04-20 20:42:05 - End Time 2025-04-20 23:42:05 [2025-04-20 23:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953698', 'tblTempUsageDetail_20' ) start [2025-04-20 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953698', 'tblTempUsageDetail_20' ) end [2025-04-20 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953698', 'tblTempVendorCDR_20' ) start [2025-04-20 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953698', 'tblTempVendorCDR_20' ) end [2025-04-20 23:42:18] Production.INFO: ProcessCDR(1,14953698,1,1,2) [2025-04-20 23:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953698', 'tblTempUsageDetail_20' ) start [2025-04-20 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953698', 'tblTempUsageDetail_20' ) end [2025-04-20 23:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 23:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 23:42:22] Production.INFO: ==9778== Releasing lock... [2025-04-20 23:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 23:42:22] Production.INFO: 37 MB #Memory Used# [2025-04-20 23:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 20:43:04 [end_date_ymd] => 2025-04-20 23:43:04 [RateCDR] => 1 ) [2025-04-20 23:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 20:43:04' and `end` < '2025-04-20 23:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 23:43:17] Production.INFO: count ==1103 [2025-04-20 23:43:17] Production.ERROR: pbx CDR StartTime 2025-04-20 20:43:04 - End Time 2025-04-20 23:43:04 [2025-04-20 23:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953703', 'tblTempUsageDetail_20' ) start [2025-04-20 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953703', 'tblTempUsageDetail_20' ) end [2025-04-20 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953703', 'tblTempVendorCDR_20' ) start [2025-04-20 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953703', 'tblTempVendorCDR_20' ) end [2025-04-20 23:43:17] Production.INFO: ProcessCDR(1,14953703,1,1,2) [2025-04-20 23:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953703', 'tblTempUsageDetail_20' ) start [2025-04-20 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953703', 'tblTempUsageDetail_20' ) end [2025-04-20 23:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 23:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 23:43:21] Production.INFO: ==9854== Releasing lock... [2025-04-20 23:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 23:43:21] Production.INFO: 36.5 MB #Memory Used# [2025-04-20 23:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 20:44:06 [end_date_ymd] => 2025-04-20 23:44:06 [RateCDR] => 1 ) [2025-04-20 23:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 20:44:06' and `end` < '2025-04-20 23:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 23:44:18] Production.INFO: count ==1092 [2025-04-20 23:44:19] Production.ERROR: pbx CDR StartTime 2025-04-20 20:44:06 - End Time 2025-04-20 23:44:06 [2025-04-20 23:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953708', 'tblTempUsageDetail_20' ) start [2025-04-20 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953708', 'tblTempUsageDetail_20' ) end [2025-04-20 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953708', 'tblTempVendorCDR_20' ) start [2025-04-20 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953708', 'tblTempVendorCDR_20' ) end [2025-04-20 23:44:19] Production.INFO: ProcessCDR(1,14953708,1,1,2) [2025-04-20 23:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953708', 'tblTempUsageDetail_20' ) start [2025-04-20 23:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953708', 'tblTempUsageDetail_20' ) end [2025-04-20 23:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 23:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 23:44:23] Production.INFO: ==9926== Releasing lock... [2025-04-20 23:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 23:44:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-20 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 20:45:05 [end_date_ymd] => 2025-04-20 23:45:05 [RateCDR] => 1 ) [2025-04-20 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-20 20:45:05' and `end` < '2025-04-20 23:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 23:45:18] Production.INFO: count ==1092 [2025-04-20 23:45:18] Production.ERROR: pbx CDR StartTime 2025-04-20 20:45:05 - End Time 2025-04-20 23:45:05 [2025-04-20 23:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953713', 'tblTempUsageDetail_20' ) start [2025-04-20 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953713', 'tblTempUsageDetail_20' ) end [2025-04-20 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953713', 'tblTempVendorCDR_20' ) start [2025-04-20 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953713', 'tblTempVendorCDR_20' ) end [2025-04-20 23:45:18] Production.INFO: ProcessCDR(1,14953713,1,1,2) [2025-04-20 23:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953713', 'tblTempUsageDetail_20' ) start [2025-04-20 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953713', 'tblTempUsageDetail_20' ) end [2025-04-20 23:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 23:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 23:45:22] Production.INFO: ==10004== Releasing lock... [2025-04-20 23:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 23:45:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-20 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 20:46:05 [end_date_ymd] => 2025-04-20 23:46:05 [RateCDR] => 1 ) [2025-04-20 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-20 20:46:05' and `end` < '2025-04-20 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-20 23:46:18] Production.INFO: count ==1090 [2025-04-20 23:46:18] Production.ERROR: pbx CDR StartTime 2025-04-20 20:46:05 - End Time 2025-04-20 23:46:05 [2025-04-20 23:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953718', 'tblTempUsageDetail_20' ) start [2025-04-20 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953718', 'tblTempUsageDetail_20' ) end [2025-04-20 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953718', 'tblTempVendorCDR_20' ) start [2025-04-20 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953718', 'tblTempVendorCDR_20' ) end [2025-04-20 23:46:18] Production.INFO: ProcessCDR(1,14953718,1,1,2) [2025-04-20 23:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953718', 'tblTempUsageDetail_20' ) start [2025-04-20 23:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953718', 'tblTempUsageDetail_20' ) end [2025-04-20 23:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 23:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 23:46:22] Production.INFO: ==10076== Releasing lock... [2025-04-20 23:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 23:46:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-20 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 20:47:05 [end_date_ymd] => 2025-04-20 23:47:05 [RateCDR] => 1 ) [2025-04-20 23:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 20:47:05' and `end` < '2025-04-20 23:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 23:47:18] Production.INFO: count ==1089 [2025-04-20 23:47:18] Production.ERROR: pbx CDR StartTime 2025-04-20 20:47:05 - End Time 2025-04-20 23:47:05 [2025-04-20 23:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953723', 'tblTempUsageDetail_20' ) start [2025-04-20 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953723', 'tblTempUsageDetail_20' ) end [2025-04-20 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953723', 'tblTempVendorCDR_20' ) start [2025-04-20 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953723', 'tblTempVendorCDR_20' ) end [2025-04-20 23:47:18] Production.INFO: ProcessCDR(1,14953723,1,1,2) [2025-04-20 23:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953723', 'tblTempUsageDetail_20' ) start [2025-04-20 23:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953723', 'tblTempUsageDetail_20' ) end [2025-04-20 23:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 23:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 23:47:22] Production.INFO: ==10152== Releasing lock... [2025-04-20 23:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 23:47:22] Production.INFO: 37 MB #Memory Used# [2025-04-20 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 20:48:05 [end_date_ymd] => 2025-04-20 23:48:05 [RateCDR] => 1 ) [2025-04-20 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-20 20:48:05' and `end` < '2025-04-20 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-20 23:48:18] Production.INFO: count ==1086 [2025-04-20 23:48:18] Production.ERROR: pbx CDR StartTime 2025-04-20 20:48:05 - End Time 2025-04-20 23:48:05 [2025-04-20 23:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953728', 'tblTempUsageDetail_20' ) start [2025-04-20 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953728', 'tblTempUsageDetail_20' ) end [2025-04-20 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953728', 'tblTempVendorCDR_20' ) start [2025-04-20 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953728', 'tblTempVendorCDR_20' ) end [2025-04-20 23:48:18] Production.INFO: ProcessCDR(1,14953728,1,1,2) [2025-04-20 23:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953728', 'tblTempUsageDetail_20' ) start [2025-04-20 23:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953728', 'tblTempUsageDetail_20' ) end [2025-04-20 23:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 23:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 23:48:21] Production.INFO: ==10266== Releasing lock... [2025-04-20 23:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 23:48:21] Production.INFO: 36.25 MB #Memory Used# [2025-04-20 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 20:49:05 [end_date_ymd] => 2025-04-20 23:49:05 [RateCDR] => 1 ) [2025-04-20 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-20 20:49:05' and `end` < '2025-04-20 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-20 23:49:18] Production.INFO: count ==1089 [2025-04-20 23:49:18] Production.ERROR: pbx CDR StartTime 2025-04-20 20:49:05 - End Time 2025-04-20 23:49:05 [2025-04-20 23:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953733', 'tblTempUsageDetail_20' ) start [2025-04-20 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953733', 'tblTempUsageDetail_20' ) end [2025-04-20 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953733', 'tblTempVendorCDR_20' ) start [2025-04-20 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953733', 'tblTempVendorCDR_20' ) end [2025-04-20 23:49:18] Production.INFO: ProcessCDR(1,14953733,1,1,2) [2025-04-20 23:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953733', 'tblTempUsageDetail_20' ) start [2025-04-20 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953733', 'tblTempUsageDetail_20' ) end [2025-04-20 23:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 23:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 23:49:22] Production.INFO: ==10337== Releasing lock... [2025-04-20 23:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 23:49:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-20 23:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 20:50:06 [end_date_ymd] => 2025-04-20 23:50:06 [RateCDR] => 1 ) [2025-04-20 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-20 20:50:06' and `end` < '2025-04-20 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-20 23:50:19] Production.INFO: count ==1089 [2025-04-20 23:50:19] Production.ERROR: pbx CDR StartTime 2025-04-20 20:50:06 - End Time 2025-04-20 23:50:06 [2025-04-20 23:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953739', 'tblTempUsageDetail_20' ) start [2025-04-20 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953739', 'tblTempUsageDetail_20' ) end [2025-04-20 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953739', 'tblTempVendorCDR_20' ) start [2025-04-20 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953739', 'tblTempVendorCDR_20' ) end [2025-04-20 23:50:19] Production.INFO: ProcessCDR(1,14953739,1,1,2) [2025-04-20 23:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953739', 'tblTempUsageDetail_20' ) start [2025-04-20 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953739', 'tblTempUsageDetail_20' ) end [2025-04-20 23:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 23:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 23:50:22] Production.INFO: ==10414== Releasing lock... [2025-04-20 23:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 23:50:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-20 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 20:51:05 [end_date_ymd] => 2025-04-20 23:51:05 [RateCDR] => 1 ) [2025-04-20 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-20 20:51:05' and `end` < '2025-04-20 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-20 23:51:18] Production.INFO: count ==1066 [2025-04-20 23:51:18] Production.ERROR: pbx CDR StartTime 2025-04-20 20:51:05 - End Time 2025-04-20 23:51:05 [2025-04-20 23:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953744', 'tblTempUsageDetail_20' ) start [2025-04-20 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953744', 'tblTempUsageDetail_20' ) end [2025-04-20 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953744', 'tblTempVendorCDR_20' ) start [2025-04-20 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953744', 'tblTempVendorCDR_20' ) end [2025-04-20 23:51:18] Production.INFO: ProcessCDR(1,14953744,1,1,2) [2025-04-20 23:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953744', 'tblTempUsageDetail_20' ) start [2025-04-20 23:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953744', 'tblTempUsageDetail_20' ) end [2025-04-20 23:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 23:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 23:51:22] Production.INFO: ==10493== Releasing lock... [2025-04-20 23:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 23:51:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-20 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 20:52:05 [end_date_ymd] => 2025-04-20 23:52:05 [RateCDR] => 1 ) [2025-04-20 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-20 20:52:05' and `end` < '2025-04-20 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-20 23:52:18] Production.INFO: count ==1063 [2025-04-20 23:52:18] Production.ERROR: pbx CDR StartTime 2025-04-20 20:52:05 - End Time 2025-04-20 23:52:05 [2025-04-20 23:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953749', 'tblTempUsageDetail_20' ) start [2025-04-20 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953749', 'tblTempUsageDetail_20' ) end [2025-04-20 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953749', 'tblTempVendorCDR_20' ) start [2025-04-20 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953749', 'tblTempVendorCDR_20' ) end [2025-04-20 23:52:18] Production.INFO: ProcessCDR(1,14953749,1,1,2) [2025-04-20 23:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953749', 'tblTempUsageDetail_20' ) start [2025-04-20 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953749', 'tblTempUsageDetail_20' ) end [2025-04-20 23:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 23:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 23:52:22] Production.INFO: ==10566== Releasing lock... [2025-04-20 23:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 23:52:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-20 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 20:53:05 [end_date_ymd] => 2025-04-20 23:53:05 [RateCDR] => 1 ) [2025-04-20 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-20 20:53:05' and `end` < '2025-04-20 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-20 23:53:18] Production.INFO: count ==1066 [2025-04-20 23:53:18] Production.ERROR: pbx CDR StartTime 2025-04-20 20:53:05 - End Time 2025-04-20 23:53:05 [2025-04-20 23:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953754', 'tblTempUsageDetail_20' ) start [2025-04-20 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953754', 'tblTempUsageDetail_20' ) end [2025-04-20 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953754', 'tblTempVendorCDR_20' ) start [2025-04-20 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953754', 'tblTempVendorCDR_20' ) end [2025-04-20 23:53:18] Production.INFO: ProcessCDR(1,14953754,1,1,2) [2025-04-20 23:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953754', 'tblTempUsageDetail_20' ) start [2025-04-20 23:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953754', 'tblTempUsageDetail_20' ) end [2025-04-20 23:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 23:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 23:53:23] Production.INFO: ==10641== Releasing lock... [2025-04-20 23:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 23:53:23] Production.INFO: 36.5 MB #Memory Used# [2025-04-20 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 20:54:05 [end_date_ymd] => 2025-04-20 23:54:05 [RateCDR] => 1 ) [2025-04-20 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-20 20:54:05' and `end` < '2025-04-20 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-20 23:54:18] Production.INFO: count ==1064 [2025-04-20 23:54:18] Production.ERROR: pbx CDR StartTime 2025-04-20 20:54:05 - End Time 2025-04-20 23:54:05 [2025-04-20 23:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953759', 'tblTempUsageDetail_20' ) start [2025-04-20 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953759', 'tblTempUsageDetail_20' ) end [2025-04-20 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953759', 'tblTempVendorCDR_20' ) start [2025-04-20 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953759', 'tblTempVendorCDR_20' ) end [2025-04-20 23:54:18] Production.INFO: ProcessCDR(1,14953759,1,1,2) [2025-04-20 23:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953759', 'tblTempUsageDetail_20' ) start [2025-04-20 23:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953759', 'tblTempUsageDetail_20' ) end [2025-04-20 23:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 23:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 23:54:23] Production.INFO: ==10715== Releasing lock... [2025-04-20 23:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 23:54:23] Production.INFO: 36 MB #Memory Used# [2025-04-20 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 20:55:05 [end_date_ymd] => 2025-04-20 23:55:05 [RateCDR] => 1 ) [2025-04-20 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-20 20:55:05' and `end` < '2025-04-20 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-20 23:55:18] Production.INFO: count ==1060 [2025-04-20 23:55:18] Production.ERROR: pbx CDR StartTime 2025-04-20 20:55:05 - End Time 2025-04-20 23:55:05 [2025-04-20 23:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953764', 'tblTempUsageDetail_20' ) start [2025-04-20 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953764', 'tblTempUsageDetail_20' ) end [2025-04-20 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953764', 'tblTempVendorCDR_20' ) start [2025-04-20 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953764', 'tblTempVendorCDR_20' ) end [2025-04-20 23:55:18] Production.INFO: ProcessCDR(1,14953764,1,1,2) [2025-04-20 23:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953764', 'tblTempUsageDetail_20' ) start [2025-04-20 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953764', 'tblTempUsageDetail_20' ) end [2025-04-20 23:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 23:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 23:55:22] Production.INFO: ==10786== Releasing lock... [2025-04-20 23:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 23:55:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-20 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 20:56:05 [end_date_ymd] => 2025-04-20 23:56:05 [RateCDR] => 1 ) [2025-04-20 23:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-20 20:56:05' and `end` < '2025-04-20 23:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-20 23:56:18] Production.INFO: count ==1057 [2025-04-20 23:56:18] Production.ERROR: pbx CDR StartTime 2025-04-20 20:56:05 - End Time 2025-04-20 23:56:05 [2025-04-20 23:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953769', 'tblTempUsageDetail_20' ) start [2025-04-20 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953769', 'tblTempUsageDetail_20' ) end [2025-04-20 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953769', 'tblTempVendorCDR_20' ) start [2025-04-20 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953769', 'tblTempVendorCDR_20' ) end [2025-04-20 23:56:18] Production.INFO: ProcessCDR(1,14953769,1,1,2) [2025-04-20 23:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953769', 'tblTempUsageDetail_20' ) start [2025-04-20 23:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953769', 'tblTempUsageDetail_20' ) end [2025-04-20 23:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-20 23:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-20 23:56:23] Production.INFO: ==10863== Releasing lock... [2025-04-20 23:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 23:56:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-20 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 20:57:05 [end_date_ymd] => 2025-04-20 23:57:05 [RateCDR] => 1 ) [2025-04-20 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-20 20:57:05' and `end` < '2025-04-20 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-20 23:57:18] Production.INFO: count ==1056 [2025-04-20 23:57:18] Production.ERROR: pbx CDR StartTime 2025-04-20 20:57:05 - End Time 2025-04-20 23:57:05 [2025-04-20 23:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953774', 'tblTempUsageDetail_20' ) start [2025-04-20 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953774', 'tblTempUsageDetail_20' ) end [2025-04-20 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953774', 'tblTempVendorCDR_20' ) start [2025-04-20 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953774', 'tblTempVendorCDR_20' ) end [2025-04-20 23:57:18] Production.INFO: ProcessCDR(1,14953774,1,1,2) [2025-04-20 23:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953774', 'tblTempUsageDetail_20' ) start [2025-04-20 23:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953774', 'tblTempUsageDetail_20' ) end [2025-04-20 23:57:24] Production.ERROR: pbx prc_insertCDR start [2025-04-20 23:57:24] Production.ERROR: pbx prc_insertCDR end [2025-04-20 23:57:24] Production.INFO: ==10941== Releasing lock... [2025-04-20 23:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 23:57:24] Production.INFO: 36.75 MB #Memory Used# [2025-04-20 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 20:58:05 [end_date_ymd] => 2025-04-20 23:58:05 [RateCDR] => 1 ) [2025-04-20 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-20 20:58:05' and `end` < '2025-04-20 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-20 23:58:17] Production.INFO: count ==1054 [2025-04-20 23:58:18] Production.ERROR: pbx CDR StartTime 2025-04-20 20:58:05 - End Time 2025-04-20 23:58:05 [2025-04-20 23:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953779', 'tblTempUsageDetail_20' ) start [2025-04-20 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953779', 'tblTempUsageDetail_20' ) end [2025-04-20 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953779', 'tblTempVendorCDR_20' ) start [2025-04-20 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953779', 'tblTempVendorCDR_20' ) end [2025-04-20 23:58:18] Production.INFO: ProcessCDR(1,14953779,1,1,2) [2025-04-20 23:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953779', 'tblTempUsageDetail_20' ) start [2025-04-20 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953779', 'tblTempUsageDetail_20' ) end [2025-04-20 23:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-20 23:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-20 23:58:21] Production.INFO: ==11017== Releasing lock... [2025-04-20 23:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 23:58:21] Production.INFO: 36.75 MB #Memory Used# [2025-04-20 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-20 20:59:05 [end_date_ymd] => 2025-04-20 23:59:05 [RateCDR] => 1 ) [2025-04-20 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-20 20:59:05' and `end` < '2025-04-20 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-20 23:59:18] Production.INFO: count ==1050 [2025-04-20 23:59:18] Production.ERROR: pbx CDR StartTime 2025-04-20 20:59:05 - End Time 2025-04-20 23:59:05 [2025-04-20 23:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-20 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953784', 'tblTempUsageDetail_20' ) start [2025-04-20 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14953784', 'tblTempUsageDetail_20' ) end [2025-04-20 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953784', 'tblTempVendorCDR_20' ) start [2025-04-20 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14953784', 'tblTempVendorCDR_20' ) end [2025-04-20 23:59:18] Production.INFO: ProcessCDR(1,14953784,1,1,2) [2025-04-20 23:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14953784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14953784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-20 23:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14953784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14953784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-20 23:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953784', 'tblTempUsageDetail_20' ) start [2025-04-20 23:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14953784', 'tblTempUsageDetail_20' ) end [2025-04-20 23:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-20 23:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-20 23:59:22] Production.INFO: ==11094== Releasing lock... [2025-04-20 23:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-20 23:59:22] Production.INFO: 36.5 MB #Memory Used#