[2025-06-14 00:25:05] Production.INFO: next invoice date [2025-06-14 00:25:05] Production.INFO: 2025-07-14 [2025-06-14 00:25:05] Production.INFO: getdaysdiff [2025-06-14 00:25:05] Production.INFO: +30 [2025-06-14 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (43,10,2,30,30,'RMScheduler',2025-06-14 00:25:05,1,0,,,0) [2025-06-14 00:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-06-13 21:25:06 [end_date_ymd] => 2025-06-14 00:25:06 [RateCDR] => 1 ) [2025-06-14 00:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-13 21:25:06' and `end` < '2025-06-14 00:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-14 00:25:18] Production.INFO: count ==616 [2025-06-14 00:25:18] Production.ERROR: pbx CDR StartTime 2025-06-13 21:25:06 - End Time 2025-06-14 00:25:06 [2025-06-14 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-14 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15290090', 'tblTempUsageDetail_20' ) start [2025-06-14 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15290090', 'tblTempUsageDetail_20' ) end [2025-06-14 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15290090', 'tblTempVendorCDR_20' ) start [2025-06-14 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15290090', 'tblTempVendorCDR_20' ) end [2025-06-14 00:25:18] Production.INFO: ProcessCDR(1,15290090,1,1,2) [2025-06-14 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15290090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-14 00:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15290090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-14 00:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15290090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-14 00:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15290090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-14 00:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15290090', 'tblTempUsageDetail_20' ) start [2025-06-14 00:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15290090', 'tblTempUsageDetail_20' ) end [2025-06-14 00:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-14 00:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-14 00:25:26] Production.INFO: ==1283== Releasing lock... [2025-06-14 00:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-14 00:25:26] Production.INFO: 37.25 MB #Memory Used# [2025-06-14 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-13 22:25:05 [end_date_ymd] => 2025-06-14 01:25:05 [RateCDR] => 1 ) [2025-06-14 01:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-13 22:25:05' and `end` < '2025-06-14 01:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-14 01:25:17] Production.INFO: count ==603 [2025-06-14 01:25:17] Production.ERROR: pbx CDR StartTime 2025-06-13 22:25:05 - End Time 2025-06-14 01:25:05 [2025-06-14 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-14 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15290337', 'tblTempUsageDetail_20' ) start [2025-06-14 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15290337', 'tblTempUsageDetail_20' ) end [2025-06-14 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15290337', 'tblTempVendorCDR_20' ) start [2025-06-14 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15290337', 'tblTempVendorCDR_20' ) end [2025-06-14 01:25:17] Production.INFO: ProcessCDR(1,15290337,1,1,2) [2025-06-14 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15290337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-14 01:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15290337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-14 01:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15290337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-14 01:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15290337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-14 01:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15290337', 'tblTempUsageDetail_20' ) start [2025-06-14 01:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15290337', 'tblTempUsageDetail_20' ) end [2025-06-14 01:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-14 01:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-14 01:25:24] Production.INFO: ==5724== Releasing lock... [2025-06-14 01:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-14 01:25:24] Production.INFO: 33.25 MB #Memory Used# [2025-06-14 02:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-06-13 23:25:06 [end_date_ymd] => 2025-06-14 02:25:06 [RateCDR] => 1 ) [2025-06-14 02:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-13 23:25:06' and `end` < '2025-06-14 02:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-14 02:25:18] Production.INFO: count ==718 [2025-06-14 02:25:18] Production.ERROR: pbx CDR StartTime 2025-06-13 23:25:06 - End Time 2025-06-14 02:25:06 [2025-06-14 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-14 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15290584', 'tblTempUsageDetail_20' ) start [2025-06-14 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15290584', 'tblTempUsageDetail_20' ) end [2025-06-14 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15290584', 'tblTempVendorCDR_20' ) start [2025-06-14 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15290584', 'tblTempVendorCDR_20' ) end [2025-06-14 02:25:18] Production.INFO: ProcessCDR(1,15290584,1,1,2) [2025-06-14 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15290584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-14 02:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15290584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-14 02:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15290584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-14 02:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15290584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-14 02:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15290584', 'tblTempUsageDetail_20' ) start [2025-06-14 02:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15290584', 'tblTempUsageDetail_20' ) end [2025-06-14 02:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-14 02:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-14 02:25:25] Production.INFO: ==10318== Releasing lock... [2025-06-14 02:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-14 02:25:25] Production.INFO: 33.5 MB #Memory Used# [2025-06-14 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-14 00:25:05 [end_date_ymd] => 2025-06-14 03:25:05 [RateCDR] => 1 ) [2025-06-14 03:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-14 00:25:05' and `end` < '2025-06-14 03:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-14 03:25:17] Production.INFO: count ==643 [2025-06-14 03:25:17] Production.ERROR: pbx CDR StartTime 2025-06-14 00:25:05 - End Time 2025-06-14 03:25:05 [2025-06-14 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-14 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15290831', 'tblTempUsageDetail_20' ) start [2025-06-14 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15290831', 'tblTempUsageDetail_20' ) end [2025-06-14 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15290831', 'tblTempVendorCDR_20' ) start [2025-06-14 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15290831', 'tblTempVendorCDR_20' ) end [2025-06-14 03:25:17] Production.INFO: ProcessCDR(1,15290831,1,1,2) [2025-06-14 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15290831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-14 03:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15290831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-14 03:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15290831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-14 03:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15290831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-14 03:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15290831', 'tblTempUsageDetail_20' ) start [2025-06-14 03:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15290831', 'tblTempUsageDetail_20' ) end [2025-06-14 03:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-14 03:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-14 03:25:23] Production.INFO: ==14829== Releasing lock... [2025-06-14 03:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-14 03:25:23] Production.INFO: 33.75 MB #Memory Used# [2025-06-14 04:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-06-14 01:25:06 [end_date_ymd] => 2025-06-14 04:25:06 [RateCDR] => 1 ) [2025-06-14 04:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-14 01:25:06' and `end` < '2025-06-14 04:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-14 04:25:18] Production.INFO: count ==442 [2025-06-14 04:25:18] Production.ERROR: pbx CDR StartTime 2025-06-14 01:25:06 - End Time 2025-06-14 04:25:06 [2025-06-14 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-14 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15291079', 'tblTempUsageDetail_20' ) start [2025-06-14 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15291079', 'tblTempUsageDetail_20' ) end [2025-06-14 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15291079', 'tblTempVendorCDR_20' ) start [2025-06-14 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15291079', 'tblTempVendorCDR_20' ) end [2025-06-14 04:25:18] Production.INFO: ProcessCDR(1,15291079,1,1,2) [2025-06-14 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15291079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-14 04:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15291079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-14 04:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15291079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-14 04:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15291079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-14 04:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15291079', 'tblTempUsageDetail_20' ) start [2025-06-14 04:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15291079', 'tblTempUsageDetail_20' ) end [2025-06-14 04:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-14 04:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-14 04:25:24] Production.INFO: ==19528== Releasing lock... [2025-06-14 04:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-14 04:25:24] Production.INFO: 32.25 MB #Memory Used# [2025-06-14 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-14 02:25:05 [end_date_ymd] => 2025-06-14 05:25:05 [RateCDR] => 1 ) [2025-06-14 05:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-14 02:25:05' and `end` < '2025-06-14 05:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-14 05:25:17] Production.INFO: count ==203 [2025-06-14 05:25:17] Production.ERROR: pbx CDR StartTime 2025-06-14 02:25:05 - End Time 2025-06-14 05:25:05 [2025-06-14 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-14 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15291327', 'tblTempUsageDetail_20' ) start [2025-06-14 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15291327', 'tblTempUsageDetail_20' ) end [2025-06-14 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15291327', 'tblTempVendorCDR_20' ) start [2025-06-14 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15291327', 'tblTempVendorCDR_20' ) end [2025-06-14 05:25:17] Production.INFO: ProcessCDR(1,15291327,1,1,2) [2025-06-14 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15291327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-14 05:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15291327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-14 05:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15291327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-14 05:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15291327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-14 05:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15291327', 'tblTempUsageDetail_20' ) start [2025-06-14 05:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15291327', 'tblTempUsageDetail_20' ) end [2025-06-14 05:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-14 05:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-14 05:25:23] Production.INFO: ==24245== Releasing lock... [2025-06-14 05:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-14 05:25:23] Production.INFO: 29.5 MB #Memory Used# [2025-06-14 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-14 03:25:05 [end_date_ymd] => 2025-06-14 06:25:05 [RateCDR] => 1 ) [2025-06-14 06:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-14 03:25:05' and `end` < '2025-06-14 06:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-14 06:25:17] Production.INFO: count ==150 [2025-06-14 06:25:17] Production.ERROR: pbx CDR StartTime 2025-06-14 03:25:05 - End Time 2025-06-14 06:25:05 [2025-06-14 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-14 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15291574', 'tblTempUsageDetail_20' ) start [2025-06-14 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15291574', 'tblTempUsageDetail_20' ) end [2025-06-14 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15291574', 'tblTempVendorCDR_20' ) start [2025-06-14 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15291574', 'tblTempVendorCDR_20' ) end [2025-06-14 06:25:17] Production.INFO: ProcessCDR(1,15291574,1,1,2) [2025-06-14 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15291574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-14 06:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15291574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-14 06:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15291574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-14 06:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15291574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-14 06:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15291574', 'tblTempUsageDetail_20' ) start [2025-06-14 06:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15291574', 'tblTempUsageDetail_20' ) end [2025-06-14 06:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-14 06:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-14 06:25:23] Production.INFO: ==28693== Releasing lock... [2025-06-14 06:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-14 06:25:23] Production.INFO: 29.25 MB #Memory Used# [2025-06-14 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-14 04:25:05 [end_date_ymd] => 2025-06-14 07:25:05 [RateCDR] => 1 ) [2025-06-14 07:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-14 04:25:05' and `end` < '2025-06-14 07:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-14 07:25:17] Production.INFO: count ==117 [2025-06-14 07:25:17] Production.ERROR: pbx CDR StartTime 2025-06-14 04:25:05 - End Time 2025-06-14 07:25:05 [2025-06-14 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-14 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15291821', 'tblTempUsageDetail_20' ) start [2025-06-14 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15291821', 'tblTempUsageDetail_20' ) end [2025-06-14 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15291821', 'tblTempVendorCDR_20' ) start [2025-06-14 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15291821', 'tblTempVendorCDR_20' ) end [2025-06-14 07:25:17] Production.INFO: ProcessCDR(1,15291821,1,1,2) [2025-06-14 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15291821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-14 07:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15291821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-14 07:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15291821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-14 07:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15291821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-14 07:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15291821', 'tblTempUsageDetail_20' ) start [2025-06-14 07:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15291821', 'tblTempUsageDetail_20' ) end [2025-06-14 07:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-14 07:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-14 07:25:23] Production.INFO: ==463== Releasing lock... [2025-06-14 07:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-14 07:25:23] Production.INFO: 29 MB #Memory Used# [2025-06-14 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-14 05:25:05 [end_date_ymd] => 2025-06-14 08:25:05 [RateCDR] => 1 ) [2025-06-14 08:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-14 05:25:05' and `end` < '2025-06-14 08:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-14 08:25:17] Production.INFO: count ==162 [2025-06-14 08:25:17] Production.ERROR: pbx CDR StartTime 2025-06-14 05:25:05 - End Time 2025-06-14 08:25:05 [2025-06-14 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-14 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15292068', 'tblTempUsageDetail_20' ) start [2025-06-14 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15292068', 'tblTempUsageDetail_20' ) end [2025-06-14 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15292068', 'tblTempVendorCDR_20' ) start [2025-06-14 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15292068', 'tblTempVendorCDR_20' ) end [2025-06-14 08:25:17] Production.INFO: ProcessCDR(1,15292068,1,1,2) [2025-06-14 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15292068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-14 08:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15292068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-14 08:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15292068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-14 08:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15292068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-14 08:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15292068', 'tblTempUsageDetail_20' ) start [2025-06-14 08:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15292068', 'tblTempUsageDetail_20' ) end [2025-06-14 08:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-14 08:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-14 08:25:23] Production.INFO: ==4971== Releasing lock... [2025-06-14 08:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-14 08:25:23] Production.INFO: 29.75 MB #Memory Used# [2025-06-14 09:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-06-14 06:25:04 [end_date_ymd] => 2025-06-14 09:25:04 [RateCDR] => 1 ) [2025-06-14 09:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-14 06:25:04' and `end` < '2025-06-14 09:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-14 09:25:16] Production.INFO: count ==563 [2025-06-14 09:25:17] Production.ERROR: pbx CDR StartTime 2025-06-14 06:25:04 - End Time 2025-06-14 09:25:04 [2025-06-14 09:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-14 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15292315', 'tblTempUsageDetail_20' ) start [2025-06-14 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15292315', 'tblTempUsageDetail_20' ) end [2025-06-14 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15292315', 'tblTempVendorCDR_20' ) start [2025-06-14 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15292315', 'tblTempVendorCDR_20' ) end [2025-06-14 09:25:17] Production.INFO: ProcessCDR(1,15292315,1,1,2) [2025-06-14 09:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15292315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-14 09:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15292315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-14 09:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15292315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-14 09:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15292315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-14 09:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15292315', 'tblTempUsageDetail_20' ) start [2025-06-14 09:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15292315', 'tblTempUsageDetail_20' ) end [2025-06-14 09:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-14 09:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-14 09:25:23] Production.INFO: ==9477== Releasing lock... [2025-06-14 09:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-14 09:25:23] Production.INFO: 32.75 MB #Memory Used# [2025-06-14 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-14 07:25:05 [end_date_ymd] => 2025-06-14 10:25:05 [RateCDR] => 1 ) [2025-06-14 10:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-14 07:25:05' and `end` < '2025-06-14 10:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-14 10:25:17] Production.INFO: count ==1007 [2025-06-14 10:25:18] Production.ERROR: pbx CDR StartTime 2025-06-14 07:25:05 - End Time 2025-06-14 10:25:05 [2025-06-14 10:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-14 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15292562', 'tblTempUsageDetail_20' ) start [2025-06-14 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15292562', 'tblTempUsageDetail_20' ) end [2025-06-14 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15292562', 'tblTempVendorCDR_20' ) start [2025-06-14 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15292562', 'tblTempVendorCDR_20' ) end [2025-06-14 10:25:18] Production.INFO: ProcessCDR(1,15292562,1,1,2) [2025-06-14 10:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15292562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-14 10:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15292562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-14 10:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15292562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-14 10:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15292562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-14 10:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15292562', 'tblTempUsageDetail_20' ) start [2025-06-14 10:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15292562', 'tblTempUsageDetail_20' ) end [2025-06-14 10:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-14 10:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-14 10:25:25] Production.INFO: ==14076== Releasing lock... [2025-06-14 10:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-14 10:25:25] Production.INFO: 36.25 MB #Memory Used# [2025-06-14 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-14 08:25:05 [end_date_ymd] => 2025-06-14 11:25:05 [RateCDR] => 1 ) [2025-06-14 11:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-14 08:25:05' and `end` < '2025-06-14 11:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-14 11:25:18] Production.INFO: count ==1640 [2025-06-14 11:25:18] Production.ERROR: pbx CDR StartTime 2025-06-14 08:25:05 - End Time 2025-06-14 11:25:05 [2025-06-14 11:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-14 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15292809', 'tblTempUsageDetail_20' ) start [2025-06-14 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15292809', 'tblTempUsageDetail_20' ) end [2025-06-14 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15292809', 'tblTempVendorCDR_20' ) start [2025-06-14 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15292809', 'tblTempVendorCDR_20' ) end [2025-06-14 11:25:18] Production.INFO: ProcessCDR(1,15292809,1,1,2) [2025-06-14 11:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15292809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-14 11:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15292809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-14 11:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15292809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-14 11:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15292809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-14 11:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15292809', 'tblTempUsageDetail_20' ) start [2025-06-14 11:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15292809', 'tblTempUsageDetail_20' ) end [2025-06-14 11:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-14 11:25:26] Production.ERROR: pbx prc_insertCDR end [2025-06-14 11:25:26] Production.INFO: ==18499== Releasing lock... [2025-06-14 11:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-14 11:25:26] Production.INFO: 40.75 MB #Memory Used# [2025-06-14 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-14 09:25:05 [end_date_ymd] => 2025-06-14 12:25:05 [RateCDR] => 1 ) [2025-06-14 12:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-14 09:25:05' and `end` < '2025-06-14 12:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-14 12:25:17] Production.INFO: count ==1979 [2025-06-14 12:25:18] Production.ERROR: pbx CDR StartTime 2025-06-14 09:25:05 - End Time 2025-06-14 12:25:05 [2025-06-14 12:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-14 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15293056', 'tblTempUsageDetail_20' ) start [2025-06-14 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15293056', 'tblTempUsageDetail_20' ) end [2025-06-14 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15293056', 'tblTempVendorCDR_20' ) start [2025-06-14 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15293056', 'tblTempVendorCDR_20' ) end [2025-06-14 12:25:18] Production.INFO: ProcessCDR(1,15293056,1,1,2) [2025-06-14 12:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15293056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-14 12:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15293056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-14 12:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15293056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-14 12:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15293056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-14 12:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15293056', 'tblTempUsageDetail_20' ) start [2025-06-14 12:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15293056', 'tblTempUsageDetail_20' ) end [2025-06-14 12:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-14 12:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-14 12:25:25] Production.INFO: ==22874== Releasing lock... [2025-06-14 12:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-14 12:25:25] Production.INFO: 43 MB #Memory Used# [2025-06-14 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-14 10:25:05 [end_date_ymd] => 2025-06-14 13:25:05 [RateCDR] => 1 ) [2025-06-14 13:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-14 10:25:05' and `end` < '2025-06-14 13:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-14 13:25:17] Production.INFO: count ==2049 [2025-06-14 13:25:18] Production.ERROR: pbx CDR StartTime 2025-06-14 10:25:05 - End Time 2025-06-14 13:25:05 [2025-06-14 13:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-14 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15293303', 'tblTempUsageDetail_20' ) start [2025-06-14 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15293303', 'tblTempUsageDetail_20' ) end [2025-06-14 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15293303', 'tblTempVendorCDR_20' ) start [2025-06-14 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15293303', 'tblTempVendorCDR_20' ) end [2025-06-14 13:25:18] Production.INFO: ProcessCDR(1,15293303,1,1,2) [2025-06-14 13:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15293303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-14 13:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15293303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-14 13:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15293303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-14 13:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15293303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-14 13:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15293303', 'tblTempUsageDetail_20' ) start [2025-06-14 13:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15293303', 'tblTempUsageDetail_20' ) end [2025-06-14 13:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-14 13:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-14 13:25:25] Production.INFO: ==27358== Releasing lock... [2025-06-14 13:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-14 13:25:25] Production.INFO: 43.25 MB #Memory Used# [2025-06-14 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-14 11:25:05 [end_date_ymd] => 2025-06-14 14:25:05 [RateCDR] => 1 ) [2025-06-14 14:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-14 11:25:05' and `end` < '2025-06-14 14:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-14 14:25:17] Production.INFO: count ==1908 [2025-06-14 14:25:18] Production.ERROR: pbx CDR StartTime 2025-06-14 11:25:05 - End Time 2025-06-14 14:25:05 [2025-06-14 14:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-14 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15293550', 'tblTempUsageDetail_20' ) start [2025-06-14 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15293550', 'tblTempUsageDetail_20' ) end [2025-06-14 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15293550', 'tblTempVendorCDR_20' ) start [2025-06-14 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15293550', 'tblTempVendorCDR_20' ) end [2025-06-14 14:25:18] Production.INFO: ProcessCDR(1,15293550,1,1,2) [2025-06-14 14:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15293550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-14 14:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15293550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-14 14:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15293550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-14 14:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15293550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-14 14:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15293550', 'tblTempUsageDetail_20' ) start [2025-06-14 14:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15293550', 'tblTempUsageDetail_20' ) end [2025-06-14 14:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-14 14:25:26] Production.ERROR: pbx prc_insertCDR end [2025-06-14 14:25:26] Production.INFO: ==31722== Releasing lock... [2025-06-14 14:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-14 14:25:26] Production.INFO: 42.5 MB #Memory Used# [2025-06-14 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-14 12:25:05 [end_date_ymd] => 2025-06-14 15:25:05 [RateCDR] => 1 ) [2025-06-14 15:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-14 12:25:05' and `end` < '2025-06-14 15:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-14 15:25:18] Production.INFO: count ==1648 [2025-06-14 15:25:18] Production.ERROR: pbx CDR StartTime 2025-06-14 12:25:05 - End Time 2025-06-14 15:25:05 [2025-06-14 15:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-14 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15293797', 'tblTempUsageDetail_20' ) start [2025-06-14 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15293797', 'tblTempUsageDetail_20' ) end [2025-06-14 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15293797', 'tblTempVendorCDR_20' ) start [2025-06-14 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15293797', 'tblTempVendorCDR_20' ) end [2025-06-14 15:25:18] Production.INFO: ProcessCDR(1,15293797,1,1,2) [2025-06-14 15:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15293797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-14 15:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15293797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-14 15:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15293797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-14 15:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15293797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-14 15:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15293797', 'tblTempUsageDetail_20' ) start [2025-06-14 15:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15293797', 'tblTempUsageDetail_20' ) end [2025-06-14 15:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-14 15:25:26] Production.ERROR: pbx prc_insertCDR end [2025-06-14 15:25:26] Production.INFO: ==4006== Releasing lock... [2025-06-14 15:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-14 15:25:26] Production.INFO: 40.75 MB #Memory Used# [2025-06-14 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-14 13:25:05 [end_date_ymd] => 2025-06-14 16:25:05 [RateCDR] => 1 ) [2025-06-14 16:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-14 13:25:05' and `end` < '2025-06-14 16:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-14 16:25:17] Production.INFO: count ==1668 [2025-06-14 16:25:18] Production.ERROR: pbx CDR StartTime 2025-06-14 13:25:05 - End Time 2025-06-14 16:25:05 [2025-06-14 16:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-14 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15294044', 'tblTempUsageDetail_20' ) start [2025-06-14 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15294044', 'tblTempUsageDetail_20' ) end [2025-06-14 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15294044', 'tblTempVendorCDR_20' ) start [2025-06-14 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15294044', 'tblTempVendorCDR_20' ) end [2025-06-14 16:25:18] Production.INFO: ProcessCDR(1,15294044,1,1,2) [2025-06-14 16:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15294044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-14 16:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15294044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-14 16:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15294044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-14 16:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15294044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-14 16:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15294044', 'tblTempUsageDetail_20' ) start [2025-06-14 16:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15294044', 'tblTempUsageDetail_20' ) end [2025-06-14 16:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-14 16:25:26] Production.ERROR: pbx prc_insertCDR end [2025-06-14 16:25:26] Production.INFO: ==8443== Releasing lock... [2025-06-14 16:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-14 16:25:26] Production.INFO: 40.75 MB #Memory Used# [2025-06-14 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-14 14:25:05 [end_date_ymd] => 2025-06-14 17:25:05 [RateCDR] => 1 ) [2025-06-14 17:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-14 14:25:05' and `end` < '2025-06-14 17:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-14 17:25:19] Production.INFO: count ==1677 [2025-06-14 17:25:19] Production.ERROR: pbx CDR StartTime 2025-06-14 14:25:05 - End Time 2025-06-14 17:25:05 [2025-06-14 17:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-14 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15294291', 'tblTempUsageDetail_20' ) start [2025-06-14 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15294291', 'tblTempUsageDetail_20' ) end [2025-06-14 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15294291', 'tblTempVendorCDR_20' ) start [2025-06-14 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15294291', 'tblTempVendorCDR_20' ) end [2025-06-14 17:25:19] Production.INFO: ProcessCDR(1,15294291,1,1,2) [2025-06-14 17:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15294291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-14 17:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15294291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-14 17:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15294291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-14 17:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15294291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-14 17:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15294291', 'tblTempUsageDetail_20' ) start [2025-06-14 17:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15294291', 'tblTempUsageDetail_20' ) end [2025-06-14 17:25:27] Production.ERROR: pbx prc_insertCDR start [2025-06-14 17:25:28] Production.ERROR: pbx prc_insertCDR end [2025-06-14 17:25:28] Production.INFO: ==12813== Releasing lock... [2025-06-14 17:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-14 17:25:28] Production.INFO: 41 MB #Memory Used# [2025-06-14 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-14 15:25:05 [end_date_ymd] => 2025-06-14 18:25:05 [RateCDR] => 1 ) [2025-06-14 18:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-14 15:25:05' and `end` < '2025-06-14 18:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-14 18:25:18] Production.INFO: count ==1848 [2025-06-14 18:25:18] Production.ERROR: pbx CDR StartTime 2025-06-14 15:25:05 - End Time 2025-06-14 18:25:05 [2025-06-14 18:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-14 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15294538', 'tblTempUsageDetail_20' ) start [2025-06-14 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15294538', 'tblTempUsageDetail_20' ) end [2025-06-14 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15294538', 'tblTempVendorCDR_20' ) start [2025-06-14 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15294538', 'tblTempVendorCDR_20' ) end [2025-06-14 18:25:18] Production.INFO: ProcessCDR(1,15294538,1,1,2) [2025-06-14 18:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15294538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-14 18:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15294538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-14 18:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15294538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-14 18:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15294538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-14 18:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15294538', 'tblTempUsageDetail_20' ) start [2025-06-14 18:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15294538', 'tblTempUsageDetail_20' ) end [2025-06-14 18:25:26] Production.ERROR: pbx prc_insertCDR start [2025-06-14 18:25:26] Production.ERROR: pbx prc_insertCDR end [2025-06-14 18:25:26] Production.INFO: ==17184== Releasing lock... [2025-06-14 18:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-14 18:25:26] Production.INFO: 42.25 MB #Memory Used# [2025-06-14 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-14 16:25:05 [end_date_ymd] => 2025-06-14 19:25:05 [RateCDR] => 1 ) [2025-06-14 19:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-14 16:25:05' and `end` < '2025-06-14 19:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-14 19:25:18] Production.INFO: count ==1907 [2025-06-14 19:25:18] Production.ERROR: pbx CDR StartTime 2025-06-14 16:25:05 - End Time 2025-06-14 19:25:05 [2025-06-14 19:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-14 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15294782', 'tblTempUsageDetail_20' ) start [2025-06-14 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15294782', 'tblTempUsageDetail_20' ) end [2025-06-14 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15294782', 'tblTempVendorCDR_20' ) start [2025-06-14 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15294782', 'tblTempVendorCDR_20' ) end [2025-06-14 19:25:18] Production.INFO: ProcessCDR(1,15294782,1,1,2) [2025-06-14 19:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15294782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-14 19:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15294782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-14 19:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15294782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-14 19:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15294782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-14 19:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15294782', 'tblTempUsageDetail_20' ) start [2025-06-14 19:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15294782', 'tblTempUsageDetail_20' ) end [2025-06-14 19:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-14 19:25:26] Production.ERROR: pbx prc_insertCDR end [2025-06-14 19:25:26] Production.INFO: ==21873== Releasing lock... [2025-06-14 19:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-14 19:25:26] Production.INFO: 42.5 MB #Memory Used# [2025-06-14 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-14 17:25:05 [end_date_ymd] => 2025-06-14 20:25:05 [RateCDR] => 1 ) [2025-06-14 20:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-14 17:25:05' and `end` < '2025-06-14 20:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-14 20:25:17] Production.INFO: count ==1794 [2025-06-14 20:25:17] Production.ERROR: pbx CDR StartTime 2025-06-14 17:25:05 - End Time 2025-06-14 20:25:05 [2025-06-14 20:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-14 20:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15295029', 'tblTempUsageDetail_20' ) start [2025-06-14 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15295029', 'tblTempUsageDetail_20' ) end [2025-06-14 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15295029', 'tblTempVendorCDR_20' ) start [2025-06-14 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15295029', 'tblTempVendorCDR_20' ) end [2025-06-14 20:25:18] Production.INFO: ProcessCDR(1,15295029,1,1,2) [2025-06-14 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15295029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-14 20:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15295029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-14 20:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15295029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-14 20:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15295029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-14 20:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15295029', 'tblTempUsageDetail_20' ) start [2025-06-14 20:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15295029', 'tblTempUsageDetail_20' ) end [2025-06-14 20:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-14 20:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-14 20:25:24] Production.INFO: ==26341== Releasing lock... [2025-06-14 20:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-14 20:25:24] Production.INFO: 41.75 MB #Memory Used# [2025-06-14 21:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-06-14 18:25:04 [end_date_ymd] => 2025-06-14 21:25:04 [RateCDR] => 1 ) [2025-06-14 21:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-14 18:25:04' and `end` < '2025-06-14 21:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-14 21:25:16] Production.INFO: count ==1736 [2025-06-14 21:25:17] Production.ERROR: pbx CDR StartTime 2025-06-14 18:25:04 - End Time 2025-06-14 21:25:04 [2025-06-14 21:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-14 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15295276', 'tblTempUsageDetail_20' ) start [2025-06-14 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15295276', 'tblTempUsageDetail_20' ) end [2025-06-14 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15295276', 'tblTempVendorCDR_20' ) start [2025-06-14 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15295276', 'tblTempVendorCDR_20' ) end [2025-06-14 21:25:17] Production.INFO: ProcessCDR(1,15295276,1,1,2) [2025-06-14 21:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15295276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-14 21:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15295276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-14 21:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15295276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-14 21:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15295276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-14 21:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15295276', 'tblTempUsageDetail_20' ) start [2025-06-14 21:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15295276', 'tblTempUsageDetail_20' ) end [2025-06-14 21:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-14 21:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-14 21:25:24] Production.INFO: ==30617== Releasing lock... [2025-06-14 21:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-14 21:25:24] Production.INFO: 41.25 MB #Memory Used# [2025-06-14 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-14 19:25:05 [end_date_ymd] => 2025-06-14 22:25:05 [RateCDR] => 1 ) [2025-06-14 22:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-14 19:25:05' and `end` < '2025-06-14 22:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-14 22:25:18] Production.INFO: count ==1519 [2025-06-14 22:25:18] Production.ERROR: pbx CDR StartTime 2025-06-14 19:25:05 - End Time 2025-06-14 22:25:05 [2025-06-14 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-14 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15295523', 'tblTempUsageDetail_20' ) start [2025-06-14 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15295523', 'tblTempUsageDetail_20' ) end [2025-06-14 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15295523', 'tblTempVendorCDR_20' ) start [2025-06-14 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15295523', 'tblTempVendorCDR_20' ) end [2025-06-14 22:25:18] Production.INFO: ProcessCDR(1,15295523,1,1,2) [2025-06-14 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15295523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-14 22:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15295523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-14 22:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15295523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-14 22:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15295523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-14 22:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15295523', 'tblTempUsageDetail_20' ) start [2025-06-14 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15295523', 'tblTempUsageDetail_20' ) end [2025-06-14 22:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-14 22:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-14 22:25:25] Production.INFO: ==2555== Releasing lock... [2025-06-14 22:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-14 22:25:25] Production.INFO: 39.5 MB #Memory Used# [2025-06-14 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-14 20:25:05 [end_date_ymd] => 2025-06-14 23:25:05 [RateCDR] => 1 ) [2025-06-14 23:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-14 20:25:05' and `end` < '2025-06-14 23:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-14 23:25:17] Production.INFO: count ==1367 [2025-06-14 23:25:18] Production.ERROR: pbx CDR StartTime 2025-06-14 20:25:05 - End Time 2025-06-14 23:25:05 [2025-06-14 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-14 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15295770', 'tblTempUsageDetail_20' ) start [2025-06-14 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15295770', 'tblTempUsageDetail_20' ) end [2025-06-14 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15295770', 'tblTempVendorCDR_20' ) start [2025-06-14 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15295770', 'tblTempVendorCDR_20' ) end [2025-06-14 23:25:18] Production.INFO: ProcessCDR(1,15295770,1,1,2) [2025-06-14 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15295770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-14 23:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15295770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-14 23:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15295770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-14 23:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15295770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-14 23:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15295770', 'tblTempUsageDetail_20' ) start [2025-06-14 23:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15295770', 'tblTempUsageDetail_20' ) end [2025-06-14 23:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-14 23:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-14 23:25:24] Production.INFO: ==7012== Releasing lock... [2025-06-14 23:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-14 23:25:24] Production.INFO: 38.75 MB #Memory Used#