[2025-11-24 00:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-23 21:00:07 [end_date_ymd] => 2025-11-24 00:00:07 [RateCDR] => 1 ) [2025-11-24 00:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-23 21:00:07' and `end` < '2025-11-24 00:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-24 00:00:20] Production.INFO: count ==735 [2025-11-24 00:00:21] Production.ERROR: pbx CDR StartTime 2025-11-23 21:00:07 - End Time 2025-11-24 00:00:07 [2025-11-24 00:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-24 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16256417', 'tblTempUsageDetail_20' ) start [2025-11-24 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16256417', 'tblTempUsageDetail_20' ) end [2025-11-24 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16256417', 'tblTempVendorCDR_20' ) start [2025-11-24 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16256417', 'tblTempVendorCDR_20' ) end [2025-11-24 00:00:21] Production.INFO: ProcessCDR(1,16256417,1,1,2) [2025-11-24 00:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16256417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-24 00:03:06] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16256417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-24 00:03:06] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16256417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-24 00:06:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16256417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-24 00:06:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16256417', 'tblTempUsageDetail_20' ) start [2025-11-24 00:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16256417', 'tblTempUsageDetail_20' ) end [2025-11-24 00:06:20] Production.ERROR: pbx prc_insertCDR start [2025-11-24 00:06:20] Production.ERROR: pbx prc_insertCDR end [2025-11-24 00:06:21] Production.INFO: ==24086== Releasing lock... [2025-11-24 00:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-24 00:06:21] Production.INFO: 36.75 MB #Memory Used# [2025-11-24 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-23 22:00:06 [end_date_ymd] => 2025-11-24 01:00:06 [RateCDR] => 1 ) [2025-11-24 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-11-23 22:00:06' and `end` < '2025-11-24 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-11-24 01:00:22] Production.INFO: count ==399 [2025-11-24 01:00:23] Production.ERROR: pbx CDR StartTime 2025-11-23 22:00:06 - End Time 2025-11-24 01:00:06 [2025-11-24 01:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-24 01:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16256664', 'tblTempUsageDetail_20' ) start [2025-11-24 01:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16256664', 'tblTempUsageDetail_20' ) end [2025-11-24 01:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16256664', 'tblTempVendorCDR_20' ) start [2025-11-24 01:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16256664', 'tblTempVendorCDR_20' ) end [2025-11-24 01:00:23] Production.INFO: ProcessCDR(1,16256664,1,1,2) [2025-11-24 01:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16256664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-24 01:02:56] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16256664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-24 01:02:56] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16256664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-24 01:05:58] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16256664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-24 01:05:58] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16256664', 'tblTempUsageDetail_20' ) start [2025-11-24 01:05:58] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16256664', 'tblTempUsageDetail_20' ) end [2025-11-24 01:05:58] Production.ERROR: pbx prc_insertCDR start [2025-11-24 01:05:58] Production.ERROR: pbx prc_insertCDR end [2025-11-24 01:05:58] Production.INFO: ==28528== Releasing lock... [2025-11-24 01:05:58] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-24 01:05:58] Production.INFO: 32 MB #Memory Used# [2025-11-24 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-23 23:00:06 [end_date_ymd] => 2025-11-24 02:00:06 [RateCDR] => 1 ) [2025-11-24 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-11-23 23:00:06' and `end` < '2025-11-24 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-11-24 02:00:18] Production.INFO: count ==381 [2025-11-24 02:00:18] Production.ERROR: pbx CDR StartTime 2025-11-23 23:00:06 - End Time 2025-11-24 02:00:06 [2025-11-24 02:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-24 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16256910', 'tblTempUsageDetail_20' ) start [2025-11-24 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16256910', 'tblTempUsageDetail_20' ) end [2025-11-24 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16256910', 'tblTempVendorCDR_20' ) start [2025-11-24 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16256910', 'tblTempVendorCDR_20' ) end [2025-11-24 02:00:18] Production.INFO: ProcessCDR(1,16256910,1,1,2) [2025-11-24 02:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16256910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-24 02:02:53] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16256910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-24 02:02:53] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16256910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-24 02:06:07] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16256910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-24 02:06:07] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16256910', 'tblTempUsageDetail_20' ) start [2025-11-24 02:06:08] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16256910', 'tblTempUsageDetail_20' ) end [2025-11-24 02:06:08] Production.ERROR: pbx prc_insertCDR start [2025-11-24 02:06:08] Production.ERROR: pbx prc_insertCDR end [2025-11-24 02:06:08] Production.INFO: ==551== Releasing lock... [2025-11-24 02:06:08] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-24 02:06:08] Production.INFO: 31.5 MB #Memory Used# [2025-11-24 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-24 00:00:06 [end_date_ymd] => 2025-11-24 03:00:06 [RateCDR] => 1 ) [2025-11-24 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-11-24 00:00:06' and `end` < '2025-11-24 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-11-24 03:00:18] Production.INFO: count ==368 [2025-11-24 03:00:18] Production.ERROR: pbx CDR StartTime 2025-11-24 00:00:06 - End Time 2025-11-24 03:00:06 [2025-11-24 03:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-24 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16257157', 'tblTempUsageDetail_20' ) start [2025-11-24 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16257157', 'tblTempUsageDetail_20' ) end [2025-11-24 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16257157', 'tblTempVendorCDR_20' ) start [2025-11-24 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16257157', 'tblTempVendorCDR_20' ) end [2025-11-24 03:00:18] Production.INFO: ProcessCDR(1,16257157,1,1,2) [2025-11-24 03:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16257157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-24 03:02:53] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16257157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-24 03:02:53] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16257157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-24 03:05:59] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16257157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-24 03:05:59] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16257157', 'tblTempUsageDetail_20' ) start [2025-11-24 03:06:00] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16257157', 'tblTempUsageDetail_20' ) end [2025-11-24 03:06:00] Production.ERROR: pbx prc_insertCDR start [2025-11-24 03:06:00] Production.ERROR: pbx prc_insertCDR end [2025-11-24 03:06:00] Production.INFO: ==5226== Releasing lock... [2025-11-24 03:06:00] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-24 03:06:00] Production.INFO: 31 MB #Memory Used# [2025-11-24 04:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-24 01:00:07 [end_date_ymd] => 2025-11-24 04:00:07 [RateCDR] => 1 ) [2025-11-24 04:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-24 01:00:07' and `end` < '2025-11-24 04:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-24 04:00:19] Production.INFO: count ==279 [2025-11-24 04:00:19] Production.ERROR: pbx CDR StartTime 2025-11-24 01:00:07 - End Time 2025-11-24 04:00:07 [2025-11-24 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-24 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16257406', 'tblTempUsageDetail_20' ) start [2025-11-24 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16257406', 'tblTempUsageDetail_20' ) end [2025-11-24 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16257406', 'tblTempVendorCDR_20' ) start [2025-11-24 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16257406', 'tblTempVendorCDR_20' ) end [2025-11-24 04:00:19] Production.INFO: ProcessCDR(1,16257406,1,1,2) [2025-11-24 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16257406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-24 04:02:56] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16257406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-24 04:02:56] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16257406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-24 04:06:09] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16257406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-24 04:06:09] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16257406', 'tblTempUsageDetail_20' ) start [2025-11-24 04:06:10] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16257406', 'tblTempUsageDetail_20' ) end [2025-11-24 04:06:10] Production.ERROR: pbx prc_insertCDR start [2025-11-24 04:06:10] Production.ERROR: pbx prc_insertCDR end [2025-11-24 04:06:10] Production.INFO: ==10141== Releasing lock... [2025-11-24 04:06:10] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-24 04:06:10] Production.INFO: 30.75 MB #Memory Used# [2025-11-24 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-24 02:00:06 [end_date_ymd] => 2025-11-24 05:00:06 [RateCDR] => 1 ) [2025-11-24 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-11-24 02:00:06' and `end` < '2025-11-24 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-11-24 05:00:19] Production.INFO: count ==182 [2025-11-24 05:00:19] Production.ERROR: pbx CDR StartTime 2025-11-24 02:00:06 - End Time 2025-11-24 05:00:06 [2025-11-24 05:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-24 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16257654', 'tblTempUsageDetail_20' ) start [2025-11-24 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16257654', 'tblTempUsageDetail_20' ) end [2025-11-24 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16257654', 'tblTempVendorCDR_20' ) start [2025-11-24 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16257654', 'tblTempVendorCDR_20' ) end [2025-11-24 05:00:19] Production.INFO: ProcessCDR(1,16257654,1,1,2) [2025-11-24 05:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16257654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-24 05:02:52] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16257654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-24 05:02:52] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16257654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-24 05:05:55] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16257654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-24 05:05:55] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16257654', 'tblTempUsageDetail_20' ) start [2025-11-24 05:05:56] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16257654', 'tblTempUsageDetail_20' ) end [2025-11-24 05:05:56] Production.ERROR: pbx prc_insertCDR start [2025-11-24 05:05:56] Production.ERROR: pbx prc_insertCDR end [2025-11-24 05:05:56] Production.INFO: ==14760== Releasing lock... [2025-11-24 05:05:56] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-24 05:05:56] Production.INFO: 29.75 MB #Memory Used# [2025-11-24 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-24 03:00:06 [end_date_ymd] => 2025-11-24 06:00:06 [RateCDR] => 1 ) [2025-11-24 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-11-24 03:00:06' and `end` < '2025-11-24 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-11-24 06:00:18] Production.INFO: count ==137 [2025-11-24 06:00:18] Production.ERROR: pbx CDR StartTime 2025-11-24 03:00:06 - End Time 2025-11-24 06:00:06 [2025-11-24 06:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-24 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16257901', 'tblTempUsageDetail_20' ) start [2025-11-24 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16257901', 'tblTempUsageDetail_20' ) end [2025-11-24 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16257901', 'tblTempVendorCDR_20' ) start [2025-11-24 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16257901', 'tblTempVendorCDR_20' ) end [2025-11-24 06:00:18] Production.INFO: ProcessCDR(1,16257901,1,1,2) [2025-11-24 06:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16257901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-24 06:02:49] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16257901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-24 06:02:49] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16257901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-24 06:05:51] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16257901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-24 06:05:51] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16257901', 'tblTempUsageDetail_20' ) start [2025-11-24 06:05:51] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16257901', 'tblTempUsageDetail_20' ) end [2025-11-24 06:05:51] Production.ERROR: pbx prc_insertCDR start [2025-11-24 06:05:51] Production.ERROR: pbx prc_insertCDR end [2025-11-24 06:05:51] Production.INFO: ==19302== Releasing lock... [2025-11-24 06:05:51] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-24 06:05:51] Production.INFO: 29.5 MB #Memory Used# [2025-11-24 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-24 04:00:06 [end_date_ymd] => 2025-11-24 07:00:06 [RateCDR] => 1 ) [2025-11-24 07:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-24 04:00:06' and `end` < '2025-11-24 07:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-24 07:00:18] Production.INFO: count ==132 [2025-11-24 07:00:18] Production.ERROR: pbx CDR StartTime 2025-11-24 04:00:06 - End Time 2025-11-24 07:00:06 [2025-11-24 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-24 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16258147', 'tblTempUsageDetail_20' ) start [2025-11-24 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16258147', 'tblTempUsageDetail_20' ) end [2025-11-24 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16258147', 'tblTempVendorCDR_20' ) start [2025-11-24 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16258147', 'tblTempVendorCDR_20' ) end [2025-11-24 07:00:18] Production.INFO: ProcessCDR(1,16258147,1,1,2) [2025-11-24 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16258147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-24 07:02:52] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16258147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-24 07:02:52] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16258147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-24 07:06:07] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16258147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-24 07:06:07] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16258147', 'tblTempUsageDetail_20' ) start [2025-11-24 07:06:07] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16258147', 'tblTempUsageDetail_20' ) end [2025-11-24 07:06:07] Production.ERROR: pbx prc_insertCDR start [2025-11-24 07:06:07] Production.ERROR: pbx prc_insertCDR end [2025-11-24 07:06:07] Production.INFO: ==23848== Releasing lock... [2025-11-24 07:06:07] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-24 07:06:07] Production.INFO: 29.25 MB #Memory Used# [2025-11-24 08:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-24 05:00:07 [end_date_ymd] => 2025-11-24 08:00:07 [RateCDR] => 1 ) [2025-11-24 08:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-24 05:00:07' and `end` < '2025-11-24 08:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-24 08:00:18] Production.INFO: count ==285 [2025-11-24 08:00:19] Production.ERROR: pbx CDR StartTime 2025-11-24 05:00:07 - End Time 2025-11-24 08:00:07 [2025-11-24 08:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-24 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16258395', 'tblTempUsageDetail_20' ) start [2025-11-24 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16258395', 'tblTempUsageDetail_20' ) end [2025-11-24 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16258395', 'tblTempVendorCDR_20' ) start [2025-11-24 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16258395', 'tblTempVendorCDR_20' ) end [2025-11-24 08:00:19] Production.INFO: ProcessCDR(1,16258395,1,1,2) [2025-11-24 08:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16258395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-24 08:02:53] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16258395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-24 08:02:53] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16258395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-24 08:06:10] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16258395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-24 08:06:10] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16258395', 'tblTempUsageDetail_20' ) start [2025-11-24 08:06:11] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16258395', 'tblTempUsageDetail_20' ) end [2025-11-24 08:06:11] Production.ERROR: pbx prc_insertCDR start [2025-11-24 08:06:11] Production.ERROR: pbx prc_insertCDR end [2025-11-24 08:06:11] Production.INFO: ==28416== Releasing lock... [2025-11-24 08:06:11] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-24 08:06:11] Production.INFO: 30.75 MB #Memory Used# [2025-11-24 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-24 06:00:06 [end_date_ymd] => 2025-11-24 09:00:06 [RateCDR] => 1 ) [2025-11-24 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-11-24 06:00:06' and `end` < '2025-11-24 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-11-24 09:00:18] Production.INFO: count ==1100 [2025-11-24 09:00:18] Production.ERROR: pbx CDR StartTime 2025-11-24 06:00:06 - End Time 2025-11-24 09:00:06 [2025-11-24 09:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-24 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16258642', 'tblTempUsageDetail_20' ) start [2025-11-24 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16258642', 'tblTempUsageDetail_20' ) end [2025-11-24 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16258642', 'tblTempVendorCDR_20' ) start [2025-11-24 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16258642', 'tblTempVendorCDR_20' ) end [2025-11-24 09:00:18] Production.INFO: ProcessCDR(1,16258642,1,1,2) [2025-11-24 09:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16258642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-24 09:02:49] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16258642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-24 09:02:49] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16258642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-24 09:05:58] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16258642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-24 09:05:58] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16258642', 'tblTempUsageDetail_20' ) start [2025-11-24 09:05:58] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16258642', 'tblTempUsageDetail_20' ) end [2025-11-24 09:05:58] Production.ERROR: pbx prc_insertCDR start [2025-11-24 09:05:58] Production.ERROR: pbx prc_insertCDR end [2025-11-24 09:05:58] Production.INFO: ==1481== Releasing lock... [2025-11-24 09:05:58] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-24 09:05:58] Production.INFO: 37 MB #Memory Used# [2025-11-24 10:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-24 07:00:07 [end_date_ymd] => 2025-11-24 10:00:07 [RateCDR] => 1 ) [2025-11-24 10:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-24 07:00:07' and `end` < '2025-11-24 10:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-24 10:00:35] Production.INFO: count ==2996 [2025-11-24 10:00:36] Production.ERROR: pbx CDR StartTime 2025-11-24 07:00:07 - End Time 2025-11-24 10:00:07 [2025-11-24 10:00:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-24 10:00:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16258888', 'tblTempUsageDetail_20' ) start [2025-11-24 10:00:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16258888', 'tblTempUsageDetail_20' ) end [2025-11-24 10:00:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16258888', 'tblTempVendorCDR_20' ) start [2025-11-24 10:00:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16258888', 'tblTempVendorCDR_20' ) end [2025-11-24 10:00:36] Production.INFO: ProcessCDR(1,16258888,1,1,2) [2025-11-24 10:00:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16258888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-24 10:03:43] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16258888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-24 10:03:43] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16258888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-24 10:06:46] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16258888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-24 10:06:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16258888', 'tblTempUsageDetail_20' ) start [2025-11-24 10:06:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16258888', 'tblTempUsageDetail_20' ) end [2025-11-24 10:06:46] Production.ERROR: pbx prc_insertCDR start [2025-11-24 10:06:48] Production.ERROR: pbx prc_insertCDR end [2025-11-24 10:06:48] Production.INFO: ==6074== Releasing lock... [2025-11-24 10:06:48] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-24 10:06:48] Production.INFO: 50.5 MB #Memory Used# [2025-11-24 11:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-11-24 08:00:05 [end_date_ymd] => 2025-11-24 11:00:05 [RateCDR] => 1 ) [2025-11-24 11: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-11-24 08:00:05' and `end` < '2025-11-24 11: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-11-24 11:00:20] Production.INFO: count ==5157 [2025-11-24 11:00:23] Production.ERROR: pbx CDR StartTime 2025-11-24 08:00:05 - End Time 2025-11-24 11:00:05 [2025-11-24 11:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-24 11:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16259135', 'tblTempUsageDetail_20' ) start [2025-11-24 11:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16259135', 'tblTempUsageDetail_20' ) end [2025-11-24 11:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16259135', 'tblTempVendorCDR_20' ) start [2025-11-24 11:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16259135', 'tblTempVendorCDR_20' ) end [2025-11-24 11:00:23] Production.INFO: ProcessCDR(1,16259135,1,1,2) [2025-11-24 11:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16259135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-24 11:02:57] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16259135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-24 11:02:57] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16259135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-24 11:06:16] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16259135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-24 11:06:16] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16259135', 'tblTempUsageDetail_20' ) start [2025-11-24 11:06:16] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16259135', 'tblTempUsageDetail_20' ) end [2025-11-24 11:06:16] Production.ERROR: pbx prc_insertCDR start [2025-11-24 11:06:19] Production.ERROR: pbx prc_insertCDR end [2025-11-24 11:06:19] Production.INFO: ==10784== Releasing lock... [2025-11-24 11:06:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-24 11:06:19] Production.INFO: 66.75 MB #Memory Used# [2025-11-24 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-24 09:00:06 [end_date_ymd] => 2025-11-24 12:00:06 [RateCDR] => 1 ) [2025-11-24 12:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-24 09:00:06' and `end` < '2025-11-24 12:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-24 12:00:26] Production.INFO: count ==6245 [2025-11-24 12:00:29] Production.ERROR: pbx CDR StartTime 2025-11-24 09:00:06 - End Time 2025-11-24 12:00:06 [2025-11-24 12:00:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-24 12:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16259383', 'tblTempUsageDetail_20' ) start [2025-11-24 12:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16259383', 'tblTempUsageDetail_20' ) end [2025-11-24 12:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16259383', 'tblTempVendorCDR_20' ) start [2025-11-24 12:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16259383', 'tblTempVendorCDR_20' ) end [2025-11-24 12:00:30] Production.INFO: ProcessCDR(1,16259383,1,1,2) [2025-11-24 12:00:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16259383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-24 12:03:05] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16259383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-24 12:03:05] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16259383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-24 12:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16259383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-24 12:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16259383', 'tblTempUsageDetail_20' ) start [2025-11-24 12:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16259383', 'tblTempUsageDetail_20' ) end [2025-11-24 12:06:20] Production.ERROR: pbx prc_insertCDR start [2025-11-24 12:06:23] Production.ERROR: pbx prc_insertCDR end [2025-11-24 12:06:23] Production.INFO: ==15165== Releasing lock... [2025-11-24 12:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-24 12:06:23] Production.INFO: 75 MB #Memory Used# [2025-11-24 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-24 10:00:06 [end_date_ymd] => 2025-11-24 13:00:06 [RateCDR] => 1 ) [2025-11-24 13:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-24 10:00:06' and `end` < '2025-11-24 13:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-24 13:00:19] Production.INFO: count ==6385 [2025-11-24 13:00:23] Production.ERROR: pbx CDR StartTime 2025-11-24 10:00:06 - End Time 2025-11-24 13:00:06 [2025-11-24 13:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-24 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16259629', 'tblTempUsageDetail_20' ) start [2025-11-24 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16259629', 'tblTempUsageDetail_20' ) end [2025-11-24 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16259629', 'tblTempVendorCDR_20' ) start [2025-11-24 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16259629', 'tblTempVendorCDR_20' ) end [2025-11-24 13:00:23] Production.INFO: ProcessCDR(1,16259629,1,1,2) [2025-11-24 13:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16259629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-24 13:02:53] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16259629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-24 13:02:53] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16259629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-24 13:03:00] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16259629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-24 13:03:00] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16259629', 'tblTempUsageDetail_20' ) start [2025-11-24 13:03:00] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16259629', 'tblTempUsageDetail_20' ) end [2025-11-24 13:03:00] Production.ERROR: pbx prc_insertCDR start [2025-11-24 13:03:03] Production.ERROR: pbx prc_insertCDR end [2025-11-24 13:03:04] Production.INFO: ==20185== Releasing lock... [2025-11-24 13:03:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-24 13:03:04] Production.INFO: 76 MB #Memory Used# [2025-11-24 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-24 11:00:06 [end_date_ymd] => 2025-11-24 14:00:06 [RateCDR] => 1 ) [2025-11-24 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-11-24 11:00:06' and `end` < '2025-11-24 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-11-24 14:00:20] Production.INFO: count ==6029 [2025-11-24 14:00:23] Production.ERROR: pbx CDR StartTime 2025-11-24 11:00:06 - End Time 2025-11-24 14:00:06 [2025-11-24 14:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-24 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16259877', 'tblTempUsageDetail_20' ) start [2025-11-24 14:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16259877', 'tblTempUsageDetail_20' ) end [2025-11-24 14:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16259877', 'tblTempVendorCDR_20' ) start [2025-11-24 14:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16259877', 'tblTempVendorCDR_20' ) end [2025-11-24 14:00:24] Production.INFO: ProcessCDR(1,16259877,1,1,2) [2025-11-24 14:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16259877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-24 14:00:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16259877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-24 14:00:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16259877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-24 14:03:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16259877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-24 14:03:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16259877', 'tblTempUsageDetail_20' ) start [2025-11-24 14:03:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16259877', 'tblTempUsageDetail_20' ) end [2025-11-24 14:03:45] Production.ERROR: pbx prc_insertCDR start [2025-11-24 14:03:48] Production.ERROR: pbx prc_insertCDR end [2025-11-24 14:03:48] Production.INFO: ==24834== Releasing lock... [2025-11-24 14:03:48] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-24 14:03:48] Production.INFO: 73.5 MB #Memory Used# [2025-11-24 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-24 12:00:06 [end_date_ymd] => 2025-11-24 15:00:06 [RateCDR] => 1 ) [2025-11-24 15:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-24 12:00:06' and `end` < '2025-11-24 15:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-24 15:00:22] Production.INFO: count ==5922 [2025-11-24 15:00:25] Production.ERROR: pbx CDR StartTime 2025-11-24 12:00:06 - End Time 2025-11-24 15:00:06 [2025-11-24 15:00:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-24 15:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16260124', 'tblTempUsageDetail_20' ) start [2025-11-24 15:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16260124', 'tblTempUsageDetail_20' ) end [2025-11-24 15:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16260124', 'tblTempVendorCDR_20' ) start [2025-11-24 15:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16260124', 'tblTempVendorCDR_20' ) end [2025-11-24 15:00:25] Production.INFO: ProcessCDR(1,16260124,1,1,2) [2025-11-24 15:00:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16260124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-24 15:03:01] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16260124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-24 15:03:01] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16260124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-24 15:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16260124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-24 15:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16260124', 'tblTempUsageDetail_20' ) start [2025-11-24 15:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16260124', 'tblTempUsageDetail_20' ) end [2025-11-24 15:06:24] Production.ERROR: pbx prc_insertCDR start [2025-11-24 15:06:27] Production.ERROR: pbx prc_insertCDR end [2025-11-24 15:06:27] Production.INFO: ==30184== Releasing lock... [2025-11-24 15:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-24 15:06:27] Production.INFO: 72.5 MB #Memory Used# [2025-11-24 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-24 13:00:06 [end_date_ymd] => 2025-11-24 16:00:06 [RateCDR] => 1 ) [2025-11-24 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-11-24 13:00:06' and `end` < '2025-11-24 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-11-24 16:00:21] Production.INFO: count ==5609 [2025-11-24 16:00:24] Production.ERROR: pbx CDR StartTime 2025-11-24 13:00:06 - End Time 2025-11-24 16:00:06 [2025-11-24 16:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-24 16:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16260371', 'tblTempUsageDetail_20' ) start [2025-11-24 16:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16260371', 'tblTempUsageDetail_20' ) end [2025-11-24 16:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16260371', 'tblTempVendorCDR_20' ) start [2025-11-24 16:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16260371', 'tblTempVendorCDR_20' ) end [2025-11-24 16:00:24] Production.INFO: ProcessCDR(1,16260371,1,1,2) [2025-11-24 16:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16260371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-24 16:03:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16260371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-24 16:03:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16260371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-24 16:06:57] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16260371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-24 16:06:57] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16260371', 'tblTempUsageDetail_20' ) start [2025-11-24 16:06:58] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16260371', 'tblTempUsageDetail_20' ) end [2025-11-24 16:06:58] Production.ERROR: pbx prc_insertCDR start [2025-11-24 16:07:00] Production.ERROR: pbx prc_insertCDR end [2025-11-24 16:07:00] Production.INFO: ==2897== Releasing lock... [2025-11-24 16:07:00] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-24 16:07:00] Production.INFO: 70.25 MB #Memory Used# [2025-11-24 17:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-24 14:00:07 [end_date_ymd] => 2025-11-24 17:00:07 [RateCDR] => 1 ) [2025-11-24 17:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-24 14:00:07' and `end` < '2025-11-24 17:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-24 17:00:21] Production.INFO: count ==5330 [2025-11-24 17:00:23] Production.ERROR: pbx CDR StartTime 2025-11-24 14:00:07 - End Time 2025-11-24 17:00:07 [2025-11-24 17:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-24 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16260618', 'tblTempUsageDetail_20' ) start [2025-11-24 17:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16260618', 'tblTempUsageDetail_20' ) end [2025-11-24 17:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16260618', 'tblTempVendorCDR_20' ) start [2025-11-24 17:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16260618', 'tblTempVendorCDR_20' ) end [2025-11-24 17:00:24] Production.INFO: ProcessCDR(1,16260618,1,1,2) [2025-11-24 17:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16260618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-24 17:03:14] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16260618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-24 17:03:14] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16260618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-24 17:06:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16260618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-24 17:06:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16260618', 'tblTempUsageDetail_20' ) start [2025-11-24 17:06:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16260618', 'tblTempUsageDetail_20' ) end [2025-11-24 17:06:38] Production.ERROR: pbx prc_insertCDR start [2025-11-24 17:06:40] Production.ERROR: pbx prc_insertCDR end [2025-11-24 17:06:40] Production.INFO: ==7916== Releasing lock... [2025-11-24 17:06:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-24 17:06:40] Production.INFO: 68.25 MB #Memory Used# [2025-11-24 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-24 15:00:06 [end_date_ymd] => 2025-11-24 18:00:06 [RateCDR] => 1 ) [2025-11-24 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-11-24 15:00:06' and `end` < '2025-11-24 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-11-24 18:00:19] Production.INFO: count ==4671 [2025-11-24 18:00:21] Production.ERROR: pbx CDR StartTime 2025-11-24 15:00:06 - End Time 2025-11-24 18:00:06 [2025-11-24 18:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-24 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16260861', 'tblTempUsageDetail_20' ) start [2025-11-24 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16260861', 'tblTempUsageDetail_20' ) end [2025-11-24 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16260861', 'tblTempVendorCDR_20' ) start [2025-11-24 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16260861', 'tblTempVendorCDR_20' ) end [2025-11-24 18:00:21] Production.INFO: ProcessCDR(1,16260861,1,1,2) [2025-11-24 18:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16260861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-24 18:03:05] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16260861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-24 18:03:05] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16260861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-24 18:06:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16260861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-24 18:06:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16260861', 'tblTempUsageDetail_20' ) start [2025-11-24 18:06:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16260861', 'tblTempUsageDetail_20' ) end [2025-11-24 18:06:19] Production.ERROR: pbx prc_insertCDR start [2025-11-24 18:06:21] Production.ERROR: pbx prc_insertCDR end [2025-11-24 18:06:21] Production.INFO: ==12464== Releasing lock... [2025-11-24 18:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-24 18:06:21] Production.INFO: 63.25 MB #Memory Used# [2025-11-24 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-24 16:00:06 [end_date_ymd] => 2025-11-24 19:00:06 [RateCDR] => 1 ) [2025-11-24 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-11-24 16:00:06' and `end` < '2025-11-24 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-11-24 19:00:20] Production.INFO: count ==3858 [2025-11-24 19:00:22] Production.ERROR: pbx CDR StartTime 2025-11-24 16:00:06 - End Time 2025-11-24 19:00:06 [2025-11-24 19:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-24 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16261109', 'tblTempUsageDetail_20' ) start [2025-11-24 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16261109', 'tblTempUsageDetail_20' ) end [2025-11-24 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16261109', 'tblTempVendorCDR_20' ) start [2025-11-24 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16261109', 'tblTempVendorCDR_20' ) end [2025-11-24 19:00:22] Production.INFO: ProcessCDR(1,16261109,1,1,2) [2025-11-24 19:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16261109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-24 19:03:00] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16261109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-24 19:03:00] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16261109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-24 19:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16261109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-24 19:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16261109', 'tblTempUsageDetail_20' ) start [2025-11-24 19:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16261109', 'tblTempUsageDetail_20' ) end [2025-11-24 19:06:23] Production.ERROR: pbx prc_insertCDR start [2025-11-24 19:06:24] Production.ERROR: pbx prc_insertCDR end [2025-11-24 19:06:24] Production.INFO: ==16889== Releasing lock... [2025-11-24 19:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-24 19:06:24] Production.INFO: 57 MB #Memory Used# [2025-11-24 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-24 17:00:06 [end_date_ymd] => 2025-11-24 20:00:06 [RateCDR] => 1 ) [2025-11-24 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-11-24 17:00:06' and `end` < '2025-11-24 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-11-24 20:00:18] Production.INFO: count ==2724 [2025-11-24 20:00:20] Production.ERROR: pbx CDR StartTime 2025-11-24 17:00:06 - End Time 2025-11-24 20:00:06 [2025-11-24 20:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-24 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16261356', 'tblTempUsageDetail_20' ) start [2025-11-24 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16261356', 'tblTempUsageDetail_20' ) end [2025-11-24 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16261356', 'tblTempVendorCDR_20' ) start [2025-11-24 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16261356', 'tblTempVendorCDR_20' ) end [2025-11-24 20:00:20] Production.INFO: ProcessCDR(1,16261356,1,1,2) [2025-11-24 20:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16261356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-24 20:03:00] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16261356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-24 20:03:00] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16261356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-24 20:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16261356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-24 20:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16261356', 'tblTempUsageDetail_20' ) start [2025-11-24 20:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16261356', 'tblTempUsageDetail_20' ) end [2025-11-24 20:06:21] Production.ERROR: pbx prc_insertCDR start [2025-11-24 20:06:22] Production.ERROR: pbx prc_insertCDR end [2025-11-24 20:06:22] Production.INFO: ==21612== Releasing lock... [2025-11-24 20:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-24 20:06:22] Production.INFO: 49.25 MB #Memory Used# [2025-11-24 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-24 18:00:06 [end_date_ymd] => 2025-11-24 21:00:06 [RateCDR] => 1 ) [2025-11-24 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-11-24 18:00:06' and `end` < '2025-11-24 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-11-24 21:00:18] Production.INFO: count ==1854 [2025-11-24 21:00:19] Production.ERROR: pbx CDR StartTime 2025-11-24 18:00:06 - End Time 2025-11-24 21:00:06 [2025-11-24 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-24 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16261603', 'tblTempUsageDetail_20' ) start [2025-11-24 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16261603', 'tblTempUsageDetail_20' ) end [2025-11-24 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16261603', 'tblTempVendorCDR_20' ) start [2025-11-24 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16261603', 'tblTempVendorCDR_20' ) end [2025-11-24 21:00:19] Production.INFO: ProcessCDR(1,16261603,1,1,2) [2025-11-24 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16261603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-24 21:02:58] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16261603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-24 21:02:58] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16261603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-24 21:06:14] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16261603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-24 21:06:14] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16261603', 'tblTempUsageDetail_20' ) start [2025-11-24 21:06:14] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16261603', 'tblTempUsageDetail_20' ) end [2025-11-24 21:06:14] Production.ERROR: pbx prc_insertCDR start [2025-11-24 21:06:15] Production.ERROR: pbx prc_insertCDR end [2025-11-24 21:06:15] Production.INFO: ==26193== Releasing lock... [2025-11-24 21:06:15] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-24 21:06:15] Production.INFO: 42 MB #Memory Used# [2025-11-24 22:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-24 19:00:07 [end_date_ymd] => 2025-11-24 22:00:07 [RateCDR] => 1 ) [2025-11-24 22:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-24 19:00:07' and `end` < '2025-11-24 22:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-24 22:00:19] Production.INFO: count ==1310 [2025-11-24 22:00:19] Production.ERROR: pbx CDR StartTime 2025-11-24 19:00:07 - End Time 2025-11-24 22:00:07 [2025-11-24 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-24 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16261850', 'tblTempUsageDetail_20' ) start [2025-11-24 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16261850', 'tblTempUsageDetail_20' ) end [2025-11-24 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16261850', 'tblTempVendorCDR_20' ) start [2025-11-24 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16261850', 'tblTempVendorCDR_20' ) end [2025-11-24 22:00:19] Production.INFO: ProcessCDR(1,16261850,1,1,2) [2025-11-24 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16261850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-24 22:03:01] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16261850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-24 22:03:01] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16261850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-24 22:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16261850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-24 22:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16261850', 'tblTempUsageDetail_20' ) start [2025-11-24 22:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16261850', 'tblTempUsageDetail_20' ) end [2025-11-24 22:06:26] Production.ERROR: pbx prc_insertCDR start [2025-11-24 22:06:26] Production.ERROR: pbx prc_insertCDR end [2025-11-24 22:06:26] Production.INFO: ==30716== Releasing lock... [2025-11-24 22:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-24 22:06:26] Production.INFO: 38.5 MB #Memory Used# [2025-11-24 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-24 20:00:06 [end_date_ymd] => 2025-11-24 23:00:06 [RateCDR] => 1 ) [2025-11-24 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-11-24 20:00:06' and `end` < '2025-11-24 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-11-24 23:00:18] Production.INFO: count ==922 [2025-11-24 23:00:18] Production.ERROR: pbx CDR StartTime 2025-11-24 20:00:06 - End Time 2025-11-24 23:00:06 [2025-11-24 23:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-24 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16262097', 'tblTempUsageDetail_20' ) start [2025-11-24 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16262097', 'tblTempUsageDetail_20' ) end [2025-11-24 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16262097', 'tblTempVendorCDR_20' ) start [2025-11-24 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16262097', 'tblTempVendorCDR_20' ) end [2025-11-24 23:00:18] Production.INFO: ProcessCDR(1,16262097,1,1,2) [2025-11-24 23:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16262097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-24 23:02:55] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16262097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-24 23:02:55] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16262097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-24 23:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16262097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-24 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16262097', 'tblTempUsageDetail_20' ) start [2025-11-24 23:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16262097', 'tblTempUsageDetail_20' ) end [2025-11-24 23:06:22] Production.ERROR: pbx prc_insertCDR start [2025-11-24 23:06:22] Production.ERROR: pbx prc_insertCDR end [2025-11-24 23:06:22] Production.INFO: ==4559== Releasing lock... [2025-11-24 23:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-24 23:06:22] Production.INFO: 35.5 MB #Memory Used#