[2025-11-13 00:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-12 21:00:07 [end_date_ymd] => 2025-11-13 00:00:07 [RateCDR] => 1 ) [2025-11-13 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-12 21:00:07' and `end` < '2025-11-13 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-13 00:00:20] Production.INFO: count ==793 [2025-11-13 00:00:20] Production.ERROR: pbx CDR StartTime 2025-11-12 21:00:07 - End Time 2025-11-13 00:00:07 [2025-11-13 00:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-13 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16191212', 'tblTempUsageDetail_20' ) start [2025-11-13 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16191212', 'tblTempUsageDetail_20' ) end [2025-11-13 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16191212', 'tblTempVendorCDR_20' ) start [2025-11-13 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16191212', 'tblTempVendorCDR_20' ) end [2025-11-13 00:00:21] Production.INFO: ProcessCDR(1,16191212,1,1,2) [2025-11-13 00:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16191212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-13 00:02:49] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16191212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-13 00:02:49] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16191212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-13 00:02:53] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16191212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-13 00:02:53] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16191212', 'tblTempUsageDetail_20' ) start [2025-11-13 00:02:54] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16191212', 'tblTempUsageDetail_20' ) end [2025-11-13 00:02:54] Production.ERROR: pbx prc_insertCDR start [2025-11-13 00:02:54] Production.ERROR: pbx prc_insertCDR end [2025-11-13 00:02:55] Production.INFO: ==14800== Releasing lock... [2025-11-13 00:02:55] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-13 00:02:55] Production.INFO: 37.5 MB #Memory Used# [2025-11-13 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-12 22:00:06 [end_date_ymd] => 2025-11-13 01:00:06 [RateCDR] => 1 ) [2025-11-13 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-12 22:00:06' and `end` < '2025-11-13 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-13 01:00:18] Production.INFO: count ==469 [2025-11-13 01:00:19] Production.ERROR: pbx CDR StartTime 2025-11-12 22:00:06 - End Time 2025-11-13 01:00:06 [2025-11-13 01:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-13 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16191459', 'tblTempUsageDetail_20' ) start [2025-11-13 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16191459', 'tblTempUsageDetail_20' ) end [2025-11-13 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16191459', 'tblTempVendorCDR_20' ) start [2025-11-13 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16191459', 'tblTempVendorCDR_20' ) end [2025-11-13 01:00:19] Production.INFO: ProcessCDR(1,16191459,1,1,2) [2025-11-13 01:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16191459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-13 01:02:44] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16191459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-13 01:02:44] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16191459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-13 01:02:49] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16191459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-13 01:02:49] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16191459', 'tblTempUsageDetail_20' ) start [2025-11-13 01:02:49] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16191459', 'tblTempUsageDetail_20' ) end [2025-11-13 01:02:49] Production.ERROR: pbx prc_insertCDR start [2025-11-13 01:02:49] Production.ERROR: pbx prc_insertCDR end [2025-11-13 01:02:49] Production.INFO: ==19268== Releasing lock... [2025-11-13 01:02:49] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-13 01:02:49] Production.INFO: 32.5 MB #Memory Used# [2025-11-13 02:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-12 23:00:07 [end_date_ymd] => 2025-11-13 02:00:07 [RateCDR] => 1 ) [2025-11-13 02: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-12 23:00:07' and `end` < '2025-11-13 02: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-13 02:00:19] Production.INFO: count ==409 [2025-11-13 02:00:19] Production.ERROR: pbx CDR StartTime 2025-11-12 23:00:07 - End Time 2025-11-13 02:00:07 [2025-11-13 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-13 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16191706', 'tblTempUsageDetail_20' ) start [2025-11-13 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16191706', 'tblTempUsageDetail_20' ) end [2025-11-13 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16191706', 'tblTempVendorCDR_20' ) start [2025-11-13 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16191706', 'tblTempVendorCDR_20' ) end [2025-11-13 02:00:19] Production.INFO: ProcessCDR(1,16191706,1,1,2) [2025-11-13 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16191706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-13 02:02:46] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16191706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-13 02:02:46] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16191706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-13 02:02:51] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16191706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-13 02:02:51] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16191706', 'tblTempUsageDetail_20' ) start [2025-11-13 02:02:51] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16191706', 'tblTempUsageDetail_20' ) end [2025-11-13 02:02:51] Production.ERROR: pbx prc_insertCDR start [2025-11-13 02:02:51] Production.ERROR: pbx prc_insertCDR end [2025-11-13 02:02:51] Production.INFO: ==23974== Releasing lock... [2025-11-13 02:02:51] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-13 02:02:51] Production.INFO: 31.75 MB #Memory Used# [2025-11-13 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-13 00:00:06 [end_date_ymd] => 2025-11-13 03:00:06 [RateCDR] => 1 ) [2025-11-13 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-13 00:00:06' and `end` < '2025-11-13 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-13 03:00:19] Production.INFO: count ==377 [2025-11-13 03:00:19] Production.ERROR: pbx CDR StartTime 2025-11-13 00:00:06 - End Time 2025-11-13 03:00:06 [2025-11-13 03:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-13 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16191953', 'tblTempUsageDetail_20' ) start [2025-11-13 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16191953', 'tblTempUsageDetail_20' ) end [2025-11-13 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16191953', 'tblTempVendorCDR_20' ) start [2025-11-13 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16191953', 'tblTempVendorCDR_20' ) end [2025-11-13 03:00:19] Production.INFO: ProcessCDR(1,16191953,1,1,2) [2025-11-13 03:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16191953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-13 03:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16191953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-13 03:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16191953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-13 03:05:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16191953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-13 03:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16191953', 'tblTempUsageDetail_20' ) start [2025-11-13 03:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16191953', 'tblTempUsageDetail_20' ) end [2025-11-13 03:05:28] Production.ERROR: pbx prc_insertCDR start [2025-11-13 03:05:28] Production.ERROR: pbx prc_insertCDR end [2025-11-13 03:05:28] Production.INFO: ==28649== Releasing lock... [2025-11-13 03:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-13 03:05:28] Production.INFO: 31.5 MB #Memory Used# [2025-11-13 04:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-13 01:00:07 [end_date_ymd] => 2025-11-13 04:00:07 [RateCDR] => 1 ) [2025-11-13 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-13 01:00:07' and `end` < '2025-11-13 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-13 04:00:19] Production.INFO: count ==286 [2025-11-13 04:00:19] Production.ERROR: pbx CDR StartTime 2025-11-13 01:00:07 - End Time 2025-11-13 04:00:07 [2025-11-13 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-13 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16192201', 'tblTempUsageDetail_20' ) start [2025-11-13 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16192201', 'tblTempUsageDetail_20' ) end [2025-11-13 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16192201', 'tblTempVendorCDR_20' ) start [2025-11-13 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16192201', 'tblTempVendorCDR_20' ) end [2025-11-13 04:00:19] Production.INFO: ProcessCDR(1,16192201,1,1,2) [2025-11-13 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16192201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-13 04:02:50] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16192201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-13 04:02:50] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16192201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-13 04:05:48] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16192201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-13 04:05:48] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16192201', 'tblTempUsageDetail_20' ) start [2025-11-13 04:05:48] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16192201', 'tblTempUsageDetail_20' ) end [2025-11-13 04:05:48] Production.ERROR: pbx prc_insertCDR start [2025-11-13 04:05:48] Production.ERROR: pbx prc_insertCDR end [2025-11-13 04:05:48] Production.INFO: ==1296== Releasing lock... [2025-11-13 04:05:48] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-13 04:05:48] Production.INFO: 30.5 MB #Memory Used# [2025-11-13 05:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-11-13 02:00:05 [end_date_ymd] => 2025-11-13 05:00:05 [RateCDR] => 1 ) [2025-11-13 05: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-13 02:00:05' and `end` < '2025-11-13 05: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-13 05:00:19] Production.INFO: count ==211 [2025-11-13 05:00:19] Production.ERROR: pbx CDR StartTime 2025-11-13 02:00:05 - End Time 2025-11-13 05:00:05 [2025-11-13 05:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-13 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16192448', 'tblTempUsageDetail_20' ) start [2025-11-13 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16192448', 'tblTempUsageDetail_20' ) end [2025-11-13 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16192448', 'tblTempVendorCDR_20' ) start [2025-11-13 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16192448', 'tblTempVendorCDR_20' ) end [2025-11-13 05:00:19] Production.INFO: ProcessCDR(1,16192448,1,1,2) [2025-11-13 05:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16192448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-13 05:02:49] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16192448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-13 05:02:49] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16192448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-13 05:05:49] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16192448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-13 05:05:49] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16192448', 'tblTempUsageDetail_20' ) start [2025-11-13 05:05:49] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16192448', 'tblTempUsageDetail_20' ) end [2025-11-13 05:05:49] Production.ERROR: pbx prc_insertCDR start [2025-11-13 05:05:49] Production.ERROR: pbx prc_insertCDR end [2025-11-13 05:05:49] Production.INFO: ==5812== Releasing lock... [2025-11-13 05:05:49] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-13 05:05:49] Production.INFO: 29.75 MB #Memory Used# [2025-11-13 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-13 03:00:06 [end_date_ymd] => 2025-11-13 06:00:06 [RateCDR] => 1 ) [2025-11-13 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-13 03:00:06' and `end` < '2025-11-13 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-13 06:00:18] Production.INFO: count ==143 [2025-11-13 06:00:19] Production.ERROR: pbx CDR StartTime 2025-11-13 03:00:06 - End Time 2025-11-13 06:00:06 [2025-11-13 06:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-13 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16192696', 'tblTempUsageDetail_20' ) start [2025-11-13 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16192696', 'tblTempUsageDetail_20' ) end [2025-11-13 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16192696', 'tblTempVendorCDR_20' ) start [2025-11-13 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16192696', 'tblTempVendorCDR_20' ) end [2025-11-13 06:00:19] Production.INFO: ProcessCDR(1,16192696,1,1,2) [2025-11-13 06:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16192696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-13 06:02:43] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16192696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-13 06:02:43] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16192696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-13 06:05:51] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16192696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-13 06:05:51] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16192696', 'tblTempUsageDetail_20' ) start [2025-11-13 06:05:51] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16192696', 'tblTempUsageDetail_20' ) end [2025-11-13 06:05:51] Production.ERROR: pbx prc_insertCDR start [2025-11-13 06:05:51] Production.ERROR: pbx prc_insertCDR end [2025-11-13 06:05:51] Production.INFO: ==10197== Releasing lock... [2025-11-13 06:05:51] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-13 06:05:51] Production.INFO: 29.25 MB #Memory Used# [2025-11-13 07:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-13 04:00:07 [end_date_ymd] => 2025-11-13 07:00:07 [RateCDR] => 1 ) [2025-11-13 07: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-13 04:00:07' and `end` < '2025-11-13 07: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-13 07:00:19] Production.INFO: count ==140 [2025-11-13 07:00:19] Production.ERROR: pbx CDR StartTime 2025-11-13 04:00:07 - End Time 2025-11-13 07:00:07 [2025-11-13 07:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-13 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16192943', 'tblTempUsageDetail_20' ) start [2025-11-13 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16192943', 'tblTempUsageDetail_20' ) end [2025-11-13 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16192943', 'tblTempVendorCDR_20' ) start [2025-11-13 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16192943', 'tblTempVendorCDR_20' ) end [2025-11-13 07:00:19] Production.INFO: ProcessCDR(1,16192943,1,1,2) [2025-11-13 07:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16192943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-13 07:02:48] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16192943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-13 07:02:48] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16192943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-13 07:05:48] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16192943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-13 07:05:48] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16192943', 'tblTempUsageDetail_20' ) start [2025-11-13 07:05:48] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16192943', 'tblTempUsageDetail_20' ) end [2025-11-13 07:05:48] Production.ERROR: pbx prc_insertCDR start [2025-11-13 07:05:48] Production.ERROR: pbx prc_insertCDR end [2025-11-13 07:05:48] Production.INFO: ==14738== Releasing lock... [2025-11-13 07:05:48] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-13 07:05:48] Production.INFO: 29.5 MB #Memory Used# [2025-11-13 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-13 05:00:06 [end_date_ymd] => 2025-11-13 08:00:06 [RateCDR] => 1 ) [2025-11-13 08:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-13 05:00:06' and `end` < '2025-11-13 08:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-13 08:00:18] Production.INFO: count ==248 [2025-11-13 08:00:18] Production.ERROR: pbx CDR StartTime 2025-11-13 05:00:06 - End Time 2025-11-13 08:00:06 [2025-11-13 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-13 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16193190', 'tblTempUsageDetail_20' ) start [2025-11-13 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16193190', 'tblTempUsageDetail_20' ) end [2025-11-13 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16193190', 'tblTempVendorCDR_20' ) start [2025-11-13 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16193190', 'tblTempVendorCDR_20' ) end [2025-11-13 08:00:19] Production.INFO: ProcessCDR(1,16193190,1,1,2) [2025-11-13 08:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16193190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-13 08:02:45] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16193190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-13 08:02:45] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16193190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-13 08:05:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16193190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-13 08:05:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16193190', 'tblTempUsageDetail_20' ) start [2025-11-13 08:05:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16193190', 'tblTempUsageDetail_20' ) end [2025-11-13 08:05:45] Production.ERROR: pbx prc_insertCDR start [2025-11-13 08:05:45] Production.ERROR: pbx prc_insertCDR end [2025-11-13 08:05:45] Production.INFO: ==19012== Releasing lock... [2025-11-13 08:05:45] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-13 08:05:45] Production.INFO: 30.25 MB #Memory Used# [2025-11-13 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-13 06:00:06 [end_date_ymd] => 2025-11-13 09:00:06 [RateCDR] => 1 ) [2025-11-13 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-13 06:00:06' and `end` < '2025-11-13 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-13 09:00:18] Production.INFO: count ==842 [2025-11-13 09:00:19] Production.ERROR: pbx CDR StartTime 2025-11-13 06:00:06 - End Time 2025-11-13 09:00:06 [2025-11-13 09:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-13 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16193437', 'tblTempUsageDetail_20' ) start [2025-11-13 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16193437', 'tblTempUsageDetail_20' ) end [2025-11-13 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16193437', 'tblTempVendorCDR_20' ) start [2025-11-13 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16193437', 'tblTempVendorCDR_20' ) end [2025-11-13 09:00:19] Production.INFO: ProcessCDR(1,16193437,1,1,2) [2025-11-13 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16193437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-13 09:02:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16193437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-13 09:02:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16193437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-13 09:05:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16193437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-13 09:05:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16193437', 'tblTempUsageDetail_20' ) start [2025-11-13 09:05:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16193437', 'tblTempUsageDetail_20' ) end [2025-11-13 09:05:40] Production.ERROR: pbx prc_insertCDR start [2025-11-13 09:05:41] Production.ERROR: pbx prc_insertCDR end [2025-11-13 09:05:41] Production.INFO: ==24111== Releasing lock... [2025-11-13 09:05:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-13 09:05:41] Production.INFO: 35 MB #Memory Used# [2025-11-13 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-13 07:00:06 [end_date_ymd] => 2025-11-13 10:00:06 [RateCDR] => 1 ) [2025-11-13 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-11-13 07:00:06' and `end` < '2025-11-13 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-11-13 10:00:23] Production.INFO: count ==2585 [2025-11-13 10:00:25] Production.ERROR: pbx CDR StartTime 2025-11-13 07:00:06 - End Time 2025-11-13 10:00:06 [2025-11-13 10:00:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-13 10:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16193684', 'tblTempUsageDetail_20' ) start [2025-11-13 10:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16193684', 'tblTempUsageDetail_20' ) end [2025-11-13 10:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16193684', 'tblTempVendorCDR_20' ) start [2025-11-13 10:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16193684', 'tblTempVendorCDR_20' ) end [2025-11-13 10:00:25] Production.INFO: ProcessCDR(1,16193684,1,1,2) [2025-11-13 10:00:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16193684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-13 10:02:54] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16193684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-13 10:02:54] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16193684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-13 10:05:53] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16193684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-13 10:05:53] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16193684', 'tblTempUsageDetail_20' ) start [2025-11-13 10:05:54] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16193684', 'tblTempUsageDetail_20' ) end [2025-11-13 10:05:54] Production.ERROR: pbx prc_insertCDR start [2025-11-13 10:05:56] Production.ERROR: pbx prc_insertCDR end [2025-11-13 10:05:56] Production.INFO: ==29084== Releasing lock... [2025-11-13 10:05:56] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-13 10:05:56] Production.INFO: 48 MB #Memory Used# [2025-11-13 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-13 08:00:06 [end_date_ymd] => 2025-11-13 11:00:06 [RateCDR] => 1 ) [2025-11-13 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-11-13 08:00:06' and `end` < '2025-11-13 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-11-13 11:00:20] Production.INFO: count ==4321 [2025-11-13 11:00:22] Production.ERROR: pbx CDR StartTime 2025-11-13 08:00:06 - End Time 2025-11-13 11:00:06 [2025-11-13 11:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-13 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16193931', 'tblTempUsageDetail_20' ) start [2025-11-13 11:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16193931', 'tblTempUsageDetail_20' ) end [2025-11-13 11:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16193931', 'tblTempVendorCDR_20' ) start [2025-11-13 11:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16193931', 'tblTempVendorCDR_20' ) end [2025-11-13 11:00:23] Production.INFO: ProcessCDR(1,16193931,1,1,2) [2025-11-13 11:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16193931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-13 11:02:53] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16193931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-13 11:02:53] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16193931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-13 11:02:59] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16193931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-13 11:02:59] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16193931', 'tblTempUsageDetail_20' ) start [2025-11-13 11:03:00] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16193931', 'tblTempUsageDetail_20' ) end [2025-11-13 11:03:00] Production.ERROR: pbx prc_insertCDR start [2025-11-13 11:03:06] Production.ERROR: pbx prc_insertCDR end [2025-11-13 11:03:07] Production.INFO: ==1008== Releasing lock... [2025-11-13 11:03:07] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-13 11:03:07] Production.INFO: 60.5 MB #Memory Used# [2025-11-13 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-13 09:00:06 [end_date_ymd] => 2025-11-13 12:00:06 [RateCDR] => 1 ) [2025-11-13 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-13 09:00:06' and `end` < '2025-11-13 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-13 12:00:21] Production.INFO: count ==5338 [2025-11-13 12:00:23] Production.ERROR: pbx CDR StartTime 2025-11-13 09:00:06 - End Time 2025-11-13 12:00:06 [2025-11-13 12:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-13 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16194177', 'tblTempUsageDetail_20' ) start [2025-11-13 12:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16194177', 'tblTempUsageDetail_20' ) end [2025-11-13 12:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16194177', 'tblTempVendorCDR_20' ) start [2025-11-13 12:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16194177', 'tblTempVendorCDR_20' ) end [2025-11-13 12:00:24] Production.INFO: ProcessCDR(1,16194177,1,1,2) [2025-11-13 12:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16194177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-13 12:00:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16194177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-13 12:00:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16194177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-13 12:00:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16194177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-13 12:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16194177', 'tblTempUsageDetail_20' ) start [2025-11-13 12:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16194177', 'tblTempUsageDetail_20' ) end [2025-11-13 12:00:36] Production.ERROR: pbx prc_insertCDR start [2025-11-13 12:00:39] Production.ERROR: pbx prc_insertCDR end [2025-11-13 12:00:39] Production.INFO: ==5456== Releasing lock... [2025-11-13 12:00:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-13 12:00:39] Production.INFO: 68.25 MB #Memory Used# [2025-11-13 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-13 10:00:06 [end_date_ymd] => 2025-11-13 13:00:06 [RateCDR] => 1 ) [2025-11-13 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-13 10:00:06' and `end` < '2025-11-13 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-13 13:00:22] Production.INFO: count ==5228 [2025-11-13 13:00:24] Production.ERROR: pbx CDR StartTime 2025-11-13 10:00:06 - End Time 2025-11-13 13:00:06 [2025-11-13 13:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-13 13:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16194425', 'tblTempUsageDetail_20' ) start [2025-11-13 13:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16194425', 'tblTempUsageDetail_20' ) end [2025-11-13 13:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16194425', 'tblTempVendorCDR_20' ) start [2025-11-13 13:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16194425', 'tblTempVendorCDR_20' ) end [2025-11-13 13:00:25] Production.INFO: ProcessCDR(1,16194425,1,1,2) [2025-11-13 13:00:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16194425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-13 13:00:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16194425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-13 13:00:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16194425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-13 13:00:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16194425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-13 13:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16194425', 'tblTempUsageDetail_20' ) start [2025-11-13 13:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16194425', 'tblTempUsageDetail_20' ) end [2025-11-13 13:00:36] Production.ERROR: pbx prc_insertCDR start [2025-11-13 13:00:39] Production.ERROR: pbx prc_insertCDR end [2025-11-13 13:00:39] Production.INFO: ==9778== Releasing lock... [2025-11-13 13:00:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-13 13:00:39] Production.INFO: 67.5 MB #Memory Used# [2025-11-13 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-13 11:00:06 [end_date_ymd] => 2025-11-13 14:00:06 [RateCDR] => 1 ) [2025-11-13 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-13 11:00:06' and `end` < '2025-11-13 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-13 14:00:20] Production.INFO: count ==4974 [2025-11-13 14:00:23] Production.ERROR: pbx CDR StartTime 2025-11-13 11:00:06 - End Time 2025-11-13 14:00:06 [2025-11-13 14:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-13 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16194672', 'tblTempUsageDetail_20' ) start [2025-11-13 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16194672', 'tblTempUsageDetail_20' ) end [2025-11-13 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16194672', 'tblTempVendorCDR_20' ) start [2025-11-13 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16194672', 'tblTempVendorCDR_20' ) end [2025-11-13 14:00:23] Production.INFO: ProcessCDR(1,16194672,1,1,2) [2025-11-13 14:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16194672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-13 14:00:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16194672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-13 14:00:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16194672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-13 14:00:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16194672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-13 14:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16194672', 'tblTempUsageDetail_20' ) start [2025-11-13 14:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16194672', 'tblTempUsageDetail_20' ) end [2025-11-13 14:00:34] Production.ERROR: pbx prc_insertCDR start [2025-11-13 14:00:37] Production.ERROR: pbx prc_insertCDR end [2025-11-13 14:00:37] Production.INFO: ==14274== Releasing lock... [2025-11-13 14:00:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-13 14:00:37] Production.INFO: 65.5 MB #Memory Used# [2025-11-13 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-13 12:00:06 [end_date_ymd] => 2025-11-13 15:00:06 [RateCDR] => 1 ) [2025-11-13 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-13 12:00:06' and `end` < '2025-11-13 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-13 15:00:19] Production.INFO: count ==5080 [2025-11-13 15:00:22] Production.ERROR: pbx CDR StartTime 2025-11-13 12:00:06 - End Time 2025-11-13 15:00:06 [2025-11-13 15:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-13 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16194918', 'tblTempUsageDetail_20' ) start [2025-11-13 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16194918', 'tblTempUsageDetail_20' ) end [2025-11-13 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16194918', 'tblTempVendorCDR_20' ) start [2025-11-13 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16194918', 'tblTempVendorCDR_20' ) end [2025-11-13 15:00:22] Production.INFO: ProcessCDR(1,16194918,1,1,2) [2025-11-13 15:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16194918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-13 15:00:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16194918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-13 15:00:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16194918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-13 15:00:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16194918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-13 15:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16194918', 'tblTempUsageDetail_20' ) start [2025-11-13 15:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16194918', 'tblTempUsageDetail_20' ) end [2025-11-13 15:00:34] Production.ERROR: pbx prc_insertCDR start [2025-11-13 15:00:37] Production.ERROR: pbx prc_insertCDR end [2025-11-13 15:00:37] Production.INFO: ==19280== Releasing lock... [2025-11-13 15:00:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-13 15:00:37] Production.INFO: 66.25 MB #Memory Used# [2025-11-13 16:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-13 13:00:07 [end_date_ymd] => 2025-11-13 16:00:07 [RateCDR] => 1 ) [2025-11-13 16:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-13 13:00:07' and `end` < '2025-11-13 16:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-13 16:00:21] Production.INFO: count ==5095 [2025-11-13 16:00:23] Production.ERROR: pbx CDR StartTime 2025-11-13 13:00:07 - End Time 2025-11-13 16:00:07 [2025-11-13 16:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-13 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16195166', 'tblTempUsageDetail_20' ) start [2025-11-13 16:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16195166', 'tblTempUsageDetail_20' ) end [2025-11-13 16:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16195166', 'tblTempVendorCDR_20' ) start [2025-11-13 16:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16195166', 'tblTempVendorCDR_20' ) end [2025-11-13 16:00:24] Production.INFO: ProcessCDR(1,16195166,1,1,2) [2025-11-13 16:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16195166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-13 16:00:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16195166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-13 16:00:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16195166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-13 16:00:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16195166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-13 16:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16195166', 'tblTempUsageDetail_20' ) start [2025-11-13 16:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16195166', 'tblTempUsageDetail_20' ) end [2025-11-13 16:00:35] Production.ERROR: pbx prc_insertCDR start [2025-11-13 16:00:37] Production.ERROR: pbx prc_insertCDR end [2025-11-13 16:00:37] Production.INFO: ==24416== Releasing lock... [2025-11-13 16:00:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-13 16:00:37] Production.INFO: 66.25 MB #Memory Used# [2025-11-13 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-13 14:00:06 [end_date_ymd] => 2025-11-13 17:00:06 [RateCDR] => 1 ) [2025-11-13 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-11-13 14:00:06' and `end` < '2025-11-13 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-11-13 17:00:21] Production.INFO: count ==5100 [2025-11-13 17:00:24] Production.ERROR: pbx CDR StartTime 2025-11-13 14:00:06 - End Time 2025-11-13 17:00:06 [2025-11-13 17:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-13 17:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16195412', 'tblTempUsageDetail_20' ) start [2025-11-13 17:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16195412', 'tblTempUsageDetail_20' ) end [2025-11-13 17:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16195412', 'tblTempVendorCDR_20' ) start [2025-11-13 17:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16195412', 'tblTempVendorCDR_20' ) end [2025-11-13 17:00:24] Production.INFO: ProcessCDR(1,16195412,1,1,2) [2025-11-13 17:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16195412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-13 17:00:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16195412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-13 17:00:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16195412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-13 17:00:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16195412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-13 17:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16195412', 'tblTempUsageDetail_20' ) start [2025-11-13 17:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16195412', 'tblTempUsageDetail_20' ) end [2025-11-13 17:00:37] Production.ERROR: pbx prc_insertCDR start [2025-11-13 17:00:40] Production.ERROR: pbx prc_insertCDR end [2025-11-13 17:00:40] Production.INFO: ==28925== Releasing lock... [2025-11-13 17:00:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-13 17:00:40] Production.INFO: 66.5 MB #Memory Used# [2025-11-13 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-13 15:00:06 [end_date_ymd] => 2025-11-13 18:00:06 [RateCDR] => 1 ) [2025-11-13 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-13 15:00:06' and `end` < '2025-11-13 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-13 18:00:19] Production.INFO: count ==4449 [2025-11-13 18:00:21] Production.ERROR: pbx CDR StartTime 2025-11-13 15:00:06 - End Time 2025-11-13 18:00:06 [2025-11-13 18:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-13 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16195658', 'tblTempUsageDetail_20' ) start [2025-11-13 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16195658', 'tblTempUsageDetail_20' ) end [2025-11-13 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16195658', 'tblTempVendorCDR_20' ) start [2025-11-13 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16195658', 'tblTempVendorCDR_20' ) end [2025-11-13 18:00:21] Production.INFO: ProcessCDR(1,16195658,1,1,2) [2025-11-13 18:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16195658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-13 18:00:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16195658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-13 18:00:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16195658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-13 18:00:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16195658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-13 18:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16195658', 'tblTempUsageDetail_20' ) start [2025-11-13 18:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16195658', 'tblTempUsageDetail_20' ) end [2025-11-13 18:00:33] Production.ERROR: pbx prc_insertCDR start [2025-11-13 18:00:34] Production.ERROR: pbx prc_insertCDR end [2025-11-13 18:00:34] Production.INFO: ==1326== Releasing lock... [2025-11-13 18:00:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-13 18:00:34] Production.INFO: 61.5 MB #Memory Used# [2025-11-13 19:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-13 16:00:07 [end_date_ymd] => 2025-11-13 19:00:07 [RateCDR] => 1 ) [2025-11-13 19: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-13 16:00:07' and `end` < '2025-11-13 19: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-13 19:00:20] Production.INFO: count ==3545 [2025-11-13 19:00:21] Production.ERROR: pbx CDR StartTime 2025-11-13 16:00:07 - End Time 2025-11-13 19:00:07 [2025-11-13 19:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-13 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16195906', 'tblTempUsageDetail_20' ) start [2025-11-13 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16195906', 'tblTempUsageDetail_20' ) end [2025-11-13 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16195906', 'tblTempVendorCDR_20' ) start [2025-11-13 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16195906', 'tblTempVendorCDR_20' ) end [2025-11-13 19:00:21] Production.INFO: ProcessCDR(1,16195906,1,1,2) [2025-11-13 19:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16195906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-13 19:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16195906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-13 19:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16195906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-13 19:00:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16195906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-13 19:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16195906', 'tblTempUsageDetail_20' ) start [2025-11-13 19:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16195906', 'tblTempUsageDetail_20' ) end [2025-11-13 19:00:32] Production.ERROR: pbx prc_insertCDR start [2025-11-13 19:00:33] Production.ERROR: pbx prc_insertCDR end [2025-11-13 19:00:33] Production.INFO: ==6257== Releasing lock... [2025-11-13 19:00:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-13 19:00:33] Production.INFO: 55.25 MB #Memory Used# [2025-11-13 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-13 17:00:06 [end_date_ymd] => 2025-11-13 20:00:06 [RateCDR] => 1 ) [2025-11-13 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-13 17:00:06' and `end` < '2025-11-13 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-13 20:00:18] Production.INFO: count ==2588 [2025-11-13 20:00:19] Production.ERROR: pbx CDR StartTime 2025-11-13 17:00:06 - End Time 2025-11-13 20:00:06 [2025-11-13 20:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-13 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16196153', 'tblTempUsageDetail_20' ) start [2025-11-13 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16196153', 'tblTempUsageDetail_20' ) end [2025-11-13 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16196153', 'tblTempVendorCDR_20' ) start [2025-11-13 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16196153', 'tblTempVendorCDR_20' ) end [2025-11-13 20:00:20] Production.INFO: ProcessCDR(1,16196153,1,1,2) [2025-11-13 20:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16196153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-13 20:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16196153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-13 20:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16196153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-13 20:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16196153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-13 20:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16196153', 'tblTempUsageDetail_20' ) start [2025-11-13 20:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16196153', 'tblTempUsageDetail_20' ) end [2025-11-13 20:00:30] Production.ERROR: pbx prc_insertCDR start [2025-11-13 20:00:30] Production.ERROR: pbx prc_insertCDR end [2025-11-13 20:00:30] Production.INFO: ==10707== Releasing lock... [2025-11-13 20:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-13 20:00:30] Production.INFO: 47.5 MB #Memory Used# [2025-11-13 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-13 18:00:06 [end_date_ymd] => 2025-11-13 21:00:06 [RateCDR] => 1 ) [2025-11-13 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-13 18:00:06' and `end` < '2025-11-13 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-13 21:00:18] Production.INFO: count ==2007 [2025-11-13 21:00:19] Production.ERROR: pbx CDR StartTime 2025-11-13 18:00:06 - End Time 2025-11-13 21:00:06 [2025-11-13 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-13 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16196400', 'tblTempUsageDetail_20' ) start [2025-11-13 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16196400', 'tblTempUsageDetail_20' ) end [2025-11-13 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16196400', 'tblTempVendorCDR_20' ) start [2025-11-13 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16196400', 'tblTempVendorCDR_20' ) end [2025-11-13 21:00:19] Production.INFO: ProcessCDR(1,16196400,1,1,2) [2025-11-13 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16196400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-13 21:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16196400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-13 21:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16196400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-13 21:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16196400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-13 21:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16196400', 'tblTempUsageDetail_20' ) start [2025-11-13 21:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16196400', 'tblTempUsageDetail_20' ) end [2025-11-13 21:00:29] Production.ERROR: pbx prc_insertCDR start [2025-11-13 21:00:30] Production.ERROR: pbx prc_insertCDR end [2025-11-13 21:00:30] Production.INFO: ==15682== Releasing lock... [2025-11-13 21:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-13 21:00:30] Production.INFO: 43.25 MB #Memory Used# [2025-11-13 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-13 19:00:06 [end_date_ymd] => 2025-11-13 22:00:06 [RateCDR] => 1 ) [2025-11-13 22:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-13 19:00:06' and `end` < '2025-11-13 22:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-13 22:00:18] Production.INFO: count ==1659 [2025-11-13 22:00:18] Production.ERROR: pbx CDR StartTime 2025-11-13 19:00:06 - End Time 2025-11-13 22:00:06 [2025-11-13 22:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-13 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16196646', 'tblTempUsageDetail_20' ) start [2025-11-13 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16196646', 'tblTempUsageDetail_20' ) end [2025-11-13 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16196646', 'tblTempVendorCDR_20' ) start [2025-11-13 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16196646', 'tblTempVendorCDR_20' ) end [2025-11-13 22:00:19] Production.INFO: ProcessCDR(1,16196646,1,1,2) [2025-11-13 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16196646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-13 22:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16196646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-13 22:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16196646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-13 22:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16196646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-13 22:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16196646', 'tblTempUsageDetail_20' ) start [2025-11-13 22:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16196646', 'tblTempUsageDetail_20' ) end [2025-11-13 22:00:28] Production.ERROR: pbx prc_insertCDR start [2025-11-13 22:00:28] Production.ERROR: pbx prc_insertCDR end [2025-11-13 22:00:28] Production.INFO: ==20927== Releasing lock... [2025-11-13 22:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-13 22:00:28] Production.INFO: 40.5 MB #Memory Used# [2025-11-13 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-13 20:00:06 [end_date_ymd] => 2025-11-13 23:00:06 [RateCDR] => 1 ) [2025-11-13 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-13 20:00:06' and `end` < '2025-11-13 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-13 23:00:18] Production.INFO: count ==1282 [2025-11-13 23:00:19] Production.ERROR: pbx CDR StartTime 2025-11-13 20:00:06 - End Time 2025-11-13 23:00:06 [2025-11-13 23:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-13 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16196894', 'tblTempUsageDetail_20' ) start [2025-11-13 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16196894', 'tblTempUsageDetail_20' ) end [2025-11-13 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16196894', 'tblTempVendorCDR_20' ) start [2025-11-13 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16196894', 'tblTempVendorCDR_20' ) end [2025-11-13 23:00:19] Production.INFO: ProcessCDR(1,16196894,1,1,2) [2025-11-13 23:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16196894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-13 23:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16196894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-13 23:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16196894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-13 23:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16196894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-13 23:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16196894', 'tblTempUsageDetail_20' ) start [2025-11-13 23:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16196894', 'tblTempUsageDetail_20' ) end [2025-11-13 23:00:29] Production.ERROR: pbx prc_insertCDR start [2025-11-13 23:00:29] Production.ERROR: pbx prc_insertCDR end [2025-11-13 23:00:29] Production.INFO: ==25710== Releasing lock... [2025-11-13 23:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-13 23:00:29] Production.INFO: 38 MB #Memory Used#