[2025-09-03 00:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-02 21:25:06 [end_date_ymd] => 2025-09-03 00:25:06 [RateCDR] => 1 ) [2025-09-03 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-09-02 21:25:06' and `end` < '2025-09-03 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-09-03 00:25:18] Production.INFO: count ==422 [2025-09-03 00:25:19] Production.ERROR: pbx CDR StartTime 2025-09-02 21:25:06 - End Time 2025-09-03 00:25:06 [2025-09-03 00:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-03 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15770186', 'tblTempUsageDetail_20' ) start [2025-09-03 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15770186', 'tblTempUsageDetail_20' ) end [2025-09-03 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15770186', 'tblTempVendorCDR_20' ) start [2025-09-03 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15770186', 'tblTempVendorCDR_20' ) end [2025-09-03 00:25:19] Production.INFO: ProcessCDR(1,15770186,1,1,2) [2025-09-03 00:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15770186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-03 00:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15770186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-03 00:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15770186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-03 00:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15770186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-03 00:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15770186', 'tblTempUsageDetail_20' ) start [2025-09-03 00:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15770186', 'tblTempUsageDetail_20' ) end [2025-09-03 00:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-03 00:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-03 00:25:29] Production.INFO: ==9930== Releasing lock... [2025-09-03 00:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-03 00:25:29] Production.INFO: 35 MB #Memory Used# [2025-09-03 01:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-02 22:25:06 [end_date_ymd] => 2025-09-03 01:25:06 [RateCDR] => 1 ) [2025-09-03 01: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-09-02 22:25:06' and `end` < '2025-09-03 01: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-09-03 01:25:18] Production.INFO: count ==433 [2025-09-03 01:25:18] Production.ERROR: pbx CDR StartTime 2025-09-02 22:25:06 - End Time 2025-09-03 01:25:06 [2025-09-03 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-03 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15770433', 'tblTempUsageDetail_20' ) start [2025-09-03 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15770433', 'tblTempUsageDetail_20' ) end [2025-09-03 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15770433', 'tblTempVendorCDR_20' ) start [2025-09-03 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15770433', 'tblTempVendorCDR_20' ) end [2025-09-03 01:25:18] Production.INFO: ProcessCDR(1,15770433,1,1,2) [2025-09-03 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15770433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-03 01:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15770433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-03 01:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15770433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-03 01:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15770433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-03 01:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15770433', 'tblTempUsageDetail_20' ) start [2025-09-03 01:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15770433', 'tblTempUsageDetail_20' ) end [2025-09-03 01:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-03 01:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-03 01:25:26] Production.INFO: ==14262== Releasing lock... [2025-09-03 01:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-03 01:25:26] Production.INFO: 32 MB #Memory Used# [2025-09-03 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-02 23:25:05 [end_date_ymd] => 2025-09-03 02:25:05 [RateCDR] => 1 ) [2025-09-03 02:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-02 23:25:05' and `end` < '2025-09-03 02:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-03 02:25:18] Production.INFO: count ==372 [2025-09-03 02:25:18] Production.ERROR: pbx CDR StartTime 2025-09-02 23:25:05 - End Time 2025-09-03 02:25:05 [2025-09-03 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-03 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15770680', 'tblTempUsageDetail_20' ) start [2025-09-03 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15770680', 'tblTempUsageDetail_20' ) end [2025-09-03 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15770680', 'tblTempVendorCDR_20' ) start [2025-09-03 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15770680', 'tblTempVendorCDR_20' ) end [2025-09-03 02:25:18] Production.INFO: ProcessCDR(1,15770680,1,1,2) [2025-09-03 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15770680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-03 02:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15770680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-03 02:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15770680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-03 02:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15770680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-03 02:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15770680', 'tblTempUsageDetail_20' ) start [2025-09-03 02:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15770680', 'tblTempUsageDetail_20' ) end [2025-09-03 02:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-03 02:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-03 02:25:26] Production.INFO: ==18732== Releasing lock... [2025-09-03 02:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-03 02:25:26] Production.INFO: 31.5 MB #Memory Used# [2025-09-03 03:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-03 00:25:06 [end_date_ymd] => 2025-09-03 03:25:06 [RateCDR] => 1 ) [2025-09-03 03: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-09-03 00:25:06' and `end` < '2025-09-03 03: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-09-03 03:25:18] Production.INFO: count ==333 [2025-09-03 03:25:18] Production.ERROR: pbx CDR StartTime 2025-09-03 00:25:06 - End Time 2025-09-03 03:25:06 [2025-09-03 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-03 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15770927', 'tblTempUsageDetail_20' ) start [2025-09-03 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15770927', 'tblTempUsageDetail_20' ) end [2025-09-03 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15770927', 'tblTempVendorCDR_20' ) start [2025-09-03 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15770927', 'tblTempVendorCDR_20' ) end [2025-09-03 03:25:18] Production.INFO: ProcessCDR(1,15770927,1,1,2) [2025-09-03 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15770927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-03 03:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15770927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-03 03:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15770927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-03 03:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15770927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-03 03:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15770927', 'tblTempUsageDetail_20' ) start [2025-09-03 03:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15770927', 'tblTempUsageDetail_20' ) end [2025-09-03 03:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-03 03:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-03 03:25:26] Production.INFO: ==22978== Releasing lock... [2025-09-03 03:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-03 03:25:26] Production.INFO: 31.25 MB #Memory Used# [2025-09-03 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-03 01:25:05 [end_date_ymd] => 2025-09-03 04:25:05 [RateCDR] => 1 ) [2025-09-03 04:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-03 01:25:05' and `end` < '2025-09-03 04:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-03 04:25:17] Production.INFO: count ==220 [2025-09-03 04:25:17] Production.ERROR: pbx CDR StartTime 2025-09-03 01:25:05 - End Time 2025-09-03 04:25:05 [2025-09-03 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-03 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15771175', 'tblTempUsageDetail_20' ) start [2025-09-03 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15771175', 'tblTempUsageDetail_20' ) end [2025-09-03 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15771175', 'tblTempVendorCDR_20' ) start [2025-09-03 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15771175', 'tblTempVendorCDR_20' ) end [2025-09-03 04:25:17] Production.INFO: ProcessCDR(1,15771175,1,1,2) [2025-09-03 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15771175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-03 04:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15771175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-03 04:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15771175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-03 04:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15771175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-03 04:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15771175', 'tblTempUsageDetail_20' ) start [2025-09-03 04:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15771175', 'tblTempUsageDetail_20' ) end [2025-09-03 04:25:23] Production.ERROR: pbx prc_insertCDR start [2025-09-03 04:25:23] Production.ERROR: pbx prc_insertCDR end [2025-09-03 04:25:23] Production.INFO: ==27435== Releasing lock... [2025-09-03 04:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-03 04:25:23] Production.INFO: 29.75 MB #Memory Used# [2025-09-03 05:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-03 02:25:06 [end_date_ymd] => 2025-09-03 05:25:06 [RateCDR] => 1 ) [2025-09-03 05: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-09-03 02:25:06' and `end` < '2025-09-03 05: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-09-03 05:25:18] Production.INFO: count ==153 [2025-09-03 05:25:18] Production.ERROR: pbx CDR StartTime 2025-09-03 02:25:06 - End Time 2025-09-03 05:25:06 [2025-09-03 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-03 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15771423', 'tblTempUsageDetail_20' ) start [2025-09-03 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15771423', 'tblTempUsageDetail_20' ) end [2025-09-03 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15771423', 'tblTempVendorCDR_20' ) start [2025-09-03 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15771423', 'tblTempVendorCDR_20' ) end [2025-09-03 05:25:18] Production.INFO: ProcessCDR(1,15771423,1,1,2) [2025-09-03 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15771423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-03 05:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15771423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-03 05:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15771423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-03 05:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15771423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-03 05:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15771423', 'tblTempUsageDetail_20' ) start [2025-09-03 05:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15771423', 'tblTempUsageDetail_20' ) end [2025-09-03 05:25:23] Production.ERROR: pbx prc_insertCDR start [2025-09-03 05:25:23] Production.ERROR: pbx prc_insertCDR end [2025-09-03 05:25:23] Production.INFO: ==31847== Releasing lock... [2025-09-03 05:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-03 05:25:23] Production.INFO: 29.5 MB #Memory Used# [2025-09-03 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-03 03:25:05 [end_date_ymd] => 2025-09-03 06:25:05 [RateCDR] => 1 ) [2025-09-03 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-09-03 03:25:05' and `end` < '2025-09-03 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-09-03 06:25:17] Production.INFO: count ==125 [2025-09-03 06:25:17] Production.ERROR: pbx CDR StartTime 2025-09-03 03:25:05 - End Time 2025-09-03 06:25:05 [2025-09-03 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-03 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15771670', 'tblTempUsageDetail_20' ) start [2025-09-03 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15771670', 'tblTempUsageDetail_20' ) end [2025-09-03 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15771670', 'tblTempVendorCDR_20' ) start [2025-09-03 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15771670', 'tblTempVendorCDR_20' ) end [2025-09-03 06:25:17] Production.INFO: ProcessCDR(1,15771670,1,1,2) [2025-09-03 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15771670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-03 06:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15771670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-03 06:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15771670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-03 06:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15771670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-03 06:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15771670', 'tblTempUsageDetail_20' ) start [2025-09-03 06:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15771670', 'tblTempUsageDetail_20' ) end [2025-09-03 06:25:22] Production.ERROR: pbx prc_insertCDR start [2025-09-03 06:25:22] Production.ERROR: pbx prc_insertCDR end [2025-09-03 06:25:22] Production.INFO: ==3776== Releasing lock... [2025-09-03 06:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-03 06:25:22] Production.INFO: 29 MB #Memory Used# [2025-09-03 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-03 04:25:05 [end_date_ymd] => 2025-09-03 07:25:05 [RateCDR] => 1 ) [2025-09-03 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-09-03 04:25:05' and `end` < '2025-09-03 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-09-03 07:25:17] Production.INFO: count ==164 [2025-09-03 07:25:17] Production.ERROR: pbx CDR StartTime 2025-09-03 04:25:05 - End Time 2025-09-03 07:25:05 [2025-09-03 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-03 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15771917', 'tblTempUsageDetail_20' ) start [2025-09-03 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15771917', 'tblTempUsageDetail_20' ) end [2025-09-03 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15771917', 'tblTempVendorCDR_20' ) start [2025-09-03 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15771917', 'tblTempVendorCDR_20' ) end [2025-09-03 07:25:17] Production.INFO: ProcessCDR(1,15771917,1,1,2) [2025-09-03 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15771917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-03 07:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15771917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-03 07:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15771917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-03 07:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15771917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-03 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15771917', 'tblTempUsageDetail_20' ) start [2025-09-03 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15771917', 'tblTempUsageDetail_20' ) end [2025-09-03 07:25:24] Production.ERROR: pbx prc_insertCDR start [2025-09-03 07:25:24] Production.ERROR: pbx prc_insertCDR end [2025-09-03 07:25:24] Production.INFO: ==8273== Releasing lock... [2025-09-03 07:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-03 07:25:24] Production.INFO: 29.5 MB #Memory Used# [2025-09-03 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-03 05:25:05 [end_date_ymd] => 2025-09-03 08:25:05 [RateCDR] => 1 ) [2025-09-03 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-09-03 05:25:05' and `end` < '2025-09-03 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-09-03 08:25:17] Production.INFO: count ==412 [2025-09-03 08:25:17] Production.ERROR: pbx CDR StartTime 2025-09-03 05:25:05 - End Time 2025-09-03 08:25:05 [2025-09-03 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-03 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15772164', 'tblTempUsageDetail_20' ) start [2025-09-03 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15772164', 'tblTempUsageDetail_20' ) end [2025-09-03 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15772164', 'tblTempVendorCDR_20' ) start [2025-09-03 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15772164', 'tblTempVendorCDR_20' ) end [2025-09-03 08:25:17] Production.INFO: ProcessCDR(1,15772164,1,1,2) [2025-09-03 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15772164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-03 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15772164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-03 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15772164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-03 08:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15772164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-03 08:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15772164', 'tblTempUsageDetail_20' ) start [2025-09-03 08:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15772164', 'tblTempUsageDetail_20' ) end [2025-09-03 08:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-03 08:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-03 08:25:25] Production.INFO: ==12788== Releasing lock... [2025-09-03 08:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-03 08:25:25] Production.INFO: 31.75 MB #Memory Used# [2025-09-03 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-03 06:25:05 [end_date_ymd] => 2025-09-03 09:25:05 [RateCDR] => 1 ) [2025-09-03 09:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-03 06:25:05' and `end` < '2025-09-03 09:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-03 09:25:17] Production.INFO: count ==1366 [2025-09-03 09:25:18] Production.ERROR: pbx CDR StartTime 2025-09-03 06:25:05 - End Time 2025-09-03 09:25:05 [2025-09-03 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-03 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15772411', 'tblTempUsageDetail_20' ) start [2025-09-03 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15772411', 'tblTempUsageDetail_20' ) end [2025-09-03 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15772411', 'tblTempVendorCDR_20' ) start [2025-09-03 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15772411', 'tblTempVendorCDR_20' ) end [2025-09-03 09:25:18] Production.INFO: ProcessCDR(1,15772411,1,1,2) [2025-09-03 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15772411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-03 09:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15772411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-03 09:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15772411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-03 09:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15772411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-03 09:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15772411', 'tblTempUsageDetail_20' ) start [2025-09-03 09:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15772411', 'tblTempUsageDetail_20' ) end [2025-09-03 09:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-03 09:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-03 09:25:27] Production.INFO: ==17400== Releasing lock... [2025-09-03 09:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-03 09:25:27] Production.INFO: 38.25 MB #Memory Used# [2025-09-03 10:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-03 07:25:06 [end_date_ymd] => 2025-09-03 10:25:06 [RateCDR] => 1 ) [2025-09-03 10: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-09-03 07:25:06' and `end` < '2025-09-03 10: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-09-03 10:25:22] Production.INFO: count ==3074 [2025-09-03 10:25:23] Production.ERROR: pbx CDR StartTime 2025-09-03 07:25:06 - End Time 2025-09-03 10:25:06 [2025-09-03 10:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-03 10:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15772658', 'tblTempUsageDetail_20' ) start [2025-09-03 10:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15772658', 'tblTempUsageDetail_20' ) end [2025-09-03 10:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15772658', 'tblTempVendorCDR_20' ) start [2025-09-03 10:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15772658', 'tblTempVendorCDR_20' ) end [2025-09-03 10:25:23] Production.INFO: ProcessCDR(1,15772658,1,1,2) [2025-09-03 10:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15772658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-03 10:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15772658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-03 10:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15772658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-03 10:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15772658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-03 10:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15772658', 'tblTempUsageDetail_20' ) start [2025-09-03 10:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15772658', 'tblTempUsageDetail_20' ) end [2025-09-03 10:25:33] Production.ERROR: pbx prc_insertCDR start [2025-09-03 10:25:35] Production.ERROR: pbx prc_insertCDR end [2025-09-03 10:25:35] Production.INFO: ==22124== Releasing lock... [2025-09-03 10:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-03 10:25:35] Production.INFO: 51.5 MB #Memory Used# [2025-09-03 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-03 08:25:05 [end_date_ymd] => 2025-09-03 11:25:05 [RateCDR] => 1 ) [2025-09-03 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-09-03 08:25:05' and `end` < '2025-09-03 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-09-03 11:25:18] Production.INFO: count ==5118 [2025-09-03 11:25:21] Production.ERROR: pbx CDR StartTime 2025-09-03 08:25:05 - End Time 2025-09-03 11:25:05 [2025-09-03 11:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-03 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15772905', 'tblTempUsageDetail_20' ) start [2025-09-03 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15772905', 'tblTempUsageDetail_20' ) end [2025-09-03 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15772905', 'tblTempVendorCDR_20' ) start [2025-09-03 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15772905', 'tblTempVendorCDR_20' ) end [2025-09-03 11:25:21] Production.INFO: ProcessCDR(1,15772905,1,1,2) [2025-09-03 11:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15772905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-03 11:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15772905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-03 11:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15772905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-03 11:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15772905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-03 11:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15772905', 'tblTempUsageDetail_20' ) start [2025-09-03 11:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15772905', 'tblTempUsageDetail_20' ) end [2025-09-03 11:25:31] Production.ERROR: pbx prc_insertCDR start [2025-09-03 11:25:35] Production.ERROR: pbx prc_insertCDR end [2025-09-03 11:25:35] Production.INFO: ==27000== Releasing lock... [2025-09-03 11:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-03 11:25:35] Production.INFO: 66.5 MB #Memory Used# [2025-09-03 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-03 09:25:05 [end_date_ymd] => 2025-09-03 12:25:05 [RateCDR] => 1 ) [2025-09-03 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-09-03 09:25:05' and `end` < '2025-09-03 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-09-03 12:25:21] Production.INFO: count ==5858 [2025-09-03 12:25:23] Production.ERROR: pbx CDR StartTime 2025-09-03 09:25:05 - End Time 2025-09-03 12:25:05 [2025-09-03 12:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-03 12:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15773152', 'tblTempUsageDetail_20' ) start [2025-09-03 12:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15773152', 'tblTempUsageDetail_20' ) end [2025-09-03 12:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15773152', 'tblTempVendorCDR_20' ) start [2025-09-03 12:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15773152', 'tblTempVendorCDR_20' ) end [2025-09-03 12:25:24] Production.INFO: ProcessCDR(1,15773152,1,1,2) [2025-09-03 12:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15773152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-03 12:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15773152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-03 12:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15773152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-03 12:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15773152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-03 12:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15773152', 'tblTempUsageDetail_20' ) start [2025-09-03 12:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15773152', 'tblTempUsageDetail_20' ) end [2025-09-03 12:25:33] Production.ERROR: pbx prc_insertCDR start [2025-09-03 12:25:36] Production.ERROR: pbx prc_insertCDR end [2025-09-03 12:25:36] Production.INFO: ==31607== Releasing lock... [2025-09-03 12:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-03 12:25:36] Production.INFO: 72 MB #Memory Used# [2025-09-03 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-03 10:25:05 [end_date_ymd] => 2025-09-03 13:25:05 [RateCDR] => 1 ) [2025-09-03 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-09-03 10:25:05' and `end` < '2025-09-03 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-09-03 13:25:20] Production.INFO: count ==5859 [2025-09-03 13:25:23] Production.ERROR: pbx CDR StartTime 2025-09-03 10:25:05 - End Time 2025-09-03 13:25:05 [2025-09-03 13:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-03 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15773399', 'tblTempUsageDetail_20' ) start [2025-09-03 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15773399', 'tblTempUsageDetail_20' ) end [2025-09-03 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15773399', 'tblTempVendorCDR_20' ) start [2025-09-03 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15773399', 'tblTempVendorCDR_20' ) end [2025-09-03 13:25:23] Production.INFO: ProcessCDR(1,15773399,1,1,2) [2025-09-03 13:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15773399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-03 13:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15773399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-03 13:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15773399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-03 13:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15773399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-03 13:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15773399', 'tblTempUsageDetail_20' ) start [2025-09-03 13:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15773399', 'tblTempUsageDetail_20' ) end [2025-09-03 13:25:32] Production.ERROR: pbx prc_insertCDR start [2025-09-03 13:25:34] Production.ERROR: pbx prc_insertCDR end [2025-09-03 13:25:35] Production.INFO: ==4102== Releasing lock... [2025-09-03 13:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-03 13:25:35] Production.INFO: 72 MB #Memory Used# [2025-09-03 14:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-03 11:25:06 [end_date_ymd] => 2025-09-03 14:25:06 [RateCDR] => 1 ) [2025-09-03 14:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-03 11:25:06' and `end` < '2025-09-03 14:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-03 14:25:21] Production.INFO: count ==5455 [2025-09-03 14:25:24] Production.ERROR: pbx CDR StartTime 2025-09-03 11:25:06 - End Time 2025-09-03 14:25:06 [2025-09-03 14:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-03 14:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15773646', 'tblTempUsageDetail_20' ) start [2025-09-03 14:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15773646', 'tblTempUsageDetail_20' ) end [2025-09-03 14:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15773646', 'tblTempVendorCDR_20' ) start [2025-09-03 14:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15773646', 'tblTempVendorCDR_20' ) end [2025-09-03 14:25:25] Production.INFO: ProcessCDR(1,15773646,1,1,2) [2025-09-03 14:25:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15773646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-03 14:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15773646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-03 14:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15773646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-03 14:25:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15773646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-03 14:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15773646', 'tblTempUsageDetail_20' ) start [2025-09-03 14:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15773646', 'tblTempUsageDetail_20' ) end [2025-09-03 14:25:34] Production.ERROR: pbx prc_insertCDR start [2025-09-03 14:25:36] Production.ERROR: pbx prc_insertCDR end [2025-09-03 14:25:36] Production.INFO: ==8775== Releasing lock... [2025-09-03 14:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-03 14:25:36] Production.INFO: 69 MB #Memory Used# [2025-09-03 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-03 12:25:05 [end_date_ymd] => 2025-09-03 15:25:05 [RateCDR] => 1 ) [2025-09-03 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-09-03 12:25:05' and `end` < '2025-09-03 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-09-03 15:25:19] Production.INFO: count ==5457 [2025-09-03 15:25:22] Production.ERROR: pbx CDR StartTime 2025-09-03 12:25:05 - End Time 2025-09-03 15:25:05 [2025-09-03 15:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-03 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15773893', 'tblTempUsageDetail_20' ) start [2025-09-03 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15773893', 'tblTempUsageDetail_20' ) end [2025-09-03 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15773893', 'tblTempVendorCDR_20' ) start [2025-09-03 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15773893', 'tblTempVendorCDR_20' ) end [2025-09-03 15:25:22] Production.INFO: ProcessCDR(1,15773893,1,1,2) [2025-09-03 15:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15773893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-03 15:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15773893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-03 15:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15773893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-03 15:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15773893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-03 15:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15773893', 'tblTempUsageDetail_20' ) start [2025-09-03 15:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15773893', 'tblTempUsageDetail_20' ) end [2025-09-03 15:25:31] Production.ERROR: pbx prc_insertCDR start [2025-09-03 15:25:33] Production.ERROR: pbx prc_insertCDR end [2025-09-03 15:25:33] Production.INFO: ==13052== Releasing lock... [2025-09-03 15:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-03 15:25:33] Production.INFO: 69 MB #Memory Used# [2025-09-03 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-03 13:25:05 [end_date_ymd] => 2025-09-03 16:25:05 [RateCDR] => 1 ) [2025-09-03 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-09-03 13:25:05' and `end` < '2025-09-03 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-09-03 16:25:23] Production.INFO: count ==5475 [2025-09-03 16:25:26] Production.ERROR: pbx CDR StartTime 2025-09-03 13:25:05 - End Time 2025-09-03 16:25:05 [2025-09-03 16:25:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-03 16:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15774140', 'tblTempUsageDetail_20' ) start [2025-09-03 16:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15774140', 'tblTempUsageDetail_20' ) end [2025-09-03 16:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15774140', 'tblTempVendorCDR_20' ) start [2025-09-03 16:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15774140', 'tblTempVendorCDR_20' ) end [2025-09-03 16:25:26] Production.INFO: ProcessCDR(1,15774140,1,1,2) [2025-09-03 16:25:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15774140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-03 16:25:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15774140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-03 16:25:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15774140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-03 16:25:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15774140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-03 16:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15774140', 'tblTempUsageDetail_20' ) start [2025-09-03 16:25:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15774140', 'tblTempUsageDetail_20' ) end [2025-09-03 16:25:36] Production.ERROR: pbx prc_insertCDR start [2025-09-03 16:25:38] Production.ERROR: pbx prc_insertCDR end [2025-09-03 16:25:38] Production.INFO: ==17788== Releasing lock... [2025-09-03 16:25:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-03 16:25:38] Production.INFO: 69.25 MB #Memory Used# [2025-09-03 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-03 14:25:05 [end_date_ymd] => 2025-09-03 17:25:05 [RateCDR] => 1 ) [2025-09-03 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-09-03 14:25:05' and `end` < '2025-09-03 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-09-03 17:25:18] Production.INFO: count ==5161 [2025-09-03 17:25:21] Production.ERROR: pbx CDR StartTime 2025-09-03 14:25:05 - End Time 2025-09-03 17:25:05 [2025-09-03 17:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-03 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15774387', 'tblTempUsageDetail_20' ) start [2025-09-03 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15774387', 'tblTempUsageDetail_20' ) end [2025-09-03 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15774387', 'tblTempVendorCDR_20' ) start [2025-09-03 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15774387', 'tblTempVendorCDR_20' ) end [2025-09-03 17:25:21] Production.INFO: ProcessCDR(1,15774387,1,1,2) [2025-09-03 17:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15774387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-03 17:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15774387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-03 17:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15774387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-03 17:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15774387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-03 17:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15774387', 'tblTempUsageDetail_20' ) start [2025-09-03 17:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15774387', 'tblTempUsageDetail_20' ) end [2025-09-03 17:25:31] Production.ERROR: pbx prc_insertCDR start [2025-09-03 17:25:32] Production.ERROR: pbx prc_insertCDR end [2025-09-03 17:25:32] Production.INFO: ==22518== Releasing lock... [2025-09-03 17:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-03 17:25:32] Production.INFO: 66.75 MB #Memory Used# [2025-09-03 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-03 15:25:05 [end_date_ymd] => 2025-09-03 18:25:05 [RateCDR] => 1 ) [2025-09-03 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-09-03 15:25:05' and `end` < '2025-09-03 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-09-03 18:25:18] Production.INFO: count ==4348 [2025-09-03 18:25:20] Production.ERROR: pbx CDR StartTime 2025-09-03 15:25:05 - End Time 2025-09-03 18:25:05 [2025-09-03 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-03 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15774634', 'tblTempUsageDetail_20' ) start [2025-09-03 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15774634', 'tblTempUsageDetail_20' ) end [2025-09-03 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15774634', 'tblTempVendorCDR_20' ) start [2025-09-03 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15774634', 'tblTempVendorCDR_20' ) end [2025-09-03 18:25:21] Production.INFO: ProcessCDR(1,15774634,1,1,2) [2025-09-03 18:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15774634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-03 18:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15774634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-03 18:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15774634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-03 18:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15774634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-03 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15774634', 'tblTempUsageDetail_20' ) start [2025-09-03 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15774634', 'tblTempUsageDetail_20' ) end [2025-09-03 18:25:29] Production.ERROR: pbx prc_insertCDR start [2025-09-03 18:25:30] Production.ERROR: pbx prc_insertCDR end [2025-09-03 18:25:30] Production.INFO: ==27131== Releasing lock... [2025-09-03 18:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-03 18:25:30] Production.INFO: 60.75 MB #Memory Used# [2025-09-03 19:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-03 16:25:06 [end_date_ymd] => 2025-09-03 19:25:06 [RateCDR] => 1 ) [2025-09-03 19:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-03 16:25:06' and `end` < '2025-09-03 19:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-03 19:25:18] Production.INFO: count ==3434 [2025-09-03 19:25:20] Production.ERROR: pbx CDR StartTime 2025-09-03 16:25:06 - End Time 2025-09-03 19:25:06 [2025-09-03 19:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-03 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15774878', 'tblTempUsageDetail_20' ) start [2025-09-03 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15774878', 'tblTempUsageDetail_20' ) end [2025-09-03 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15774878', 'tblTempVendorCDR_20' ) start [2025-09-03 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15774878', 'tblTempVendorCDR_20' ) end [2025-09-03 19:25:20] Production.INFO: ProcessCDR(1,15774878,1,1,2) [2025-09-03 19:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15774878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-03 19:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15774878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-03 19:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15774878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-03 19:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15774878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-03 19:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15774878', 'tblTempUsageDetail_20' ) start [2025-09-03 19:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15774878', 'tblTempUsageDetail_20' ) end [2025-09-03 19:25:29] Production.ERROR: pbx prc_insertCDR start [2025-09-03 19:25:30] Production.ERROR: pbx prc_insertCDR end [2025-09-03 19:25:30] Production.INFO: ==31390== Releasing lock... [2025-09-03 19:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-03 19:25:30] Production.INFO: 54 MB #Memory Used# [2025-09-03 20:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-03 17:25:06 [end_date_ymd] => 2025-09-03 20:25:06 [RateCDR] => 1 ) [2025-09-03 20: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-09-03 17:25:06' and `end` < '2025-09-03 20: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-09-03 20:25:18] Production.INFO: count ==2302 [2025-09-03 20:25:19] Production.ERROR: pbx CDR StartTime 2025-09-03 17:25:06 - End Time 2025-09-03 20:25:06 [2025-09-03 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-03 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15775125', 'tblTempUsageDetail_20' ) start [2025-09-03 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15775125', 'tblTempUsageDetail_20' ) end [2025-09-03 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15775125', 'tblTempVendorCDR_20' ) start [2025-09-03 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15775125', 'tblTempVendorCDR_20' ) end [2025-09-03 20:25:19] Production.INFO: ProcessCDR(1,15775125,1,1,2) [2025-09-03 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15775125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-03 20:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15775125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-03 20:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15775125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-03 20:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15775125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-03 20:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15775125', 'tblTempUsageDetail_20' ) start [2025-09-03 20:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15775125', 'tblTempUsageDetail_20' ) end [2025-09-03 20:25:28] Production.ERROR: pbx prc_insertCDR start [2025-09-03 20:25:29] Production.ERROR: pbx prc_insertCDR end [2025-09-03 20:25:29] Production.INFO: ==3526== Releasing lock... [2025-09-03 20:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-03 20:25:29] Production.INFO: 45.5 MB #Memory Used# [2025-09-03 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-03 18:25:05 [end_date_ymd] => 2025-09-03 21:25:05 [RateCDR] => 1 ) [2025-09-03 21:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-03 18:25:05' and `end` < '2025-09-03 21:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-03 21:25:18] Production.INFO: count ==1664 [2025-09-03 21:25:18] Production.ERROR: pbx CDR StartTime 2025-09-03 18:25:05 - End Time 2025-09-03 21:25:05 [2025-09-03 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-03 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15775372', 'tblTempUsageDetail_20' ) start [2025-09-03 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15775372', 'tblTempUsageDetail_20' ) end [2025-09-03 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15775372', 'tblTempVendorCDR_20' ) start [2025-09-03 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15775372', 'tblTempVendorCDR_20' ) end [2025-09-03 21:25:18] Production.INFO: ProcessCDR(1,15775372,1,1,2) [2025-09-03 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15775372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-03 21:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15775372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-03 21:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15775372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-03 21:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15775372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-03 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15775372', 'tblTempUsageDetail_20' ) start [2025-09-03 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15775372', 'tblTempUsageDetail_20' ) end [2025-09-03 21:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-03 21:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-03 21:25:26] Production.INFO: ==8051== Releasing lock... [2025-09-03 21:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-03 21:25:26] Production.INFO: 40.5 MB #Memory Used# [2025-09-03 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-03 19:25:05 [end_date_ymd] => 2025-09-03 22:25:05 [RateCDR] => 1 ) [2025-09-03 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-09-03 19:25:05' and `end` < '2025-09-03 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-09-03 22:25:18] Production.INFO: count ==1006 [2025-09-03 22:25:18] Production.ERROR: pbx CDR StartTime 2025-09-03 19:25:05 - End Time 2025-09-03 22:25:05 [2025-09-03 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-03 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15775619', 'tblTempUsageDetail_20' ) start [2025-09-03 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15775619', 'tblTempUsageDetail_20' ) end [2025-09-03 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15775619', 'tblTempVendorCDR_20' ) start [2025-09-03 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15775619', 'tblTempVendorCDR_20' ) end [2025-09-03 22:25:18] Production.INFO: ProcessCDR(1,15775619,1,1,2) [2025-09-03 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15775619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-03 22:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15775619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-03 22:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15775619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-03 22:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15775619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-03 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15775619', 'tblTempUsageDetail_20' ) start [2025-09-03 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15775619', 'tblTempUsageDetail_20' ) end [2025-09-03 22:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-03 22:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-03 22:25:25] Production.INFO: ==12532== Releasing lock... [2025-09-03 22:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-03 22:25:25] Production.INFO: 36.5 MB #Memory Used# [2025-09-03 23:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-03 20:25:06 [end_date_ymd] => 2025-09-03 23:25:06 [RateCDR] => 1 ) [2025-09-03 23: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-09-03 20:25:06' and `end` < '2025-09-03 23: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-09-03 23:25:18] Production.INFO: count ==766 [2025-09-03 23:25:18] Production.ERROR: pbx CDR StartTime 2025-09-03 20:25:06 - End Time 2025-09-03 23:25:06 [2025-09-03 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-03 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15775866', 'tblTempUsageDetail_20' ) start [2025-09-03 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15775866', 'tblTempUsageDetail_20' ) end [2025-09-03 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15775866', 'tblTempVendorCDR_20' ) start [2025-09-03 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15775866', 'tblTempVendorCDR_20' ) end [2025-09-03 23:25:18] Production.INFO: ProcessCDR(1,15775866,1,1,2) [2025-09-03 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15775866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-03 23:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15775866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-03 23:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15775866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-03 23:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15775866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-03 23:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15775866', 'tblTempUsageDetail_20' ) start [2025-09-03 23:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15775866', 'tblTempUsageDetail_20' ) end [2025-09-03 23:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-03 23:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-03 23:25:26] Production.INFO: ==17022== Releasing lock... [2025-09-03 23:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-03 23:25:26] Production.INFO: 34 MB #Memory Used#