[2025-04-23 00:00:04] Production.INFO: next invoice date [2025-04-23 00:00:04] Production.INFO: 2025-05-23 [2025-04-23 00:00:04] Production.INFO: getdaysdiff [2025-04-23 00:00:04] Production.INFO: +30 [2025-04-23 00:00:04] Production.INFO: call prc_setAccountDiscountPlan (226,11,1,30,30,'RMScheduler',2025-04-23 00:00:04,1,0,,,0) [2025-04-23 00:00:05] Production.INFO: next invoice date [2025-04-23 00:00:05] Production.INFO: 2025-05-23 [2025-04-23 00:00:05] Production.INFO: getdaysdiff [2025-04-23 00:00:05] Production.INFO: +30 [2025-04-23 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (226,13,2,30,30,'RMScheduler',2025-04-23 00:00:04,1,0,,,0) [2025-04-23 00:00:05] Production.INFO: next invoice date [2025-04-23 00:00:05] Production.INFO: 2025-05-23 [2025-04-23 00:00:05] Production.INFO: getdaysdiff [2025-04-23 00:00:05] Production.INFO: +30 [2025-04-23 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (252,16,1,30,30,'RMScheduler',2025-04-23 00:00:04,1,0,,,0) [2025-04-23 00:00:05] Production.INFO: next invoice date [2025-04-23 00:00:05] Production.INFO: 2025-05-23 [2025-04-23 00:00:05] Production.INFO: getdaysdiff [2025-04-23 00:00:05] Production.INFO: +30 [2025-04-23 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (252,13,2,30,30,'RMScheduler',2025-04-23 00:00:04,1,0,,,0) [2025-04-23 00:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 21:00:06 [end_date_ymd] => 2025-04-23 00:00:06 [RateCDR] => 1 ) [2025-04-23 00:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 21:00:06' and `end` < '2025-04-23 00:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 00:00:19] Production.INFO: count ==1035 [2025-04-23 00:00:19] Production.ERROR: pbx CDR StartTime 2025-04-22 21:00:06 - End Time 2025-04-23 00:00:06 [2025-04-23 00:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968457', 'tblTempUsageDetail_20' ) start [2025-04-23 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968457', 'tblTempUsageDetail_20' ) end [2025-04-23 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968457', 'tblTempVendorCDR_20' ) start [2025-04-23 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968457', 'tblTempVendorCDR_20' ) end [2025-04-23 00:00:19] Production.INFO: ProcessCDR(1,14968457,1,1,2) [2025-04-23 00:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968457', 'tblTempUsageDetail_20' ) start [2025-04-23 00:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968457', 'tblTempUsageDetail_20' ) end [2025-04-23 00:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 00:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 00:00:24] Production.INFO: ==21796== Releasing lock... [2025-04-23 00:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 00:00:24] Production.INFO: 37.75 MB #Memory Used# [2025-04-23 00:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 21:01:06 [end_date_ymd] => 2025-04-23 00:01:06 [RateCDR] => 1 ) [2025-04-23 00:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 21:01:06' and `end` < '2025-04-23 00:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 00:01:19] Production.INFO: count ==1030 [2025-04-23 00:01:19] Production.ERROR: pbx CDR StartTime 2025-04-22 21:01:06 - End Time 2025-04-23 00:01:06 [2025-04-23 00:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968463', 'tblTempUsageDetail_20' ) start [2025-04-23 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968463', 'tblTempUsageDetail_20' ) end [2025-04-23 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968463', 'tblTempVendorCDR_20' ) start [2025-04-23 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968463', 'tblTempVendorCDR_20' ) end [2025-04-23 00:01:19] Production.INFO: ProcessCDR(1,14968463,1,1,2) [2025-04-23 00:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968463', 'tblTempUsageDetail_20' ) start [2025-04-23 00:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968463', 'tblTempUsageDetail_20' ) end [2025-04-23 00:01:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 00:01:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 00:01:24] Production.INFO: ==21887== Releasing lock... [2025-04-23 00:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 00:01:24] Production.INFO: 36.25 MB #Memory Used# [2025-04-23 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 21:02:05 [end_date_ymd] => 2025-04-23 00:02:05 [RateCDR] => 1 ) [2025-04-23 00:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 21:02:05' and `end` < '2025-04-23 00:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 00:02:18] Production.INFO: count ==531 [2025-04-23 00:02:18] Production.ERROR: pbx CDR StartTime 2025-04-22 21:02:05 - End Time 2025-04-23 00:02:05 [2025-04-23 00:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968468', 'tblTempUsageDetail_20' ) start [2025-04-23 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968468', 'tblTempUsageDetail_20' ) end [2025-04-23 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968468', 'tblTempVendorCDR_20' ) start [2025-04-23 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968468', 'tblTempVendorCDR_20' ) end [2025-04-23 00:02:18] Production.INFO: ProcessCDR(1,14968468,1,1,2) [2025-04-23 00:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968468', 'tblTempUsageDetail_20' ) start [2025-04-23 00:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968468', 'tblTempUsageDetail_20' ) end [2025-04-23 00:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 00:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 00:02:23] Production.INFO: ==21957== Releasing lock... [2025-04-23 00:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 00:02:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-23 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 21:03:05 [end_date_ymd] => 2025-04-23 00:03:05 [RateCDR] => 1 ) [2025-04-23 00:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 21:03:05' and `end` < '2025-04-23 00:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 00:03:18] Production.INFO: count ==527 [2025-04-23 00:03:18] Production.ERROR: pbx CDR StartTime 2025-04-22 21:03:05 - End Time 2025-04-23 00:03:05 [2025-04-23 00:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968473', 'tblTempUsageDetail_20' ) start [2025-04-23 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968473', 'tblTempUsageDetail_20' ) end [2025-04-23 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968473', 'tblTempVendorCDR_20' ) start [2025-04-23 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968473', 'tblTempVendorCDR_20' ) end [2025-04-23 00:03:18] Production.INFO: ProcessCDR(1,14968473,1,1,2) [2025-04-23 00:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968473', 'tblTempUsageDetail_20' ) start [2025-04-23 00:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968473', 'tblTempUsageDetail_20' ) end [2025-04-23 00:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 00:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 00:03:23] Production.INFO: ==22035== Releasing lock... [2025-04-23 00:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 00:03:23] Production.INFO: 33 MB #Memory Used# [2025-04-23 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 21:04:05 [end_date_ymd] => 2025-04-23 00:04:05 [RateCDR] => 1 ) [2025-04-23 00:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 21:04:05' and `end` < '2025-04-23 00:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 00:04:18] Production.INFO: count ==527 [2025-04-23 00:04:18] Production.ERROR: pbx CDR StartTime 2025-04-22 21:04:05 - End Time 2025-04-23 00:04:05 [2025-04-23 00:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968478', 'tblTempUsageDetail_20' ) start [2025-04-23 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968478', 'tblTempUsageDetail_20' ) end [2025-04-23 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968478', 'tblTempVendorCDR_20' ) start [2025-04-23 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968478', 'tblTempVendorCDR_20' ) end [2025-04-23 00:04:18] Production.INFO: ProcessCDR(1,14968478,1,1,2) [2025-04-23 00:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968478', 'tblTempUsageDetail_20' ) start [2025-04-23 00:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968478', 'tblTempUsageDetail_20' ) end [2025-04-23 00:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 00:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 00:04:21] Production.INFO: ==22116== Releasing lock... [2025-04-23 00:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 00:04:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-23 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 21:05:05 [end_date_ymd] => 2025-04-23 00:05:05 [RateCDR] => 1 ) [2025-04-23 00:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 21:05:05' and `end` < '2025-04-23 00:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 00:05:24] Production.INFO: count ==520 [2025-04-23 00:05:24] Production.ERROR: pbx CDR StartTime 2025-04-22 21:05:05 - End Time 2025-04-23 00:05:05 [2025-04-23 00:05:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 00:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968483', 'tblTempUsageDetail_20' ) start [2025-04-23 00:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968483', 'tblTempUsageDetail_20' ) end [2025-04-23 00:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968483', 'tblTempVendorCDR_20' ) start [2025-04-23 00:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968483', 'tblTempVendorCDR_20' ) end [2025-04-23 00:05:24] Production.INFO: ProcessCDR(1,14968483,1,1,2) [2025-04-23 00:05:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:05:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:05:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:05:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968483', 'tblTempUsageDetail_20' ) start [2025-04-23 00:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968483', 'tblTempUsageDetail_20' ) end [2025-04-23 00:05:29] Production.ERROR: pbx prc_insertCDR start [2025-04-23 00:05:29] Production.ERROR: pbx prc_insertCDR end [2025-04-23 00:05:29] Production.INFO: ==22189== Releasing lock... [2025-04-23 00:05:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 00:05:29] Production.INFO: 32.5 MB #Memory Used# [2025-04-23 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 21:06:05 [end_date_ymd] => 2025-04-23 00:06:05 [RateCDR] => 1 ) [2025-04-23 00:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 21:06:05' and `end` < '2025-04-23 00:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 00:06:19] Production.INFO: count ==513 [2025-04-23 00:06:19] Production.ERROR: pbx CDR StartTime 2025-04-22 21:06:05 - End Time 2025-04-23 00:06:05 [2025-04-23 00:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 00:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968488', 'tblTempUsageDetail_20' ) start [2025-04-23 00:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968488', 'tblTempUsageDetail_20' ) end [2025-04-23 00:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968488', 'tblTempVendorCDR_20' ) start [2025-04-23 00:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968488', 'tblTempVendorCDR_20' ) end [2025-04-23 00:06:19] Production.INFO: ProcessCDR(1,14968488,1,1,2) [2025-04-23 00:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968488', 'tblTempUsageDetail_20' ) start [2025-04-23 00:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968488', 'tblTempUsageDetail_20' ) end [2025-04-23 00:06:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 00:06:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 00:06:24] Production.INFO: ==22259== Releasing lock... [2025-04-23 00:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 00:06:24] Production.INFO: 33 MB #Memory Used# [2025-04-23 00:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 21:07:06 [end_date_ymd] => 2025-04-23 00:07:06 [RateCDR] => 1 ) [2025-04-23 00:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 21:07:06' and `end` < '2025-04-23 00:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 00:07:29] Production.INFO: count ==506 [2025-04-23 00:07:29] Production.ERROR: pbx CDR StartTime 2025-04-22 21:07:06 - End Time 2025-04-23 00:07:06 [2025-04-23 00:07:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 00:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968493', 'tblTempUsageDetail_20' ) start [2025-04-23 00:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968493', 'tblTempUsageDetail_20' ) end [2025-04-23 00:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968493', 'tblTempVendorCDR_20' ) start [2025-04-23 00:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968493', 'tblTempVendorCDR_20' ) end [2025-04-23 00:07:29] Production.INFO: ProcessCDR(1,14968493,1,1,2) [2025-04-23 00:07:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:07:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:07:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:07:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:07:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968493', 'tblTempUsageDetail_20' ) start [2025-04-23 00:07:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968493', 'tblTempUsageDetail_20' ) end [2025-04-23 00:07:33] Production.ERROR: pbx prc_insertCDR start [2025-04-23 00:07:33] Production.ERROR: pbx prc_insertCDR end [2025-04-23 00:07:33] Production.INFO: ==22330== Releasing lock... [2025-04-23 00:07:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 00:07:33] Production.INFO: 32.75 MB #Memory Used# [2025-04-23 00:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 21:08:06 [end_date_ymd] => 2025-04-23 00:08:06 [RateCDR] => 1 ) [2025-04-23 00:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 21:08:06' and `end` < '2025-04-23 00:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 00:08:25] Production.INFO: count ==502 [2025-04-23 00:08:26] Production.ERROR: pbx CDR StartTime 2025-04-22 21:08:06 - End Time 2025-04-23 00:08:06 [2025-04-23 00:08:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 00:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968498', 'tblTempUsageDetail_20' ) start [2025-04-23 00:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968498', 'tblTempUsageDetail_20' ) end [2025-04-23 00:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968498', 'tblTempVendorCDR_20' ) start [2025-04-23 00:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968498', 'tblTempVendorCDR_20' ) end [2025-04-23 00:08:26] Production.INFO: ProcessCDR(1,14968498,1,1,2) [2025-04-23 00:08:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:08:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:08:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:08:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968498', 'tblTempUsageDetail_20' ) start [2025-04-23 00:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968498', 'tblTempUsageDetail_20' ) end [2025-04-23 00:08:29] Production.ERROR: pbx prc_insertCDR start [2025-04-23 00:08:29] Production.ERROR: pbx prc_insertCDR end [2025-04-23 00:08:29] Production.INFO: ==22405== Releasing lock... [2025-04-23 00:08:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 00:08:29] Production.INFO: 32.5 MB #Memory Used# [2025-04-23 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 21:09:05 [end_date_ymd] => 2025-04-23 00:09:05 [RateCDR] => 1 ) [2025-04-23 00:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 21:09:05' and `end` < '2025-04-23 00:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 00:09:24] Production.INFO: count ==499 [2025-04-23 00:09:24] Production.ERROR: pbx CDR StartTime 2025-04-22 21:09:05 - End Time 2025-04-23 00:09:05 [2025-04-23 00:09:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 00:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968503', 'tblTempUsageDetail_20' ) start [2025-04-23 00:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968503', 'tblTempUsageDetail_20' ) end [2025-04-23 00:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968503', 'tblTempVendorCDR_20' ) start [2025-04-23 00:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968503', 'tblTempVendorCDR_20' ) end [2025-04-23 00:09:24] Production.INFO: ProcessCDR(1,14968503,1,1,2) [2025-04-23 00:09:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:09:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:09:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:09:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968503', 'tblTempUsageDetail_20' ) start [2025-04-23 00:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968503', 'tblTempUsageDetail_20' ) end [2025-04-23 00:09:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 00:09:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 00:09:28] Production.INFO: ==22478== Releasing lock... [2025-04-23 00:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 00:09:28] Production.INFO: 32.25 MB #Memory Used# [2025-04-23 00:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 21:10:06 [end_date_ymd] => 2025-04-23 00:10:06 [RateCDR] => 1 ) [2025-04-23 00:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 21:10:06' and `end` < '2025-04-23 00:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 00:10:19] Production.INFO: count ==496 [2025-04-23 00:10:20] Production.ERROR: pbx CDR StartTime 2025-04-22 21:10:06 - End Time 2025-04-23 00:10:06 [2025-04-23 00:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 00:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968509', 'tblTempUsageDetail_20' ) start [2025-04-23 00:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968509', 'tblTempUsageDetail_20' ) end [2025-04-23 00:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968509', 'tblTempVendorCDR_20' ) start [2025-04-23 00:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968509', 'tblTempVendorCDR_20' ) end [2025-04-23 00:10:20] Production.INFO: ProcessCDR(1,14968509,1,1,2) [2025-04-23 00:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968509', 'tblTempUsageDetail_20' ) start [2025-04-23 00:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968509', 'tblTempUsageDetail_20' ) end [2025-04-23 00:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 00:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 00:10:23] Production.INFO: ==22552== Releasing lock... [2025-04-23 00:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 00:10:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-23 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 21:11:05 [end_date_ymd] => 2025-04-23 00:11:05 [RateCDR] => 1 ) [2025-04-23 00:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 21:11:05' and `end` < '2025-04-23 00:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 00:11:18] Production.INFO: count ==493 [2025-04-23 00:11:18] Production.ERROR: pbx CDR StartTime 2025-04-22 21:11:05 - End Time 2025-04-23 00:11:05 [2025-04-23 00:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968514', 'tblTempUsageDetail_20' ) start [2025-04-23 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968514', 'tblTempUsageDetail_20' ) end [2025-04-23 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968514', 'tblTempVendorCDR_20' ) start [2025-04-23 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968514', 'tblTempVendorCDR_20' ) end [2025-04-23 00:11:18] Production.INFO: ProcessCDR(1,14968514,1,1,2) [2025-04-23 00:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968514', 'tblTempUsageDetail_20' ) start [2025-04-23 00:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968514', 'tblTempUsageDetail_20' ) end [2025-04-23 00:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 00:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 00:11:21] Production.INFO: ==22624== Releasing lock... [2025-04-23 00:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 00:11:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-23 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 21:12:05 [end_date_ymd] => 2025-04-23 00:12:05 [RateCDR] => 1 ) [2025-04-23 00:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 21:12:05' and `end` < '2025-04-23 00:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 00:12:18] Production.INFO: count ==493 [2025-04-23 00:12:18] Production.ERROR: pbx CDR StartTime 2025-04-22 21:12:05 - End Time 2025-04-23 00:12:05 [2025-04-23 00:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968519', 'tblTempUsageDetail_20' ) start [2025-04-23 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968519', 'tblTempUsageDetail_20' ) end [2025-04-23 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968519', 'tblTempVendorCDR_20' ) start [2025-04-23 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968519', 'tblTempVendorCDR_20' ) end [2025-04-23 00:12:18] Production.INFO: ProcessCDR(1,14968519,1,1,2) [2025-04-23 00:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968519', 'tblTempUsageDetail_20' ) start [2025-04-23 00:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968519', 'tblTempUsageDetail_20' ) end [2025-04-23 00:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 00:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 00:12:22] Production.INFO: ==22697== Releasing lock... [2025-04-23 00:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 00:12:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-23 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 21:13:05 [end_date_ymd] => 2025-04-23 00:13:05 [RateCDR] => 1 ) [2025-04-23 00:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 21:13:05' and `end` < '2025-04-23 00:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 00:13:18] Production.INFO: count ==488 [2025-04-23 00:13:18] Production.ERROR: pbx CDR StartTime 2025-04-22 21:13:05 - End Time 2025-04-23 00:13:05 [2025-04-23 00:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968524', 'tblTempUsageDetail_20' ) start [2025-04-23 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968524', 'tblTempUsageDetail_20' ) end [2025-04-23 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968524', 'tblTempVendorCDR_20' ) start [2025-04-23 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968524', 'tblTempVendorCDR_20' ) end [2025-04-23 00:13:18] Production.INFO: ProcessCDR(1,14968524,1,1,2) [2025-04-23 00:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968524', 'tblTempUsageDetail_20' ) start [2025-04-23 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968524', 'tblTempUsageDetail_20' ) end [2025-04-23 00:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 00:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 00:13:21] Production.INFO: ==22770== Releasing lock... [2025-04-23 00:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 00:13:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-23 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 21:14:05 [end_date_ymd] => 2025-04-23 00:14:05 [RateCDR] => 1 ) [2025-04-23 00:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 21:14:05' and `end` < '2025-04-23 00:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 00:14:18] Production.INFO: count ==488 [2025-04-23 00:14:18] Production.ERROR: pbx CDR StartTime 2025-04-22 21:14:05 - End Time 2025-04-23 00:14:05 [2025-04-23 00:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968529', 'tblTempUsageDetail_20' ) start [2025-04-23 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968529', 'tblTempUsageDetail_20' ) end [2025-04-23 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968529', 'tblTempVendorCDR_20' ) start [2025-04-23 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968529', 'tblTempVendorCDR_20' ) end [2025-04-23 00:14:18] Production.INFO: ProcessCDR(1,14968529,1,1,2) [2025-04-23 00:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968529', 'tblTempUsageDetail_20' ) start [2025-04-23 00:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968529', 'tblTempUsageDetail_20' ) end [2025-04-23 00:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 00:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 00:14:22] Production.INFO: ==22842== Releasing lock... [2025-04-23 00:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 00:14:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-23 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 21:15:05 [end_date_ymd] => 2025-04-23 00:15:05 [RateCDR] => 1 ) [2025-04-23 00:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 21:15:05' and `end` < '2025-04-23 00:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 00:15:17] Production.INFO: count ==485 [2025-04-23 00:15:17] Production.ERROR: pbx CDR StartTime 2025-04-22 21:15:05 - End Time 2025-04-23 00:15:05 [2025-04-23 00:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968534', 'tblTempUsageDetail_20' ) start [2025-04-23 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968534', 'tblTempUsageDetail_20' ) end [2025-04-23 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968534', 'tblTempVendorCDR_20' ) start [2025-04-23 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968534', 'tblTempVendorCDR_20' ) end [2025-04-23 00:15:17] Production.INFO: ProcessCDR(1,14968534,1,1,2) [2025-04-23 00:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968534', 'tblTempUsageDetail_20' ) start [2025-04-23 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968534', 'tblTempUsageDetail_20' ) end [2025-04-23 00:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 00:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 00:15:21] Production.INFO: ==22917== Releasing lock... [2025-04-23 00:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 00:15:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-23 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 21:16:05 [end_date_ymd] => 2025-04-23 00:16:05 [RateCDR] => 1 ) [2025-04-23 00:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 21:16:05' and `end` < '2025-04-23 00:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 00:16:18] Production.INFO: count ==484 [2025-04-23 00:16:18] Production.ERROR: pbx CDR StartTime 2025-04-22 21:16:05 - End Time 2025-04-23 00:16:05 [2025-04-23 00:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968539', 'tblTempUsageDetail_20' ) start [2025-04-23 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968539', 'tblTempUsageDetail_20' ) end [2025-04-23 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968539', 'tblTempVendorCDR_20' ) start [2025-04-23 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968539', 'tblTempVendorCDR_20' ) end [2025-04-23 00:16:18] Production.INFO: ProcessCDR(1,14968539,1,1,2) [2025-04-23 00:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968539', 'tblTempUsageDetail_20' ) start [2025-04-23 00:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968539', 'tblTempUsageDetail_20' ) end [2025-04-23 00:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 00:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 00:16:22] Production.INFO: ==23028== Releasing lock... [2025-04-23 00:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 00:16:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-23 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 21:17:05 [end_date_ymd] => 2025-04-23 00:17:05 [RateCDR] => 1 ) [2025-04-23 00:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 21:17:05' and `end` < '2025-04-23 00:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 00:17:18] Production.INFO: count ==482 [2025-04-23 00:17:18] Production.ERROR: pbx CDR StartTime 2025-04-22 21:17:05 - End Time 2025-04-23 00:17:05 [2025-04-23 00:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968544', 'tblTempUsageDetail_20' ) start [2025-04-23 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968544', 'tblTempUsageDetail_20' ) end [2025-04-23 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968544', 'tblTempVendorCDR_20' ) start [2025-04-23 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968544', 'tblTempVendorCDR_20' ) end [2025-04-23 00:17:18] Production.INFO: ProcessCDR(1,14968544,1,1,2) [2025-04-23 00:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968544', 'tblTempUsageDetail_20' ) start [2025-04-23 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968544', 'tblTempUsageDetail_20' ) end [2025-04-23 00:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 00:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 00:17:21] Production.INFO: ==23108== Releasing lock... [2025-04-23 00:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 00:17:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-23 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 21:18:05 [end_date_ymd] => 2025-04-23 00:18:05 [RateCDR] => 1 ) [2025-04-23 00:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 21:18:05' and `end` < '2025-04-23 00:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 00:18:18] Production.INFO: count ==482 [2025-04-23 00:18:18] Production.ERROR: pbx CDR StartTime 2025-04-22 21:18:05 - End Time 2025-04-23 00:18:05 [2025-04-23 00:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968549', 'tblTempUsageDetail_20' ) start [2025-04-23 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968549', 'tblTempUsageDetail_20' ) end [2025-04-23 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968549', 'tblTempVendorCDR_20' ) start [2025-04-23 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968549', 'tblTempVendorCDR_20' ) end [2025-04-23 00:18:18] Production.INFO: ProcessCDR(1,14968549,1,1,2) [2025-04-23 00:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968549', 'tblTempUsageDetail_20' ) start [2025-04-23 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968549', 'tblTempUsageDetail_20' ) end [2025-04-23 00:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 00:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 00:18:22] Production.INFO: ==23177== Releasing lock... [2025-04-23 00:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 00:18:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-23 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 21:19:05 [end_date_ymd] => 2025-04-23 00:19:05 [RateCDR] => 1 ) [2025-04-23 00:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 21:19:05' and `end` < '2025-04-23 00:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 00:19:17] Production.INFO: count ==480 [2025-04-23 00:19:18] Production.ERROR: pbx CDR StartTime 2025-04-22 21:19:05 - End Time 2025-04-23 00:19:05 [2025-04-23 00:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968554', 'tblTempUsageDetail_20' ) start [2025-04-23 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968554', 'tblTempUsageDetail_20' ) end [2025-04-23 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968554', 'tblTempVendorCDR_20' ) start [2025-04-23 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968554', 'tblTempVendorCDR_20' ) end [2025-04-23 00:19:18] Production.INFO: ProcessCDR(1,14968554,1,1,2) [2025-04-23 00:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968554', 'tblTempUsageDetail_20' ) start [2025-04-23 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968554', 'tblTempUsageDetail_20' ) end [2025-04-23 00:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 00:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 00:19:21] Production.INFO: ==23250== Releasing lock... [2025-04-23 00:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 00:19:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-23 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 21:20:06 [end_date_ymd] => 2025-04-23 00:20:06 [RateCDR] => 1 ) [2025-04-23 00:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 21:20:06' and `end` < '2025-04-23 00:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 00:20:19] Production.INFO: count ==489 [2025-04-23 00:20:19] Production.ERROR: pbx CDR StartTime 2025-04-22 21:20:06 - End Time 2025-04-23 00:20:06 [2025-04-23 00:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968560', 'tblTempUsageDetail_20' ) start [2025-04-23 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968560', 'tblTempUsageDetail_20' ) end [2025-04-23 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968560', 'tblTempVendorCDR_20' ) start [2025-04-23 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968560', 'tblTempVendorCDR_20' ) end [2025-04-23 00:20:19] Production.INFO: ProcessCDR(1,14968560,1,1,2) [2025-04-23 00:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968560', 'tblTempUsageDetail_20' ) start [2025-04-23 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968560', 'tblTempUsageDetail_20' ) end [2025-04-23 00:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 00:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 00:20:22] Production.INFO: ==23323== Releasing lock... [2025-04-23 00:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 00:20:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-23 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 21:21:05 [end_date_ymd] => 2025-04-23 00:21:05 [RateCDR] => 1 ) [2025-04-23 00:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 21:21:05' and `end` < '2025-04-23 00:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 00:21:17] Production.INFO: count ==508 [2025-04-23 00:21:17] Production.ERROR: pbx CDR StartTime 2025-04-22 21:21:05 - End Time 2025-04-23 00:21:05 [2025-04-23 00:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968565', 'tblTempUsageDetail_20' ) start [2025-04-23 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968565', 'tblTempUsageDetail_20' ) end [2025-04-23 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968565', 'tblTempVendorCDR_20' ) start [2025-04-23 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968565', 'tblTempVendorCDR_20' ) end [2025-04-23 00:21:17] Production.INFO: ProcessCDR(1,14968565,1,1,2) [2025-04-23 00:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968565', 'tblTempUsageDetail_20' ) start [2025-04-23 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968565', 'tblTempUsageDetail_20' ) end [2025-04-23 00:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 00:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 00:21:21] Production.INFO: ==23394== Releasing lock... [2025-04-23 00:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 00:21:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-23 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 21:22:05 [end_date_ymd] => 2025-04-23 00:22:05 [RateCDR] => 1 ) [2025-04-23 00:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 21:22:05' and `end` < '2025-04-23 00:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 00:22:18] Production.INFO: count ==507 [2025-04-23 00:22:18] Production.ERROR: pbx CDR StartTime 2025-04-22 21:22:05 - End Time 2025-04-23 00:22:05 [2025-04-23 00:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968570', 'tblTempUsageDetail_20' ) start [2025-04-23 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968570', 'tblTempUsageDetail_20' ) end [2025-04-23 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968570', 'tblTempVendorCDR_20' ) start [2025-04-23 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968570', 'tblTempVendorCDR_20' ) end [2025-04-23 00:22:18] Production.INFO: ProcessCDR(1,14968570,1,1,2) [2025-04-23 00:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968570', 'tblTempUsageDetail_20' ) start [2025-04-23 00:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968570', 'tblTempUsageDetail_20' ) end [2025-04-23 00:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 00:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 00:22:22] Production.INFO: ==23470== Releasing lock... [2025-04-23 00:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 00:22:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-23 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 21:23:05 [end_date_ymd] => 2025-04-23 00:23:05 [RateCDR] => 1 ) [2025-04-23 00:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 21:23:05' and `end` < '2025-04-23 00:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 00:23:18] Production.INFO: count ==507 [2025-04-23 00:23:18] Production.ERROR: pbx CDR StartTime 2025-04-22 21:23:05 - End Time 2025-04-23 00:23:05 [2025-04-23 00:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968575', 'tblTempUsageDetail_20' ) start [2025-04-23 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968575', 'tblTempUsageDetail_20' ) end [2025-04-23 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968575', 'tblTempVendorCDR_20' ) start [2025-04-23 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968575', 'tblTempVendorCDR_20' ) end [2025-04-23 00:23:18] Production.INFO: ProcessCDR(1,14968575,1,1,2) [2025-04-23 00:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968575', 'tblTempUsageDetail_20' ) start [2025-04-23 00:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968575', 'tblTempUsageDetail_20' ) end [2025-04-23 00:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 00:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 00:23:22] Production.INFO: ==23541== Releasing lock... [2025-04-23 00:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 00:23:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-23 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 21:24:05 [end_date_ymd] => 2025-04-23 00:24:05 [RateCDR] => 1 ) [2025-04-23 00:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 21:24:05' and `end` < '2025-04-23 00:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 00:24:18] Production.INFO: count ==506 [2025-04-23 00:24:18] Production.ERROR: pbx CDR StartTime 2025-04-22 21:24:05 - End Time 2025-04-23 00:24:05 [2025-04-23 00:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968580', 'tblTempUsageDetail_20' ) start [2025-04-23 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968580', 'tblTempUsageDetail_20' ) end [2025-04-23 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968580', 'tblTempVendorCDR_20' ) start [2025-04-23 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968580', 'tblTempVendorCDR_20' ) end [2025-04-23 00:24:18] Production.INFO: ProcessCDR(1,14968580,1,1,2) [2025-04-23 00:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968580', 'tblTempUsageDetail_20' ) start [2025-04-23 00:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968580', 'tblTempUsageDetail_20' ) end [2025-04-23 00:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 00:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 00:24:22] Production.INFO: ==23613== Releasing lock... [2025-04-23 00:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 00:24:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-23 00:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 21:25:06 [end_date_ymd] => 2025-04-23 00:25:06 [RateCDR] => 1 ) [2025-04-23 00:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 21:25:06' and `end` < '2025-04-23 00:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 00:25:18] Production.INFO: count ==506 [2025-04-23 00:25:18] Production.ERROR: pbx CDR StartTime 2025-04-22 21:25:06 - End Time 2025-04-23 00:25:06 [2025-04-23 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968585', 'tblTempUsageDetail_20' ) start [2025-04-23 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968585', 'tblTempUsageDetail_20' ) end [2025-04-23 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968585', 'tblTempVendorCDR_20' ) start [2025-04-23 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968585', 'tblTempVendorCDR_20' ) end [2025-04-23 00:25:18] Production.INFO: ProcessCDR(1,14968585,1,1,2) [2025-04-23 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968585', 'tblTempUsageDetail_20' ) start [2025-04-23 00:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968585', 'tblTempUsageDetail_20' ) end [2025-04-23 00:25:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 00:25:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 00:25:23] Production.INFO: ==23686== Releasing lock... [2025-04-23 00:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 00:25:23] Production.INFO: 32.75 MB #Memory Used# [2025-04-23 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 21:26:05 [end_date_ymd] => 2025-04-23 00:26:05 [RateCDR] => 1 ) [2025-04-23 00:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 21:26:05' and `end` < '2025-04-23 00:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 00:26:17] Production.INFO: count ==506 [2025-04-23 00:26:17] Production.ERROR: pbx CDR StartTime 2025-04-22 21:26:05 - End Time 2025-04-23 00:26:05 [2025-04-23 00:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968590', 'tblTempUsageDetail_20' ) start [2025-04-23 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968590', 'tblTempUsageDetail_20' ) end [2025-04-23 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968590', 'tblTempVendorCDR_20' ) start [2025-04-23 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968590', 'tblTempVendorCDR_20' ) end [2025-04-23 00:26:18] Production.INFO: ProcessCDR(1,14968590,1,1,2) [2025-04-23 00:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968590', 'tblTempUsageDetail_20' ) start [2025-04-23 00:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968590', 'tblTempUsageDetail_20' ) end [2025-04-23 00:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 00:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 00:26:22] Production.INFO: ==23767== Releasing lock... [2025-04-23 00:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 00:26:22] Production.INFO: 33 MB #Memory Used# [2025-04-23 00:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 21:27:06 [end_date_ymd] => 2025-04-23 00:27:06 [RateCDR] => 1 ) [2025-04-23 00:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 21:27:06' and `end` < '2025-04-23 00:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 00:27:18] Production.INFO: count ==503 [2025-04-23 00:27:19] Production.ERROR: pbx CDR StartTime 2025-04-22 21:27:06 - End Time 2025-04-23 00:27:06 [2025-04-23 00:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 00:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968595', 'tblTempUsageDetail_20' ) start [2025-04-23 00:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968595', 'tblTempUsageDetail_20' ) end [2025-04-23 00:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968595', 'tblTempVendorCDR_20' ) start [2025-04-23 00:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968595', 'tblTempVendorCDR_20' ) end [2025-04-23 00:27:19] Production.INFO: ProcessCDR(1,14968595,1,1,2) [2025-04-23 00:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968595', 'tblTempUsageDetail_20' ) start [2025-04-23 00:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968595', 'tblTempUsageDetail_20' ) end [2025-04-23 00:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 00:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 00:27:22] Production.INFO: ==23838== Releasing lock... [2025-04-23 00:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 00:27:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-23 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 21:28:05 [end_date_ymd] => 2025-04-23 00:28:05 [RateCDR] => 1 ) [2025-04-23 00:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 21:28:05' and `end` < '2025-04-23 00:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 00:28:17] Production.INFO: count ==502 [2025-04-23 00:28:18] Production.ERROR: pbx CDR StartTime 2025-04-22 21:28:05 - End Time 2025-04-23 00:28:05 [2025-04-23 00:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968600', 'tblTempUsageDetail_20' ) start [2025-04-23 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968600', 'tblTempUsageDetail_20' ) end [2025-04-23 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968600', 'tblTempVendorCDR_20' ) start [2025-04-23 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968600', 'tblTempVendorCDR_20' ) end [2025-04-23 00:28:18] Production.INFO: ProcessCDR(1,14968600,1,1,2) [2025-04-23 00:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968600', 'tblTempUsageDetail_20' ) start [2025-04-23 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968600', 'tblTempUsageDetail_20' ) end [2025-04-23 00:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 00:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 00:28:21] Production.INFO: ==23909== Releasing lock... [2025-04-23 00:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 00:28:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-23 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 21:29:05 [end_date_ymd] => 2025-04-23 00:29:05 [RateCDR] => 1 ) [2025-04-23 00:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 21:29:05' and `end` < '2025-04-23 00:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 00:29:17] Production.INFO: count ==496 [2025-04-23 00:29:17] Production.ERROR: pbx CDR StartTime 2025-04-22 21:29:05 - End Time 2025-04-23 00:29:05 [2025-04-23 00:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968605', 'tblTempUsageDetail_20' ) start [2025-04-23 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968605', 'tblTempUsageDetail_20' ) end [2025-04-23 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968605', 'tblTempVendorCDR_20' ) start [2025-04-23 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968605', 'tblTempVendorCDR_20' ) end [2025-04-23 00:29:17] Production.INFO: ProcessCDR(1,14968605,1,1,2) [2025-04-23 00:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968605', 'tblTempUsageDetail_20' ) start [2025-04-23 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968605', 'tblTempUsageDetail_20' ) end [2025-04-23 00:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 00:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 00:29:21] Production.INFO: ==23981== Releasing lock... [2025-04-23 00:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 00:29:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-23 00:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 21:30:05 [end_date_ymd] => 2025-04-23 00:30:05 [RateCDR] => 1 ) [2025-04-23 00:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 21:30:05' and `end` < '2025-04-23 00:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 00:30:18] Production.INFO: count ==499 [2025-04-23 00:30:18] Production.ERROR: pbx CDR StartTime 2025-04-22 21:30:05 - End Time 2025-04-23 00:30:05 [2025-04-23 00:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968610', 'tblTempUsageDetail_20' ) start [2025-04-23 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968610', 'tblTempUsageDetail_20' ) end [2025-04-23 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968610', 'tblTempVendorCDR_20' ) start [2025-04-23 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968610', 'tblTempVendorCDR_20' ) end [2025-04-23 00:30:18] Production.INFO: ProcessCDR(1,14968610,1,1,2) [2025-04-23 00:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968610', 'tblTempUsageDetail_20' ) start [2025-04-23 00:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968610', 'tblTempUsageDetail_20' ) end [2025-04-23 00:30:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 00:30:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 00:30:21] Production.INFO: ==24059== Releasing lock... [2025-04-23 00:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 00:30:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-23 00:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 21:31:06 [end_date_ymd] => 2025-04-23 00:31:06 [RateCDR] => 1 ) [2025-04-23 00:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 21:31:06' and `end` < '2025-04-23 00:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 00:31:18] Production.INFO: count ==506 [2025-04-23 00:31:18] Production.ERROR: pbx CDR StartTime 2025-04-22 21:31:06 - End Time 2025-04-23 00:31:06 [2025-04-23 00:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968616', 'tblTempUsageDetail_20' ) start [2025-04-23 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968616', 'tblTempUsageDetail_20' ) end [2025-04-23 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968616', 'tblTempVendorCDR_20' ) start [2025-04-23 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968616', 'tblTempVendorCDR_20' ) end [2025-04-23 00:31:18] Production.INFO: ProcessCDR(1,14968616,1,1,2) [2025-04-23 00:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968616', 'tblTempUsageDetail_20' ) start [2025-04-23 00:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968616', 'tblTempUsageDetail_20' ) end [2025-04-23 00:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 00:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 00:31:22] Production.INFO: ==24174== Releasing lock... [2025-04-23 00:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 00:31:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-23 00:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 21:32:04 [end_date_ymd] => 2025-04-23 00:32:04 [RateCDR] => 1 ) [2025-04-23 00:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 21:32:04' and `end` < '2025-04-23 00:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 00:32:17] Production.INFO: count ==505 [2025-04-23 00:32:17] Production.ERROR: pbx CDR StartTime 2025-04-22 21:32:04 - End Time 2025-04-23 00:32:04 [2025-04-23 00:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968621', 'tblTempUsageDetail_20' ) start [2025-04-23 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968621', 'tblTempUsageDetail_20' ) end [2025-04-23 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968621', 'tblTempVendorCDR_20' ) start [2025-04-23 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968621', 'tblTempVendorCDR_20' ) end [2025-04-23 00:32:17] Production.INFO: ProcessCDR(1,14968621,1,1,2) [2025-04-23 00:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968621', 'tblTempUsageDetail_20' ) start [2025-04-23 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968621', 'tblTempUsageDetail_20' ) end [2025-04-23 00:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 00:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 00:32:21] Production.INFO: ==24251== Releasing lock... [2025-04-23 00:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 00:32:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-23 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 21:33:05 [end_date_ymd] => 2025-04-23 00:33:05 [RateCDR] => 1 ) [2025-04-23 00:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 21:33:05' and `end` < '2025-04-23 00:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 00:33:18] Production.INFO: count ==504 [2025-04-23 00:33:18] Production.ERROR: pbx CDR StartTime 2025-04-22 21:33:05 - End Time 2025-04-23 00:33:05 [2025-04-23 00:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968626', 'tblTempUsageDetail_20' ) start [2025-04-23 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968626', 'tblTempUsageDetail_20' ) end [2025-04-23 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968626', 'tblTempVendorCDR_20' ) start [2025-04-23 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968626', 'tblTempVendorCDR_20' ) end [2025-04-23 00:33:18] Production.INFO: ProcessCDR(1,14968626,1,1,2) [2025-04-23 00:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968626', 'tblTempUsageDetail_20' ) start [2025-04-23 00:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968626', 'tblTempUsageDetail_20' ) end [2025-04-23 00:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 00:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 00:33:24] Production.INFO: ==24321== Releasing lock... [2025-04-23 00:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 00:33:24] Production.INFO: 32.25 MB #Memory Used# [2025-04-23 00:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 21:34:06 [end_date_ymd] => 2025-04-23 00:34:06 [RateCDR] => 1 ) [2025-04-23 00:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 21:34:06' and `end` < '2025-04-23 00:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 00:34:18] Production.INFO: count ==507 [2025-04-23 00:34:19] Production.ERROR: pbx CDR StartTime 2025-04-22 21:34:06 - End Time 2025-04-23 00:34:06 [2025-04-23 00:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968631', 'tblTempUsageDetail_20' ) start [2025-04-23 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968631', 'tblTempUsageDetail_20' ) end [2025-04-23 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968631', 'tblTempVendorCDR_20' ) start [2025-04-23 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968631', 'tblTempVendorCDR_20' ) end [2025-04-23 00:34:19] Production.INFO: ProcessCDR(1,14968631,1,1,2) [2025-04-23 00:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968631', 'tblTempUsageDetail_20' ) start [2025-04-23 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968631', 'tblTempUsageDetail_20' ) end [2025-04-23 00:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 00:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 00:34:22] Production.INFO: ==24398== Releasing lock... [2025-04-23 00:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 00:34:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-23 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 21:35:05 [end_date_ymd] => 2025-04-23 00:35:05 [RateCDR] => 1 ) [2025-04-23 00:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 21:35:05' and `end` < '2025-04-23 00:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 00:35:18] Production.INFO: count ==504 [2025-04-23 00:35:18] Production.ERROR: pbx CDR StartTime 2025-04-22 21:35:05 - End Time 2025-04-23 00:35:05 [2025-04-23 00:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968636', 'tblTempUsageDetail_20' ) start [2025-04-23 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968636', 'tblTempUsageDetail_20' ) end [2025-04-23 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968636', 'tblTempVendorCDR_20' ) start [2025-04-23 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968636', 'tblTempVendorCDR_20' ) end [2025-04-23 00:35:18] Production.INFO: ProcessCDR(1,14968636,1,1,2) [2025-04-23 00:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968636', 'tblTempUsageDetail_20' ) start [2025-04-23 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968636', 'tblTempUsageDetail_20' ) end [2025-04-23 00:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 00:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 00:35:21] Production.INFO: ==24473== Releasing lock... [2025-04-23 00:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 00:35:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-23 00:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 21:36:06 [end_date_ymd] => 2025-04-23 00:36:06 [RateCDR] => 1 ) [2025-04-23 00:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 21:36:06' and `end` < '2025-04-23 00:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 00:36:18] Production.INFO: count ==505 [2025-04-23 00:36:18] Production.ERROR: pbx CDR StartTime 2025-04-22 21:36:06 - End Time 2025-04-23 00:36:06 [2025-04-23 00:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968641', 'tblTempUsageDetail_20' ) start [2025-04-23 00:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968641', 'tblTempUsageDetail_20' ) end [2025-04-23 00:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968641', 'tblTempVendorCDR_20' ) start [2025-04-23 00:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968641', 'tblTempVendorCDR_20' ) end [2025-04-23 00:36:19] Production.INFO: ProcessCDR(1,14968641,1,1,2) [2025-04-23 00:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968641', 'tblTempUsageDetail_20' ) start [2025-04-23 00:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968641', 'tblTempUsageDetail_20' ) end [2025-04-23 00:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 00:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 00:36:22] Production.INFO: ==24547== Releasing lock... [2025-04-23 00:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 00:36:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-23 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 21:37:05 [end_date_ymd] => 2025-04-23 00:37:05 [RateCDR] => 1 ) [2025-04-23 00:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 21:37:05' and `end` < '2025-04-23 00:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 00:37:17] Production.INFO: count ==504 [2025-04-23 00:37:17] Production.ERROR: pbx CDR StartTime 2025-04-22 21:37:05 - End Time 2025-04-23 00:37:05 [2025-04-23 00:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968646', 'tblTempUsageDetail_20' ) start [2025-04-23 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968646', 'tblTempUsageDetail_20' ) end [2025-04-23 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968646', 'tblTempVendorCDR_20' ) start [2025-04-23 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968646', 'tblTempVendorCDR_20' ) end [2025-04-23 00:37:17] Production.INFO: ProcessCDR(1,14968646,1,1,2) [2025-04-23 00:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968646', 'tblTempUsageDetail_20' ) start [2025-04-23 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968646', 'tblTempUsageDetail_20' ) end [2025-04-23 00:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 00:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 00:37:21] Production.INFO: ==24624== Releasing lock... [2025-04-23 00:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 00:37:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-23 00:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 21:38:06 [end_date_ymd] => 2025-04-23 00:38:06 [RateCDR] => 1 ) [2025-04-23 00:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 21:38:06' and `end` < '2025-04-23 00:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 00:38:18] Production.INFO: count ==503 [2025-04-23 00:38:18] Production.ERROR: pbx CDR StartTime 2025-04-22 21:38:06 - End Time 2025-04-23 00:38:06 [2025-04-23 00:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968651', 'tblTempUsageDetail_20' ) start [2025-04-23 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968651', 'tblTempUsageDetail_20' ) end [2025-04-23 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968651', 'tblTempVendorCDR_20' ) start [2025-04-23 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968651', 'tblTempVendorCDR_20' ) end [2025-04-23 00:38:18] Production.INFO: ProcessCDR(1,14968651,1,1,2) [2025-04-23 00:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968651', 'tblTempUsageDetail_20' ) start [2025-04-23 00:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968651', 'tblTempUsageDetail_20' ) end [2025-04-23 00:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 00:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 00:38:22] Production.INFO: ==24695== Releasing lock... [2025-04-23 00:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 00:38:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-23 00:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 21:39:04 [end_date_ymd] => 2025-04-23 00:39:04 [RateCDR] => 1 ) [2025-04-23 00:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 21:39:04' and `end` < '2025-04-23 00:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 00:39:17] Production.INFO: count ==502 [2025-04-23 00:39:17] Production.ERROR: pbx CDR StartTime 2025-04-22 21:39:04 - End Time 2025-04-23 00:39:04 [2025-04-23 00:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968656', 'tblTempUsageDetail_20' ) start [2025-04-23 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968656', 'tblTempUsageDetail_20' ) end [2025-04-23 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968656', 'tblTempVendorCDR_20' ) start [2025-04-23 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968656', 'tblTempVendorCDR_20' ) end [2025-04-23 00:39:17] Production.INFO: ProcessCDR(1,14968656,1,1,2) [2025-04-23 00:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968656', 'tblTempUsageDetail_20' ) start [2025-04-23 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968656', 'tblTempUsageDetail_20' ) end [2025-04-23 00:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 00:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 00:39:21] Production.INFO: ==24766== Releasing lock... [2025-04-23 00:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 00:39:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-23 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 21:40:06 [end_date_ymd] => 2025-04-23 00:40:06 [RateCDR] => 1 ) [2025-04-23 00:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 21:40:06' and `end` < '2025-04-23 00:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 00:40:18] Production.INFO: count ==511 [2025-04-23 00:40:19] Production.ERROR: pbx CDR StartTime 2025-04-22 21:40:06 - End Time 2025-04-23 00:40:06 [2025-04-23 00:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968662', 'tblTempUsageDetail_20' ) start [2025-04-23 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968662', 'tblTempUsageDetail_20' ) end [2025-04-23 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968662', 'tblTempVendorCDR_20' ) start [2025-04-23 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968662', 'tblTempVendorCDR_20' ) end [2025-04-23 00:40:19] Production.INFO: ProcessCDR(1,14968662,1,1,2) [2025-04-23 00:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968662', 'tblTempUsageDetail_20' ) start [2025-04-23 00:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968662', 'tblTempUsageDetail_20' ) end [2025-04-23 00:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 00:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 00:40:23] Production.INFO: ==24843== Releasing lock... [2025-04-23 00:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 00:40:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-23 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 21:41:05 [end_date_ymd] => 2025-04-23 00:41:05 [RateCDR] => 1 ) [2025-04-23 00:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 21:41:05' and `end` < '2025-04-23 00:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 00:41:17] Production.INFO: count ==506 [2025-04-23 00:41:17] Production.ERROR: pbx CDR StartTime 2025-04-22 21:41:05 - End Time 2025-04-23 00:41:05 [2025-04-23 00:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968667', 'tblTempUsageDetail_20' ) start [2025-04-23 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968667', 'tblTempUsageDetail_20' ) end [2025-04-23 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968667', 'tblTempVendorCDR_20' ) start [2025-04-23 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968667', 'tblTempVendorCDR_20' ) end [2025-04-23 00:41:17] Production.INFO: ProcessCDR(1,14968667,1,1,2) [2025-04-23 00:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968667', 'tblTempUsageDetail_20' ) start [2025-04-23 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968667', 'tblTempUsageDetail_20' ) end [2025-04-23 00:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 00:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 00:41:21] Production.INFO: ==24918== Releasing lock... [2025-04-23 00:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 00:41:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-23 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 21:42:05 [end_date_ymd] => 2025-04-23 00:42:05 [RateCDR] => 1 ) [2025-04-23 00:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 21:42:05' and `end` < '2025-04-23 00:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 00:42:18] Production.INFO: count ==504 [2025-04-23 00:42:18] Production.ERROR: pbx CDR StartTime 2025-04-22 21:42:05 - End Time 2025-04-23 00:42:05 [2025-04-23 00:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968672', 'tblTempUsageDetail_20' ) start [2025-04-23 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968672', 'tblTempUsageDetail_20' ) end [2025-04-23 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968672', 'tblTempVendorCDR_20' ) start [2025-04-23 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968672', 'tblTempVendorCDR_20' ) end [2025-04-23 00:42:18] Production.INFO: ProcessCDR(1,14968672,1,1,2) [2025-04-23 00:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968672', 'tblTempUsageDetail_20' ) start [2025-04-23 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968672', 'tblTempUsageDetail_20' ) end [2025-04-23 00:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 00:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 00:42:21] Production.INFO: ==24995== Releasing lock... [2025-04-23 00:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 00:42:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-23 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 21:43:05 [end_date_ymd] => 2025-04-23 00:43:05 [RateCDR] => 1 ) [2025-04-23 00:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 21:43:05' and `end` < '2025-04-23 00:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 00:43:18] Production.INFO: count ==498 [2025-04-23 00:43:18] Production.ERROR: pbx CDR StartTime 2025-04-22 21:43:05 - End Time 2025-04-23 00:43:05 [2025-04-23 00:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968677', 'tblTempUsageDetail_20' ) start [2025-04-23 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968677', 'tblTempUsageDetail_20' ) end [2025-04-23 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968677', 'tblTempVendorCDR_20' ) start [2025-04-23 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968677', 'tblTempVendorCDR_20' ) end [2025-04-23 00:43:18] Production.INFO: ProcessCDR(1,14968677,1,1,2) [2025-04-23 00:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968677', 'tblTempUsageDetail_20' ) start [2025-04-23 00:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968677', 'tblTempUsageDetail_20' ) end [2025-04-23 00:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 00:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 00:43:22] Production.INFO: ==25068== Releasing lock... [2025-04-23 00:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 00:43:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-23 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 21:44:05 [end_date_ymd] => 2025-04-23 00:44:05 [RateCDR] => 1 ) [2025-04-23 00:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 21:44:05' and `end` < '2025-04-23 00:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 00:44:17] Production.INFO: count ==496 [2025-04-23 00:44:18] Production.ERROR: pbx CDR StartTime 2025-04-22 21:44:05 - End Time 2025-04-23 00:44:05 [2025-04-23 00:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968682', 'tblTempUsageDetail_20' ) start [2025-04-23 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968682', 'tblTempUsageDetail_20' ) end [2025-04-23 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968682', 'tblTempVendorCDR_20' ) start [2025-04-23 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968682', 'tblTempVendorCDR_20' ) end [2025-04-23 00:44:18] Production.INFO: ProcessCDR(1,14968682,1,1,2) [2025-04-23 00:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968682', 'tblTempUsageDetail_20' ) start [2025-04-23 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968682', 'tblTempUsageDetail_20' ) end [2025-04-23 00:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 00:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 00:44:21] Production.INFO: ==25144== Releasing lock... [2025-04-23 00:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 00:44:21] Production.INFO: 32 MB #Memory Used# [2025-04-23 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 21:45:05 [end_date_ymd] => 2025-04-23 00:45:05 [RateCDR] => 1 ) [2025-04-23 00:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 21:45:05' and `end` < '2025-04-23 00:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 00:45:18] Production.INFO: count ==493 [2025-04-23 00:45:18] Production.ERROR: pbx CDR StartTime 2025-04-22 21:45:05 - End Time 2025-04-23 00:45:05 [2025-04-23 00:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968687', 'tblTempUsageDetail_20' ) start [2025-04-23 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968687', 'tblTempUsageDetail_20' ) end [2025-04-23 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968687', 'tblTempVendorCDR_20' ) start [2025-04-23 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968687', 'tblTempVendorCDR_20' ) end [2025-04-23 00:45:18] Production.INFO: ProcessCDR(1,14968687,1,1,2) [2025-04-23 00:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968687', 'tblTempUsageDetail_20' ) start [2025-04-23 00:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968687', 'tblTempUsageDetail_20' ) end [2025-04-23 00:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 00:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 00:45:22] Production.INFO: ==25216== Releasing lock... [2025-04-23 00:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 00:45:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-23 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 21:46:05 [end_date_ymd] => 2025-04-23 00:46:05 [RateCDR] => 1 ) [2025-04-23 00:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 21:46:05' and `end` < '2025-04-23 00:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 00:46:17] Production.INFO: count ==489 [2025-04-23 00:46:18] Production.ERROR: pbx CDR StartTime 2025-04-22 21:46:05 - End Time 2025-04-23 00:46:05 [2025-04-23 00:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968692', 'tblTempUsageDetail_20' ) start [2025-04-23 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968692', 'tblTempUsageDetail_20' ) end [2025-04-23 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968692', 'tblTempVendorCDR_20' ) start [2025-04-23 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968692', 'tblTempVendorCDR_20' ) end [2025-04-23 00:46:18] Production.INFO: ProcessCDR(1,14968692,1,1,2) [2025-04-23 00:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968692', 'tblTempUsageDetail_20' ) start [2025-04-23 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968692', 'tblTempUsageDetail_20' ) end [2025-04-23 00:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 00:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 00:46:21] Production.INFO: ==25288== Releasing lock... [2025-04-23 00:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 00:46:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-23 00:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 21:47:06 [end_date_ymd] => 2025-04-23 00:47:06 [RateCDR] => 1 ) [2025-04-23 00:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 21:47:06' and `end` < '2025-04-23 00:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 00:47:18] Production.INFO: count ==491 [2025-04-23 00:47:18] Production.ERROR: pbx CDR StartTime 2025-04-22 21:47:06 - End Time 2025-04-23 00:47:06 [2025-04-23 00:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968697', 'tblTempUsageDetail_20' ) start [2025-04-23 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968697', 'tblTempUsageDetail_20' ) end [2025-04-23 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968697', 'tblTempVendorCDR_20' ) start [2025-04-23 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968697', 'tblTempVendorCDR_20' ) end [2025-04-23 00:47:18] Production.INFO: ProcessCDR(1,14968697,1,1,2) [2025-04-23 00:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968697', 'tblTempUsageDetail_20' ) start [2025-04-23 00:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968697', 'tblTempUsageDetail_20' ) end [2025-04-23 00:47:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 00:47:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 00:47:24] Production.INFO: ==25398== Releasing lock... [2025-04-23 00:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 00:47:24] Production.INFO: 32 MB #Memory Used# [2025-04-23 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 21:48:05 [end_date_ymd] => 2025-04-23 00:48:05 [RateCDR] => 1 ) [2025-04-23 00:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 21:48:05' and `end` < '2025-04-23 00:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 00:48:17] Production.INFO: count ==488 [2025-04-23 00:48:18] Production.ERROR: pbx CDR StartTime 2025-04-22 21:48:05 - End Time 2025-04-23 00:48:05 [2025-04-23 00:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968702', 'tblTempUsageDetail_20' ) start [2025-04-23 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968702', 'tblTempUsageDetail_20' ) end [2025-04-23 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968702', 'tblTempVendorCDR_20' ) start [2025-04-23 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968702', 'tblTempVendorCDR_20' ) end [2025-04-23 00:48:18] Production.INFO: ProcessCDR(1,14968702,1,1,2) [2025-04-23 00:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968702', 'tblTempUsageDetail_20' ) start [2025-04-23 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968702', 'tblTempUsageDetail_20' ) end [2025-04-23 00:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 00:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 00:48:21] Production.INFO: ==25472== Releasing lock... [2025-04-23 00:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 00:48:21] Production.INFO: 32 MB #Memory Used# [2025-04-23 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 21:49:05 [end_date_ymd] => 2025-04-23 00:49:05 [RateCDR] => 1 ) [2025-04-23 00:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 21:49:05' and `end` < '2025-04-23 00:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 00:49:17] Production.INFO: count ==486 [2025-04-23 00:49:17] Production.ERROR: pbx CDR StartTime 2025-04-22 21:49:05 - End Time 2025-04-23 00:49:05 [2025-04-23 00:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968707', 'tblTempUsageDetail_20' ) start [2025-04-23 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968707', 'tblTempUsageDetail_20' ) end [2025-04-23 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968707', 'tblTempVendorCDR_20' ) start [2025-04-23 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968707', 'tblTempVendorCDR_20' ) end [2025-04-23 00:49:18] Production.INFO: ProcessCDR(1,14968707,1,1,2) [2025-04-23 00:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968707', 'tblTempUsageDetail_20' ) start [2025-04-23 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968707', 'tblTempUsageDetail_20' ) end [2025-04-23 00:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 00:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 00:49:21] Production.INFO: ==25547== Releasing lock... [2025-04-23 00:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 00:49:21] Production.INFO: 32 MB #Memory Used# [2025-04-23 00:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 21:50:05 [end_date_ymd] => 2025-04-23 00:50:05 [RateCDR] => 1 ) [2025-04-23 00:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 21:50:05' and `end` < '2025-04-23 00:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 00:50:18] Production.INFO: count ==492 [2025-04-23 00:50:18] Production.ERROR: pbx CDR StartTime 2025-04-22 21:50:05 - End Time 2025-04-23 00:50:05 [2025-04-23 00:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968713', 'tblTempUsageDetail_20' ) start [2025-04-23 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968713', 'tblTempUsageDetail_20' ) end [2025-04-23 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968713', 'tblTempVendorCDR_20' ) start [2025-04-23 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968713', 'tblTempVendorCDR_20' ) end [2025-04-23 00:50:18] Production.INFO: ProcessCDR(1,14968713,1,1,2) [2025-04-23 00:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968713', 'tblTempUsageDetail_20' ) start [2025-04-23 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968713', 'tblTempUsageDetail_20' ) end [2025-04-23 00:50:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 00:50:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 00:50:21] Production.INFO: ==25641== Releasing lock... [2025-04-23 00:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 00:50:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-23 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 21:51:05 [end_date_ymd] => 2025-04-23 00:51:05 [RateCDR] => 1 ) [2025-04-23 00:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 21:51:05' and `end` < '2025-04-23 00:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 00:51:17] Production.INFO: count ==492 [2025-04-23 00:51:17] Production.ERROR: pbx CDR StartTime 2025-04-22 21:51:05 - End Time 2025-04-23 00:51:05 [2025-04-23 00:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968718', 'tblTempUsageDetail_20' ) start [2025-04-23 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968718', 'tblTempUsageDetail_20' ) end [2025-04-23 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968718', 'tblTempVendorCDR_20' ) start [2025-04-23 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968718', 'tblTempVendorCDR_20' ) end [2025-04-23 00:51:17] Production.INFO: ProcessCDR(1,14968718,1,1,2) [2025-04-23 00:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968718', 'tblTempUsageDetail_20' ) start [2025-04-23 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968718', 'tblTempUsageDetail_20' ) end [2025-04-23 00:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 00:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 00:51:21] Production.INFO: ==25717== Releasing lock... [2025-04-23 00:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 00:51:21] Production.INFO: 32 MB #Memory Used# [2025-04-23 00:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 21:52:06 [end_date_ymd] => 2025-04-23 00:52:06 [RateCDR] => 1 ) [2025-04-23 00:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 21:52:06' and `end` < '2025-04-23 00:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 00:52:18] Production.INFO: count ==492 [2025-04-23 00:52:19] Production.ERROR: pbx CDR StartTime 2025-04-22 21:52:06 - End Time 2025-04-23 00:52:06 [2025-04-23 00:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968723', 'tblTempUsageDetail_20' ) start [2025-04-23 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968723', 'tblTempUsageDetail_20' ) end [2025-04-23 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968723', 'tblTempVendorCDR_20' ) start [2025-04-23 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968723', 'tblTempVendorCDR_20' ) end [2025-04-23 00:52:19] Production.INFO: ProcessCDR(1,14968723,1,1,2) [2025-04-23 00:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968723', 'tblTempUsageDetail_20' ) start [2025-04-23 00:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968723', 'tblTempUsageDetail_20' ) end [2025-04-23 00:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 00:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 00:52:22] Production.INFO: ==25790== Releasing lock... [2025-04-23 00:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 00:52:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-23 00:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 21:53:04 [end_date_ymd] => 2025-04-23 00:53:04 [RateCDR] => 1 ) [2025-04-23 00:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 21:53:04' and `end` < '2025-04-23 00:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 00:53:17] Production.INFO: count ==491 [2025-04-23 00:53:17] Production.ERROR: pbx CDR StartTime 2025-04-22 21:53:04 - End Time 2025-04-23 00:53:04 [2025-04-23 00:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968728', 'tblTempUsageDetail_20' ) start [2025-04-23 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968728', 'tblTempUsageDetail_20' ) end [2025-04-23 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968728', 'tblTempVendorCDR_20' ) start [2025-04-23 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968728', 'tblTempVendorCDR_20' ) end [2025-04-23 00:53:17] Production.INFO: ProcessCDR(1,14968728,1,1,2) [2025-04-23 00:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968728', 'tblTempUsageDetail_20' ) start [2025-04-23 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968728', 'tblTempUsageDetail_20' ) end [2025-04-23 00:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 00:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 00:53:21] Production.INFO: ==25866== Releasing lock... [2025-04-23 00:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 00:53:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-23 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 21:54:05 [end_date_ymd] => 2025-04-23 00:54:05 [RateCDR] => 1 ) [2025-04-23 00:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 21:54:05' and `end` < '2025-04-23 00:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 00:54:18] Production.INFO: count ==488 [2025-04-23 00:54:18] Production.ERROR: pbx CDR StartTime 2025-04-22 21:54:05 - End Time 2025-04-23 00:54:05 [2025-04-23 00:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968733', 'tblTempUsageDetail_20' ) start [2025-04-23 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968733', 'tblTempUsageDetail_20' ) end [2025-04-23 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968733', 'tblTempVendorCDR_20' ) start [2025-04-23 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968733', 'tblTempVendorCDR_20' ) end [2025-04-23 00:54:18] Production.INFO: ProcessCDR(1,14968733,1,1,2) [2025-04-23 00:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968733', 'tblTempUsageDetail_20' ) start [2025-04-23 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968733', 'tblTempUsageDetail_20' ) end [2025-04-23 00:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 00:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 00:54:22] Production.INFO: ==25939== Releasing lock... [2025-04-23 00:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 00:54:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-23 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 21:55:05 [end_date_ymd] => 2025-04-23 00:55:05 [RateCDR] => 1 ) [2025-04-23 00:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 21:55:05' and `end` < '2025-04-23 00:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 00:55:18] Production.INFO: count ==487 [2025-04-23 00:55:18] Production.ERROR: pbx CDR StartTime 2025-04-22 21:55:05 - End Time 2025-04-23 00:55:05 [2025-04-23 00:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968738', 'tblTempUsageDetail_20' ) start [2025-04-23 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968738', 'tblTempUsageDetail_20' ) end [2025-04-23 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968738', 'tblTempVendorCDR_20' ) start [2025-04-23 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968738', 'tblTempVendorCDR_20' ) end [2025-04-23 00:55:18] Production.INFO: ProcessCDR(1,14968738,1,1,2) [2025-04-23 00:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968738', 'tblTempUsageDetail_20' ) start [2025-04-23 00:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968738', 'tblTempUsageDetail_20' ) end [2025-04-23 00:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 00:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 00:55:23] Production.INFO: ==26011== Releasing lock... [2025-04-23 00:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 00:55:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-23 00:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 21:56:06 [end_date_ymd] => 2025-04-23 00:56:06 [RateCDR] => 1 ) [2025-04-23 00:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 21:56:06' and `end` < '2025-04-23 00:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 00:56:18] Production.INFO: count ==486 [2025-04-23 00:56:18] Production.ERROR: pbx CDR StartTime 2025-04-22 21:56:06 - End Time 2025-04-23 00:56:06 [2025-04-23 00:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968743', 'tblTempUsageDetail_20' ) start [2025-04-23 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968743', 'tblTempUsageDetail_20' ) end [2025-04-23 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968743', 'tblTempVendorCDR_20' ) start [2025-04-23 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968743', 'tblTempVendorCDR_20' ) end [2025-04-23 00:56:19] Production.INFO: ProcessCDR(1,14968743,1,1,2) [2025-04-23 00:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968743', 'tblTempUsageDetail_20' ) start [2025-04-23 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968743', 'tblTempUsageDetail_20' ) end [2025-04-23 00:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 00:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 00:56:22] Production.INFO: ==26086== Releasing lock... [2025-04-23 00:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 00:56:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-23 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 21:57:05 [end_date_ymd] => 2025-04-23 00:57:05 [RateCDR] => 1 ) [2025-04-23 00:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 21:57:05' and `end` < '2025-04-23 00:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 00:57:18] Production.INFO: count ==486 [2025-04-23 00:57:18] Production.ERROR: pbx CDR StartTime 2025-04-22 21:57:05 - End Time 2025-04-23 00:57:05 [2025-04-23 00:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968748', 'tblTempUsageDetail_20' ) start [2025-04-23 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968748', 'tblTempUsageDetail_20' ) end [2025-04-23 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968748', 'tblTempVendorCDR_20' ) start [2025-04-23 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968748', 'tblTempVendorCDR_20' ) end [2025-04-23 00:57:18] Production.INFO: ProcessCDR(1,14968748,1,1,2) [2025-04-23 00:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968748', 'tblTempUsageDetail_20' ) start [2025-04-23 00:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968748', 'tblTempUsageDetail_20' ) end [2025-04-23 00:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 00:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 00:57:21] Production.INFO: ==26164== Releasing lock... [2025-04-23 00:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 00:57:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-23 00:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 21:58:06 [end_date_ymd] => 2025-04-23 00:58:06 [RateCDR] => 1 ) [2025-04-23 00:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 21:58:06' and `end` < '2025-04-23 00:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 00:58:18] Production.INFO: count ==484 [2025-04-23 00:58:19] Production.ERROR: pbx CDR StartTime 2025-04-22 21:58:06 - End Time 2025-04-23 00:58:06 [2025-04-23 00:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 00:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968753', 'tblTempUsageDetail_20' ) start [2025-04-23 00:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968753', 'tblTempUsageDetail_20' ) end [2025-04-23 00:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968753', 'tblTempVendorCDR_20' ) start [2025-04-23 00:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968753', 'tblTempVendorCDR_20' ) end [2025-04-23 00:58:19] Production.INFO: ProcessCDR(1,14968753,1,1,2) [2025-04-23 00:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968753', 'tblTempUsageDetail_20' ) start [2025-04-23 00:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968753', 'tblTempUsageDetail_20' ) end [2025-04-23 00:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 00:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 00:58:22] Production.INFO: ==26236== Releasing lock... [2025-04-23 00:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 00:58:22] Production.INFO: 32 MB #Memory Used# [2025-04-23 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 21:59:05 [end_date_ymd] => 2025-04-23 00:59:05 [RateCDR] => 1 ) [2025-04-23 00:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 21:59:05' and `end` < '2025-04-23 00:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 00:59:17] Production.INFO: count ==477 [2025-04-23 00:59:17] Production.ERROR: pbx CDR StartTime 2025-04-22 21:59:05 - End Time 2025-04-23 00:59:05 [2025-04-23 00:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968755', 'tblTempUsageDetail_20' ) start [2025-04-23 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968755', 'tblTempUsageDetail_20' ) end [2025-04-23 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968755', 'tblTempVendorCDR_20' ) start [2025-04-23 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968755', 'tblTempVendorCDR_20' ) end [2025-04-23 00:59:17] Production.INFO: ProcessCDR(1,14968755,1,1,2) [2025-04-23 00:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 00:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968755', 'tblTempUsageDetail_20' ) start [2025-04-23 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968755', 'tblTempUsageDetail_20' ) end [2025-04-23 00:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 00:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 00:59:21] Production.INFO: ==26312== Releasing lock... [2025-04-23 00:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 00:59:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-23 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 22:00:06 [end_date_ymd] => 2025-04-23 01:00:06 [RateCDR] => 1 ) [2025-04-23 01:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 22:00:06' and `end` < '2025-04-23 01:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 01:00:19] Production.INFO: count ==480 [2025-04-23 01:00:19] Production.ERROR: pbx CDR StartTime 2025-04-22 22:00:06 - End Time 2025-04-23 01:00:06 [2025-04-23 01:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968764', 'tblTempUsageDetail_20' ) start [2025-04-23 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968764', 'tblTempUsageDetail_20' ) end [2025-04-23 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968764', 'tblTempVendorCDR_20' ) start [2025-04-23 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968764', 'tblTempVendorCDR_20' ) end [2025-04-23 01:00:19] Production.INFO: ProcessCDR(1,14968764,1,1,2) [2025-04-23 01:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968764', 'tblTempUsageDetail_20' ) start [2025-04-23 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968764', 'tblTempUsageDetail_20' ) end [2025-04-23 01:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 01:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 01:00:22] Production.INFO: ==26385== Releasing lock... [2025-04-23 01:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 01:00:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-23 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 22:01:05 [end_date_ymd] => 2025-04-23 01:01:05 [RateCDR] => 1 ) [2025-04-23 01:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 22:01:05' and `end` < '2025-04-23 01:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 01:01:18] Production.INFO: count ==499 [2025-04-23 01:01:18] Production.ERROR: pbx CDR StartTime 2025-04-22 22:01:05 - End Time 2025-04-23 01:01:05 [2025-04-23 01:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968769', 'tblTempUsageDetail_20' ) start [2025-04-23 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968769', 'tblTempUsageDetail_20' ) end [2025-04-23 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968769', 'tblTempVendorCDR_20' ) start [2025-04-23 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968769', 'tblTempVendorCDR_20' ) end [2025-04-23 01:01:18] Production.INFO: ProcessCDR(1,14968769,1,1,2) [2025-04-23 01:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968769', 'tblTempUsageDetail_20' ) start [2025-04-23 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968769', 'tblTempUsageDetail_20' ) end [2025-04-23 01:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 01:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 01:01:21] Production.INFO: ==26472== Releasing lock... [2025-04-23 01:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 01:01:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-23 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 22:02:05 [end_date_ymd] => 2025-04-23 01:02:05 [RateCDR] => 1 ) [2025-04-23 01:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 22:02:05' and `end` < '2025-04-23 01:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 01:02:17] Production.INFO: count ==499 [2025-04-23 01:02:17] Production.ERROR: pbx CDR StartTime 2025-04-22 22:02:05 - End Time 2025-04-23 01:02:05 [2025-04-23 01:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968774', 'tblTempUsageDetail_20' ) start [2025-04-23 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968774', 'tblTempUsageDetail_20' ) end [2025-04-23 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968774', 'tblTempVendorCDR_20' ) start [2025-04-23 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968774', 'tblTempVendorCDR_20' ) end [2025-04-23 01:02:17] Production.INFO: ProcessCDR(1,14968774,1,1,2) [2025-04-23 01:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968774', 'tblTempUsageDetail_20' ) start [2025-04-23 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968774', 'tblTempUsageDetail_20' ) end [2025-04-23 01:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 01:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 01:02:21] Production.INFO: ==26582== Releasing lock... [2025-04-23 01:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 01:02:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-23 01:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 22:03:06 [end_date_ymd] => 2025-04-23 01:03:06 [RateCDR] => 1 ) [2025-04-23 01:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 22:03:06' and `end` < '2025-04-23 01:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 01:03:19] Production.INFO: count ==498 [2025-04-23 01:03:19] Production.ERROR: pbx CDR StartTime 2025-04-22 22:03:06 - End Time 2025-04-23 01:03:06 [2025-04-23 01:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968779', 'tblTempUsageDetail_20' ) start [2025-04-23 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968779', 'tblTempUsageDetail_20' ) end [2025-04-23 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968779', 'tblTempVendorCDR_20' ) start [2025-04-23 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968779', 'tblTempVendorCDR_20' ) end [2025-04-23 01:03:19] Production.INFO: ProcessCDR(1,14968779,1,1,2) [2025-04-23 01:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968779', 'tblTempUsageDetail_20' ) start [2025-04-23 01:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968779', 'tblTempUsageDetail_20' ) end [2025-04-23 01:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 01:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 01:03:22] Production.INFO: ==26660== Releasing lock... [2025-04-23 01:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 01:03:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-23 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 22:04:05 [end_date_ymd] => 2025-04-23 01:04:05 [RateCDR] => 1 ) [2025-04-23 01:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 22:04:05' and `end` < '2025-04-23 01:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 01:04:18] Production.INFO: count ==494 [2025-04-23 01:04:18] Production.ERROR: pbx CDR StartTime 2025-04-22 22:04:05 - End Time 2025-04-23 01:04:05 [2025-04-23 01:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968784', 'tblTempUsageDetail_20' ) start [2025-04-23 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968784', 'tblTempUsageDetail_20' ) end [2025-04-23 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968784', 'tblTempVendorCDR_20' ) start [2025-04-23 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968784', 'tblTempVendorCDR_20' ) end [2025-04-23 01:04:18] Production.INFO: ProcessCDR(1,14968784,1,1,2) [2025-04-23 01:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968784', 'tblTempUsageDetail_20' ) start [2025-04-23 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968784', 'tblTempUsageDetail_20' ) end [2025-04-23 01:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 01:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 01:04:21] Production.INFO: ==26740== Releasing lock... [2025-04-23 01:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 01:04:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-23 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 22:05:05 [end_date_ymd] => 2025-04-23 01:05:05 [RateCDR] => 1 ) [2025-04-23 01:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 22:05:05' and `end` < '2025-04-23 01:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 01:05:18] Production.INFO: count ==490 [2025-04-23 01:05:18] Production.ERROR: pbx CDR StartTime 2025-04-22 22:05:05 - End Time 2025-04-23 01:05:05 [2025-04-23 01:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968789', 'tblTempUsageDetail_20' ) start [2025-04-23 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968789', 'tblTempUsageDetail_20' ) end [2025-04-23 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968789', 'tblTempVendorCDR_20' ) start [2025-04-23 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968789', 'tblTempVendorCDR_20' ) end [2025-04-23 01:05:18] Production.INFO: ProcessCDR(1,14968789,1,1,2) [2025-04-23 01:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968789', 'tblTempUsageDetail_20' ) start [2025-04-23 01:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968789', 'tblTempUsageDetail_20' ) end [2025-04-23 01:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 01:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 01:05:22] Production.INFO: ==26816== Releasing lock... [2025-04-23 01:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 01:05:22] Production.INFO: 32 MB #Memory Used# [2025-04-23 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 22:06:05 [end_date_ymd] => 2025-04-23 01:06:05 [RateCDR] => 1 ) [2025-04-23 01:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 22:06:05' and `end` < '2025-04-23 01:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 01:06:18] Production.INFO: count ==488 [2025-04-23 01:06:18] Production.ERROR: pbx CDR StartTime 2025-04-22 22:06:05 - End Time 2025-04-23 01:06:05 [2025-04-23 01:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968794', 'tblTempUsageDetail_20' ) start [2025-04-23 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968794', 'tblTempUsageDetail_20' ) end [2025-04-23 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968794', 'tblTempVendorCDR_20' ) start [2025-04-23 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968794', 'tblTempVendorCDR_20' ) end [2025-04-23 01:06:18] Production.INFO: ProcessCDR(1,14968794,1,1,2) [2025-04-23 01:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968794', 'tblTempUsageDetail_20' ) start [2025-04-23 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968794', 'tblTempUsageDetail_20' ) end [2025-04-23 01:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 01:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 01:06:21] Production.INFO: ==26886== Releasing lock... [2025-04-23 01:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 01:06:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-23 01:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 22:07:06 [end_date_ymd] => 2025-04-23 01:07:06 [RateCDR] => 1 ) [2025-04-23 01:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 22:07:06' and `end` < '2025-04-23 01:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 01:07:18] Production.INFO: count ==489 [2025-04-23 01:07:19] Production.ERROR: pbx CDR StartTime 2025-04-22 22:07:06 - End Time 2025-04-23 01:07:06 [2025-04-23 01:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 01:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968799', 'tblTempUsageDetail_20' ) start [2025-04-23 01:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968799', 'tblTempUsageDetail_20' ) end [2025-04-23 01:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968799', 'tblTempVendorCDR_20' ) start [2025-04-23 01:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968799', 'tblTempVendorCDR_20' ) end [2025-04-23 01:07:19] Production.INFO: ProcessCDR(1,14968799,1,1,2) [2025-04-23 01:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968799', 'tblTempUsageDetail_20' ) start [2025-04-23 01:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968799', 'tblTempUsageDetail_20' ) end [2025-04-23 01:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 01:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 01:07:22] Production.INFO: ==26960== Releasing lock... [2025-04-23 01:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 01:07:22] Production.INFO: 32 MB #Memory Used# [2025-04-23 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 22:08:05 [end_date_ymd] => 2025-04-23 01:08:05 [RateCDR] => 1 ) [2025-04-23 01:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 22:08:05' and `end` < '2025-04-23 01:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 01:08:17] Production.INFO: count ==488 [2025-04-23 01:08:18] Production.ERROR: pbx CDR StartTime 2025-04-22 22:08:05 - End Time 2025-04-23 01:08:05 [2025-04-23 01:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968804', 'tblTempUsageDetail_20' ) start [2025-04-23 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968804', 'tblTempUsageDetail_20' ) end [2025-04-23 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968804', 'tblTempVendorCDR_20' ) start [2025-04-23 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968804', 'tblTempVendorCDR_20' ) end [2025-04-23 01:08:18] Production.INFO: ProcessCDR(1,14968804,1,1,2) [2025-04-23 01:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968804', 'tblTempUsageDetail_20' ) start [2025-04-23 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968804', 'tblTempUsageDetail_20' ) end [2025-04-23 01:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 01:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 01:08:21] Production.INFO: ==27037== Releasing lock... [2025-04-23 01:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 01:08:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-23 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 22:09:05 [end_date_ymd] => 2025-04-23 01:09:05 [RateCDR] => 1 ) [2025-04-23 01:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 22:09:05' and `end` < '2025-04-23 01:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 01:09:18] Production.INFO: count ==488 [2025-04-23 01:09:18] Production.ERROR: pbx CDR StartTime 2025-04-22 22:09:05 - End Time 2025-04-23 01:09:05 [2025-04-23 01:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968809', 'tblTempUsageDetail_20' ) start [2025-04-23 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968809', 'tblTempUsageDetail_20' ) end [2025-04-23 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968809', 'tblTempVendorCDR_20' ) start [2025-04-23 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968809', 'tblTempVendorCDR_20' ) end [2025-04-23 01:09:18] Production.INFO: ProcessCDR(1,14968809,1,1,2) [2025-04-23 01:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968809', 'tblTempUsageDetail_20' ) start [2025-04-23 01:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968809', 'tblTempUsageDetail_20' ) end [2025-04-23 01:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 01:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 01:09:22] Production.INFO: ==27114== Releasing lock... [2025-04-23 01:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 01:09:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-23 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 22:10:06 [end_date_ymd] => 2025-04-23 01:10:06 [RateCDR] => 1 ) [2025-04-23 01:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 22:10:06' and `end` < '2025-04-23 01:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 01:10:19] Production.INFO: count ==497 [2025-04-23 01:10:19] Production.ERROR: pbx CDR StartTime 2025-04-22 22:10:06 - End Time 2025-04-23 01:10:06 [2025-04-23 01:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968814', 'tblTempUsageDetail_20' ) start [2025-04-23 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968814', 'tblTempUsageDetail_20' ) end [2025-04-23 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968814', 'tblTempVendorCDR_20' ) start [2025-04-23 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968814', 'tblTempVendorCDR_20' ) end [2025-04-23 01:10:19] Production.INFO: ProcessCDR(1,14968814,1,1,2) [2025-04-23 01:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968814', 'tblTempUsageDetail_20' ) start [2025-04-23 01:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968814', 'tblTempUsageDetail_20' ) end [2025-04-23 01:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 01:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 01:10:24] Production.INFO: ==27188== Releasing lock... [2025-04-23 01:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 01:10:24] Production.INFO: 32 MB #Memory Used# [2025-04-23 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 22:11:05 [end_date_ymd] => 2025-04-23 01:11:05 [RateCDR] => 1 ) [2025-04-23 01:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 22:11:05' and `end` < '2025-04-23 01:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 01:11:17] Production.INFO: count ==515 [2025-04-23 01:11:18] Production.ERROR: pbx CDR StartTime 2025-04-22 22:11:05 - End Time 2025-04-23 01:11:05 [2025-04-23 01:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968820', 'tblTempUsageDetail_20' ) start [2025-04-23 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968820', 'tblTempUsageDetail_20' ) end [2025-04-23 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968820', 'tblTempVendorCDR_20' ) start [2025-04-23 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968820', 'tblTempVendorCDR_20' ) end [2025-04-23 01:11:18] Production.INFO: ProcessCDR(1,14968820,1,1,2) [2025-04-23 01:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968820', 'tblTempUsageDetail_20' ) start [2025-04-23 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968820', 'tblTempUsageDetail_20' ) end [2025-04-23 01:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 01:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 01:11:21] Production.INFO: ==27267== Releasing lock... [2025-04-23 01:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 01:11:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-23 01:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 22:12:06 [end_date_ymd] => 2025-04-23 01:12:06 [RateCDR] => 1 ) [2025-04-23 01:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 22:12:06' and `end` < '2025-04-23 01:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 01:12:18] Production.INFO: count ==512 [2025-04-23 01:12:18] Production.ERROR: pbx CDR StartTime 2025-04-22 22:12:06 - End Time 2025-04-23 01:12:06 [2025-04-23 01:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968825', 'tblTempUsageDetail_20' ) start [2025-04-23 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968825', 'tblTempUsageDetail_20' ) end [2025-04-23 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968825', 'tblTempVendorCDR_20' ) start [2025-04-23 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968825', 'tblTempVendorCDR_20' ) end [2025-04-23 01:12:18] Production.INFO: ProcessCDR(1,14968825,1,1,2) [2025-04-23 01:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968825', 'tblTempUsageDetail_20' ) start [2025-04-23 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968825', 'tblTempUsageDetail_20' ) end [2025-04-23 01:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 01:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 01:12:22] Production.INFO: ==27339== Releasing lock... [2025-04-23 01:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 01:12:22] Production.INFO: 32 MB #Memory Used# [2025-04-23 01:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 22:13:04 [end_date_ymd] => 2025-04-23 01:13:04 [RateCDR] => 1 ) [2025-04-23 01:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 22:13:04' and `end` < '2025-04-23 01:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 01:13:17] Production.INFO: count ==512 [2025-04-23 01:13:17] Production.ERROR: pbx CDR StartTime 2025-04-22 22:13:04 - End Time 2025-04-23 01:13:04 [2025-04-23 01:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968830', 'tblTempUsageDetail_20' ) start [2025-04-23 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968830', 'tblTempUsageDetail_20' ) end [2025-04-23 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968830', 'tblTempVendorCDR_20' ) start [2025-04-23 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968830', 'tblTempVendorCDR_20' ) end [2025-04-23 01:13:17] Production.INFO: ProcessCDR(1,14968830,1,1,2) [2025-04-23 01:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968830', 'tblTempUsageDetail_20' ) start [2025-04-23 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968830', 'tblTempUsageDetail_20' ) end [2025-04-23 01:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 01:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 01:13:21] Production.INFO: ==27417== Releasing lock... [2025-04-23 01:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 01:13:21] Production.INFO: 32 MB #Memory Used# [2025-04-23 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 22:14:05 [end_date_ymd] => 2025-04-23 01:14:05 [RateCDR] => 1 ) [2025-04-23 01:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 22:14:05' and `end` < '2025-04-23 01:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 01:14:18] Production.INFO: count ==511 [2025-04-23 01:14:18] Production.ERROR: pbx CDR StartTime 2025-04-22 22:14:05 - End Time 2025-04-23 01:14:05 [2025-04-23 01:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968835', 'tblTempUsageDetail_20' ) start [2025-04-23 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968835', 'tblTempUsageDetail_20' ) end [2025-04-23 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968835', 'tblTempVendorCDR_20' ) start [2025-04-23 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968835', 'tblTempVendorCDR_20' ) end [2025-04-23 01:14:18] Production.INFO: ProcessCDR(1,14968835,1,1,2) [2025-04-23 01:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968835', 'tblTempUsageDetail_20' ) start [2025-04-23 01:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968835', 'tblTempUsageDetail_20' ) end [2025-04-23 01:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 01:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 01:14:22] Production.INFO: ==27491== Releasing lock... [2025-04-23 01:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 01:14:22] Production.INFO: 32 MB #Memory Used# [2025-04-23 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 22:15:05 [end_date_ymd] => 2025-04-23 01:15:05 [RateCDR] => 1 ) [2025-04-23 01:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 22:15:05' and `end` < '2025-04-23 01:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 01:15:18] Production.INFO: count ==505 [2025-04-23 01:15:18] Production.ERROR: pbx CDR StartTime 2025-04-22 22:15:05 - End Time 2025-04-23 01:15:05 [2025-04-23 01:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968840', 'tblTempUsageDetail_20' ) start [2025-04-23 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968840', 'tblTempUsageDetail_20' ) end [2025-04-23 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968840', 'tblTempVendorCDR_20' ) start [2025-04-23 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968840', 'tblTempVendorCDR_20' ) end [2025-04-23 01:15:18] Production.INFO: ProcessCDR(1,14968840,1,1,2) [2025-04-23 01:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968840', 'tblTempUsageDetail_20' ) start [2025-04-23 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968840', 'tblTempUsageDetail_20' ) end [2025-04-23 01:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 01:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 01:15:21] Production.INFO: ==27567== Releasing lock... [2025-04-23 01:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 01:15:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-23 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 22:16:05 [end_date_ymd] => 2025-04-23 01:16:05 [RateCDR] => 1 ) [2025-04-23 01:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 22:16:05' and `end` < '2025-04-23 01:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 01:16:18] Production.INFO: count ==503 [2025-04-23 01:16:18] Production.ERROR: pbx CDR StartTime 2025-04-22 22:16:05 - End Time 2025-04-23 01:16:05 [2025-04-23 01:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968845', 'tblTempUsageDetail_20' ) start [2025-04-23 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968845', 'tblTempUsageDetail_20' ) end [2025-04-23 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968845', 'tblTempVendorCDR_20' ) start [2025-04-23 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968845', 'tblTempVendorCDR_20' ) end [2025-04-23 01:16:18] Production.INFO: ProcessCDR(1,14968845,1,1,2) [2025-04-23 01:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968845', 'tblTempUsageDetail_20' ) start [2025-04-23 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968845', 'tblTempUsageDetail_20' ) end [2025-04-23 01:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 01:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 01:16:22] Production.INFO: ==27637== Releasing lock... [2025-04-23 01:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 01:16:22] Production.INFO: 33 MB #Memory Used# [2025-04-23 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 22:17:05 [end_date_ymd] => 2025-04-23 01:17:05 [RateCDR] => 1 ) [2025-04-23 01:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 22:17:05' and `end` < '2025-04-23 01:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 01:17:18] Production.INFO: count ==499 [2025-04-23 01:17:18] Production.ERROR: pbx CDR StartTime 2025-04-22 22:17:05 - End Time 2025-04-23 01:17:05 [2025-04-23 01:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968850', 'tblTempUsageDetail_20' ) start [2025-04-23 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968850', 'tblTempUsageDetail_20' ) end [2025-04-23 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968850', 'tblTempVendorCDR_20' ) start [2025-04-23 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968850', 'tblTempVendorCDR_20' ) end [2025-04-23 01:17:18] Production.INFO: ProcessCDR(1,14968850,1,1,2) [2025-04-23 01:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968850', 'tblTempUsageDetail_20' ) start [2025-04-23 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968850', 'tblTempUsageDetail_20' ) end [2025-04-23 01:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 01:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 01:17:21] Production.INFO: ==27711== Releasing lock... [2025-04-23 01:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 01:17:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-23 01:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 22:18:06 [end_date_ymd] => 2025-04-23 01:18:06 [RateCDR] => 1 ) [2025-04-23 01:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 22:18:06' and `end` < '2025-04-23 01:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 01:18:18] Production.INFO: count ==495 [2025-04-23 01:18:18] Production.ERROR: pbx CDR StartTime 2025-04-22 22:18:06 - End Time 2025-04-23 01:18:06 [2025-04-23 01:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968855', 'tblTempUsageDetail_20' ) start [2025-04-23 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968855', 'tblTempUsageDetail_20' ) end [2025-04-23 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968855', 'tblTempVendorCDR_20' ) start [2025-04-23 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968855', 'tblTempVendorCDR_20' ) end [2025-04-23 01:18:18] Production.INFO: ProcessCDR(1,14968855,1,1,2) [2025-04-23 01:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968855', 'tblTempUsageDetail_20' ) start [2025-04-23 01:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968855', 'tblTempUsageDetail_20' ) end [2025-04-23 01:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 01:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 01:18:22] Production.INFO: ==27837== Releasing lock... [2025-04-23 01:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 01:18:22] Production.INFO: 32 MB #Memory Used# [2025-04-23 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 22:19:05 [end_date_ymd] => 2025-04-23 01:19:05 [RateCDR] => 1 ) [2025-04-23 01:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 22:19:05' and `end` < '2025-04-23 01:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 01:19:18] Production.INFO: count ==490 [2025-04-23 01:19:18] Production.ERROR: pbx CDR StartTime 2025-04-22 22:19:05 - End Time 2025-04-23 01:19:05 [2025-04-23 01:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968860', 'tblTempUsageDetail_20' ) start [2025-04-23 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968860', 'tblTempUsageDetail_20' ) end [2025-04-23 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968860', 'tblTempVendorCDR_20' ) start [2025-04-23 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968860', 'tblTempVendorCDR_20' ) end [2025-04-23 01:19:18] Production.INFO: ProcessCDR(1,14968860,1,1,2) [2025-04-23 01:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968860', 'tblTempUsageDetail_20' ) start [2025-04-23 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968860', 'tblTempUsageDetail_20' ) end [2025-04-23 01:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 01:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 01:19:21] Production.INFO: ==27912== Releasing lock... [2025-04-23 01:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 01:19:21] Production.INFO: 32 MB #Memory Used# [2025-04-23 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 22:20:06 [end_date_ymd] => 2025-04-23 01:20:06 [RateCDR] => 1 ) [2025-04-23 01:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 22:20:06' and `end` < '2025-04-23 01:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 01:20:19] Production.INFO: count ==497 [2025-04-23 01:20:19] Production.ERROR: pbx CDR StartTime 2025-04-22 22:20:06 - End Time 2025-04-23 01:20:06 [2025-04-23 01:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968866', 'tblTempUsageDetail_20' ) start [2025-04-23 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968866', 'tblTempUsageDetail_20' ) end [2025-04-23 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968866', 'tblTempVendorCDR_20' ) start [2025-04-23 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968866', 'tblTempVendorCDR_20' ) end [2025-04-23 01:20:19] Production.INFO: ProcessCDR(1,14968866,1,1,2) [2025-04-23 01:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968866', 'tblTempUsageDetail_20' ) start [2025-04-23 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968866', 'tblTempUsageDetail_20' ) end [2025-04-23 01:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 01:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 01:20:22] Production.INFO: ==27988== Releasing lock... [2025-04-23 01:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 01:20:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-23 01:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 22:21:04 [end_date_ymd] => 2025-04-23 01:21:04 [RateCDR] => 1 ) [2025-04-23 01:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 22:21:04' and `end` < '2025-04-23 01:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 01:21:17] Production.INFO: count ==493 [2025-04-23 01:21:17] Production.ERROR: pbx CDR StartTime 2025-04-22 22:21:04 - End Time 2025-04-23 01:21:04 [2025-04-23 01:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968871', 'tblTempUsageDetail_20' ) start [2025-04-23 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968871', 'tblTempUsageDetail_20' ) end [2025-04-23 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968871', 'tblTempVendorCDR_20' ) start [2025-04-23 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968871', 'tblTempVendorCDR_20' ) end [2025-04-23 01:21:17] Production.INFO: ProcessCDR(1,14968871,1,1,2) [2025-04-23 01:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968871', 'tblTempUsageDetail_20' ) start [2025-04-23 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968871', 'tblTempUsageDetail_20' ) end [2025-04-23 01:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 01:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 01:21:21] Production.INFO: ==28066== Releasing lock... [2025-04-23 01:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 01:21:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-23 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 22:22:05 [end_date_ymd] => 2025-04-23 01:22:05 [RateCDR] => 1 ) [2025-04-23 01:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 22:22:05' and `end` < '2025-04-23 01:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 01:22:17] Production.INFO: count ==495 [2025-04-23 01:22:17] Production.ERROR: pbx CDR StartTime 2025-04-22 22:22:05 - End Time 2025-04-23 01:22:05 [2025-04-23 01:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968876', 'tblTempUsageDetail_20' ) start [2025-04-23 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968876', 'tblTempUsageDetail_20' ) end [2025-04-23 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968876', 'tblTempVendorCDR_20' ) start [2025-04-23 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968876', 'tblTempVendorCDR_20' ) end [2025-04-23 01:22:18] Production.INFO: ProcessCDR(1,14968876,1,1,2) [2025-04-23 01:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968876', 'tblTempUsageDetail_20' ) start [2025-04-23 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968876', 'tblTempUsageDetail_20' ) end [2025-04-23 01:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 01:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 01:22:21] Production.INFO: ==28142== Releasing lock... [2025-04-23 01:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 01:22:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-23 01:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 22:23:06 [end_date_ymd] => 2025-04-23 01:23:06 [RateCDR] => 1 ) [2025-04-23 01:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 22:23:06' and `end` < '2025-04-23 01:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 01:23:18] Production.INFO: count ==492 [2025-04-23 01:23:19] Production.ERROR: pbx CDR StartTime 2025-04-22 22:23:06 - End Time 2025-04-23 01:23:06 [2025-04-23 01:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968881', 'tblTempUsageDetail_20' ) start [2025-04-23 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968881', 'tblTempUsageDetail_20' ) end [2025-04-23 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968881', 'tblTempVendorCDR_20' ) start [2025-04-23 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968881', 'tblTempVendorCDR_20' ) end [2025-04-23 01:23:19] Production.INFO: ProcessCDR(1,14968881,1,1,2) [2025-04-23 01:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968881', 'tblTempUsageDetail_20' ) start [2025-04-23 01:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968881', 'tblTempUsageDetail_20' ) end [2025-04-23 01:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 01:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 01:23:22] Production.INFO: ==28216== Releasing lock... [2025-04-23 01:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 01:23:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-23 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 22:24:05 [end_date_ymd] => 2025-04-23 01:24:05 [RateCDR] => 1 ) [2025-04-23 01:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 22:24:05' and `end` < '2025-04-23 01:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 01:24:18] Production.INFO: count ==490 [2025-04-23 01:24:18] Production.ERROR: pbx CDR StartTime 2025-04-22 22:24:05 - End Time 2025-04-23 01:24:05 [2025-04-23 01:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968886', 'tblTempUsageDetail_20' ) start [2025-04-23 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968886', 'tblTempUsageDetail_20' ) end [2025-04-23 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968886', 'tblTempVendorCDR_20' ) start [2025-04-23 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968886', 'tblTempVendorCDR_20' ) end [2025-04-23 01:24:18] Production.INFO: ProcessCDR(1,14968886,1,1,2) [2025-04-23 01:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968886', 'tblTempUsageDetail_20' ) start [2025-04-23 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968886', 'tblTempUsageDetail_20' ) end [2025-04-23 01:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 01:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 01:24:21] Production.INFO: ==28291== Releasing lock... [2025-04-23 01:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 01:24:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-23 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 22:25:05 [end_date_ymd] => 2025-04-23 01:25:05 [RateCDR] => 1 ) [2025-04-23 01:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 22:25:05' and `end` < '2025-04-23 01:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 01:25:18] Production.INFO: count ==486 [2025-04-23 01:25:18] Production.ERROR: pbx CDR StartTime 2025-04-22 22:25:05 - End Time 2025-04-23 01:25:05 [2025-04-23 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968891', 'tblTempUsageDetail_20' ) start [2025-04-23 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968891', 'tblTempUsageDetail_20' ) end [2025-04-23 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968891', 'tblTempVendorCDR_20' ) start [2025-04-23 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968891', 'tblTempVendorCDR_20' ) end [2025-04-23 01:25:18] Production.INFO: ProcessCDR(1,14968891,1,1,2) [2025-04-23 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968891', 'tblTempUsageDetail_20' ) start [2025-04-23 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968891', 'tblTempUsageDetail_20' ) end [2025-04-23 01:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 01:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 01:25:21] Production.INFO: ==28367== Releasing lock... [2025-04-23 01:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 01:25:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-23 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 22:26:05 [end_date_ymd] => 2025-04-23 01:26:05 [RateCDR] => 1 ) [2025-04-23 01:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 22:26:05' and `end` < '2025-04-23 01:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 01:26:18] Production.INFO: count ==483 [2025-04-23 01:26:18] Production.ERROR: pbx CDR StartTime 2025-04-22 22:26:05 - End Time 2025-04-23 01:26:05 [2025-04-23 01:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968896', 'tblTempUsageDetail_20' ) start [2025-04-23 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968896', 'tblTempUsageDetail_20' ) end [2025-04-23 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968896', 'tblTempVendorCDR_20' ) start [2025-04-23 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968896', 'tblTempVendorCDR_20' ) end [2025-04-23 01:26:18] Production.INFO: ProcessCDR(1,14968896,1,1,2) [2025-04-23 01:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968896', 'tblTempUsageDetail_20' ) start [2025-04-23 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968896', 'tblTempUsageDetail_20' ) end [2025-04-23 01:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 01:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 01:26:21] Production.INFO: ==28444== Releasing lock... [2025-04-23 01:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 01:26:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-23 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 22:27:05 [end_date_ymd] => 2025-04-23 01:27:05 [RateCDR] => 1 ) [2025-04-23 01:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 22:27:05' and `end` < '2025-04-23 01:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 01:27:18] Production.INFO: count ==481 [2025-04-23 01:27:18] Production.ERROR: pbx CDR StartTime 2025-04-22 22:27:05 - End Time 2025-04-23 01:27:05 [2025-04-23 01:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968901', 'tblTempUsageDetail_20' ) start [2025-04-23 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968901', 'tblTempUsageDetail_20' ) end [2025-04-23 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968901', 'tblTempVendorCDR_20' ) start [2025-04-23 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968901', 'tblTempVendorCDR_20' ) end [2025-04-23 01:27:18] Production.INFO: ProcessCDR(1,14968901,1,1,2) [2025-04-23 01:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968901', 'tblTempUsageDetail_20' ) start [2025-04-23 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968901', 'tblTempUsageDetail_20' ) end [2025-04-23 01:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 01:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 01:27:21] Production.INFO: ==28517== Releasing lock... [2025-04-23 01:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 01:27:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-23 01:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 22:28:06 [end_date_ymd] => 2025-04-23 01:28:06 [RateCDR] => 1 ) [2025-04-23 01:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 22:28:06' and `end` < '2025-04-23 01:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 01:28:19] Production.INFO: count ==480 [2025-04-23 01:28:19] Production.ERROR: pbx CDR StartTime 2025-04-22 22:28:06 - End Time 2025-04-23 01:28:06 [2025-04-23 01:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968906', 'tblTempUsageDetail_20' ) start [2025-04-23 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968906', 'tblTempUsageDetail_20' ) end [2025-04-23 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968906', 'tblTempVendorCDR_20' ) start [2025-04-23 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968906', 'tblTempVendorCDR_20' ) end [2025-04-23 01:28:19] Production.INFO: ProcessCDR(1,14968906,1,1,2) [2025-04-23 01:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968906', 'tblTempUsageDetail_20' ) start [2025-04-23 01:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968906', 'tblTempUsageDetail_20' ) end [2025-04-23 01:28:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 01:28:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 01:28:23] Production.INFO: ==28592== Releasing lock... [2025-04-23 01:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 01:28:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-23 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 22:29:05 [end_date_ymd] => 2025-04-23 01:29:05 [RateCDR] => 1 ) [2025-04-23 01:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 22:29:05' and `end` < '2025-04-23 01:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 01:29:18] Production.INFO: count ==478 [2025-04-23 01:29:18] Production.ERROR: pbx CDR StartTime 2025-04-22 22:29:05 - End Time 2025-04-23 01:29:05 [2025-04-23 01:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968911', 'tblTempUsageDetail_20' ) start [2025-04-23 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968911', 'tblTempUsageDetail_20' ) end [2025-04-23 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968911', 'tblTempVendorCDR_20' ) start [2025-04-23 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968911', 'tblTempVendorCDR_20' ) end [2025-04-23 01:29:18] Production.INFO: ProcessCDR(1,14968911,1,1,2) [2025-04-23 01:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968911', 'tblTempUsageDetail_20' ) start [2025-04-23 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968911', 'tblTempUsageDetail_20' ) end [2025-04-23 01:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 01:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 01:29:22] Production.INFO: ==28661== Releasing lock... [2025-04-23 01:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 01:29:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-23 01:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 22:30:07 [end_date_ymd] => 2025-04-23 01:30:07 [RateCDR] => 1 ) [2025-04-23 01:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 22:30:07' and `end` < '2025-04-23 01:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 01:30:19] Production.INFO: count ==484 [2025-04-23 01:30:20] Production.ERROR: pbx CDR StartTime 2025-04-22 22:30:07 - End Time 2025-04-23 01:30:07 [2025-04-23 01:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 01:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968917', 'tblTempUsageDetail_20' ) start [2025-04-23 01:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968917', 'tblTempUsageDetail_20' ) end [2025-04-23 01:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968917', 'tblTempVendorCDR_20' ) start [2025-04-23 01:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968917', 'tblTempVendorCDR_20' ) end [2025-04-23 01:30:20] Production.INFO: ProcessCDR(1,14968917,1,1,2) [2025-04-23 01:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968917', 'tblTempUsageDetail_20' ) start [2025-04-23 01:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968917', 'tblTempUsageDetail_20' ) end [2025-04-23 01:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 01:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 01:30:23] Production.INFO: ==28740== Releasing lock... [2025-04-23 01:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 01:30:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-23 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 22:31:05 [end_date_ymd] => 2025-04-23 01:31:05 [RateCDR] => 1 ) [2025-04-23 01:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 22:31:05' and `end` < '2025-04-23 01:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 01:31:18] Production.INFO: count ==488 [2025-04-23 01:31:18] Production.ERROR: pbx CDR StartTime 2025-04-22 22:31:05 - End Time 2025-04-23 01:31:05 [2025-04-23 01:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968922', 'tblTempUsageDetail_20' ) start [2025-04-23 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968922', 'tblTempUsageDetail_20' ) end [2025-04-23 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968922', 'tblTempVendorCDR_20' ) start [2025-04-23 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968922', 'tblTempVendorCDR_20' ) end [2025-04-23 01:31:18] Production.INFO: ProcessCDR(1,14968922,1,1,2) [2025-04-23 01:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968922', 'tblTempUsageDetail_20' ) start [2025-04-23 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968922', 'tblTempUsageDetail_20' ) end [2025-04-23 01:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 01:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 01:31:21] Production.INFO: ==28816== Releasing lock... [2025-04-23 01:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 01:31:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-23 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 22:32:05 [end_date_ymd] => 2025-04-23 01:32:05 [RateCDR] => 1 ) [2025-04-23 01:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 22:32:05' and `end` < '2025-04-23 01:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 01:32:18] Production.INFO: count ==487 [2025-04-23 01:32:18] Production.ERROR: pbx CDR StartTime 2025-04-22 22:32:05 - End Time 2025-04-23 01:32:05 [2025-04-23 01:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968927', 'tblTempUsageDetail_20' ) start [2025-04-23 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968927', 'tblTempUsageDetail_20' ) end [2025-04-23 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968927', 'tblTempVendorCDR_20' ) start [2025-04-23 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968927', 'tblTempVendorCDR_20' ) end [2025-04-23 01:32:18] Production.INFO: ProcessCDR(1,14968927,1,1,2) [2025-04-23 01:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968927', 'tblTempUsageDetail_20' ) start [2025-04-23 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968927', 'tblTempUsageDetail_20' ) end [2025-04-23 01:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 01:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 01:32:21] Production.INFO: ==28891== Releasing lock... [2025-04-23 01:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 01:32:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-23 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 22:33:05 [end_date_ymd] => 2025-04-23 01:33:05 [RateCDR] => 1 ) [2025-04-23 01:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 22:33:05' and `end` < '2025-04-23 01:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 01:33:17] Production.INFO: count ==483 [2025-04-23 01:33:18] Production.ERROR: pbx CDR StartTime 2025-04-22 22:33:05 - End Time 2025-04-23 01:33:05 [2025-04-23 01:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968932', 'tblTempUsageDetail_20' ) start [2025-04-23 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968932', 'tblTempUsageDetail_20' ) end [2025-04-23 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968932', 'tblTempVendorCDR_20' ) start [2025-04-23 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968932', 'tblTempVendorCDR_20' ) end [2025-04-23 01:33:18] Production.INFO: ProcessCDR(1,14968932,1,1,2) [2025-04-23 01:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968932', 'tblTempUsageDetail_20' ) start [2025-04-23 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968932', 'tblTempUsageDetail_20' ) end [2025-04-23 01:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 01:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 01:33:21] Production.INFO: ==29004== Releasing lock... [2025-04-23 01:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 01:33:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-23 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 22:34:05 [end_date_ymd] => 2025-04-23 01:34:05 [RateCDR] => 1 ) [2025-04-23 01:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 22:34:05' and `end` < '2025-04-23 01:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 01:34:18] Production.INFO: count ==478 [2025-04-23 01:34:18] Production.ERROR: pbx CDR StartTime 2025-04-22 22:34:05 - End Time 2025-04-23 01:34:05 [2025-04-23 01:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968937', 'tblTempUsageDetail_20' ) start [2025-04-23 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968937', 'tblTempUsageDetail_20' ) end [2025-04-23 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968937', 'tblTempVendorCDR_20' ) start [2025-04-23 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968937', 'tblTempVendorCDR_20' ) end [2025-04-23 01:34:18] Production.INFO: ProcessCDR(1,14968937,1,1,2) [2025-04-23 01:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968937', 'tblTempUsageDetail_20' ) start [2025-04-23 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968937', 'tblTempUsageDetail_20' ) end [2025-04-23 01:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 01:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 01:34:21] Production.INFO: ==29078== Releasing lock... [2025-04-23 01:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 01:34:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-23 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 22:35:05 [end_date_ymd] => 2025-04-23 01:35:05 [RateCDR] => 1 ) [2025-04-23 01:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 22:35:05' and `end` < '2025-04-23 01:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 01:35:18] Production.INFO: count ==477 [2025-04-23 01:35:18] Production.ERROR: pbx CDR StartTime 2025-04-22 22:35:05 - End Time 2025-04-23 01:35:05 [2025-04-23 01:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968942', 'tblTempUsageDetail_20' ) start [2025-04-23 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968942', 'tblTempUsageDetail_20' ) end [2025-04-23 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968942', 'tblTempVendorCDR_20' ) start [2025-04-23 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968942', 'tblTempVendorCDR_20' ) end [2025-04-23 01:35:18] Production.INFO: ProcessCDR(1,14968942,1,1,2) [2025-04-23 01:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968942', 'tblTempUsageDetail_20' ) start [2025-04-23 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968942', 'tblTempUsageDetail_20' ) end [2025-04-23 01:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 01:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 01:35:21] Production.INFO: ==29157== Releasing lock... [2025-04-23 01:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 01:35:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-23 01:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 22:36:06 [end_date_ymd] => 2025-04-23 01:36:06 [RateCDR] => 1 ) [2025-04-23 01:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 22:36:06' and `end` < '2025-04-23 01:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 01:36:18] Production.INFO: count ==471 [2025-04-23 01:36:18] Production.ERROR: pbx CDR StartTime 2025-04-22 22:36:06 - End Time 2025-04-23 01:36:06 [2025-04-23 01:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968947', 'tblTempUsageDetail_20' ) start [2025-04-23 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968947', 'tblTempUsageDetail_20' ) end [2025-04-23 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968947', 'tblTempVendorCDR_20' ) start [2025-04-23 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968947', 'tblTempVendorCDR_20' ) end [2025-04-23 01:36:18] Production.INFO: ProcessCDR(1,14968947,1,1,2) [2025-04-23 01:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968947', 'tblTempUsageDetail_20' ) start [2025-04-23 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968947', 'tblTempUsageDetail_20' ) end [2025-04-23 01:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 01:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 01:36:22] Production.INFO: ==29231== Releasing lock... [2025-04-23 01:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 01:36:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-23 01:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 22:37:05 [end_date_ymd] => 2025-04-23 01:37:05 [RateCDR] => 1 ) [2025-04-23 01:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 22:37:05' and `end` < '2025-04-23 01:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 01:37:17] Production.INFO: count ==468 [2025-04-23 01:37:17] Production.ERROR: pbx CDR StartTime 2025-04-22 22:37:05 - End Time 2025-04-23 01:37:05 [2025-04-23 01:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968952', 'tblTempUsageDetail_20' ) start [2025-04-23 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968952', 'tblTempUsageDetail_20' ) end [2025-04-23 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968952', 'tblTempVendorCDR_20' ) start [2025-04-23 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968952', 'tblTempVendorCDR_20' ) end [2025-04-23 01:37:18] Production.INFO: ProcessCDR(1,14968952,1,1,2) [2025-04-23 01:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968952', 'tblTempUsageDetail_20' ) start [2025-04-23 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968952', 'tblTempUsageDetail_20' ) end [2025-04-23 01:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 01:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 01:37:21] Production.INFO: ==29301== Releasing lock... [2025-04-23 01:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 01:37:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-23 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 22:38:05 [end_date_ymd] => 2025-04-23 01:38:05 [RateCDR] => 1 ) [2025-04-23 01:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 22:38:05' and `end` < '2025-04-23 01:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 01:38:18] Production.INFO: count ==466 [2025-04-23 01:38:18] Production.ERROR: pbx CDR StartTime 2025-04-22 22:38:05 - End Time 2025-04-23 01:38:05 [2025-04-23 01:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968957', 'tblTempUsageDetail_20' ) start [2025-04-23 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968957', 'tblTempUsageDetail_20' ) end [2025-04-23 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968957', 'tblTempVendorCDR_20' ) start [2025-04-23 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968957', 'tblTempVendorCDR_20' ) end [2025-04-23 01:38:18] Production.INFO: ProcessCDR(1,14968957,1,1,2) [2025-04-23 01:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968957', 'tblTempUsageDetail_20' ) start [2025-04-23 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968957', 'tblTempUsageDetail_20' ) end [2025-04-23 01:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 01:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 01:38:21] Production.INFO: ==29385== Releasing lock... [2025-04-23 01:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 01:38:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-23 01:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 22:39:04 [end_date_ymd] => 2025-04-23 01:39:04 [RateCDR] => 1 ) [2025-04-23 01:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 22:39:04' and `end` < '2025-04-23 01:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 01:39:17] Production.INFO: count ==462 [2025-04-23 01:39:17] Production.ERROR: pbx CDR StartTime 2025-04-22 22:39:04 - End Time 2025-04-23 01:39:04 [2025-04-23 01:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968962', 'tblTempUsageDetail_20' ) start [2025-04-23 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968962', 'tblTempUsageDetail_20' ) end [2025-04-23 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968962', 'tblTempVendorCDR_20' ) start [2025-04-23 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968962', 'tblTempVendorCDR_20' ) end [2025-04-23 01:39:17] Production.INFO: ProcessCDR(1,14968962,1,1,2) [2025-04-23 01:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968962', 'tblTempUsageDetail_20' ) start [2025-04-23 01:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968962', 'tblTempUsageDetail_20' ) end [2025-04-23 01:39:20] Production.ERROR: pbx prc_insertCDR start [2025-04-23 01:39:20] Production.ERROR: pbx prc_insertCDR end [2025-04-23 01:39:20] Production.INFO: ==29461== Releasing lock... [2025-04-23 01:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 01:39:20] Production.INFO: 31.75 MB #Memory Used# [2025-04-23 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 22:40:06 [end_date_ymd] => 2025-04-23 01:40:06 [RateCDR] => 1 ) [2025-04-23 01:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 22:40:06' and `end` < '2025-04-23 01:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 01:40:18] Production.INFO: count ==461 [2025-04-23 01:40:18] Production.ERROR: pbx CDR StartTime 2025-04-22 22:40:06 - End Time 2025-04-23 01:40:06 [2025-04-23 01:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968968', 'tblTempUsageDetail_20' ) start [2025-04-23 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968968', 'tblTempUsageDetail_20' ) end [2025-04-23 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968968', 'tblTempVendorCDR_20' ) start [2025-04-23 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968968', 'tblTempVendorCDR_20' ) end [2025-04-23 01:40:18] Production.INFO: ProcessCDR(1,14968968,1,1,2) [2025-04-23 01:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968968', 'tblTempUsageDetail_20' ) start [2025-04-23 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968968', 'tblTempUsageDetail_20' ) end [2025-04-23 01:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 01:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 01:40:22] Production.INFO: ==29536== Releasing lock... [2025-04-23 01:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 01:40:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-23 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 22:41:05 [end_date_ymd] => 2025-04-23 01:41:05 [RateCDR] => 1 ) [2025-04-23 01:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 22:41:05' and `end` < '2025-04-23 01:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 01:41:18] Production.INFO: count ==459 [2025-04-23 01:41:18] Production.ERROR: pbx CDR StartTime 2025-04-22 22:41:05 - End Time 2025-04-23 01:41:05 [2025-04-23 01:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968973', 'tblTempUsageDetail_20' ) start [2025-04-23 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968973', 'tblTempUsageDetail_20' ) end [2025-04-23 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968973', 'tblTempVendorCDR_20' ) start [2025-04-23 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968973', 'tblTempVendorCDR_20' ) end [2025-04-23 01:41:18] Production.INFO: ProcessCDR(1,14968973,1,1,2) [2025-04-23 01:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968973', 'tblTempUsageDetail_20' ) start [2025-04-23 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968973', 'tblTempUsageDetail_20' ) end [2025-04-23 01:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 01:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 01:41:22] Production.INFO: ==29614== Releasing lock... [2025-04-23 01:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 01:41:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-23 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 22:42:05 [end_date_ymd] => 2025-04-23 01:42:05 [RateCDR] => 1 ) [2025-04-23 01:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 22:42:05' and `end` < '2025-04-23 01:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 01:42:18] Production.INFO: count ==454 [2025-04-23 01:42:18] Production.ERROR: pbx CDR StartTime 2025-04-22 22:42:05 - End Time 2025-04-23 01:42:05 [2025-04-23 01:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968978', 'tblTempUsageDetail_20' ) start [2025-04-23 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968978', 'tblTempUsageDetail_20' ) end [2025-04-23 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968978', 'tblTempVendorCDR_20' ) start [2025-04-23 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968978', 'tblTempVendorCDR_20' ) end [2025-04-23 01:42:18] Production.INFO: ProcessCDR(1,14968978,1,1,2) [2025-04-23 01:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968978', 'tblTempUsageDetail_20' ) start [2025-04-23 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968978', 'tblTempUsageDetail_20' ) end [2025-04-23 01:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 01:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 01:42:21] Production.INFO: ==29685== Releasing lock... [2025-04-23 01:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 01:42:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-23 01:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 22:43:05 [end_date_ymd] => 2025-04-23 01:43:05 [RateCDR] => 1 ) [2025-04-23 01:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 22:43:05' and `end` < '2025-04-23 01:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 01:43:18] Production.INFO: count ==452 [2025-04-23 01:43:18] Production.ERROR: pbx CDR StartTime 2025-04-22 22:43:05 - End Time 2025-04-23 01:43:05 [2025-04-23 01:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968983', 'tblTempUsageDetail_20' ) start [2025-04-23 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968983', 'tblTempUsageDetail_20' ) end [2025-04-23 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968983', 'tblTempVendorCDR_20' ) start [2025-04-23 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968983', 'tblTempVendorCDR_20' ) end [2025-04-23 01:43:18] Production.INFO: ProcessCDR(1,14968983,1,1,2) [2025-04-23 01:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968983', 'tblTempUsageDetail_20' ) start [2025-04-23 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968983', 'tblTempUsageDetail_20' ) end [2025-04-23 01:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 01:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 01:43:22] Production.INFO: ==29766== Releasing lock... [2025-04-23 01:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 01:43:22] Production.INFO: 32 MB #Memory Used# [2025-04-23 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 22:44:05 [end_date_ymd] => 2025-04-23 01:44:05 [RateCDR] => 1 ) [2025-04-23 01:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 22:44:05' and `end` < '2025-04-23 01:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 01:44:17] Production.INFO: count ==448 [2025-04-23 01:44:17] Production.ERROR: pbx CDR StartTime 2025-04-22 22:44:05 - End Time 2025-04-23 01:44:05 [2025-04-23 01:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968988', 'tblTempUsageDetail_20' ) start [2025-04-23 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968988', 'tblTempUsageDetail_20' ) end [2025-04-23 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968988', 'tblTempVendorCDR_20' ) start [2025-04-23 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968988', 'tblTempVendorCDR_20' ) end [2025-04-23 01:44:17] Production.INFO: ProcessCDR(1,14968988,1,1,2) [2025-04-23 01:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968988', 'tblTempUsageDetail_20' ) start [2025-04-23 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968988', 'tblTempUsageDetail_20' ) end [2025-04-23 01:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 01:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 01:44:21] Production.INFO: ==29840== Releasing lock... [2025-04-23 01:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 01:44:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-23 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 22:45:05 [end_date_ymd] => 2025-04-23 01:45:05 [RateCDR] => 1 ) [2025-04-23 01:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 22:45:05' and `end` < '2025-04-23 01:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 01:45:18] Production.INFO: count ==444 [2025-04-23 01:45:18] Production.ERROR: pbx CDR StartTime 2025-04-22 22:45:05 - End Time 2025-04-23 01:45:05 [2025-04-23 01:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968993', 'tblTempUsageDetail_20' ) start [2025-04-23 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968993', 'tblTempUsageDetail_20' ) end [2025-04-23 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968993', 'tblTempVendorCDR_20' ) start [2025-04-23 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968993', 'tblTempVendorCDR_20' ) end [2025-04-23 01:45:18] Production.INFO: ProcessCDR(1,14968993,1,1,2) [2025-04-23 01:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968993', 'tblTempUsageDetail_20' ) start [2025-04-23 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968993', 'tblTempUsageDetail_20' ) end [2025-04-23 01:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 01:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 01:45:21] Production.INFO: ==29913== Releasing lock... [2025-04-23 01:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 01:45:21] Production.INFO: 32 MB #Memory Used# [2025-04-23 01:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 22:46:05 [end_date_ymd] => 2025-04-23 01:46:05 [RateCDR] => 1 ) [2025-04-23 01:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 22:46:05' and `end` < '2025-04-23 01:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 01:46:18] Production.INFO: count ==443 [2025-04-23 01:46:18] Production.ERROR: pbx CDR StartTime 2025-04-22 22:46:05 - End Time 2025-04-23 01:46:05 [2025-04-23 01:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968998', 'tblTempUsageDetail_20' ) start [2025-04-23 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968998', 'tblTempUsageDetail_20' ) end [2025-04-23 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968998', 'tblTempVendorCDR_20' ) start [2025-04-23 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968998', 'tblTempVendorCDR_20' ) end [2025-04-23 01:46:18] Production.INFO: ProcessCDR(1,14968998,1,1,2) [2025-04-23 01:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968998', 'tblTempUsageDetail_20' ) start [2025-04-23 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968998', 'tblTempUsageDetail_20' ) end [2025-04-23 01:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 01:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 01:46:21] Production.INFO: ==29987== Releasing lock... [2025-04-23 01:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 01:46:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-23 01:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 22:47:06 [end_date_ymd] => 2025-04-23 01:47:06 [RateCDR] => 1 ) [2025-04-23 01:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 22:47:06' and `end` < '2025-04-23 01:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 01:47:18] Production.INFO: count ==440 [2025-04-23 01:47:19] Production.ERROR: pbx CDR StartTime 2025-04-22 22:47:06 - End Time 2025-04-23 01:47:06 [2025-04-23 01:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969003', 'tblTempUsageDetail_20' ) start [2025-04-23 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969003', 'tblTempUsageDetail_20' ) end [2025-04-23 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969003', 'tblTempVendorCDR_20' ) start [2025-04-23 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969003', 'tblTempVendorCDR_20' ) end [2025-04-23 01:47:19] Production.INFO: ProcessCDR(1,14969003,1,1,2) [2025-04-23 01:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969003', 'tblTempUsageDetail_20' ) start [2025-04-23 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969003', 'tblTempUsageDetail_20' ) end [2025-04-23 01:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 01:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 01:47:22] Production.INFO: ==30059== Releasing lock... [2025-04-23 01:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 01:47:22] Production.INFO: 32 MB #Memory Used# [2025-04-23 01:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 22:48:06 [end_date_ymd] => 2025-04-23 01:48:06 [RateCDR] => 1 ) [2025-04-23 01:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 22:48:06' and `end` < '2025-04-23 01:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 01:48:18] Production.INFO: count ==437 [2025-04-23 01:48:18] Production.ERROR: pbx CDR StartTime 2025-04-22 22:48:06 - End Time 2025-04-23 01:48:06 [2025-04-23 01:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969008', 'tblTempUsageDetail_20' ) start [2025-04-23 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969008', 'tblTempUsageDetail_20' ) end [2025-04-23 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969008', 'tblTempVendorCDR_20' ) start [2025-04-23 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969008', 'tblTempVendorCDR_20' ) end [2025-04-23 01:48:18] Production.INFO: ProcessCDR(1,14969008,1,1,2) [2025-04-23 01:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969008', 'tblTempUsageDetail_20' ) start [2025-04-23 01:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969008', 'tblTempUsageDetail_20' ) end [2025-04-23 01:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 01:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 01:48:22] Production.INFO: ==30157== Releasing lock... [2025-04-23 01:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 01:48:22] Production.INFO: 32 MB #Memory Used# [2025-04-23 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 22:49:05 [end_date_ymd] => 2025-04-23 01:49:05 [RateCDR] => 1 ) [2025-04-23 01:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 22:49:05' and `end` < '2025-04-23 01:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 01:49:18] Production.INFO: count ==434 [2025-04-23 01:49:18] Production.ERROR: pbx CDR StartTime 2025-04-22 22:49:05 - End Time 2025-04-23 01:49:05 [2025-04-23 01:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969013', 'tblTempUsageDetail_20' ) start [2025-04-23 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969013', 'tblTempUsageDetail_20' ) end [2025-04-23 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969013', 'tblTempVendorCDR_20' ) start [2025-04-23 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969013', 'tblTempVendorCDR_20' ) end [2025-04-23 01:49:18] Production.INFO: ProcessCDR(1,14969013,1,1,2) [2025-04-23 01:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969013', 'tblTempUsageDetail_20' ) start [2025-04-23 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969013', 'tblTempUsageDetail_20' ) end [2025-04-23 01:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 01:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 01:49:21] Production.INFO: ==30247== Releasing lock... [2025-04-23 01:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 01:49:21] Production.INFO: 32 MB #Memory Used# [2025-04-23 01:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 22:50:06 [end_date_ymd] => 2025-04-23 01:50:06 [RateCDR] => 1 ) [2025-04-23 01:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 22:50:06' and `end` < '2025-04-23 01:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 01:50:19] Production.INFO: count ==443 [2025-04-23 01:50:19] Production.ERROR: pbx CDR StartTime 2025-04-22 22:50:06 - End Time 2025-04-23 01:50:06 [2025-04-23 01:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969019', 'tblTempUsageDetail_20' ) start [2025-04-23 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969019', 'tblTempUsageDetail_20' ) end [2025-04-23 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969019', 'tblTempVendorCDR_20' ) start [2025-04-23 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969019', 'tblTempVendorCDR_20' ) end [2025-04-23 01:50:19] Production.INFO: ProcessCDR(1,14969019,1,1,2) [2025-04-23 01:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969019', 'tblTempUsageDetail_20' ) start [2025-04-23 01:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969019', 'tblTempUsageDetail_20' ) end [2025-04-23 01:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 01:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 01:50:23] Production.INFO: ==30327== Releasing lock... [2025-04-23 01:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 01:50:23] Production.INFO: 32 MB #Memory Used# [2025-04-23 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 22:51:05 [end_date_ymd] => 2025-04-23 01:51:05 [RateCDR] => 1 ) [2025-04-23 01:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 22:51:05' and `end` < '2025-04-23 01:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 01:51:18] Production.INFO: count ==448 [2025-04-23 01:51:18] Production.ERROR: pbx CDR StartTime 2025-04-22 22:51:05 - End Time 2025-04-23 01:51:05 [2025-04-23 01:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969024', 'tblTempUsageDetail_20' ) start [2025-04-23 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969024', 'tblTempUsageDetail_20' ) end [2025-04-23 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969024', 'tblTempVendorCDR_20' ) start [2025-04-23 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969024', 'tblTempVendorCDR_20' ) end [2025-04-23 01:51:18] Production.INFO: ProcessCDR(1,14969024,1,1,2) [2025-04-23 01:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969024', 'tblTempUsageDetail_20' ) start [2025-04-23 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969024', 'tblTempUsageDetail_20' ) end [2025-04-23 01:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 01:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 01:51:21] Production.INFO: ==30405== Releasing lock... [2025-04-23 01:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 01:51:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-23 01:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 22:52:06 [end_date_ymd] => 2025-04-23 01:52:06 [RateCDR] => 1 ) [2025-04-23 01:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 22:52:06' and `end` < '2025-04-23 01:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 01:52:18] Production.INFO: count ==450 [2025-04-23 01:52:18] Production.ERROR: pbx CDR StartTime 2025-04-22 22:52:06 - End Time 2025-04-23 01:52:06 [2025-04-23 01:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969029', 'tblTempUsageDetail_20' ) start [2025-04-23 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969029', 'tblTempUsageDetail_20' ) end [2025-04-23 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969029', 'tblTempVendorCDR_20' ) start [2025-04-23 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969029', 'tblTempVendorCDR_20' ) end [2025-04-23 01:52:18] Production.INFO: ProcessCDR(1,14969029,1,1,2) [2025-04-23 01:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969029', 'tblTempUsageDetail_20' ) start [2025-04-23 01:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969029', 'tblTempUsageDetail_20' ) end [2025-04-23 01:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 01:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 01:52:23] Production.INFO: ==30483== Releasing lock... [2025-04-23 01:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 01:52:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-23 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 22:53:05 [end_date_ymd] => 2025-04-23 01:53:05 [RateCDR] => 1 ) [2025-04-23 01:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 22:53:05' and `end` < '2025-04-23 01:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 01:53:18] Production.INFO: count ==449 [2025-04-23 01:53:18] Production.ERROR: pbx CDR StartTime 2025-04-22 22:53:05 - End Time 2025-04-23 01:53:05 [2025-04-23 01:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969034', 'tblTempUsageDetail_20' ) start [2025-04-23 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969034', 'tblTempUsageDetail_20' ) end [2025-04-23 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969034', 'tblTempVendorCDR_20' ) start [2025-04-23 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969034', 'tblTempVendorCDR_20' ) end [2025-04-23 01:53:18] Production.INFO: ProcessCDR(1,14969034,1,1,2) [2025-04-23 01:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969034', 'tblTempUsageDetail_20' ) start [2025-04-23 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969034', 'tblTempUsageDetail_20' ) end [2025-04-23 01:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 01:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 01:53:21] Production.INFO: ==30558== Releasing lock... [2025-04-23 01:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 01:53:21] Production.INFO: 32 MB #Memory Used# [2025-04-23 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 22:54:05 [end_date_ymd] => 2025-04-23 01:54:05 [RateCDR] => 1 ) [2025-04-23 01:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 22:54:05' and `end` < '2025-04-23 01:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 01:54:18] Production.INFO: count ==450 [2025-04-23 01:54:18] Production.ERROR: pbx CDR StartTime 2025-04-22 22:54:05 - End Time 2025-04-23 01:54:05 [2025-04-23 01:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969039', 'tblTempUsageDetail_20' ) start [2025-04-23 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969039', 'tblTempUsageDetail_20' ) end [2025-04-23 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969039', 'tblTempVendorCDR_20' ) start [2025-04-23 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969039', 'tblTempVendorCDR_20' ) end [2025-04-23 01:54:18] Production.INFO: ProcessCDR(1,14969039,1,1,2) [2025-04-23 01:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969039', 'tblTempUsageDetail_20' ) start [2025-04-23 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969039', 'tblTempUsageDetail_20' ) end [2025-04-23 01:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 01:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 01:54:22] Production.INFO: ==30631== Releasing lock... [2025-04-23 01:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 01:54:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-23 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 22:55:05 [end_date_ymd] => 2025-04-23 01:55:05 [RateCDR] => 1 ) [2025-04-23 01:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 22:55:05' and `end` < '2025-04-23 01:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 01:55:18] Production.INFO: count ==451 [2025-04-23 01:55:18] Production.ERROR: pbx CDR StartTime 2025-04-22 22:55:05 - End Time 2025-04-23 01:55:05 [2025-04-23 01:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969044', 'tblTempUsageDetail_20' ) start [2025-04-23 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969044', 'tblTempUsageDetail_20' ) end [2025-04-23 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969044', 'tblTempVendorCDR_20' ) start [2025-04-23 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969044', 'tblTempVendorCDR_20' ) end [2025-04-23 01:55:18] Production.INFO: ProcessCDR(1,14969044,1,1,2) [2025-04-23 01:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969044', 'tblTempUsageDetail_20' ) start [2025-04-23 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969044', 'tblTempUsageDetail_20' ) end [2025-04-23 01:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 01:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 01:55:21] Production.INFO: ==30706== Releasing lock... [2025-04-23 01:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 01:55:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-23 01:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 22:56:05 [end_date_ymd] => 2025-04-23 01:56:05 [RateCDR] => 1 ) [2025-04-23 01:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 22:56:05' and `end` < '2025-04-23 01:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 01:56:18] Production.INFO: count ==450 [2025-04-23 01:56:18] Production.ERROR: pbx CDR StartTime 2025-04-22 22:56:05 - End Time 2025-04-23 01:56:05 [2025-04-23 01:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969049', 'tblTempUsageDetail_20' ) start [2025-04-23 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969049', 'tblTempUsageDetail_20' ) end [2025-04-23 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969049', 'tblTempVendorCDR_20' ) start [2025-04-23 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969049', 'tblTempVendorCDR_20' ) end [2025-04-23 01:56:18] Production.INFO: ProcessCDR(1,14969049,1,1,2) [2025-04-23 01:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969049', 'tblTempUsageDetail_20' ) start [2025-04-23 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969049', 'tblTempUsageDetail_20' ) end [2025-04-23 01:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 01:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 01:56:21] Production.INFO: ==30776== Releasing lock... [2025-04-23 01:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 01:56:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-23 01:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 22:57:06 [end_date_ymd] => 2025-04-23 01:57:06 [RateCDR] => 1 ) [2025-04-23 01:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 22:57:06' and `end` < '2025-04-23 01:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 01:57:19] Production.INFO: count ==446 [2025-04-23 01:57:19] Production.ERROR: pbx CDR StartTime 2025-04-22 22:57:06 - End Time 2025-04-23 01:57:06 [2025-04-23 01:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969054', 'tblTempUsageDetail_20' ) start [2025-04-23 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969054', 'tblTempUsageDetail_20' ) end [2025-04-23 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969054', 'tblTempVendorCDR_20' ) start [2025-04-23 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969054', 'tblTempVendorCDR_20' ) end [2025-04-23 01:57:19] Production.INFO: ProcessCDR(1,14969054,1,1,2) [2025-04-23 01:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969054', 'tblTempUsageDetail_20' ) start [2025-04-23 01:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969054', 'tblTempUsageDetail_20' ) end [2025-04-23 01:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 01:57:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 01:57:23] Production.INFO: ==30855== Releasing lock... [2025-04-23 01:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 01:57:23] Production.INFO: 32 MB #Memory Used# [2025-04-23 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 22:58:05 [end_date_ymd] => 2025-04-23 01:58:05 [RateCDR] => 1 ) [2025-04-23 01:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 22:58:05' and `end` < '2025-04-23 01:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 01:58:18] Production.INFO: count ==444 [2025-04-23 01:58:18] Production.ERROR: pbx CDR StartTime 2025-04-22 22:58:05 - End Time 2025-04-23 01:58:05 [2025-04-23 01:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969059', 'tblTempUsageDetail_20' ) start [2025-04-23 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969059', 'tblTempUsageDetail_20' ) end [2025-04-23 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969059', 'tblTempVendorCDR_20' ) start [2025-04-23 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969059', 'tblTempVendorCDR_20' ) end [2025-04-23 01:58:18] Production.INFO: ProcessCDR(1,14969059,1,1,2) [2025-04-23 01:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969059', 'tblTempUsageDetail_20' ) start [2025-04-23 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969059', 'tblTempUsageDetail_20' ) end [2025-04-23 01:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 01:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 01:58:21] Production.INFO: ==30927== Releasing lock... [2025-04-23 01:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 01:58:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-23 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 22:59:05 [end_date_ymd] => 2025-04-23 01:59:05 [RateCDR] => 1 ) [2025-04-23 01:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 22:59:05' and `end` < '2025-04-23 01:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 01:59:18] Production.INFO: count ==442 [2025-04-23 01:59:18] Production.ERROR: pbx CDR StartTime 2025-04-22 22:59:05 - End Time 2025-04-23 01:59:05 [2025-04-23 01:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969064', 'tblTempUsageDetail_20' ) start [2025-04-23 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969064', 'tblTempUsageDetail_20' ) end [2025-04-23 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969064', 'tblTempVendorCDR_20' ) start [2025-04-23 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969064', 'tblTempVendorCDR_20' ) end [2025-04-23 01:59:18] Production.INFO: ProcessCDR(1,14969064,1,1,2) [2025-04-23 01:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 01:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969064', 'tblTempUsageDetail_20' ) start [2025-04-23 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969064', 'tblTempUsageDetail_20' ) end [2025-04-23 01:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 01:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 01:59:21] Production.INFO: ==31003== Releasing lock... [2025-04-23 01:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 01:59:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-23 02:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 23:00:05 [end_date_ymd] => 2025-04-23 02:00:05 [RateCDR] => 1 ) [2025-04-23 02:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 23:00:05' and `end` < '2025-04-23 02:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 02:00:18] Production.INFO: count ==448 [2025-04-23 02:00:18] Production.ERROR: pbx CDR StartTime 2025-04-22 23:00:05 - End Time 2025-04-23 02:00:05 [2025-04-23 02:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969069', 'tblTempUsageDetail_20' ) start [2025-04-23 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969069', 'tblTempUsageDetail_20' ) end [2025-04-23 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969069', 'tblTempVendorCDR_20' ) start [2025-04-23 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969069', 'tblTempVendorCDR_20' ) end [2025-04-23 02:00:18] Production.INFO: ProcessCDR(1,14969069,1,1,2) [2025-04-23 02:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969069', 'tblTempUsageDetail_20' ) start [2025-04-23 02:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969069', 'tblTempUsageDetail_20' ) end [2025-04-23 02:00:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 02:00:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 02:00:21] Production.INFO: ==31079== Releasing lock... [2025-04-23 02:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 02:00:21] Production.INFO: 32 MB #Memory Used# [2025-04-23 02:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 23:01:06 [end_date_ymd] => 2025-04-23 02:01:06 [RateCDR] => 1 ) [2025-04-23 02:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 23:01:06' and `end` < '2025-04-23 02:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 02:01:19] Production.INFO: count ==457 [2025-04-23 02:01:19] Production.ERROR: pbx CDR StartTime 2025-04-22 23:01:06 - End Time 2025-04-23 02:01:06 [2025-04-23 02:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969075', 'tblTempUsageDetail_20' ) start [2025-04-23 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969075', 'tblTempUsageDetail_20' ) end [2025-04-23 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969075', 'tblTempVendorCDR_20' ) start [2025-04-23 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969075', 'tblTempVendorCDR_20' ) end [2025-04-23 02:01:19] Production.INFO: ProcessCDR(1,14969075,1,1,2) [2025-04-23 02:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969075', 'tblTempUsageDetail_20' ) start [2025-04-23 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969075', 'tblTempUsageDetail_20' ) end [2025-04-23 02:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 02:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 02:01:22] Production.INFO: ==31172== Releasing lock... [2025-04-23 02:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 02:01:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-23 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 23:02:05 [end_date_ymd] => 2025-04-23 02:02:05 [RateCDR] => 1 ) [2025-04-23 02:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 23:02:05' and `end` < '2025-04-23 02:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 02:02:18] Production.INFO: count ==457 [2025-04-23 02:02:18] Production.ERROR: pbx CDR StartTime 2025-04-22 23:02:05 - End Time 2025-04-23 02:02:05 [2025-04-23 02:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969080', 'tblTempUsageDetail_20' ) start [2025-04-23 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969080', 'tblTempUsageDetail_20' ) end [2025-04-23 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969080', 'tblTempVendorCDR_20' ) start [2025-04-23 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969080', 'tblTempVendorCDR_20' ) end [2025-04-23 02:02:18] Production.INFO: ProcessCDR(1,14969080,1,1,2) [2025-04-23 02:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969080', 'tblTempUsageDetail_20' ) start [2025-04-23 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969080', 'tblTempUsageDetail_20' ) end [2025-04-23 02:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 02:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 02:02:21] Production.INFO: ==31335== Releasing lock... [2025-04-23 02:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 02:02:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-23 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 23:03:05 [end_date_ymd] => 2025-04-23 02:03:05 [RateCDR] => 1 ) [2025-04-23 02:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 23:03:05' and `end` < '2025-04-23 02:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 02:03:18] Production.INFO: count ==454 [2025-04-23 02:03:18] Production.ERROR: pbx CDR StartTime 2025-04-22 23:03:05 - End Time 2025-04-23 02:03:05 [2025-04-23 02:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969085', 'tblTempUsageDetail_20' ) start [2025-04-23 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969085', 'tblTempUsageDetail_20' ) end [2025-04-23 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969085', 'tblTempVendorCDR_20' ) start [2025-04-23 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969085', 'tblTempVendorCDR_20' ) end [2025-04-23 02:03:18] Production.INFO: ProcessCDR(1,14969085,1,1,2) [2025-04-23 02:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969085', 'tblTempUsageDetail_20' ) start [2025-04-23 02:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969085', 'tblTempUsageDetail_20' ) end [2025-04-23 02:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 02:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 02:03:22] Production.INFO: ==31408== Releasing lock... [2025-04-23 02:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 02:03:22] Production.INFO: 32 MB #Memory Used# [2025-04-23 02:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 23:04:05 [end_date_ymd] => 2025-04-23 02:04:05 [RateCDR] => 1 ) [2025-04-23 02:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 23:04:05' and `end` < '2025-04-23 02:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 02:04:18] Production.INFO: count ==453 [2025-04-23 02:04:18] Production.ERROR: pbx CDR StartTime 2025-04-22 23:04:05 - End Time 2025-04-23 02:04:05 [2025-04-23 02:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969090', 'tblTempUsageDetail_20' ) start [2025-04-23 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969090', 'tblTempUsageDetail_20' ) end [2025-04-23 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969090', 'tblTempVendorCDR_20' ) start [2025-04-23 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969090', 'tblTempVendorCDR_20' ) end [2025-04-23 02:04:18] Production.INFO: ProcessCDR(1,14969090,1,1,2) [2025-04-23 02:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969090', 'tblTempUsageDetail_20' ) start [2025-04-23 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969090', 'tblTempUsageDetail_20' ) end [2025-04-23 02:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 02:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 02:04:21] Production.INFO: ==31524== Releasing lock... [2025-04-23 02:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 02:04:21] Production.INFO: 32 MB #Memory Used# [2025-04-23 02:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 23:05:06 [end_date_ymd] => 2025-04-23 02:05:06 [RateCDR] => 1 ) [2025-04-23 02:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 23:05:06' and `end` < '2025-04-23 02:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 02:05:18] Production.INFO: count ==459 [2025-04-23 02:05:18] Production.ERROR: pbx CDR StartTime 2025-04-22 23:05:06 - End Time 2025-04-23 02:05:06 [2025-04-23 02:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969095', 'tblTempUsageDetail_20' ) start [2025-04-23 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969095', 'tblTempUsageDetail_20' ) end [2025-04-23 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969095', 'tblTempVendorCDR_20' ) start [2025-04-23 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969095', 'tblTempVendorCDR_20' ) end [2025-04-23 02:05:18] Production.INFO: ProcessCDR(1,14969095,1,1,2) [2025-04-23 02:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969095', 'tblTempUsageDetail_20' ) start [2025-04-23 02:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969095', 'tblTempUsageDetail_20' ) end [2025-04-23 02:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 02:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 02:05:22] Production.INFO: ==31599== Releasing lock... [2025-04-23 02:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 02:05:22] Production.INFO: 32 MB #Memory Used# [2025-04-23 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 23:06:05 [end_date_ymd] => 2025-04-23 02:06:05 [RateCDR] => 1 ) [2025-04-23 02:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 23:06:05' and `end` < '2025-04-23 02:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 02:06:17] Production.INFO: count ==456 [2025-04-23 02:06:17] Production.ERROR: pbx CDR StartTime 2025-04-22 23:06:05 - End Time 2025-04-23 02:06:05 [2025-04-23 02:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969100', 'tblTempUsageDetail_20' ) start [2025-04-23 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969100', 'tblTempUsageDetail_20' ) end [2025-04-23 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969100', 'tblTempVendorCDR_20' ) start [2025-04-23 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969100', 'tblTempVendorCDR_20' ) end [2025-04-23 02:06:17] Production.INFO: ProcessCDR(1,14969100,1,1,2) [2025-04-23 02:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969100', 'tblTempUsageDetail_20' ) start [2025-04-23 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969100', 'tblTempUsageDetail_20' ) end [2025-04-23 02:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 02:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 02:06:21] Production.INFO: ==31684== Releasing lock... [2025-04-23 02:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 02:06:21] Production.INFO: 32 MB #Memory Used# [2025-04-23 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 23:07:05 [end_date_ymd] => 2025-04-23 02:07:05 [RateCDR] => 1 ) [2025-04-23 02:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 23:07:05' and `end` < '2025-04-23 02:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 02:07:18] Production.INFO: count ==453 [2025-04-23 02:07:18] Production.ERROR: pbx CDR StartTime 2025-04-22 23:07:05 - End Time 2025-04-23 02:07:05 [2025-04-23 02:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969105', 'tblTempUsageDetail_20' ) start [2025-04-23 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969105', 'tblTempUsageDetail_20' ) end [2025-04-23 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969105', 'tblTempVendorCDR_20' ) start [2025-04-23 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969105', 'tblTempVendorCDR_20' ) end [2025-04-23 02:07:18] Production.INFO: ProcessCDR(1,14969105,1,1,2) [2025-04-23 02:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969105', 'tblTempUsageDetail_20' ) start [2025-04-23 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969105', 'tblTempUsageDetail_20' ) end [2025-04-23 02:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 02:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 02:07:21] Production.INFO: ==31757== Releasing lock... [2025-04-23 02:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 02:07:21] Production.INFO: 32 MB #Memory Used# [2025-04-23 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 23:08:05 [end_date_ymd] => 2025-04-23 02:08:05 [RateCDR] => 1 ) [2025-04-23 02:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 23:08:05' and `end` < '2025-04-23 02:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 02:08:17] Production.INFO: count ==452 [2025-04-23 02:08:18] Production.ERROR: pbx CDR StartTime 2025-04-22 23:08:05 - End Time 2025-04-23 02:08:05 [2025-04-23 02:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969110', 'tblTempUsageDetail_20' ) start [2025-04-23 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969110', 'tblTempUsageDetail_20' ) end [2025-04-23 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969110', 'tblTempVendorCDR_20' ) start [2025-04-23 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969110', 'tblTempVendorCDR_20' ) end [2025-04-23 02:08:18] Production.INFO: ProcessCDR(1,14969110,1,1,2) [2025-04-23 02:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969110', 'tblTempUsageDetail_20' ) start [2025-04-23 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969110', 'tblTempUsageDetail_20' ) end [2025-04-23 02:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 02:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 02:08:21] Production.INFO: ==31833== Releasing lock... [2025-04-23 02:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 02:08:21] Production.INFO: 32 MB #Memory Used# [2025-04-23 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 23:09:05 [end_date_ymd] => 2025-04-23 02:09:05 [RateCDR] => 1 ) [2025-04-23 02:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 23:09:05' and `end` < '2025-04-23 02:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 02:09:18] Production.INFO: count ==452 [2025-04-23 02:09:18] Production.ERROR: pbx CDR StartTime 2025-04-22 23:09:05 - End Time 2025-04-23 02:09:05 [2025-04-23 02:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969115', 'tblTempUsageDetail_20' ) start [2025-04-23 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969115', 'tblTempUsageDetail_20' ) end [2025-04-23 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969115', 'tblTempVendorCDR_20' ) start [2025-04-23 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969115', 'tblTempVendorCDR_20' ) end [2025-04-23 02:09:18] Production.INFO: ProcessCDR(1,14969115,1,1,2) [2025-04-23 02:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969115', 'tblTempUsageDetail_20' ) start [2025-04-23 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969115', 'tblTempUsageDetail_20' ) end [2025-04-23 02:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 02:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 02:09:21] Production.INFO: ==31907== Releasing lock... [2025-04-23 02:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 02:09:21] Production.INFO: 32 MB #Memory Used# [2025-04-23 02:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 23:10:07 [end_date_ymd] => 2025-04-23 02:10:07 [RateCDR] => 1 ) [2025-04-23 02:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 23:10:07' and `end` < '2025-04-23 02:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 02:10:20] Production.INFO: count ==457 [2025-04-23 02:10:20] Production.ERROR: pbx CDR StartTime 2025-04-22 23:10:07 - End Time 2025-04-23 02:10:07 [2025-04-23 02:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 02:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969121', 'tblTempUsageDetail_20' ) start [2025-04-23 02:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969121', 'tblTempUsageDetail_20' ) end [2025-04-23 02:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969121', 'tblTempVendorCDR_20' ) start [2025-04-23 02:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969121', 'tblTempVendorCDR_20' ) end [2025-04-23 02:10:20] Production.INFO: ProcessCDR(1,14969121,1,1,2) [2025-04-23 02:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969121', 'tblTempUsageDetail_20' ) start [2025-04-23 02:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969121', 'tblTempUsageDetail_20' ) end [2025-04-23 02:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 02:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 02:10:23] Production.INFO: ==31985== Releasing lock... [2025-04-23 02:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 02:10:23] Production.INFO: 31.75 MB #Memory Used# [2025-04-23 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 23:11:05 [end_date_ymd] => 2025-04-23 02:11:05 [RateCDR] => 1 ) [2025-04-23 02:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 23:11:05' and `end` < '2025-04-23 02:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 02:11:17] Production.INFO: count ==449 [2025-04-23 02:11:18] Production.ERROR: pbx CDR StartTime 2025-04-22 23:11:05 - End Time 2025-04-23 02:11:05 [2025-04-23 02:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969126', 'tblTempUsageDetail_20' ) start [2025-04-23 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969126', 'tblTempUsageDetail_20' ) end [2025-04-23 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969126', 'tblTempVendorCDR_20' ) start [2025-04-23 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969126', 'tblTempVendorCDR_20' ) end [2025-04-23 02:11:18] Production.INFO: ProcessCDR(1,14969126,1,1,2) [2025-04-23 02:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969126', 'tblTempUsageDetail_20' ) start [2025-04-23 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969126', 'tblTempUsageDetail_20' ) end [2025-04-23 02:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 02:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 02:11:21] Production.INFO: ==32066== Releasing lock... [2025-04-23 02:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 02:11:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-23 02:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 23:12:06 [end_date_ymd] => 2025-04-23 02:12:06 [RateCDR] => 1 ) [2025-04-23 02:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 23:12:06' and `end` < '2025-04-23 02:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 02:12:18] Production.INFO: count ==445 [2025-04-23 02:12:19] Production.ERROR: pbx CDR StartTime 2025-04-22 23:12:06 - End Time 2025-04-23 02:12:06 [2025-04-23 02:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969131', 'tblTempUsageDetail_20' ) start [2025-04-23 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969131', 'tblTempUsageDetail_20' ) end [2025-04-23 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969131', 'tblTempVendorCDR_20' ) start [2025-04-23 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969131', 'tblTempVendorCDR_20' ) end [2025-04-23 02:12:19] Production.INFO: ProcessCDR(1,14969131,1,1,2) [2025-04-23 02:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969131', 'tblTempUsageDetail_20' ) start [2025-04-23 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969131', 'tblTempUsageDetail_20' ) end [2025-04-23 02:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 02:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 02:12:22] Production.INFO: ==32143== Releasing lock... [2025-04-23 02:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 02:12:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-23 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 23:13:05 [end_date_ymd] => 2025-04-23 02:13:05 [RateCDR] => 1 ) [2025-04-23 02:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 23:13:05' and `end` < '2025-04-23 02:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 02:13:18] Production.INFO: count ==568 [2025-04-23 02:13:18] Production.ERROR: pbx CDR StartTime 2025-04-22 23:13:05 - End Time 2025-04-23 02:13:05 [2025-04-23 02:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969136', 'tblTempUsageDetail_20' ) start [2025-04-23 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969136', 'tblTempUsageDetail_20' ) end [2025-04-23 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969136', 'tblTempVendorCDR_20' ) start [2025-04-23 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969136', 'tblTempVendorCDR_20' ) end [2025-04-23 02:13:18] Production.INFO: ProcessCDR(1,14969136,1,1,2) [2025-04-23 02:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969136', 'tblTempUsageDetail_20' ) start [2025-04-23 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969136', 'tblTempUsageDetail_20' ) end [2025-04-23 02:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 02:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 02:13:22] Production.INFO: ==32215== Releasing lock... [2025-04-23 02:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 02:13:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-23 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 23:14:05 [end_date_ymd] => 2025-04-23 02:14:05 [RateCDR] => 1 ) [2025-04-23 02:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 23:14:05' and `end` < '2025-04-23 02:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 02:14:18] Production.INFO: count ==567 [2025-04-23 02:14:18] Production.ERROR: pbx CDR StartTime 2025-04-22 23:14:05 - End Time 2025-04-23 02:14:05 [2025-04-23 02:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969141', 'tblTempUsageDetail_20' ) start [2025-04-23 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969141', 'tblTempUsageDetail_20' ) end [2025-04-23 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969141', 'tblTempVendorCDR_20' ) start [2025-04-23 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969141', 'tblTempVendorCDR_20' ) end [2025-04-23 02:14:18] Production.INFO: ProcessCDR(1,14969141,1,1,2) [2025-04-23 02:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969141', 'tblTempUsageDetail_20' ) start [2025-04-23 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969141', 'tblTempUsageDetail_20' ) end [2025-04-23 02:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 02:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 02:14:21] Production.INFO: ==32289== Releasing lock... [2025-04-23 02:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 02:14:21] Production.INFO: 33 MB #Memory Used# [2025-04-23 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 23:15:05 [end_date_ymd] => 2025-04-23 02:15:05 [RateCDR] => 1 ) [2025-04-23 02:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 23:15:05' and `end` < '2025-04-23 02:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 02:15:18] Production.INFO: count ==557 [2025-04-23 02:15:18] Production.ERROR: pbx CDR StartTime 2025-04-22 23:15:05 - End Time 2025-04-23 02:15:05 [2025-04-23 02:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969146', 'tblTempUsageDetail_20' ) start [2025-04-23 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969146', 'tblTempUsageDetail_20' ) end [2025-04-23 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969146', 'tblTempVendorCDR_20' ) start [2025-04-23 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969146', 'tblTempVendorCDR_20' ) end [2025-04-23 02:15:18] Production.INFO: ProcessCDR(1,14969146,1,1,2) [2025-04-23 02:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969146', 'tblTempUsageDetail_20' ) start [2025-04-23 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969146', 'tblTempUsageDetail_20' ) end [2025-04-23 02:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 02:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 02:15:21] Production.INFO: ==32363== Releasing lock... [2025-04-23 02:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 02:15:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-23 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 23:16:05 [end_date_ymd] => 2025-04-23 02:16:05 [RateCDR] => 1 ) [2025-04-23 02:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 23:16:05' and `end` < '2025-04-23 02:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 02:16:17] Production.INFO: count ==555 [2025-04-23 02:16:17] Production.ERROR: pbx CDR StartTime 2025-04-22 23:16:05 - End Time 2025-04-23 02:16:05 [2025-04-23 02:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969151', 'tblTempUsageDetail_20' ) start [2025-04-23 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969151', 'tblTempUsageDetail_20' ) end [2025-04-23 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969151', 'tblTempVendorCDR_20' ) start [2025-04-23 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969151', 'tblTempVendorCDR_20' ) end [2025-04-23 02:16:17] Production.INFO: ProcessCDR(1,14969151,1,1,2) [2025-04-23 02:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969151', 'tblTempUsageDetail_20' ) start [2025-04-23 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969151', 'tblTempUsageDetail_20' ) end [2025-04-23 02:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 02:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 02:16:21] Production.INFO: ==32437== Releasing lock... [2025-04-23 02:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 02:16:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-23 02:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 23:17:05 [end_date_ymd] => 2025-04-23 02:17:05 [RateCDR] => 1 ) [2025-04-23 02:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 23:17:05' and `end` < '2025-04-23 02:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 02:17:18] Production.INFO: count ==553 [2025-04-23 02:17:18] Production.ERROR: pbx CDR StartTime 2025-04-22 23:17:05 - End Time 2025-04-23 02:17:05 [2025-04-23 02:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969156', 'tblTempUsageDetail_20' ) start [2025-04-23 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969156', 'tblTempUsageDetail_20' ) end [2025-04-23 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969156', 'tblTempVendorCDR_20' ) start [2025-04-23 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969156', 'tblTempVendorCDR_20' ) end [2025-04-23 02:17:18] Production.INFO: ProcessCDR(1,14969156,1,1,2) [2025-04-23 02:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969156', 'tblTempUsageDetail_20' ) start [2025-04-23 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969156', 'tblTempUsageDetail_20' ) end [2025-04-23 02:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 02:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 02:17:21] Production.INFO: ==32514== Releasing lock... [2025-04-23 02:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 02:17:21] Production.INFO: 33 MB #Memory Used# [2025-04-23 02:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 23:18:06 [end_date_ymd] => 2025-04-23 02:18:06 [RateCDR] => 1 ) [2025-04-23 02:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 23:18:06' and `end` < '2025-04-23 02:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 02:18:18] Production.INFO: count ==548 [2025-04-23 02:18:19] Production.ERROR: pbx CDR StartTime 2025-04-22 23:18:06 - End Time 2025-04-23 02:18:06 [2025-04-23 02:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969161', 'tblTempUsageDetail_20' ) start [2025-04-23 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969161', 'tblTempUsageDetail_20' ) end [2025-04-23 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969161', 'tblTempVendorCDR_20' ) start [2025-04-23 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969161', 'tblTempVendorCDR_20' ) end [2025-04-23 02:18:19] Production.INFO: ProcessCDR(1,14969161,1,1,2) [2025-04-23 02:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969161', 'tblTempUsageDetail_20' ) start [2025-04-23 02:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969161', 'tblTempUsageDetail_20' ) end [2025-04-23 02:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 02:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 02:18:22] Production.INFO: ==32588== Releasing lock... [2025-04-23 02:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 02:18:22] Production.INFO: 33 MB #Memory Used# [2025-04-23 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 23:19:05 [end_date_ymd] => 2025-04-23 02:19:05 [RateCDR] => 1 ) [2025-04-23 02:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 23:19:05' and `end` < '2025-04-23 02:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 02:19:18] Production.INFO: count ==549 [2025-04-23 02:19:18] Production.ERROR: pbx CDR StartTime 2025-04-22 23:19:05 - End Time 2025-04-23 02:19:05 [2025-04-23 02:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969166', 'tblTempUsageDetail_20' ) start [2025-04-23 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969166', 'tblTempUsageDetail_20' ) end [2025-04-23 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969166', 'tblTempVendorCDR_20' ) start [2025-04-23 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969166', 'tblTempVendorCDR_20' ) end [2025-04-23 02:19:18] Production.INFO: ProcessCDR(1,14969166,1,1,2) [2025-04-23 02:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969166', 'tblTempUsageDetail_20' ) start [2025-04-23 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969166', 'tblTempUsageDetail_20' ) end [2025-04-23 02:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 02:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 02:19:21] Production.INFO: ==32718== Releasing lock... [2025-04-23 02:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 02:19:21] Production.INFO: 33 MB #Memory Used# [2025-04-23 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 23:20:06 [end_date_ymd] => 2025-04-23 02:20:06 [RateCDR] => 1 ) [2025-04-23 02:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 23:20:06' and `end` < '2025-04-23 02:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 02:20:19] Production.INFO: count ==553 [2025-04-23 02:20:19] Production.ERROR: pbx CDR StartTime 2025-04-22 23:20:06 - End Time 2025-04-23 02:20:06 [2025-04-23 02:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969172', 'tblTempUsageDetail_20' ) start [2025-04-23 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969172', 'tblTempUsageDetail_20' ) end [2025-04-23 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969172', 'tblTempVendorCDR_20' ) start [2025-04-23 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969172', 'tblTempVendorCDR_20' ) end [2025-04-23 02:20:19] Production.INFO: ProcessCDR(1,14969172,1,1,2) [2025-04-23 02:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969172', 'tblTempUsageDetail_20' ) start [2025-04-23 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969172', 'tblTempUsageDetail_20' ) end [2025-04-23 02:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 02:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 02:20:22] Production.INFO: ==354== Releasing lock... [2025-04-23 02:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 02:20:22] Production.INFO: 33 MB #Memory Used# [2025-04-23 02:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 23:21:06 [end_date_ymd] => 2025-04-23 02:21:06 [RateCDR] => 1 ) [2025-04-23 02:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 23:21:06' and `end` < '2025-04-23 02:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 02:21:18] Production.INFO: count ==546 [2025-04-23 02:21:19] Production.ERROR: pbx CDR StartTime 2025-04-22 23:21:06 - End Time 2025-04-23 02:21:06 [2025-04-23 02:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 02:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969177', 'tblTempUsageDetail_20' ) start [2025-04-23 02:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969177', 'tblTempUsageDetail_20' ) end [2025-04-23 02:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969177', 'tblTempVendorCDR_20' ) start [2025-04-23 02:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969177', 'tblTempVendorCDR_20' ) end [2025-04-23 02:21:19] Production.INFO: ProcessCDR(1,14969177,1,1,2) [2025-04-23 02:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969177', 'tblTempUsageDetail_20' ) start [2025-04-23 02:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969177', 'tblTempUsageDetail_20' ) end [2025-04-23 02:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 02:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 02:21:22] Production.INFO: ==436== Releasing lock... [2025-04-23 02:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 02:21:22] Production.INFO: 33 MB #Memory Used# [2025-04-23 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 23:22:05 [end_date_ymd] => 2025-04-23 02:22:05 [RateCDR] => 1 ) [2025-04-23 02:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 23:22:05' and `end` < '2025-04-23 02:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 02:22:18] Production.INFO: count ==546 [2025-04-23 02:22:18] Production.ERROR: pbx CDR StartTime 2025-04-22 23:22:05 - End Time 2025-04-23 02:22:05 [2025-04-23 02:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969182', 'tblTempUsageDetail_20' ) start [2025-04-23 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969182', 'tblTempUsageDetail_20' ) end [2025-04-23 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969182', 'tblTempVendorCDR_20' ) start [2025-04-23 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969182', 'tblTempVendorCDR_20' ) end [2025-04-23 02:22:18] Production.INFO: ProcessCDR(1,14969182,1,1,2) [2025-04-23 02:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969182', 'tblTempUsageDetail_20' ) start [2025-04-23 02:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969182', 'tblTempUsageDetail_20' ) end [2025-04-23 02:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 02:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 02:22:22] Production.INFO: ==513== Releasing lock... [2025-04-23 02:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 02:22:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-23 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 23:23:05 [end_date_ymd] => 2025-04-23 02:23:05 [RateCDR] => 1 ) [2025-04-23 02:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 23:23:05' and `end` < '2025-04-23 02:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 02:23:18] Production.INFO: count ==545 [2025-04-23 02:23:18] Production.ERROR: pbx CDR StartTime 2025-04-22 23:23:05 - End Time 2025-04-23 02:23:05 [2025-04-23 02:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969187', 'tblTempUsageDetail_20' ) start [2025-04-23 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969187', 'tblTempUsageDetail_20' ) end [2025-04-23 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969187', 'tblTempVendorCDR_20' ) start [2025-04-23 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969187', 'tblTempVendorCDR_20' ) end [2025-04-23 02:23:18] Production.INFO: ProcessCDR(1,14969187,1,1,2) [2025-04-23 02:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969187', 'tblTempUsageDetail_20' ) start [2025-04-23 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969187', 'tblTempUsageDetail_20' ) end [2025-04-23 02:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 02:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 02:23:21] Production.INFO: ==590== Releasing lock... [2025-04-23 02:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 02:23:21] Production.INFO: 33 MB #Memory Used# [2025-04-23 02:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 23:24:06 [end_date_ymd] => 2025-04-23 02:24:06 [RateCDR] => 1 ) [2025-04-23 02:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 23:24:06' and `end` < '2025-04-23 02:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 02:24:18] Production.INFO: count ==545 [2025-04-23 02:24:18] Production.ERROR: pbx CDR StartTime 2025-04-22 23:24:06 - End Time 2025-04-23 02:24:06 [2025-04-23 02:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969192', 'tblTempUsageDetail_20' ) start [2025-04-23 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969192', 'tblTempUsageDetail_20' ) end [2025-04-23 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969192', 'tblTempVendorCDR_20' ) start [2025-04-23 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969192', 'tblTempVendorCDR_20' ) end [2025-04-23 02:24:18] Production.INFO: ProcessCDR(1,14969192,1,1,2) [2025-04-23 02:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969192', 'tblTempUsageDetail_20' ) start [2025-04-23 02:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969192', 'tblTempUsageDetail_20' ) end [2025-04-23 02:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 02:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 02:24:22] Production.INFO: ==684== Releasing lock... [2025-04-23 02:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 02:24:22] Production.INFO: 33 MB #Memory Used# [2025-04-23 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 23:25:05 [end_date_ymd] => 2025-04-23 02:25:05 [RateCDR] => 1 ) [2025-04-23 02:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 23:25:05' and `end` < '2025-04-23 02:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 02:25:18] Production.INFO: count ==545 [2025-04-23 02:25:18] Production.ERROR: pbx CDR StartTime 2025-04-22 23:25:05 - End Time 2025-04-23 02:25:05 [2025-04-23 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969197', 'tblTempUsageDetail_20' ) start [2025-04-23 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969197', 'tblTempUsageDetail_20' ) end [2025-04-23 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969197', 'tblTempVendorCDR_20' ) start [2025-04-23 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969197', 'tblTempVendorCDR_20' ) end [2025-04-23 02:25:18] Production.INFO: ProcessCDR(1,14969197,1,1,2) [2025-04-23 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969197', 'tblTempUsageDetail_20' ) start [2025-04-23 02:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969197', 'tblTempUsageDetail_20' ) end [2025-04-23 02:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 02:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 02:25:22] Production.INFO: ==773== Releasing lock... [2025-04-23 02:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 02:25:22] Production.INFO: 33 MB #Memory Used# [2025-04-23 02:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 23:26:06 [end_date_ymd] => 2025-04-23 02:26:06 [RateCDR] => 1 ) [2025-04-23 02:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 23:26:06' and `end` < '2025-04-23 02:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 02:26:18] Production.INFO: count ==544 [2025-04-23 02:26:19] Production.ERROR: pbx CDR StartTime 2025-04-22 23:26:06 - End Time 2025-04-23 02:26:06 [2025-04-23 02:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969202', 'tblTempUsageDetail_20' ) start [2025-04-23 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969202', 'tblTempUsageDetail_20' ) end [2025-04-23 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969202', 'tblTempVendorCDR_20' ) start [2025-04-23 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969202', 'tblTempVendorCDR_20' ) end [2025-04-23 02:26:19] Production.INFO: ProcessCDR(1,14969202,1,1,2) [2025-04-23 02:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969202', 'tblTempUsageDetail_20' ) start [2025-04-23 02:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969202', 'tblTempUsageDetail_20' ) end [2025-04-23 02:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 02:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 02:26:22] Production.INFO: ==853== Releasing lock... [2025-04-23 02:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 02:26:22] Production.INFO: 33 MB #Memory Used# [2025-04-23 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 23:27:05 [end_date_ymd] => 2025-04-23 02:27:05 [RateCDR] => 1 ) [2025-04-23 02:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 23:27:05' and `end` < '2025-04-23 02:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 02:27:18] Production.INFO: count ==572 [2025-04-23 02:27:18] Production.ERROR: pbx CDR StartTime 2025-04-22 23:27:05 - End Time 2025-04-23 02:27:05 [2025-04-23 02:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969207', 'tblTempUsageDetail_20' ) start [2025-04-23 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969207', 'tblTempUsageDetail_20' ) end [2025-04-23 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969207', 'tblTempVendorCDR_20' ) start [2025-04-23 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969207', 'tblTempVendorCDR_20' ) end [2025-04-23 02:27:18] Production.INFO: ProcessCDR(1,14969207,1,1,2) [2025-04-23 02:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969207', 'tblTempUsageDetail_20' ) start [2025-04-23 02:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969207', 'tblTempUsageDetail_20' ) end [2025-04-23 02:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 02:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 02:27:22] Production.INFO: ==927== Releasing lock... [2025-04-23 02:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 02:27:22] Production.INFO: 33 MB #Memory Used# [2025-04-23 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 23:28:05 [end_date_ymd] => 2025-04-23 02:28:05 [RateCDR] => 1 ) [2025-04-23 02:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 23:28:05' and `end` < '2025-04-23 02:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 02:28:18] Production.INFO: count ==572 [2025-04-23 02:28:18] Production.ERROR: pbx CDR StartTime 2025-04-22 23:28:05 - End Time 2025-04-23 02:28:05 [2025-04-23 02:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969212', 'tblTempUsageDetail_20' ) start [2025-04-23 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969212', 'tblTempUsageDetail_20' ) end [2025-04-23 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969212', 'tblTempVendorCDR_20' ) start [2025-04-23 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969212', 'tblTempVendorCDR_20' ) end [2025-04-23 02:28:18] Production.INFO: ProcessCDR(1,14969212,1,1,2) [2025-04-23 02:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969212', 'tblTempUsageDetail_20' ) start [2025-04-23 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969212', 'tblTempUsageDetail_20' ) end [2025-04-23 02:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 02:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 02:28:21] Production.INFO: ==1002== Releasing lock... [2025-04-23 02:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 02:28:21] Production.INFO: 33 MB #Memory Used# [2025-04-23 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 23:29:05 [end_date_ymd] => 2025-04-23 02:29:05 [RateCDR] => 1 ) [2025-04-23 02:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 23:29:05' and `end` < '2025-04-23 02:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 02:29:17] Production.INFO: count ==568 [2025-04-23 02:29:18] Production.ERROR: pbx CDR StartTime 2025-04-22 23:29:05 - End Time 2025-04-23 02:29:05 [2025-04-23 02:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969217', 'tblTempUsageDetail_20' ) start [2025-04-23 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969217', 'tblTempUsageDetail_20' ) end [2025-04-23 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969217', 'tblTempVendorCDR_20' ) start [2025-04-23 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969217', 'tblTempVendorCDR_20' ) end [2025-04-23 02:29:18] Production.INFO: ProcessCDR(1,14969217,1,1,2) [2025-04-23 02:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969217', 'tblTempUsageDetail_20' ) start [2025-04-23 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969217', 'tblTempUsageDetail_20' ) end [2025-04-23 02:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 02:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 02:29:21] Production.INFO: ==1079== Releasing lock... [2025-04-23 02:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 02:29:21] Production.INFO: 33 MB #Memory Used# [2025-04-23 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 23:30:06 [end_date_ymd] => 2025-04-23 02:30:06 [RateCDR] => 1 ) [2025-04-23 02:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 23:30:06' and `end` < '2025-04-23 02:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 02:30:19] Production.INFO: count ==575 [2025-04-23 02:30:19] Production.ERROR: pbx CDR StartTime 2025-04-22 23:30:06 - End Time 2025-04-23 02:30:06 [2025-04-23 02:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969223', 'tblTempUsageDetail_20' ) start [2025-04-23 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969223', 'tblTempUsageDetail_20' ) end [2025-04-23 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969223', 'tblTempVendorCDR_20' ) start [2025-04-23 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969223', 'tblTempVendorCDR_20' ) end [2025-04-23 02:30:19] Production.INFO: ProcessCDR(1,14969223,1,1,2) [2025-04-23 02:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969223', 'tblTempUsageDetail_20' ) start [2025-04-23 02:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969223', 'tblTempUsageDetail_20' ) end [2025-04-23 02:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 02:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 02:30:23] Production.INFO: ==1155== Releasing lock... [2025-04-23 02:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 02:30:23] Production.INFO: 33.25 MB #Memory Used# [2025-04-23 02:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 23:31:04 [end_date_ymd] => 2025-04-23 02:31:04 [RateCDR] => 1 ) [2025-04-23 02:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 23:31:04' and `end` < '2025-04-23 02:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 02:31:17] Production.INFO: count ==577 [2025-04-23 02:31:17] Production.ERROR: pbx CDR StartTime 2025-04-22 23:31:04 - End Time 2025-04-23 02:31:04 [2025-04-23 02:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969228', 'tblTempUsageDetail_20' ) start [2025-04-23 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969228', 'tblTempUsageDetail_20' ) end [2025-04-23 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969228', 'tblTempVendorCDR_20' ) start [2025-04-23 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969228', 'tblTempVendorCDR_20' ) end [2025-04-23 02:31:17] Production.INFO: ProcessCDR(1,14969228,1,1,2) [2025-04-23 02:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969228', 'tblTempUsageDetail_20' ) start [2025-04-23 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969228', 'tblTempUsageDetail_20' ) end [2025-04-23 02:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 02:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 02:31:21] Production.INFO: ==1243== Releasing lock... [2025-04-23 02:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 02:31:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-23 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 23:32:05 [end_date_ymd] => 2025-04-23 02:32:05 [RateCDR] => 1 ) [2025-04-23 02:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 23:32:05' and `end` < '2025-04-23 02:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 02:32:18] Production.INFO: count ==574 [2025-04-23 02:32:18] Production.ERROR: pbx CDR StartTime 2025-04-22 23:32:05 - End Time 2025-04-23 02:32:05 [2025-04-23 02:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969233', 'tblTempUsageDetail_20' ) start [2025-04-23 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969233', 'tblTempUsageDetail_20' ) end [2025-04-23 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969233', 'tblTempVendorCDR_20' ) start [2025-04-23 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969233', 'tblTempVendorCDR_20' ) end [2025-04-23 02:32:18] Production.INFO: ProcessCDR(1,14969233,1,1,2) [2025-04-23 02:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969233', 'tblTempUsageDetail_20' ) start [2025-04-23 02:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969233', 'tblTempUsageDetail_20' ) end [2025-04-23 02:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 02:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 02:32:22] Production.INFO: ==1329== Releasing lock... [2025-04-23 02:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 02:32:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-23 02:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 23:33:06 [end_date_ymd] => 2025-04-23 02:33:06 [RateCDR] => 1 ) [2025-04-23 02:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 23:33:06' and `end` < '2025-04-23 02:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 02:33:18] Production.INFO: count ==572 [2025-04-23 02:33:18] Production.ERROR: pbx CDR StartTime 2025-04-22 23:33:06 - End Time 2025-04-23 02:33:06 [2025-04-23 02:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969238', 'tblTempUsageDetail_20' ) start [2025-04-23 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969238', 'tblTempUsageDetail_20' ) end [2025-04-23 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969238', 'tblTempVendorCDR_20' ) start [2025-04-23 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969238', 'tblTempVendorCDR_20' ) end [2025-04-23 02:33:18] Production.INFO: ProcessCDR(1,14969238,1,1,2) [2025-04-23 02:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969238', 'tblTempUsageDetail_20' ) start [2025-04-23 02:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969238', 'tblTempUsageDetail_20' ) end [2025-04-23 02:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 02:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 02:33:22] Production.INFO: ==1407== Releasing lock... [2025-04-23 02:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 02:33:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-23 02:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 23:34:05 [end_date_ymd] => 2025-04-23 02:34:05 [RateCDR] => 1 ) [2025-04-23 02:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 23:34:05' and `end` < '2025-04-23 02:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 02:34:18] Production.INFO: count ==567 [2025-04-23 02:34:18] Production.ERROR: pbx CDR StartTime 2025-04-22 23:34:05 - End Time 2025-04-23 02:34:05 [2025-04-23 02:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969243', 'tblTempUsageDetail_20' ) start [2025-04-23 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969243', 'tblTempUsageDetail_20' ) end [2025-04-23 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969243', 'tblTempVendorCDR_20' ) start [2025-04-23 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969243', 'tblTempVendorCDR_20' ) end [2025-04-23 02:34:18] Production.INFO: ProcessCDR(1,14969243,1,1,2) [2025-04-23 02:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969243', 'tblTempUsageDetail_20' ) start [2025-04-23 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969243', 'tblTempUsageDetail_20' ) end [2025-04-23 02:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 02:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 02:34:21] Production.INFO: ==1481== Releasing lock... [2025-04-23 02:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 02:34:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-23 02:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 23:35:06 [end_date_ymd] => 2025-04-23 02:35:06 [RateCDR] => 1 ) [2025-04-23 02:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 23:35:06' and `end` < '2025-04-23 02:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 02:35:18] Production.INFO: count ==565 [2025-04-23 02:35:19] Production.ERROR: pbx CDR StartTime 2025-04-22 23:35:06 - End Time 2025-04-23 02:35:06 [2025-04-23 02:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969248', 'tblTempUsageDetail_20' ) start [2025-04-23 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969248', 'tblTempUsageDetail_20' ) end [2025-04-23 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969248', 'tblTempVendorCDR_20' ) start [2025-04-23 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969248', 'tblTempVendorCDR_20' ) end [2025-04-23 02:35:19] Production.INFO: ProcessCDR(1,14969248,1,1,2) [2025-04-23 02:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969248', 'tblTempUsageDetail_20' ) start [2025-04-23 02:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969248', 'tblTempUsageDetail_20' ) end [2025-04-23 02:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 02:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 02:35:23] Production.INFO: ==1634== Releasing lock... [2025-04-23 02:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 02:35:23] Production.INFO: 32.75 MB #Memory Used# [2025-04-23 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 23:36:05 [end_date_ymd] => 2025-04-23 02:36:05 [RateCDR] => 1 ) [2025-04-23 02:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 23:36:05' and `end` < '2025-04-23 02:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 02:36:18] Production.INFO: count ==562 [2025-04-23 02:36:18] Production.ERROR: pbx CDR StartTime 2025-04-22 23:36:05 - End Time 2025-04-23 02:36:05 [2025-04-23 02:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969253', 'tblTempUsageDetail_20' ) start [2025-04-23 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969253', 'tblTempUsageDetail_20' ) end [2025-04-23 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969253', 'tblTempVendorCDR_20' ) start [2025-04-23 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969253', 'tblTempVendorCDR_20' ) end [2025-04-23 02:36:18] Production.INFO: ProcessCDR(1,14969253,1,1,2) [2025-04-23 02:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969253', 'tblTempUsageDetail_20' ) start [2025-04-23 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969253', 'tblTempUsageDetail_20' ) end [2025-04-23 02:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 02:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 02:36:22] Production.INFO: ==1713== Releasing lock... [2025-04-23 02:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 02:36:22] Production.INFO: 33 MB #Memory Used# [2025-04-23 02:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 23:37:05 [end_date_ymd] => 2025-04-23 02:37:05 [RateCDR] => 1 ) [2025-04-23 02:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 23:37:05' and `end` < '2025-04-23 02:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 02:37:18] Production.INFO: count ==560 [2025-04-23 02:37:18] Production.ERROR: pbx CDR StartTime 2025-04-22 23:37:05 - End Time 2025-04-23 02:37:05 [2025-04-23 02:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969258', 'tblTempUsageDetail_20' ) start [2025-04-23 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969258', 'tblTempUsageDetail_20' ) end [2025-04-23 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969258', 'tblTempVendorCDR_20' ) start [2025-04-23 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969258', 'tblTempVendorCDR_20' ) end [2025-04-23 02:37:18] Production.INFO: ProcessCDR(1,14969258,1,1,2) [2025-04-23 02:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969258', 'tblTempUsageDetail_20' ) start [2025-04-23 02:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969258', 'tblTempUsageDetail_20' ) end [2025-04-23 02:37:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 02:37:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 02:37:23] Production.INFO: ==1790== Releasing lock... [2025-04-23 02:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 02:37:23] Production.INFO: 33 MB #Memory Used# [2025-04-23 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 23:38:05 [end_date_ymd] => 2025-04-23 02:38:05 [RateCDR] => 1 ) [2025-04-23 02:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 23:38:05' and `end` < '2025-04-23 02:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 02:38:17] Production.INFO: count ==557 [2025-04-23 02:38:17] Production.ERROR: pbx CDR StartTime 2025-04-22 23:38:05 - End Time 2025-04-23 02:38:05 [2025-04-23 02:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969263', 'tblTempUsageDetail_20' ) start [2025-04-23 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969263', 'tblTempUsageDetail_20' ) end [2025-04-23 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969263', 'tblTempVendorCDR_20' ) start [2025-04-23 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969263', 'tblTempVendorCDR_20' ) end [2025-04-23 02:38:17] Production.INFO: ProcessCDR(1,14969263,1,1,2) [2025-04-23 02:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969263', 'tblTempUsageDetail_20' ) start [2025-04-23 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969263', 'tblTempUsageDetail_20' ) end [2025-04-23 02:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 02:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 02:38:21] Production.INFO: ==1869== Releasing lock... [2025-04-23 02:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 02:38:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-23 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 23:39:05 [end_date_ymd] => 2025-04-23 02:39:05 [RateCDR] => 1 ) [2025-04-23 02:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 23:39:05' and `end` < '2025-04-23 02:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 02:39:18] Production.INFO: count ==556 [2025-04-23 02:39:18] Production.ERROR: pbx CDR StartTime 2025-04-22 23:39:05 - End Time 2025-04-23 02:39:05 [2025-04-23 02:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969268', 'tblTempUsageDetail_20' ) start [2025-04-23 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969268', 'tblTempUsageDetail_20' ) end [2025-04-23 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969268', 'tblTempVendorCDR_20' ) start [2025-04-23 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969268', 'tblTempVendorCDR_20' ) end [2025-04-23 02:39:18] Production.INFO: ProcessCDR(1,14969268,1,1,2) [2025-04-23 02:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969268', 'tblTempUsageDetail_20' ) start [2025-04-23 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969268', 'tblTempUsageDetail_20' ) end [2025-04-23 02:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 02:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 02:39:21] Production.INFO: ==1944== Releasing lock... [2025-04-23 02:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 02:39:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-23 02:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 23:40:06 [end_date_ymd] => 2025-04-23 02:40:06 [RateCDR] => 1 ) [2025-04-23 02:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 23:40:06' and `end` < '2025-04-23 02:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 02:40:19] Production.INFO: count ==554 [2025-04-23 02:40:19] Production.ERROR: pbx CDR StartTime 2025-04-22 23:40:06 - End Time 2025-04-23 02:40:06 [2025-04-23 02:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969274', 'tblTempUsageDetail_20' ) start [2025-04-23 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969274', 'tblTempUsageDetail_20' ) end [2025-04-23 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969274', 'tblTempVendorCDR_20' ) start [2025-04-23 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969274', 'tblTempVendorCDR_20' ) end [2025-04-23 02:40:19] Production.INFO: ProcessCDR(1,14969274,1,1,2) [2025-04-23 02:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969274', 'tblTempUsageDetail_20' ) start [2025-04-23 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969274', 'tblTempUsageDetail_20' ) end [2025-04-23 02:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 02:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 02:40:22] Production.INFO: ==2017== Releasing lock... [2025-04-23 02:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 02:40:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-23 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 23:41:05 [end_date_ymd] => 2025-04-23 02:41:05 [RateCDR] => 1 ) [2025-04-23 02:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 23:41:05' and `end` < '2025-04-23 02:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 02:41:18] Production.INFO: count ==552 [2025-04-23 02:41:18] Production.ERROR: pbx CDR StartTime 2025-04-22 23:41:05 - End Time 2025-04-23 02:41:05 [2025-04-23 02:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969279', 'tblTempUsageDetail_20' ) start [2025-04-23 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969279', 'tblTempUsageDetail_20' ) end [2025-04-23 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969279', 'tblTempVendorCDR_20' ) start [2025-04-23 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969279', 'tblTempVendorCDR_20' ) end [2025-04-23 02:41:18] Production.INFO: ProcessCDR(1,14969279,1,1,2) [2025-04-23 02:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969279', 'tblTempUsageDetail_20' ) start [2025-04-23 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969279', 'tblTempUsageDetail_20' ) end [2025-04-23 02:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 02:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 02:41:21] Production.INFO: ==2094== Releasing lock... [2025-04-23 02:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 02:41:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-23 02:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 23:42:05 [end_date_ymd] => 2025-04-23 02:42:05 [RateCDR] => 1 ) [2025-04-23 02:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 23:42:05' and `end` < '2025-04-23 02:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 02:42:17] Production.INFO: count ==550 [2025-04-23 02:42:18] Production.ERROR: pbx CDR StartTime 2025-04-22 23:42:05 - End Time 2025-04-23 02:42:05 [2025-04-23 02:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969284', 'tblTempUsageDetail_20' ) start [2025-04-23 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969284', 'tblTempUsageDetail_20' ) end [2025-04-23 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969284', 'tblTempVendorCDR_20' ) start [2025-04-23 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969284', 'tblTempVendorCDR_20' ) end [2025-04-23 02:42:18] Production.INFO: ProcessCDR(1,14969284,1,1,2) [2025-04-23 02:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969284', 'tblTempUsageDetail_20' ) start [2025-04-23 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969284', 'tblTempUsageDetail_20' ) end [2025-04-23 02:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 02:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 02:42:21] Production.INFO: ==2164== Releasing lock... [2025-04-23 02:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 02:42:21] Production.INFO: 33 MB #Memory Used# [2025-04-23 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 23:43:05 [end_date_ymd] => 2025-04-23 02:43:05 [RateCDR] => 1 ) [2025-04-23 02:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 23:43:05' and `end` < '2025-04-23 02:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 02:43:18] Production.INFO: count ==550 [2025-04-23 02:43:18] Production.ERROR: pbx CDR StartTime 2025-04-22 23:43:05 - End Time 2025-04-23 02:43:05 [2025-04-23 02:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969289', 'tblTempUsageDetail_20' ) start [2025-04-23 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969289', 'tblTempUsageDetail_20' ) end [2025-04-23 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969289', 'tblTempVendorCDR_20' ) start [2025-04-23 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969289', 'tblTempVendorCDR_20' ) end [2025-04-23 02:43:18] Production.INFO: ProcessCDR(1,14969289,1,1,2) [2025-04-23 02:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969289', 'tblTempUsageDetail_20' ) start [2025-04-23 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969289', 'tblTempUsageDetail_20' ) end [2025-04-23 02:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 02:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 02:43:21] Production.INFO: ==2241== Releasing lock... [2025-04-23 02:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 02:43:21] Production.INFO: 33 MB #Memory Used# [2025-04-23 02:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 23:44:06 [end_date_ymd] => 2025-04-23 02:44:06 [RateCDR] => 1 ) [2025-04-23 02:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 23:44:06' and `end` < '2025-04-23 02:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 02:44:18] Production.INFO: count ==549 [2025-04-23 02:44:18] Production.ERROR: pbx CDR StartTime 2025-04-22 23:44:06 - End Time 2025-04-23 02:44:06 [2025-04-23 02:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969294', 'tblTempUsageDetail_20' ) start [2025-04-23 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969294', 'tblTempUsageDetail_20' ) end [2025-04-23 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969294', 'tblTempVendorCDR_20' ) start [2025-04-23 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969294', 'tblTempVendorCDR_20' ) end [2025-04-23 02:44:18] Production.INFO: ProcessCDR(1,14969294,1,1,2) [2025-04-23 02:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969294', 'tblTempUsageDetail_20' ) start [2025-04-23 02:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969294', 'tblTempUsageDetail_20' ) end [2025-04-23 02:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 02:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 02:44:22] Production.INFO: ==2317== Releasing lock... [2025-04-23 02:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 02:44:22] Production.INFO: 33 MB #Memory Used# [2025-04-23 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 23:45:05 [end_date_ymd] => 2025-04-23 02:45:05 [RateCDR] => 1 ) [2025-04-23 02:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 23:45:05' and `end` < '2025-04-23 02:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 02:45:18] Production.INFO: count ==547 [2025-04-23 02:45:18] Production.ERROR: pbx CDR StartTime 2025-04-22 23:45:05 - End Time 2025-04-23 02:45:05 [2025-04-23 02:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969299', 'tblTempUsageDetail_20' ) start [2025-04-23 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969299', 'tblTempUsageDetail_20' ) end [2025-04-23 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969299', 'tblTempVendorCDR_20' ) start [2025-04-23 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969299', 'tblTempVendorCDR_20' ) end [2025-04-23 02:45:18] Production.INFO: ProcessCDR(1,14969299,1,1,2) [2025-04-23 02:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969299', 'tblTempUsageDetail_20' ) start [2025-04-23 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969299', 'tblTempUsageDetail_20' ) end [2025-04-23 02:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 02:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 02:45:21] Production.INFO: ==2390== Releasing lock... [2025-04-23 02:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 02:45:21] Production.INFO: 33 MB #Memory Used# [2025-04-23 02:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 23:46:06 [end_date_ymd] => 2025-04-23 02:46:06 [RateCDR] => 1 ) [2025-04-23 02:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 23:46:06' and `end` < '2025-04-23 02:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 02:46:18] Production.INFO: count ==546 [2025-04-23 02:46:18] Production.ERROR: pbx CDR StartTime 2025-04-22 23:46:06 - End Time 2025-04-23 02:46:06 [2025-04-23 02:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969304', 'tblTempUsageDetail_20' ) start [2025-04-23 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969304', 'tblTempUsageDetail_20' ) end [2025-04-23 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969304', 'tblTempVendorCDR_20' ) start [2025-04-23 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969304', 'tblTempVendorCDR_20' ) end [2025-04-23 02:46:18] Production.INFO: ProcessCDR(1,14969304,1,1,2) [2025-04-23 02:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969304', 'tblTempUsageDetail_20' ) start [2025-04-23 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969304', 'tblTempUsageDetail_20' ) end [2025-04-23 02:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 02:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 02:46:22] Production.INFO: ==2470== Releasing lock... [2025-04-23 02:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 02:46:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-23 02:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 23:47:04 [end_date_ymd] => 2025-04-23 02:47:04 [RateCDR] => 1 ) [2025-04-23 02:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 23:47:04' and `end` < '2025-04-23 02:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 02:47:17] Production.INFO: count ==545 [2025-04-23 02:47:17] Production.ERROR: pbx CDR StartTime 2025-04-22 23:47:04 - End Time 2025-04-23 02:47:04 [2025-04-23 02:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969309', 'tblTempUsageDetail_20' ) start [2025-04-23 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969309', 'tblTempUsageDetail_20' ) end [2025-04-23 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969309', 'tblTempVendorCDR_20' ) start [2025-04-23 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969309', 'tblTempVendorCDR_20' ) end [2025-04-23 02:47:17] Production.INFO: ProcessCDR(1,14969309,1,1,2) [2025-04-23 02:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969309', 'tblTempUsageDetail_20' ) start [2025-04-23 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969309', 'tblTempUsageDetail_20' ) end [2025-04-23 02:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 02:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 02:47:21] Production.INFO: ==2541== Releasing lock... [2025-04-23 02:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 02:47:21] Production.INFO: 33 MB #Memory Used# [2025-04-23 02:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 23:48:06 [end_date_ymd] => 2025-04-23 02:48:06 [RateCDR] => 1 ) [2025-04-23 02:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 23:48:06' and `end` < '2025-04-23 02:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 02:48:18] Production.INFO: count ==545 [2025-04-23 02:48:18] Production.ERROR: pbx CDR StartTime 2025-04-22 23:48:06 - End Time 2025-04-23 02:48:06 [2025-04-23 02:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969314', 'tblTempUsageDetail_20' ) start [2025-04-23 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969314', 'tblTempUsageDetail_20' ) end [2025-04-23 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969314', 'tblTempVendorCDR_20' ) start [2025-04-23 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969314', 'tblTempVendorCDR_20' ) end [2025-04-23 02:48:18] Production.INFO: ProcessCDR(1,14969314,1,1,2) [2025-04-23 02:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969314', 'tblTempUsageDetail_20' ) start [2025-04-23 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969314', 'tblTempUsageDetail_20' ) end [2025-04-23 02:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 02:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 02:48:22] Production.INFO: ==2612== Releasing lock... [2025-04-23 02:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 02:48:22] Production.INFO: 33 MB #Memory Used# [2025-04-23 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 23:49:05 [end_date_ymd] => 2025-04-23 02:49:05 [RateCDR] => 1 ) [2025-04-23 02:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 23:49:05' and `end` < '2025-04-23 02:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 02:49:18] Production.INFO: count ==544 [2025-04-23 02:49:18] Production.ERROR: pbx CDR StartTime 2025-04-22 23:49:05 - End Time 2025-04-23 02:49:05 [2025-04-23 02:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969319', 'tblTempUsageDetail_20' ) start [2025-04-23 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969319', 'tblTempUsageDetail_20' ) end [2025-04-23 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969319', 'tblTempVendorCDR_20' ) start [2025-04-23 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969319', 'tblTempVendorCDR_20' ) end [2025-04-23 02:49:18] Production.INFO: ProcessCDR(1,14969319,1,1,2) [2025-04-23 02:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969319', 'tblTempUsageDetail_20' ) start [2025-04-23 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969319', 'tblTempUsageDetail_20' ) end [2025-04-23 02:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 02:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 02:49:21] Production.INFO: ==2688== Releasing lock... [2025-04-23 02:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 02:49:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-23 02:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 23:50:07 [end_date_ymd] => 2025-04-23 02:50:07 [RateCDR] => 1 ) [2025-04-23 02:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 23:50:07' and `end` < '2025-04-23 02:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 02:50:19] Production.INFO: count ==552 [2025-04-23 02:50:19] Production.ERROR: pbx CDR StartTime 2025-04-22 23:50:07 - End Time 2025-04-23 02:50:07 [2025-04-23 02:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969325', 'tblTempUsageDetail_20' ) start [2025-04-23 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969325', 'tblTempUsageDetail_20' ) end [2025-04-23 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969325', 'tblTempVendorCDR_20' ) start [2025-04-23 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969325', 'tblTempVendorCDR_20' ) end [2025-04-23 02:50:19] Production.INFO: ProcessCDR(1,14969325,1,1,2) [2025-04-23 02:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969325', 'tblTempUsageDetail_20' ) start [2025-04-23 02:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969325', 'tblTempUsageDetail_20' ) end [2025-04-23 02:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 02:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 02:50:23] Production.INFO: ==2805== Releasing lock... [2025-04-23 02:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 02:50:23] Production.INFO: 32.75 MB #Memory Used# [2025-04-23 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 23:51:05 [end_date_ymd] => 2025-04-23 02:51:05 [RateCDR] => 1 ) [2025-04-23 02:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 23:51:05' and `end` < '2025-04-23 02:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 02:51:17] Production.INFO: count ==552 [2025-04-23 02:51:18] Production.ERROR: pbx CDR StartTime 2025-04-22 23:51:05 - End Time 2025-04-23 02:51:05 [2025-04-23 02:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969330', 'tblTempUsageDetail_20' ) start [2025-04-23 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969330', 'tblTempUsageDetail_20' ) end [2025-04-23 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969330', 'tblTempVendorCDR_20' ) start [2025-04-23 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969330', 'tblTempVendorCDR_20' ) end [2025-04-23 02:51:18] Production.INFO: ProcessCDR(1,14969330,1,1,2) [2025-04-23 02:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969330', 'tblTempUsageDetail_20' ) start [2025-04-23 02:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969330', 'tblTempUsageDetail_20' ) end [2025-04-23 02:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 02:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 02:51:21] Production.INFO: ==2883== Releasing lock... [2025-04-23 02:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 02:51:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-23 02:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 23:52:06 [end_date_ymd] => 2025-04-23 02:52:06 [RateCDR] => 1 ) [2025-04-23 02:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 23:52:06' and `end` < '2025-04-23 02:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 02:52:18] Production.INFO: count ==553 [2025-04-23 02:52:18] Production.ERROR: pbx CDR StartTime 2025-04-22 23:52:06 - End Time 2025-04-23 02:52:06 [2025-04-23 02:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969335', 'tblTempUsageDetail_20' ) start [2025-04-23 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969335', 'tblTempUsageDetail_20' ) end [2025-04-23 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969335', 'tblTempVendorCDR_20' ) start [2025-04-23 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969335', 'tblTempVendorCDR_20' ) end [2025-04-23 02:52:18] Production.INFO: ProcessCDR(1,14969335,1,1,2) [2025-04-23 02:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969335', 'tblTempUsageDetail_20' ) start [2025-04-23 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969335', 'tblTempUsageDetail_20' ) end [2025-04-23 02:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 02:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 02:52:22] Production.INFO: ==2958== Releasing lock... [2025-04-23 02:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 02:52:22] Production.INFO: 33 MB #Memory Used# [2025-04-23 02:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 23:53:05 [end_date_ymd] => 2025-04-23 02:53:05 [RateCDR] => 1 ) [2025-04-23 02:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 23:53:05' and `end` < '2025-04-23 02:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 02:53:18] Production.INFO: count ==561 [2025-04-23 02:53:18] Production.ERROR: pbx CDR StartTime 2025-04-22 23:53:05 - End Time 2025-04-23 02:53:05 [2025-04-23 02:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969340', 'tblTempUsageDetail_20' ) start [2025-04-23 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969340', 'tblTempUsageDetail_20' ) end [2025-04-23 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969340', 'tblTempVendorCDR_20' ) start [2025-04-23 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969340', 'tblTempVendorCDR_20' ) end [2025-04-23 02:53:18] Production.INFO: ProcessCDR(1,14969340,1,1,2) [2025-04-23 02:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969340', 'tblTempUsageDetail_20' ) start [2025-04-23 02:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969340', 'tblTempUsageDetail_20' ) end [2025-04-23 02:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 02:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 02:53:21] Production.INFO: ==3028== Releasing lock... [2025-04-23 02:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 02:53:21] Production.INFO: 33 MB #Memory Used# [2025-04-23 02:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 23:54:05 [end_date_ymd] => 2025-04-23 02:54:05 [RateCDR] => 1 ) [2025-04-23 02:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 23:54:05' and `end` < '2025-04-23 02:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 02:54:18] Production.INFO: count ==559 [2025-04-23 02:54:18] Production.ERROR: pbx CDR StartTime 2025-04-22 23:54:05 - End Time 2025-04-23 02:54:05 [2025-04-23 02:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969345', 'tblTempUsageDetail_20' ) start [2025-04-23 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969345', 'tblTempUsageDetail_20' ) end [2025-04-23 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969345', 'tblTempVendorCDR_20' ) start [2025-04-23 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969345', 'tblTempVendorCDR_20' ) end [2025-04-23 02:54:18] Production.INFO: ProcessCDR(1,14969345,1,1,2) [2025-04-23 02:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969345', 'tblTempUsageDetail_20' ) start [2025-04-23 02:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969345', 'tblTempUsageDetail_20' ) end [2025-04-23 02:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 02:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 02:54:22] Production.INFO: ==3103== Releasing lock... [2025-04-23 02:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 02:54:22] Production.INFO: 33 MB #Memory Used# [2025-04-23 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 23:55:05 [end_date_ymd] => 2025-04-23 02:55:05 [RateCDR] => 1 ) [2025-04-23 02:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 23:55:05' and `end` < '2025-04-23 02:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 02:55:17] Production.INFO: count ==561 [2025-04-23 02:55:17] Production.ERROR: pbx CDR StartTime 2025-04-22 23:55:05 - End Time 2025-04-23 02:55:05 [2025-04-23 02:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969350', 'tblTempUsageDetail_20' ) start [2025-04-23 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969350', 'tblTempUsageDetail_20' ) end [2025-04-23 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969350', 'tblTempVendorCDR_20' ) start [2025-04-23 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969350', 'tblTempVendorCDR_20' ) end [2025-04-23 02:55:17] Production.INFO: ProcessCDR(1,14969350,1,1,2) [2025-04-23 02:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969350', 'tblTempUsageDetail_20' ) start [2025-04-23 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969350', 'tblTempUsageDetail_20' ) end [2025-04-23 02:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 02:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 02:55:21] Production.INFO: ==3177== Releasing lock... [2025-04-23 02:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 02:55:21] Production.INFO: 33 MB #Memory Used# [2025-04-23 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 23:56:05 [end_date_ymd] => 2025-04-23 02:56:05 [RateCDR] => 1 ) [2025-04-23 02:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 23:56:05' and `end` < '2025-04-23 02:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 02:56:18] Production.INFO: count ==560 [2025-04-23 02:56:18] Production.ERROR: pbx CDR StartTime 2025-04-22 23:56:05 - End Time 2025-04-23 02:56:05 [2025-04-23 02:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969355', 'tblTempUsageDetail_20' ) start [2025-04-23 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969355', 'tblTempUsageDetail_20' ) end [2025-04-23 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969355', 'tblTempVendorCDR_20' ) start [2025-04-23 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969355', 'tblTempVendorCDR_20' ) end [2025-04-23 02:56:18] Production.INFO: ProcessCDR(1,14969355,1,1,2) [2025-04-23 02:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969355', 'tblTempUsageDetail_20' ) start [2025-04-23 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969355', 'tblTempUsageDetail_20' ) end [2025-04-23 02:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 02:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 02:56:22] Production.INFO: ==3254== Releasing lock... [2025-04-23 02:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 02:56:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-23 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 23:57:05 [end_date_ymd] => 2025-04-23 02:57:05 [RateCDR] => 1 ) [2025-04-23 02:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 23:57:05' and `end` < '2025-04-23 02:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 02:57:17] Production.INFO: count ==558 [2025-04-23 02:57:18] Production.ERROR: pbx CDR StartTime 2025-04-22 23:57:05 - End Time 2025-04-23 02:57:05 [2025-04-23 02:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969360', 'tblTempUsageDetail_20' ) start [2025-04-23 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969360', 'tblTempUsageDetail_20' ) end [2025-04-23 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969360', 'tblTempVendorCDR_20' ) start [2025-04-23 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969360', 'tblTempVendorCDR_20' ) end [2025-04-23 02:57:18] Production.INFO: ProcessCDR(1,14969360,1,1,2) [2025-04-23 02:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969360', 'tblTempUsageDetail_20' ) start [2025-04-23 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969360', 'tblTempUsageDetail_20' ) end [2025-04-23 02:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 02:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 02:57:21] Production.INFO: ==3327== Releasing lock... [2025-04-23 02:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 02:57:21] Production.INFO: 33 MB #Memory Used# [2025-04-23 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 23:58:05 [end_date_ymd] => 2025-04-23 02:58:05 [RateCDR] => 1 ) [2025-04-23 02:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 23:58:05' and `end` < '2025-04-23 02:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 02:58:18] Production.INFO: count ==558 [2025-04-23 02:58:18] Production.ERROR: pbx CDR StartTime 2025-04-22 23:58:05 - End Time 2025-04-23 02:58:05 [2025-04-23 02:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969365', 'tblTempUsageDetail_20' ) start [2025-04-23 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969365', 'tblTempUsageDetail_20' ) end [2025-04-23 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969365', 'tblTempVendorCDR_20' ) start [2025-04-23 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969365', 'tblTempVendorCDR_20' ) end [2025-04-23 02:58:18] Production.INFO: ProcessCDR(1,14969365,1,1,2) [2025-04-23 02:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969365', 'tblTempUsageDetail_20' ) start [2025-04-23 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969365', 'tblTempUsageDetail_20' ) end [2025-04-23 02:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 02:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 02:58:21] Production.INFO: ==3398== Releasing lock... [2025-04-23 02:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 02:58:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-23 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 23:59:05 [end_date_ymd] => 2025-04-23 02:59:05 [RateCDR] => 1 ) [2025-04-23 02:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 23:59:05' and `end` < '2025-04-23 02:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 02:59:17] Production.INFO: count ==556 [2025-04-23 02:59:17] Production.ERROR: pbx CDR StartTime 2025-04-22 23:59:05 - End Time 2025-04-23 02:59:05 [2025-04-23 02:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969370', 'tblTempUsageDetail_20' ) start [2025-04-23 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969370', 'tblTempUsageDetail_20' ) end [2025-04-23 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969370', 'tblTempVendorCDR_20' ) start [2025-04-23 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969370', 'tblTempVendorCDR_20' ) end [2025-04-23 02:59:17] Production.INFO: ProcessCDR(1,14969370,1,1,2) [2025-04-23 02:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 02:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969370', 'tblTempUsageDetail_20' ) start [2025-04-23 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969370', 'tblTempUsageDetail_20' ) end [2025-04-23 02:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 02:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 02:59:21] Production.INFO: ==3468== Releasing lock... [2025-04-23 02:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 02:59:21] Production.INFO: 33 MB #Memory Used# [2025-04-23 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 00:00:06 [end_date_ymd] => 2025-04-23 03:00:06 [RateCDR] => 1 ) [2025-04-23 03:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 00:00:06' and `end` < '2025-04-23 03:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 03:00:19] Production.INFO: count ==555 [2025-04-23 03:00:19] Production.ERROR: pbx CDR StartTime 2025-04-23 00:00:06 - End Time 2025-04-23 03:00:06 [2025-04-23 03:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969376', 'tblTempUsageDetail_20' ) start [2025-04-23 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969376', 'tblTempUsageDetail_20' ) end [2025-04-23 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969376', 'tblTempVendorCDR_20' ) start [2025-04-23 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969376', 'tblTempVendorCDR_20' ) end [2025-04-23 03:00:19] Production.INFO: ProcessCDR(1,14969376,1,1,2) [2025-04-23 03:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969376', 'tblTempUsageDetail_20' ) start [2025-04-23 03:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969376', 'tblTempUsageDetail_20' ) end [2025-04-23 03:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 03:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 03:00:23] Production.INFO: ==3547== Releasing lock... [2025-04-23 03:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 03:00:23] Production.INFO: 33 MB #Memory Used# [2025-04-23 03:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 00:01:05 [end_date_ymd] => 2025-04-23 03:01:05 [RateCDR] => 1 ) [2025-04-23 03:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 00:01:05' and `end` < '2025-04-23 03:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 03:01:18] Production.INFO: count ==553 [2025-04-23 03:01:18] Production.ERROR: pbx CDR StartTime 2025-04-23 00:01:05 - End Time 2025-04-23 03:01:05 [2025-04-23 03:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969381', 'tblTempUsageDetail_20' ) start [2025-04-23 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969381', 'tblTempUsageDetail_20' ) end [2025-04-23 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969381', 'tblTempVendorCDR_20' ) start [2025-04-23 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969381', 'tblTempVendorCDR_20' ) end [2025-04-23 03:01:18] Production.INFO: ProcessCDR(1,14969381,1,1,2) [2025-04-23 03:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969381', 'tblTempUsageDetail_20' ) start [2025-04-23 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969381', 'tblTempUsageDetail_20' ) end [2025-04-23 03:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 03:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 03:01:21] Production.INFO: ==3640== Releasing lock... [2025-04-23 03:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 03:01:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-23 03:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 00:02:06 [end_date_ymd] => 2025-04-23 03:02:06 [RateCDR] => 1 ) [2025-04-23 03:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 00:02:06' and `end` < '2025-04-23 03:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 03:02:18] Production.INFO: count ==549 [2025-04-23 03:02:18] Production.ERROR: pbx CDR StartTime 2025-04-23 00:02:06 - End Time 2025-04-23 03:02:06 [2025-04-23 03:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969386', 'tblTempUsageDetail_20' ) start [2025-04-23 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969386', 'tblTempUsageDetail_20' ) end [2025-04-23 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969386', 'tblTempVendorCDR_20' ) start [2025-04-23 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969386', 'tblTempVendorCDR_20' ) end [2025-04-23 03:02:18] Production.INFO: ProcessCDR(1,14969386,1,1,2) [2025-04-23 03:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969386', 'tblTempUsageDetail_20' ) start [2025-04-23 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969386', 'tblTempUsageDetail_20' ) end [2025-04-23 03:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 03:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 03:02:22] Production.INFO: ==3787== Releasing lock... [2025-04-23 03:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 03:02:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-23 03:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 00:03:06 [end_date_ymd] => 2025-04-23 03:03:06 [RateCDR] => 1 ) [2025-04-23 03:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 00:03:06' and `end` < '2025-04-23 03:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 03:03:18] Production.INFO: count ==547 [2025-04-23 03:03:18] Production.ERROR: pbx CDR StartTime 2025-04-23 00:03:06 - End Time 2025-04-23 03:03:06 [2025-04-23 03:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969391', 'tblTempUsageDetail_20' ) start [2025-04-23 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969391', 'tblTempUsageDetail_20' ) end [2025-04-23 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969391', 'tblTempVendorCDR_20' ) start [2025-04-23 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969391', 'tblTempVendorCDR_20' ) end [2025-04-23 03:03:18] Production.INFO: ProcessCDR(1,14969391,1,1,2) [2025-04-23 03:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969391', 'tblTempUsageDetail_20' ) start [2025-04-23 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969391', 'tblTempUsageDetail_20' ) end [2025-04-23 03:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 03:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 03:03:22] Production.INFO: ==3857== Releasing lock... [2025-04-23 03:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 03:03:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-23 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 00:04:05 [end_date_ymd] => 2025-04-23 03:04:05 [RateCDR] => 1 ) [2025-04-23 03:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 00:04:05' and `end` < '2025-04-23 03:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 03:04:17] Production.INFO: count ==546 [2025-04-23 03:04:17] Production.ERROR: pbx CDR StartTime 2025-04-23 00:04:05 - End Time 2025-04-23 03:04:05 [2025-04-23 03:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969396', 'tblTempUsageDetail_20' ) start [2025-04-23 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969396', 'tblTempUsageDetail_20' ) end [2025-04-23 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969396', 'tblTempVendorCDR_20' ) start [2025-04-23 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969396', 'tblTempVendorCDR_20' ) end [2025-04-23 03:04:17] Production.INFO: ProcessCDR(1,14969396,1,1,2) [2025-04-23 03:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969396', 'tblTempUsageDetail_20' ) start [2025-04-23 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969396', 'tblTempUsageDetail_20' ) end [2025-04-23 03:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 03:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 03:04:21] Production.INFO: ==3928== Releasing lock... [2025-04-23 03:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 03:04:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-23 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 00:05:05 [end_date_ymd] => 2025-04-23 03:05:05 [RateCDR] => 1 ) [2025-04-23 03:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 00:05:05' and `end` < '2025-04-23 03:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 03:05:18] Production.INFO: count ==545 [2025-04-23 03:05:19] Production.ERROR: pbx CDR StartTime 2025-04-23 00:05:05 - End Time 2025-04-23 03:05:05 [2025-04-23 03:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969401', 'tblTempUsageDetail_20' ) start [2025-04-23 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969401', 'tblTempUsageDetail_20' ) end [2025-04-23 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969401', 'tblTempVendorCDR_20' ) start [2025-04-23 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969401', 'tblTempVendorCDR_20' ) end [2025-04-23 03:05:19] Production.INFO: ProcessCDR(1,14969401,1,1,2) [2025-04-23 03:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969401', 'tblTempUsageDetail_20' ) start [2025-04-23 03:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969401', 'tblTempUsageDetail_20' ) end [2025-04-23 03:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 03:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 03:05:22] Production.INFO: ==4001== Releasing lock... [2025-04-23 03:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 03:05:22] Production.INFO: 33 MB #Memory Used# [2025-04-23 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 00:06:05 [end_date_ymd] => 2025-04-23 03:06:05 [RateCDR] => 1 ) [2025-04-23 03:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 00:06:05' and `end` < '2025-04-23 03:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 03:06:17] Production.INFO: count ==544 [2025-04-23 03:06:18] Production.ERROR: pbx CDR StartTime 2025-04-23 00:06:05 - End Time 2025-04-23 03:06:05 [2025-04-23 03:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969406', 'tblTempUsageDetail_20' ) start [2025-04-23 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969406', 'tblTempUsageDetail_20' ) end [2025-04-23 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969406', 'tblTempVendorCDR_20' ) start [2025-04-23 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969406', 'tblTempVendorCDR_20' ) end [2025-04-23 03:06:18] Production.INFO: ProcessCDR(1,14969406,1,1,2) [2025-04-23 03:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969406', 'tblTempUsageDetail_20' ) start [2025-04-23 03:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969406', 'tblTempUsageDetail_20' ) end [2025-04-23 03:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 03:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 03:06:22] Production.INFO: ==4187== Releasing lock... [2025-04-23 03:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 03:06:22] Production.INFO: 33 MB #Memory Used# [2025-04-23 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 00:07:05 [end_date_ymd] => 2025-04-23 03:07:05 [RateCDR] => 1 ) [2025-04-23 03:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 00:07:05' and `end` < '2025-04-23 03:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 03:07:18] Production.INFO: count ==543 [2025-04-23 03:07:18] Production.ERROR: pbx CDR StartTime 2025-04-23 00:07:05 - End Time 2025-04-23 03:07:05 [2025-04-23 03:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969411', 'tblTempUsageDetail_20' ) start [2025-04-23 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969411', 'tblTempUsageDetail_20' ) end [2025-04-23 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969411', 'tblTempVendorCDR_20' ) start [2025-04-23 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969411', 'tblTempVendorCDR_20' ) end [2025-04-23 03:07:18] Production.INFO: ProcessCDR(1,14969411,1,1,2) [2025-04-23 03:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969411', 'tblTempUsageDetail_20' ) start [2025-04-23 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969411', 'tblTempUsageDetail_20' ) end [2025-04-23 03:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 03:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 03:07:21] Production.INFO: ==4265== Releasing lock... [2025-04-23 03:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 03:07:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-23 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 00:08:05 [end_date_ymd] => 2025-04-23 03:08:05 [RateCDR] => 1 ) [2025-04-23 03:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 00:08:05' and `end` < '2025-04-23 03:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 03:08:18] Production.INFO: count ==543 [2025-04-23 03:08:18] Production.ERROR: pbx CDR StartTime 2025-04-23 00:08:05 - End Time 2025-04-23 03:08:05 [2025-04-23 03:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969416', 'tblTempUsageDetail_20' ) start [2025-04-23 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969416', 'tblTempUsageDetail_20' ) end [2025-04-23 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969416', 'tblTempVendorCDR_20' ) start [2025-04-23 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969416', 'tblTempVendorCDR_20' ) end [2025-04-23 03:08:18] Production.INFO: ProcessCDR(1,14969416,1,1,2) [2025-04-23 03:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969416', 'tblTempUsageDetail_20' ) start [2025-04-23 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969416', 'tblTempUsageDetail_20' ) end [2025-04-23 03:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 03:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 03:08:21] Production.INFO: ==4334== Releasing lock... [2025-04-23 03:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 03:08:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-23 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 00:09:05 [end_date_ymd] => 2025-04-23 03:09:05 [RateCDR] => 1 ) [2025-04-23 03:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 00:09:05' and `end` < '2025-04-23 03:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 03:09:18] Production.INFO: count ==542 [2025-04-23 03:09:18] Production.ERROR: pbx CDR StartTime 2025-04-23 00:09:05 - End Time 2025-04-23 03:09:05 [2025-04-23 03:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969421', 'tblTempUsageDetail_20' ) start [2025-04-23 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969421', 'tblTempUsageDetail_20' ) end [2025-04-23 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969421', 'tblTempVendorCDR_20' ) start [2025-04-23 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969421', 'tblTempVendorCDR_20' ) end [2025-04-23 03:09:18] Production.INFO: ProcessCDR(1,14969421,1,1,2) [2025-04-23 03:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969421', 'tblTempUsageDetail_20' ) start [2025-04-23 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969421', 'tblTempUsageDetail_20' ) end [2025-04-23 03:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 03:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 03:09:22] Production.INFO: ==4513== Releasing lock... [2025-04-23 03:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 03:09:22] Production.INFO: 33 MB #Memory Used# [2025-04-23 03:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 00:10:07 [end_date_ymd] => 2025-04-23 03:10:07 [RateCDR] => 1 ) [2025-04-23 03:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 00:10:07' and `end` < '2025-04-23 03:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 03:10:20] Production.INFO: count ==549 [2025-04-23 03:10:20] Production.ERROR: pbx CDR StartTime 2025-04-23 00:10:07 - End Time 2025-04-23 03:10:07 [2025-04-23 03:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 03:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969427', 'tblTempUsageDetail_20' ) start [2025-04-23 03:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969427', 'tblTempUsageDetail_20' ) end [2025-04-23 03:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969427', 'tblTempVendorCDR_20' ) start [2025-04-23 03:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969427', 'tblTempVendorCDR_20' ) end [2025-04-23 03:10:20] Production.INFO: ProcessCDR(1,14969427,1,1,2) [2025-04-23 03:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969427', 'tblTempUsageDetail_20' ) start [2025-04-23 03:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969427', 'tblTempUsageDetail_20' ) end [2025-04-23 03:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 03:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 03:10:23] Production.INFO: ==4605== Releasing lock... [2025-04-23 03:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 03:10:23] Production.INFO: 33 MB #Memory Used# [2025-04-23 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 00:11:05 [end_date_ymd] => 2025-04-23 03:11:05 [RateCDR] => 1 ) [2025-04-23 03:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 00:11:05' and `end` < '2025-04-23 03:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 03:11:18] Production.INFO: count ==550 [2025-04-23 03:11:18] Production.ERROR: pbx CDR StartTime 2025-04-23 00:11:05 - End Time 2025-04-23 03:11:05 [2025-04-23 03:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969432', 'tblTempUsageDetail_20' ) start [2025-04-23 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969432', 'tblTempUsageDetail_20' ) end [2025-04-23 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969432', 'tblTempVendorCDR_20' ) start [2025-04-23 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969432', 'tblTempVendorCDR_20' ) end [2025-04-23 03:11:18] Production.INFO: ProcessCDR(1,14969432,1,1,2) [2025-04-23 03:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969432', 'tblTempUsageDetail_20' ) start [2025-04-23 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969432', 'tblTempUsageDetail_20' ) end [2025-04-23 03:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 03:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 03:11:21] Production.INFO: ==4676== Releasing lock... [2025-04-23 03:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 03:11:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-23 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 00:12:05 [end_date_ymd] => 2025-04-23 03:12:05 [RateCDR] => 1 ) [2025-04-23 03:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 00:12:05' and `end` < '2025-04-23 03:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 03:12:18] Production.INFO: count ==550 [2025-04-23 03:12:18] Production.ERROR: pbx CDR StartTime 2025-04-23 00:12:05 - End Time 2025-04-23 03:12:05 [2025-04-23 03:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969437', 'tblTempUsageDetail_20' ) start [2025-04-23 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969437', 'tblTempUsageDetail_20' ) end [2025-04-23 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969437', 'tblTempVendorCDR_20' ) start [2025-04-23 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969437', 'tblTempVendorCDR_20' ) end [2025-04-23 03:12:18] Production.INFO: ProcessCDR(1,14969437,1,1,2) [2025-04-23 03:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969437', 'tblTempUsageDetail_20' ) start [2025-04-23 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969437', 'tblTempUsageDetail_20' ) end [2025-04-23 03:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 03:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 03:12:21] Production.INFO: ==4746== Releasing lock... [2025-04-23 03:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 03:12:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-23 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 00:13:05 [end_date_ymd] => 2025-04-23 03:13:05 [RateCDR] => 1 ) [2025-04-23 03:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 00:13:05' and `end` < '2025-04-23 03:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 03:13:18] Production.INFO: count ==551 [2025-04-23 03:13:18] Production.ERROR: pbx CDR StartTime 2025-04-23 00:13:05 - End Time 2025-04-23 03:13:05 [2025-04-23 03:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969442', 'tblTempUsageDetail_20' ) start [2025-04-23 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969442', 'tblTempUsageDetail_20' ) end [2025-04-23 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969442', 'tblTempVendorCDR_20' ) start [2025-04-23 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969442', 'tblTempVendorCDR_20' ) end [2025-04-23 03:13:18] Production.INFO: ProcessCDR(1,14969442,1,1,2) [2025-04-23 03:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969442', 'tblTempUsageDetail_20' ) start [2025-04-23 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969442', 'tblTempUsageDetail_20' ) end [2025-04-23 03:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 03:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 03:13:21] Production.INFO: ==4896== Releasing lock... [2025-04-23 03:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 03:13:21] Production.INFO: 33 MB #Memory Used# [2025-04-23 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 00:14:05 [end_date_ymd] => 2025-04-23 03:14:05 [RateCDR] => 1 ) [2025-04-23 03:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 00:14:05' and `end` < '2025-04-23 03:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 03:14:18] Production.INFO: count ==551 [2025-04-23 03:14:18] Production.ERROR: pbx CDR StartTime 2025-04-23 00:14:05 - End Time 2025-04-23 03:14:05 [2025-04-23 03:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969447', 'tblTempUsageDetail_20' ) start [2025-04-23 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969447', 'tblTempUsageDetail_20' ) end [2025-04-23 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969447', 'tblTempVendorCDR_20' ) start [2025-04-23 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969447', 'tblTempVendorCDR_20' ) end [2025-04-23 03:14:18] Production.INFO: ProcessCDR(1,14969447,1,1,2) [2025-04-23 03:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969447', 'tblTempUsageDetail_20' ) start [2025-04-23 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969447', 'tblTempUsageDetail_20' ) end [2025-04-23 03:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 03:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 03:14:21] Production.INFO: ==4979== Releasing lock... [2025-04-23 03:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 03:14:21] Production.INFO: 33 MB #Memory Used# [2025-04-23 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 00:15:05 [end_date_ymd] => 2025-04-23 03:15:05 [RateCDR] => 1 ) [2025-04-23 03:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 00:15:05' and `end` < '2025-04-23 03:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 03:15:18] Production.INFO: count ==550 [2025-04-23 03:15:18] Production.ERROR: pbx CDR StartTime 2025-04-23 00:15:05 - End Time 2025-04-23 03:15:05 [2025-04-23 03:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969452', 'tblTempUsageDetail_20' ) start [2025-04-23 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969452', 'tblTempUsageDetail_20' ) end [2025-04-23 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969452', 'tblTempVendorCDR_20' ) start [2025-04-23 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969452', 'tblTempVendorCDR_20' ) end [2025-04-23 03:15:18] Production.INFO: ProcessCDR(1,14969452,1,1,2) [2025-04-23 03:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969452', 'tblTempUsageDetail_20' ) start [2025-04-23 03:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969452', 'tblTempUsageDetail_20' ) end [2025-04-23 03:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 03:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 03:15:22] Production.INFO: ==5049== Releasing lock... [2025-04-23 03:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 03:15:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-23 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 00:16:05 [end_date_ymd] => 2025-04-23 03:16:05 [RateCDR] => 1 ) [2025-04-23 03:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 00:16:05' and `end` < '2025-04-23 03:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 03:16:18] Production.INFO: count ==550 [2025-04-23 03:16:18] Production.ERROR: pbx CDR StartTime 2025-04-23 00:16:05 - End Time 2025-04-23 03:16:05 [2025-04-23 03:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969457', 'tblTempUsageDetail_20' ) start [2025-04-23 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969457', 'tblTempUsageDetail_20' ) end [2025-04-23 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969457', 'tblTempVendorCDR_20' ) start [2025-04-23 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969457', 'tblTempVendorCDR_20' ) end [2025-04-23 03:16:18] Production.INFO: ProcessCDR(1,14969457,1,1,2) [2025-04-23 03:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969457', 'tblTempUsageDetail_20' ) start [2025-04-23 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969457', 'tblTempUsageDetail_20' ) end [2025-04-23 03:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 03:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 03:16:21] Production.INFO: ==5125== Releasing lock... [2025-04-23 03:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 03:16:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-23 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 00:17:05 [end_date_ymd] => 2025-04-23 03:17:05 [RateCDR] => 1 ) [2025-04-23 03:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 00:17:05' and `end` < '2025-04-23 03:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 03:17:17] Production.INFO: count ==550 [2025-04-23 03:17:18] Production.ERROR: pbx CDR StartTime 2025-04-23 00:17:05 - End Time 2025-04-23 03:17:05 [2025-04-23 03:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969462', 'tblTempUsageDetail_20' ) start [2025-04-23 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969462', 'tblTempUsageDetail_20' ) end [2025-04-23 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969462', 'tblTempVendorCDR_20' ) start [2025-04-23 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969462', 'tblTempVendorCDR_20' ) end [2025-04-23 03:17:18] Production.INFO: ProcessCDR(1,14969462,1,1,2) [2025-04-23 03:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969462', 'tblTempUsageDetail_20' ) start [2025-04-23 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969462', 'tblTempUsageDetail_20' ) end [2025-04-23 03:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 03:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 03:17:21] Production.INFO: ==5275== Releasing lock... [2025-04-23 03:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 03:17:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-23 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 00:18:05 [end_date_ymd] => 2025-04-23 03:18:05 [RateCDR] => 1 ) [2025-04-23 03:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 00:18:05' and `end` < '2025-04-23 03:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 03:18:18] Production.INFO: count ==548 [2025-04-23 03:18:18] Production.ERROR: pbx CDR StartTime 2025-04-23 00:18:05 - End Time 2025-04-23 03:18:05 [2025-04-23 03:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969467', 'tblTempUsageDetail_20' ) start [2025-04-23 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969467', 'tblTempUsageDetail_20' ) end [2025-04-23 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969467', 'tblTempVendorCDR_20' ) start [2025-04-23 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969467', 'tblTempVendorCDR_20' ) end [2025-04-23 03:18:18] Production.INFO: ProcessCDR(1,14969467,1,1,2) [2025-04-23 03:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969467', 'tblTempUsageDetail_20' ) start [2025-04-23 03:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969467', 'tblTempUsageDetail_20' ) end [2025-04-23 03:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 03:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 03:18:22] Production.INFO: ==5347== Releasing lock... [2025-04-23 03:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 03:18:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-23 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 00:19:05 [end_date_ymd] => 2025-04-23 03:19:05 [RateCDR] => 1 ) [2025-04-23 03:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 00:19:05' and `end` < '2025-04-23 03:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 03:19:18] Production.INFO: count ==548 [2025-04-23 03:19:18] Production.ERROR: pbx CDR StartTime 2025-04-23 00:19:05 - End Time 2025-04-23 03:19:05 [2025-04-23 03:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969472', 'tblTempUsageDetail_20' ) start [2025-04-23 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969472', 'tblTempUsageDetail_20' ) end [2025-04-23 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969472', 'tblTempVendorCDR_20' ) start [2025-04-23 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969472', 'tblTempVendorCDR_20' ) end [2025-04-23 03:19:18] Production.INFO: ProcessCDR(1,14969472,1,1,2) [2025-04-23 03:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969472', 'tblTempUsageDetail_20' ) start [2025-04-23 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969472', 'tblTempUsageDetail_20' ) end [2025-04-23 03:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 03:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 03:19:21] Production.INFO: ==5421== Releasing lock... [2025-04-23 03:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 03:19:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-23 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 00:20:06 [end_date_ymd] => 2025-04-23 03:20:06 [RateCDR] => 1 ) [2025-04-23 03:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 00:20:06' and `end` < '2025-04-23 03:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 03:20:19] Production.INFO: count ==538 [2025-04-23 03:20:19] Production.ERROR: pbx CDR StartTime 2025-04-23 00:20:06 - End Time 2025-04-23 03:20:06 [2025-04-23 03:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969478', 'tblTempUsageDetail_20' ) start [2025-04-23 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969478', 'tblTempUsageDetail_20' ) end [2025-04-23 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969478', 'tblTempVendorCDR_20' ) start [2025-04-23 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969478', 'tblTempVendorCDR_20' ) end [2025-04-23 03:20:19] Production.INFO: ProcessCDR(1,14969478,1,1,2) [2025-04-23 03:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969478', 'tblTempUsageDetail_20' ) start [2025-04-23 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969478', 'tblTempUsageDetail_20' ) end [2025-04-23 03:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 03:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 03:20:22] Production.INFO: ==5494== Releasing lock... [2025-04-23 03:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 03:20:22] Production.INFO: 33 MB #Memory Used# [2025-04-23 03:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 00:21:06 [end_date_ymd] => 2025-04-23 03:21:06 [RateCDR] => 1 ) [2025-04-23 03:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 00:21:06' and `end` < '2025-04-23 03:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 03:21:18] Production.INFO: count ==516 [2025-04-23 03:21:18] Production.ERROR: pbx CDR StartTime 2025-04-23 00:21:06 - End Time 2025-04-23 03:21:06 [2025-04-23 03:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969483', 'tblTempUsageDetail_20' ) start [2025-04-23 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969483', 'tblTempUsageDetail_20' ) end [2025-04-23 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969483', 'tblTempVendorCDR_20' ) start [2025-04-23 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969483', 'tblTempVendorCDR_20' ) end [2025-04-23 03:21:18] Production.INFO: ProcessCDR(1,14969483,1,1,2) [2025-04-23 03:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969483', 'tblTempUsageDetail_20' ) start [2025-04-23 03:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969483', 'tblTempUsageDetail_20' ) end [2025-04-23 03:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 03:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 03:21:22] Production.INFO: ==5568== Releasing lock... [2025-04-23 03:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 03:21:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-23 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 00:22:05 [end_date_ymd] => 2025-04-23 03:22:05 [RateCDR] => 1 ) [2025-04-23 03:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 00:22:05' and `end` < '2025-04-23 03:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 03:22:18] Production.INFO: count ==512 [2025-04-23 03:22:18] Production.ERROR: pbx CDR StartTime 2025-04-23 00:22:05 - End Time 2025-04-23 03:22:05 [2025-04-23 03:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969488', 'tblTempUsageDetail_20' ) start [2025-04-23 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969488', 'tblTempUsageDetail_20' ) end [2025-04-23 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969488', 'tblTempVendorCDR_20' ) start [2025-04-23 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969488', 'tblTempVendorCDR_20' ) end [2025-04-23 03:22:18] Production.INFO: ProcessCDR(1,14969488,1,1,2) [2025-04-23 03:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969488', 'tblTempUsageDetail_20' ) start [2025-04-23 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969488', 'tblTempUsageDetail_20' ) end [2025-04-23 03:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 03:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 03:22:21] Production.INFO: ==5643== Releasing lock... [2025-04-23 03:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 03:22:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-23 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 00:23:05 [end_date_ymd] => 2025-04-23 03:23:05 [RateCDR] => 1 ) [2025-04-23 03:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 00:23:05' and `end` < '2025-04-23 03:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 03:23:18] Production.INFO: count ==507 [2025-04-23 03:23:18] Production.ERROR: pbx CDR StartTime 2025-04-23 00:23:05 - End Time 2025-04-23 03:23:05 [2025-04-23 03:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969493', 'tblTempUsageDetail_20' ) start [2025-04-23 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969493', 'tblTempUsageDetail_20' ) end [2025-04-23 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969493', 'tblTempVendorCDR_20' ) start [2025-04-23 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969493', 'tblTempVendorCDR_20' ) end [2025-04-23 03:23:18] Production.INFO: ProcessCDR(1,14969493,1,1,2) [2025-04-23 03:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969493', 'tblTempUsageDetail_20' ) start [2025-04-23 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969493', 'tblTempUsageDetail_20' ) end [2025-04-23 03:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 03:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 03:23:21] Production.INFO: ==5758== Releasing lock... [2025-04-23 03:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 03:23:21] Production.INFO: 33 MB #Memory Used# [2025-04-23 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 00:24:05 [end_date_ymd] => 2025-04-23 03:24:05 [RateCDR] => 1 ) [2025-04-23 03:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 00:24:05' and `end` < '2025-04-23 03:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 03:24:18] Production.INFO: count ==505 [2025-04-23 03:24:18] Production.ERROR: pbx CDR StartTime 2025-04-23 00:24:05 - End Time 2025-04-23 03:24:05 [2025-04-23 03:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969498', 'tblTempUsageDetail_20' ) start [2025-04-23 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969498', 'tblTempUsageDetail_20' ) end [2025-04-23 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969498', 'tblTempVendorCDR_20' ) start [2025-04-23 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969498', 'tblTempVendorCDR_20' ) end [2025-04-23 03:24:18] Production.INFO: ProcessCDR(1,14969498,1,1,2) [2025-04-23 03:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969498', 'tblTempUsageDetail_20' ) start [2025-04-23 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969498', 'tblTempUsageDetail_20' ) end [2025-04-23 03:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 03:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 03:24:21] Production.INFO: ==5830== Releasing lock... [2025-04-23 03:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 03:24:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-23 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 00:25:05 [end_date_ymd] => 2025-04-23 03:25:05 [RateCDR] => 1 ) [2025-04-23 03:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 00:25:05' and `end` < '2025-04-23 03:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 03:25:18] Production.INFO: count ==503 [2025-04-23 03:25:18] Production.ERROR: pbx CDR StartTime 2025-04-23 00:25:05 - End Time 2025-04-23 03:25:05 [2025-04-23 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969503', 'tblTempUsageDetail_20' ) start [2025-04-23 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969503', 'tblTempUsageDetail_20' ) end [2025-04-23 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969503', 'tblTempVendorCDR_20' ) start [2025-04-23 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969503', 'tblTempVendorCDR_20' ) end [2025-04-23 03:25:18] Production.INFO: ProcessCDR(1,14969503,1,1,2) [2025-04-23 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969503', 'tblTempUsageDetail_20' ) start [2025-04-23 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969503', 'tblTempUsageDetail_20' ) end [2025-04-23 03:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 03:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 03:25:21] Production.INFO: ==5904== Releasing lock... [2025-04-23 03:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 03:25:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-23 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 00:26:05 [end_date_ymd] => 2025-04-23 03:26:05 [RateCDR] => 1 ) [2025-04-23 03:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 00:26:05' and `end` < '2025-04-23 03:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 03:26:18] Production.INFO: count ==501 [2025-04-23 03:26:18] Production.ERROR: pbx CDR StartTime 2025-04-23 00:26:05 - End Time 2025-04-23 03:26:05 [2025-04-23 03:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969508', 'tblTempUsageDetail_20' ) start [2025-04-23 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969508', 'tblTempUsageDetail_20' ) end [2025-04-23 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969508', 'tblTempVendorCDR_20' ) start [2025-04-23 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969508', 'tblTempVendorCDR_20' ) end [2025-04-23 03:26:18] Production.INFO: ProcessCDR(1,14969508,1,1,2) [2025-04-23 03:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969508', 'tblTempUsageDetail_20' ) start [2025-04-23 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969508', 'tblTempUsageDetail_20' ) end [2025-04-23 03:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 03:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 03:26:21] Production.INFO: ==5974== Releasing lock... [2025-04-23 03:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 03:26:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-23 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 00:27:05 [end_date_ymd] => 2025-04-23 03:27:05 [RateCDR] => 1 ) [2025-04-23 03:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 00:27:05' and `end` < '2025-04-23 03:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 03:27:18] Production.INFO: count ==501 [2025-04-23 03:27:18] Production.ERROR: pbx CDR StartTime 2025-04-23 00:27:05 - End Time 2025-04-23 03:27:05 [2025-04-23 03:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969513', 'tblTempUsageDetail_20' ) start [2025-04-23 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969513', 'tblTempUsageDetail_20' ) end [2025-04-23 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969513', 'tblTempVendorCDR_20' ) start [2025-04-23 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969513', 'tblTempVendorCDR_20' ) end [2025-04-23 03:27:18] Production.INFO: ProcessCDR(1,14969513,1,1,2) [2025-04-23 03:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969513', 'tblTempUsageDetail_20' ) start [2025-04-23 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969513', 'tblTempUsageDetail_20' ) end [2025-04-23 03:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 03:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 03:27:21] Production.INFO: ==6049== Releasing lock... [2025-04-23 03:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 03:27:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-23 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 00:28:05 [end_date_ymd] => 2025-04-23 03:28:05 [RateCDR] => 1 ) [2025-04-23 03:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 00:28:05' and `end` < '2025-04-23 03:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 03:28:17] Production.INFO: count ==499 [2025-04-23 03:28:17] Production.ERROR: pbx CDR StartTime 2025-04-23 00:28:05 - End Time 2025-04-23 03:28:05 [2025-04-23 03:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969518', 'tblTempUsageDetail_20' ) start [2025-04-23 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969518', 'tblTempUsageDetail_20' ) end [2025-04-23 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969518', 'tblTempVendorCDR_20' ) start [2025-04-23 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969518', 'tblTempVendorCDR_20' ) end [2025-04-23 03:28:17] Production.INFO: ProcessCDR(1,14969518,1,1,2) [2025-04-23 03:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969518', 'tblTempUsageDetail_20' ) start [2025-04-23 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969518', 'tblTempUsageDetail_20' ) end [2025-04-23 03:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 03:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 03:28:21] Production.INFO: ==6119== Releasing lock... [2025-04-23 03:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 03:28:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-23 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 00:29:05 [end_date_ymd] => 2025-04-23 03:29:05 [RateCDR] => 1 ) [2025-04-23 03:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 00:29:05' and `end` < '2025-04-23 03:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 03:29:18] Production.INFO: count ==498 [2025-04-23 03:29:18] Production.ERROR: pbx CDR StartTime 2025-04-23 00:29:05 - End Time 2025-04-23 03:29:05 [2025-04-23 03:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969523', 'tblTempUsageDetail_20' ) start [2025-04-23 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969523', 'tblTempUsageDetail_20' ) end [2025-04-23 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969523', 'tblTempVendorCDR_20' ) start [2025-04-23 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969523', 'tblTempVendorCDR_20' ) end [2025-04-23 03:29:18] Production.INFO: ProcessCDR(1,14969523,1,1,2) [2025-04-23 03:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969523', 'tblTempUsageDetail_20' ) start [2025-04-23 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969523', 'tblTempUsageDetail_20' ) end [2025-04-23 03:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 03:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 03:29:21] Production.INFO: ==6195== Releasing lock... [2025-04-23 03:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 03:29:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-23 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 00:30:06 [end_date_ymd] => 2025-04-23 03:30:06 [RateCDR] => 1 ) [2025-04-23 03:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 00:30:06' and `end` < '2025-04-23 03:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 03:30:19] Production.INFO: count ==490 [2025-04-23 03:30:19] Production.ERROR: pbx CDR StartTime 2025-04-23 00:30:06 - End Time 2025-04-23 03:30:06 [2025-04-23 03:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969529', 'tblTempUsageDetail_20' ) start [2025-04-23 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969529', 'tblTempUsageDetail_20' ) end [2025-04-23 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969529', 'tblTempVendorCDR_20' ) start [2025-04-23 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969529', 'tblTempVendorCDR_20' ) end [2025-04-23 03:30:19] Production.INFO: ProcessCDR(1,14969529,1,1,2) [2025-04-23 03:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969529', 'tblTempUsageDetail_20' ) start [2025-04-23 03:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969529', 'tblTempUsageDetail_20' ) end [2025-04-23 03:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 03:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 03:30:23] Production.INFO: ==6269== Releasing lock... [2025-04-23 03:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 03:30:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-23 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 00:31:05 [end_date_ymd] => 2025-04-23 03:31:05 [RateCDR] => 1 ) [2025-04-23 03:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 00:31:05' and `end` < '2025-04-23 03:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 03:31:18] Production.INFO: count ==482 [2025-04-23 03:31:18] Production.ERROR: pbx CDR StartTime 2025-04-23 00:31:05 - End Time 2025-04-23 03:31:05 [2025-04-23 03:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969534', 'tblTempUsageDetail_20' ) start [2025-04-23 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969534', 'tblTempUsageDetail_20' ) end [2025-04-23 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969534', 'tblTempVendorCDR_20' ) start [2025-04-23 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969534', 'tblTempVendorCDR_20' ) end [2025-04-23 03:31:18] Production.INFO: ProcessCDR(1,14969534,1,1,2) [2025-04-23 03:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969534', 'tblTempUsageDetail_20' ) start [2025-04-23 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969534', 'tblTempUsageDetail_20' ) end [2025-04-23 03:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 03:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 03:31:21] Production.INFO: ==6347== Releasing lock... [2025-04-23 03:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 03:31:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-23 03:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 00:32:05 [end_date_ymd] => 2025-04-23 03:32:05 [RateCDR] => 1 ) [2025-04-23 03:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 00:32:05' and `end` < '2025-04-23 03:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 03:32:18] Production.INFO: count ==480 [2025-04-23 03:32:18] Production.ERROR: pbx CDR StartTime 2025-04-23 00:32:05 - End Time 2025-04-23 03:32:05 [2025-04-23 03:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969539', 'tblTempUsageDetail_20' ) start [2025-04-23 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969539', 'tblTempUsageDetail_20' ) end [2025-04-23 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969539', 'tblTempVendorCDR_20' ) start [2025-04-23 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969539', 'tblTempVendorCDR_20' ) end [2025-04-23 03:32:18] Production.INFO: ProcessCDR(1,14969539,1,1,2) [2025-04-23 03:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969539', 'tblTempUsageDetail_20' ) start [2025-04-23 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969539', 'tblTempUsageDetail_20' ) end [2025-04-23 03:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 03:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 03:32:22] Production.INFO: ==6416== Releasing lock... [2025-04-23 03:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 03:32:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-23 03:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 00:33:05 [end_date_ymd] => 2025-04-23 03:33:05 [RateCDR] => 1 ) [2025-04-23 03:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 00:33:05' and `end` < '2025-04-23 03:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 03:33:18] Production.INFO: count ==477 [2025-04-23 03:33:18] Production.ERROR: pbx CDR StartTime 2025-04-23 00:33:05 - End Time 2025-04-23 03:33:05 [2025-04-23 03:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969544', 'tblTempUsageDetail_20' ) start [2025-04-23 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969544', 'tblTempUsageDetail_20' ) end [2025-04-23 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969544', 'tblTempVendorCDR_20' ) start [2025-04-23 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969544', 'tblTempVendorCDR_20' ) end [2025-04-23 03:33:18] Production.INFO: ProcessCDR(1,14969544,1,1,2) [2025-04-23 03:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969544', 'tblTempUsageDetail_20' ) start [2025-04-23 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969544', 'tblTempUsageDetail_20' ) end [2025-04-23 03:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 03:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 03:33:22] Production.INFO: ==6488== Releasing lock... [2025-04-23 03:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 03:33:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-23 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 00:34:05 [end_date_ymd] => 2025-04-23 03:34:05 [RateCDR] => 1 ) [2025-04-23 03:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 00:34:05' and `end` < '2025-04-23 03:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 03:34:18] Production.INFO: count ==474 [2025-04-23 03:34:18] Production.ERROR: pbx CDR StartTime 2025-04-23 00:34:05 - End Time 2025-04-23 03:34:05 [2025-04-23 03:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969549', 'tblTempUsageDetail_20' ) start [2025-04-23 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969549', 'tblTempUsageDetail_20' ) end [2025-04-23 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969549', 'tblTempVendorCDR_20' ) start [2025-04-23 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969549', 'tblTempVendorCDR_20' ) end [2025-04-23 03:34:18] Production.INFO: ProcessCDR(1,14969549,1,1,2) [2025-04-23 03:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969549', 'tblTempUsageDetail_20' ) start [2025-04-23 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969549', 'tblTempUsageDetail_20' ) end [2025-04-23 03:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 03:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 03:34:21] Production.INFO: ==6566== Releasing lock... [2025-04-23 03:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 03:34:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-23 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 00:35:05 [end_date_ymd] => 2025-04-23 03:35:05 [RateCDR] => 1 ) [2025-04-23 03:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 00:35:05' and `end` < '2025-04-23 03:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 03:35:17] Production.INFO: count ==472 [2025-04-23 03:35:18] Production.ERROR: pbx CDR StartTime 2025-04-23 00:35:05 - End Time 2025-04-23 03:35:05 [2025-04-23 03:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969554', 'tblTempUsageDetail_20' ) start [2025-04-23 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969554', 'tblTempUsageDetail_20' ) end [2025-04-23 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969554', 'tblTempVendorCDR_20' ) start [2025-04-23 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969554', 'tblTempVendorCDR_20' ) end [2025-04-23 03:35:18] Production.INFO: ProcessCDR(1,14969554,1,1,2) [2025-04-23 03:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969554', 'tblTempUsageDetail_20' ) start [2025-04-23 03:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969554', 'tblTempUsageDetail_20' ) end [2025-04-23 03:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 03:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 03:35:21] Production.INFO: ==6636== Releasing lock... [2025-04-23 03:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 03:35:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-23 03:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 00:36:06 [end_date_ymd] => 2025-04-23 03:36:06 [RateCDR] => 1 ) [2025-04-23 03:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 00:36:06' and `end` < '2025-04-23 03:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 03:36:19] Production.INFO: count ==469 [2025-04-23 03:36:19] Production.ERROR: pbx CDR StartTime 2025-04-23 00:36:06 - End Time 2025-04-23 03:36:06 [2025-04-23 03:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969559', 'tblTempUsageDetail_20' ) start [2025-04-23 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969559', 'tblTempUsageDetail_20' ) end [2025-04-23 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969559', 'tblTempVendorCDR_20' ) start [2025-04-23 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969559', 'tblTempVendorCDR_20' ) end [2025-04-23 03:36:19] Production.INFO: ProcessCDR(1,14969559,1,1,2) [2025-04-23 03:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969559', 'tblTempUsageDetail_20' ) start [2025-04-23 03:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969559', 'tblTempUsageDetail_20' ) end [2025-04-23 03:36:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 03:36:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 03:36:23] Production.INFO: ==6713== Releasing lock... [2025-04-23 03:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 03:36:23] Production.INFO: 32 MB #Memory Used# [2025-04-23 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 00:37:05 [end_date_ymd] => 2025-04-23 03:37:05 [RateCDR] => 1 ) [2025-04-23 03:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 00:37:05' and `end` < '2025-04-23 03:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 03:37:18] Production.INFO: count ==468 [2025-04-23 03:37:18] Production.ERROR: pbx CDR StartTime 2025-04-23 00:37:05 - End Time 2025-04-23 03:37:05 [2025-04-23 03:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969564', 'tblTempUsageDetail_20' ) start [2025-04-23 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969564', 'tblTempUsageDetail_20' ) end [2025-04-23 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969564', 'tblTempVendorCDR_20' ) start [2025-04-23 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969564', 'tblTempVendorCDR_20' ) end [2025-04-23 03:37:18] Production.INFO: ProcessCDR(1,14969564,1,1,2) [2025-04-23 03:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969564', 'tblTempUsageDetail_20' ) start [2025-04-23 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969564', 'tblTempUsageDetail_20' ) end [2025-04-23 03:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 03:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 03:37:21] Production.INFO: ==6786== Releasing lock... [2025-04-23 03:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 03:37:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-23 03:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 00:38:05 [end_date_ymd] => 2025-04-23 03:38:05 [RateCDR] => 1 ) [2025-04-23 03:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 00:38:05' and `end` < '2025-04-23 03:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 03:38:18] Production.INFO: count ==466 [2025-04-23 03:38:18] Production.ERROR: pbx CDR StartTime 2025-04-23 00:38:05 - End Time 2025-04-23 03:38:05 [2025-04-23 03:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969569', 'tblTempUsageDetail_20' ) start [2025-04-23 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969569', 'tblTempUsageDetail_20' ) end [2025-04-23 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969569', 'tblTempVendorCDR_20' ) start [2025-04-23 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969569', 'tblTempVendorCDR_20' ) end [2025-04-23 03:38:18] Production.INFO: ProcessCDR(1,14969569,1,1,2) [2025-04-23 03:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969569', 'tblTempUsageDetail_20' ) start [2025-04-23 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969569', 'tblTempUsageDetail_20' ) end [2025-04-23 03:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 03:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 03:38:21] Production.INFO: ==6905== Releasing lock... [2025-04-23 03:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 03:38:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-23 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 00:39:05 [end_date_ymd] => 2025-04-23 03:39:05 [RateCDR] => 1 ) [2025-04-23 03:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 00:39:05' and `end` < '2025-04-23 03:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 03:39:18] Production.INFO: count ==463 [2025-04-23 03:39:18] Production.ERROR: pbx CDR StartTime 2025-04-23 00:39:05 - End Time 2025-04-23 03:39:05 [2025-04-23 03:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969574', 'tblTempUsageDetail_20' ) start [2025-04-23 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969574', 'tblTempUsageDetail_20' ) end [2025-04-23 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969574', 'tblTempVendorCDR_20' ) start [2025-04-23 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969574', 'tblTempVendorCDR_20' ) end [2025-04-23 03:39:18] Production.INFO: ProcessCDR(1,14969574,1,1,2) [2025-04-23 03:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969574', 'tblTempUsageDetail_20' ) start [2025-04-23 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969574', 'tblTempUsageDetail_20' ) end [2025-04-23 03:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 03:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 03:39:21] Production.INFO: ==6976== Releasing lock... [2025-04-23 03:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 03:39:21] Production.INFO: 32 MB #Memory Used# [2025-04-23 03:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 00:40:05 [end_date_ymd] => 2025-04-23 03:40:05 [RateCDR] => 1 ) [2025-04-23 03:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 00:40:05' and `end` < '2025-04-23 03:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 03:40:18] Production.INFO: count ==454 [2025-04-23 03:40:18] Production.ERROR: pbx CDR StartTime 2025-04-23 00:40:05 - End Time 2025-04-23 03:40:05 [2025-04-23 03:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969580', 'tblTempUsageDetail_20' ) start [2025-04-23 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969580', 'tblTempUsageDetail_20' ) end [2025-04-23 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969580', 'tblTempVendorCDR_20' ) start [2025-04-23 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969580', 'tblTempVendorCDR_20' ) end [2025-04-23 03:40:18] Production.INFO: ProcessCDR(1,14969580,1,1,2) [2025-04-23 03:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969580', 'tblTempUsageDetail_20' ) start [2025-04-23 03:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969580', 'tblTempUsageDetail_20' ) end [2025-04-23 03:40:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 03:40:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 03:40:21] Production.INFO: ==7049== Releasing lock... [2025-04-23 03:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 03:40:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-23 03:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 00:41:06 [end_date_ymd] => 2025-04-23 03:41:06 [RateCDR] => 1 ) [2025-04-23 03:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 00:41:06' and `end` < '2025-04-23 03:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 03:41:18] Production.INFO: count ==450 [2025-04-23 03:41:18] Production.ERROR: pbx CDR StartTime 2025-04-23 00:41:06 - End Time 2025-04-23 03:41:06 [2025-04-23 03:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969585', 'tblTempUsageDetail_20' ) start [2025-04-23 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969585', 'tblTempUsageDetail_20' ) end [2025-04-23 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969585', 'tblTempVendorCDR_20' ) start [2025-04-23 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969585', 'tblTempVendorCDR_20' ) end [2025-04-23 03:41:18] Production.INFO: ProcessCDR(1,14969585,1,1,2) [2025-04-23 03:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969585', 'tblTempUsageDetail_20' ) start [2025-04-23 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969585', 'tblTempUsageDetail_20' ) end [2025-04-23 03:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 03:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 03:41:22] Production.INFO: ==7127== Releasing lock... [2025-04-23 03:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 03:41:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-23 03:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 00:42:05 [end_date_ymd] => 2025-04-23 03:42:05 [RateCDR] => 1 ) [2025-04-23 03:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 00:42:05' and `end` < '2025-04-23 03:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 03:42:17] Production.INFO: count ==448 [2025-04-23 03:42:17] Production.ERROR: pbx CDR StartTime 2025-04-23 00:42:05 - End Time 2025-04-23 03:42:05 [2025-04-23 03:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969590', 'tblTempUsageDetail_20' ) start [2025-04-23 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969590', 'tblTempUsageDetail_20' ) end [2025-04-23 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969590', 'tblTempVendorCDR_20' ) start [2025-04-23 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969590', 'tblTempVendorCDR_20' ) end [2025-04-23 03:42:17] Production.INFO: ProcessCDR(1,14969590,1,1,2) [2025-04-23 03:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969590', 'tblTempUsageDetail_20' ) start [2025-04-23 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969590', 'tblTempUsageDetail_20' ) end [2025-04-23 03:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 03:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 03:42:21] Production.INFO: ==7203== Releasing lock... [2025-04-23 03:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 03:42:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-23 03:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 00:43:05 [end_date_ymd] => 2025-04-23 03:43:05 [RateCDR] => 1 ) [2025-04-23 03:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 00:43:05' and `end` < '2025-04-23 03:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 03:43:17] Production.INFO: count ==448 [2025-04-23 03:43:18] Production.ERROR: pbx CDR StartTime 2025-04-23 00:43:05 - End Time 2025-04-23 03:43:05 [2025-04-23 03:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969595', 'tblTempUsageDetail_20' ) start [2025-04-23 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969595', 'tblTempUsageDetail_20' ) end [2025-04-23 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969595', 'tblTempVendorCDR_20' ) start [2025-04-23 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969595', 'tblTempVendorCDR_20' ) end [2025-04-23 03:43:18] Production.INFO: ProcessCDR(1,14969595,1,1,2) [2025-04-23 03:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969595', 'tblTempUsageDetail_20' ) start [2025-04-23 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969595', 'tblTempUsageDetail_20' ) end [2025-04-23 03:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 03:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 03:43:22] Production.INFO: ==7274== Releasing lock... [2025-04-23 03:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 03:43:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-23 03:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 00:44:05 [end_date_ymd] => 2025-04-23 03:44:05 [RateCDR] => 1 ) [2025-04-23 03:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 00:44:05' and `end` < '2025-04-23 03:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 03:44:17] Production.INFO: count ==448 [2025-04-23 03:44:17] Production.ERROR: pbx CDR StartTime 2025-04-23 00:44:05 - End Time 2025-04-23 03:44:05 [2025-04-23 03:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969600', 'tblTempUsageDetail_20' ) start [2025-04-23 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969600', 'tblTempUsageDetail_20' ) end [2025-04-23 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969600', 'tblTempVendorCDR_20' ) start [2025-04-23 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969600', 'tblTempVendorCDR_20' ) end [2025-04-23 03:44:17] Production.INFO: ProcessCDR(1,14969600,1,1,2) [2025-04-23 03:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969600', 'tblTempUsageDetail_20' ) start [2025-04-23 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969600', 'tblTempUsageDetail_20' ) end [2025-04-23 03:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 03:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 03:44:21] Production.INFO: ==7350== Releasing lock... [2025-04-23 03:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 03:44:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-23 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 00:45:05 [end_date_ymd] => 2025-04-23 03:45:05 [RateCDR] => 1 ) [2025-04-23 03:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 00:45:05' and `end` < '2025-04-23 03:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 03:45:18] Production.INFO: count ==446 [2025-04-23 03:45:18] Production.ERROR: pbx CDR StartTime 2025-04-23 00:45:05 - End Time 2025-04-23 03:45:05 [2025-04-23 03:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969605', 'tblTempUsageDetail_20' ) start [2025-04-23 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969605', 'tblTempUsageDetail_20' ) end [2025-04-23 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969605', 'tblTempVendorCDR_20' ) start [2025-04-23 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969605', 'tblTempVendorCDR_20' ) end [2025-04-23 03:45:18] Production.INFO: ProcessCDR(1,14969605,1,1,2) [2025-04-23 03:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969605', 'tblTempUsageDetail_20' ) start [2025-04-23 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969605', 'tblTempUsageDetail_20' ) end [2025-04-23 03:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 03:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 03:45:21] Production.INFO: ==7421== Releasing lock... [2025-04-23 03:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 03:45:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-23 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 00:46:05 [end_date_ymd] => 2025-04-23 03:46:05 [RateCDR] => 1 ) [2025-04-23 03:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 00:46:05' and `end` < '2025-04-23 03:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 03:46:18] Production.INFO: count ==446 [2025-04-23 03:46:18] Production.ERROR: pbx CDR StartTime 2025-04-23 00:46:05 - End Time 2025-04-23 03:46:05 [2025-04-23 03:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969610', 'tblTempUsageDetail_20' ) start [2025-04-23 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969610', 'tblTempUsageDetail_20' ) end [2025-04-23 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969610', 'tblTempVendorCDR_20' ) start [2025-04-23 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969610', 'tblTempVendorCDR_20' ) end [2025-04-23 03:46:18] Production.INFO: ProcessCDR(1,14969610,1,1,2) [2025-04-23 03:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969610', 'tblTempUsageDetail_20' ) start [2025-04-23 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969610', 'tblTempUsageDetail_20' ) end [2025-04-23 03:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 03:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 03:46:21] Production.INFO: ==7494== Releasing lock... [2025-04-23 03:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 03:46:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-23 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 00:47:05 [end_date_ymd] => 2025-04-23 03:47:05 [RateCDR] => 1 ) [2025-04-23 03:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 00:47:05' and `end` < '2025-04-23 03:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 03:47:18] Production.INFO: count ==442 [2025-04-23 03:47:18] Production.ERROR: pbx CDR StartTime 2025-04-23 00:47:05 - End Time 2025-04-23 03:47:05 [2025-04-23 03:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969615', 'tblTempUsageDetail_20' ) start [2025-04-23 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969615', 'tblTempUsageDetail_20' ) end [2025-04-23 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969615', 'tblTempVendorCDR_20' ) start [2025-04-23 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969615', 'tblTempVendorCDR_20' ) end [2025-04-23 03:47:18] Production.INFO: ProcessCDR(1,14969615,1,1,2) [2025-04-23 03:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969615', 'tblTempUsageDetail_20' ) start [2025-04-23 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969615', 'tblTempUsageDetail_20' ) end [2025-04-23 03:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 03:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 03:47:21] Production.INFO: ==7565== Releasing lock... [2025-04-23 03:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 03:47:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-23 03:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 00:48:05 [end_date_ymd] => 2025-04-23 03:48:05 [RateCDR] => 1 ) [2025-04-23 03:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 00:48:05' and `end` < '2025-04-23 03:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 03:48:17] Production.INFO: count ==442 [2025-04-23 03:48:18] Production.ERROR: pbx CDR StartTime 2025-04-23 00:48:05 - End Time 2025-04-23 03:48:05 [2025-04-23 03:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969620', 'tblTempUsageDetail_20' ) start [2025-04-23 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969620', 'tblTempUsageDetail_20' ) end [2025-04-23 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969620', 'tblTempVendorCDR_20' ) start [2025-04-23 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969620', 'tblTempVendorCDR_20' ) end [2025-04-23 03:48:18] Production.INFO: ProcessCDR(1,14969620,1,1,2) [2025-04-23 03:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969620', 'tblTempUsageDetail_20' ) start [2025-04-23 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969620', 'tblTempUsageDetail_20' ) end [2025-04-23 03:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 03:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 03:48:21] Production.INFO: ==7640== Releasing lock... [2025-04-23 03:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 03:48:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-23 03:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 00:49:06 [end_date_ymd] => 2025-04-23 03:49:06 [RateCDR] => 1 ) [2025-04-23 03:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 00:49:06' and `end` < '2025-04-23 03:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 03:49:18] Production.INFO: count ==441 [2025-04-23 03:49:18] Production.ERROR: pbx CDR StartTime 2025-04-23 00:49:06 - End Time 2025-04-23 03:49:06 [2025-04-23 03:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969625', 'tblTempUsageDetail_20' ) start [2025-04-23 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969625', 'tblTempUsageDetail_20' ) end [2025-04-23 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969625', 'tblTempVendorCDR_20' ) start [2025-04-23 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969625', 'tblTempVendorCDR_20' ) end [2025-04-23 03:49:18] Production.INFO: ProcessCDR(1,14969625,1,1,2) [2025-04-23 03:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969625', 'tblTempUsageDetail_20' ) start [2025-04-23 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969625', 'tblTempUsageDetail_20' ) end [2025-04-23 03:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 03:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 03:49:22] Production.INFO: ==7716== Releasing lock... [2025-04-23 03:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 03:49:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-23 03:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 00:50:05 [end_date_ymd] => 2025-04-23 03:50:05 [RateCDR] => 1 ) [2025-04-23 03:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 00:50:05' and `end` < '2025-04-23 03:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 03:50:18] Production.INFO: count ==433 [2025-04-23 03:50:18] Production.ERROR: pbx CDR StartTime 2025-04-23 00:50:05 - End Time 2025-04-23 03:50:05 [2025-04-23 03:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969630', 'tblTempUsageDetail_20' ) start [2025-04-23 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969630', 'tblTempUsageDetail_20' ) end [2025-04-23 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969630', 'tblTempVendorCDR_20' ) start [2025-04-23 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969630', 'tblTempVendorCDR_20' ) end [2025-04-23 03:50:18] Production.INFO: ProcessCDR(1,14969630,1,1,2) [2025-04-23 03:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969630', 'tblTempUsageDetail_20' ) start [2025-04-23 03:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969630', 'tblTempUsageDetail_20' ) end [2025-04-23 03:50:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 03:50:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 03:50:21] Production.INFO: ==7790== Releasing lock... [2025-04-23 03:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 03:50:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-23 03:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 00:51:05 [end_date_ymd] => 2025-04-23 03:51:05 [RateCDR] => 1 ) [2025-04-23 03:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 00:51:05' and `end` < '2025-04-23 03:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 03:51:17] Production.INFO: count ==427 [2025-04-23 03:51:18] Production.ERROR: pbx CDR StartTime 2025-04-23 00:51:05 - End Time 2025-04-23 03:51:05 [2025-04-23 03:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969636', 'tblTempUsageDetail_20' ) start [2025-04-23 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969636', 'tblTempUsageDetail_20' ) end [2025-04-23 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969636', 'tblTempVendorCDR_20' ) start [2025-04-23 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969636', 'tblTempVendorCDR_20' ) end [2025-04-23 03:51:18] Production.INFO: ProcessCDR(1,14969636,1,1,2) [2025-04-23 03:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969636', 'tblTempUsageDetail_20' ) start [2025-04-23 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969636', 'tblTempUsageDetail_20' ) end [2025-04-23 03:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 03:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 03:51:21] Production.INFO: ==7868== Releasing lock... [2025-04-23 03:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 03:51:21] Production.INFO: 32 MB #Memory Used# [2025-04-23 03:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 00:52:05 [end_date_ymd] => 2025-04-23 03:52:05 [RateCDR] => 1 ) [2025-04-23 03:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 00:52:05' and `end` < '2025-04-23 03:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 03:52:17] Production.INFO: count ==425 [2025-04-23 03:52:18] Production.ERROR: pbx CDR StartTime 2025-04-23 00:52:05 - End Time 2025-04-23 03:52:05 [2025-04-23 03:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969641', 'tblTempUsageDetail_20' ) start [2025-04-23 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969641', 'tblTempUsageDetail_20' ) end [2025-04-23 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969641', 'tblTempVendorCDR_20' ) start [2025-04-23 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969641', 'tblTempVendorCDR_20' ) end [2025-04-23 03:52:18] Production.INFO: ProcessCDR(1,14969641,1,1,2) [2025-04-23 03:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969641', 'tblTempUsageDetail_20' ) start [2025-04-23 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969641', 'tblTempUsageDetail_20' ) end [2025-04-23 03:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 03:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 03:52:21] Production.INFO: ==7941== Releasing lock... [2025-04-23 03:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 03:52:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-23 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 00:53:05 [end_date_ymd] => 2025-04-23 03:53:05 [RateCDR] => 1 ) [2025-04-23 03:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 00:53:05' and `end` < '2025-04-23 03:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 03:53:18] Production.INFO: count ==424 [2025-04-23 03:53:18] Production.ERROR: pbx CDR StartTime 2025-04-23 00:53:05 - End Time 2025-04-23 03:53:05 [2025-04-23 03:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969646', 'tblTempUsageDetail_20' ) start [2025-04-23 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969646', 'tblTempUsageDetail_20' ) end [2025-04-23 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969646', 'tblTempVendorCDR_20' ) start [2025-04-23 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969646', 'tblTempVendorCDR_20' ) end [2025-04-23 03:53:18] Production.INFO: ProcessCDR(1,14969646,1,1,2) [2025-04-23 03:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969646', 'tblTempUsageDetail_20' ) start [2025-04-23 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969646', 'tblTempUsageDetail_20' ) end [2025-04-23 03:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 03:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 03:53:21] Production.INFO: ==8015== Releasing lock... [2025-04-23 03:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 03:53:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-23 03:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 00:54:05 [end_date_ymd] => 2025-04-23 03:54:05 [RateCDR] => 1 ) [2025-04-23 03:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 00:54:05' and `end` < '2025-04-23 03:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 03:54:17] Production.INFO: count ==422 [2025-04-23 03:54:18] Production.ERROR: pbx CDR StartTime 2025-04-23 00:54:05 - End Time 2025-04-23 03:54:05 [2025-04-23 03:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969651', 'tblTempUsageDetail_20' ) start [2025-04-23 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969651', 'tblTempUsageDetail_20' ) end [2025-04-23 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969651', 'tblTempVendorCDR_20' ) start [2025-04-23 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969651', 'tblTempVendorCDR_20' ) end [2025-04-23 03:54:18] Production.INFO: ProcessCDR(1,14969651,1,1,2) [2025-04-23 03:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969651', 'tblTempUsageDetail_20' ) start [2025-04-23 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969651', 'tblTempUsageDetail_20' ) end [2025-04-23 03:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 03:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 03:54:21] Production.INFO: ==8123== Releasing lock... [2025-04-23 03:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 03:54:21] Production.INFO: 32 MB #Memory Used# [2025-04-23 03:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 00:55:05 [end_date_ymd] => 2025-04-23 03:55:05 [RateCDR] => 1 ) [2025-04-23 03:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 00:55:05' and `end` < '2025-04-23 03:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 03:55:17] Production.INFO: count ==419 [2025-04-23 03:55:17] Production.ERROR: pbx CDR StartTime 2025-04-23 00:55:05 - End Time 2025-04-23 03:55:05 [2025-04-23 03:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969656', 'tblTempUsageDetail_20' ) start [2025-04-23 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969656', 'tblTempUsageDetail_20' ) end [2025-04-23 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969656', 'tblTempVendorCDR_20' ) start [2025-04-23 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969656', 'tblTempVendorCDR_20' ) end [2025-04-23 03:55:18] Production.INFO: ProcessCDR(1,14969656,1,1,2) [2025-04-23 03:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969656', 'tblTempUsageDetail_20' ) start [2025-04-23 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969656', 'tblTempUsageDetail_20' ) end [2025-04-23 03:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 03:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 03:55:21] Production.INFO: ==8204== Releasing lock... [2025-04-23 03:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 03:55:21] Production.INFO: 32 MB #Memory Used# [2025-04-23 03:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 00:56:05 [end_date_ymd] => 2025-04-23 03:56:05 [RateCDR] => 1 ) [2025-04-23 03:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 00:56:05' and `end` < '2025-04-23 03:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 03:56:18] Production.INFO: count ==419 [2025-04-23 03:56:18] Production.ERROR: pbx CDR StartTime 2025-04-23 00:56:05 - End Time 2025-04-23 03:56:05 [2025-04-23 03:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969661', 'tblTempUsageDetail_20' ) start [2025-04-23 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969661', 'tblTempUsageDetail_20' ) end [2025-04-23 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969661', 'tblTempVendorCDR_20' ) start [2025-04-23 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969661', 'tblTempVendorCDR_20' ) end [2025-04-23 03:56:18] Production.INFO: ProcessCDR(1,14969661,1,1,2) [2025-04-23 03:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969661', 'tblTempUsageDetail_20' ) start [2025-04-23 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969661', 'tblTempUsageDetail_20' ) end [2025-04-23 03:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 03:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 03:56:21] Production.INFO: ==8280== Releasing lock... [2025-04-23 03:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 03:56:21] Production.INFO: 32 MB #Memory Used# [2025-04-23 03:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 00:57:05 [end_date_ymd] => 2025-04-23 03:57:05 [RateCDR] => 1 ) [2025-04-23 03:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 00:57:05' and `end` < '2025-04-23 03:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 03:57:18] Production.INFO: count ==417 [2025-04-23 03:57:18] Production.ERROR: pbx CDR StartTime 2025-04-23 00:57:05 - End Time 2025-04-23 03:57:05 [2025-04-23 03:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969666', 'tblTempUsageDetail_20' ) start [2025-04-23 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969666', 'tblTempUsageDetail_20' ) end [2025-04-23 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969666', 'tblTempVendorCDR_20' ) start [2025-04-23 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969666', 'tblTempVendorCDR_20' ) end [2025-04-23 03:57:18] Production.INFO: ProcessCDR(1,14969666,1,1,2) [2025-04-23 03:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969666', 'tblTempUsageDetail_20' ) start [2025-04-23 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969666', 'tblTempUsageDetail_20' ) end [2025-04-23 03:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 03:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 03:57:21] Production.INFO: ==8350== Releasing lock... [2025-04-23 03:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 03:57:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-23 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 00:58:05 [end_date_ymd] => 2025-04-23 03:58:05 [RateCDR] => 1 ) [2025-04-23 03:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 00:58:05' and `end` < '2025-04-23 03:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 03:58:18] Production.INFO: count ==415 [2025-04-23 03:58:18] Production.ERROR: pbx CDR StartTime 2025-04-23 00:58:05 - End Time 2025-04-23 03:58:05 [2025-04-23 03:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969671', 'tblTempUsageDetail_20' ) start [2025-04-23 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969671', 'tblTempUsageDetail_20' ) end [2025-04-23 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969671', 'tblTempVendorCDR_20' ) start [2025-04-23 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969671', 'tblTempVendorCDR_20' ) end [2025-04-23 03:58:18] Production.INFO: ProcessCDR(1,14969671,1,1,2) [2025-04-23 03:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969671', 'tblTempUsageDetail_20' ) start [2025-04-23 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969671', 'tblTempUsageDetail_20' ) end [2025-04-23 03:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 03:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 03:58:21] Production.INFO: ==8422== Releasing lock... [2025-04-23 03:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 03:58:21] Production.INFO: 32 MB #Memory Used# [2025-04-23 03:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 00:59:05 [end_date_ymd] => 2025-04-23 03:59:05 [RateCDR] => 1 ) [2025-04-23 03:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 00:59:05' and `end` < '2025-04-23 03:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 03:59:18] Production.INFO: count ==415 [2025-04-23 03:59:18] Production.ERROR: pbx CDR StartTime 2025-04-23 00:59:05 - End Time 2025-04-23 03:59:05 [2025-04-23 03:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969676', 'tblTempUsageDetail_20' ) start [2025-04-23 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969676', 'tblTempUsageDetail_20' ) end [2025-04-23 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969676', 'tblTempVendorCDR_20' ) start [2025-04-23 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969676', 'tblTempVendorCDR_20' ) end [2025-04-23 03:59:18] Production.INFO: ProcessCDR(1,14969676,1,1,2) [2025-04-23 03:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 03:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969676', 'tblTempUsageDetail_20' ) start [2025-04-23 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969676', 'tblTempUsageDetail_20' ) end [2025-04-23 03:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 03:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 03:59:21] Production.INFO: ==8495== Releasing lock... [2025-04-23 03:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 03:59:21] Production.INFO: 32 MB #Memory Used# [2025-04-23 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 01:00:06 [end_date_ymd] => 2025-04-23 04:00:06 [RateCDR] => 1 ) [2025-04-23 04:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 01:00:06' and `end` < '2025-04-23 04:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 04:00:19] Production.INFO: count ==406 [2025-04-23 04:00:19] Production.ERROR: pbx CDR StartTime 2025-04-23 01:00:06 - End Time 2025-04-23 04:00:06 [2025-04-23 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969682', 'tblTempUsageDetail_20' ) start [2025-04-23 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969682', 'tblTempUsageDetail_20' ) end [2025-04-23 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969682', 'tblTempVendorCDR_20' ) start [2025-04-23 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969682', 'tblTempVendorCDR_20' ) end [2025-04-23 04:00:19] Production.INFO: ProcessCDR(1,14969682,1,1,2) [2025-04-23 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969682', 'tblTempUsageDetail_20' ) start [2025-04-23 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969682', 'tblTempUsageDetail_20' ) end [2025-04-23 04:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 04:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 04:00:22] Production.INFO: ==8569== Releasing lock... [2025-04-23 04:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 04:00:22] Production.INFO: 32 MB #Memory Used# [2025-04-23 04:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 01:01:05 [end_date_ymd] => 2025-04-23 04:01:05 [RateCDR] => 1 ) [2025-04-23 04:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 01:01:05' and `end` < '2025-04-23 04:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 04:01:18] Production.INFO: count ==385 [2025-04-23 04:01:18] Production.ERROR: pbx CDR StartTime 2025-04-23 01:01:05 - End Time 2025-04-23 04:01:05 [2025-04-23 04:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969688', 'tblTempUsageDetail_20' ) start [2025-04-23 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969688', 'tblTempUsageDetail_20' ) end [2025-04-23 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969688', 'tblTempVendorCDR_20' ) start [2025-04-23 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969688', 'tblTempVendorCDR_20' ) end [2025-04-23 04:01:18] Production.INFO: ProcessCDR(1,14969688,1,1,2) [2025-04-23 04:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969688', 'tblTempUsageDetail_20' ) start [2025-04-23 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969688', 'tblTempUsageDetail_20' ) end [2025-04-23 04:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 04:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 04:01:21] Production.INFO: ==8657== Releasing lock... [2025-04-23 04:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 04:01:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-23 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 01:02:05 [end_date_ymd] => 2025-04-23 04:02:05 [RateCDR] => 1 ) [2025-04-23 04:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 01:02:05' and `end` < '2025-04-23 04:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 04:02:18] Production.INFO: count ==384 [2025-04-23 04:02:18] Production.ERROR: pbx CDR StartTime 2025-04-23 01:02:05 - End Time 2025-04-23 04:02:05 [2025-04-23 04:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969693', 'tblTempUsageDetail_20' ) start [2025-04-23 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969693', 'tblTempUsageDetail_20' ) end [2025-04-23 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969693', 'tblTempVendorCDR_20' ) start [2025-04-23 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969693', 'tblTempVendorCDR_20' ) end [2025-04-23 04:02:18] Production.INFO: ProcessCDR(1,14969693,1,1,2) [2025-04-23 04:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969693', 'tblTempUsageDetail_20' ) start [2025-04-23 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969693', 'tblTempUsageDetail_20' ) end [2025-04-23 04:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 04:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 04:02:21] Production.INFO: ==8732== Releasing lock... [2025-04-23 04:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 04:02:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-23 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 01:03:05 [end_date_ymd] => 2025-04-23 04:03:05 [RateCDR] => 1 ) [2025-04-23 04:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 01:03:05' and `end` < '2025-04-23 04:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 04:03:17] Production.INFO: count ==384 [2025-04-23 04:03:17] Production.ERROR: pbx CDR StartTime 2025-04-23 01:03:05 - End Time 2025-04-23 04:03:05 [2025-04-23 04:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969698', 'tblTempUsageDetail_20' ) start [2025-04-23 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969698', 'tblTempUsageDetail_20' ) end [2025-04-23 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969698', 'tblTempVendorCDR_20' ) start [2025-04-23 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969698', 'tblTempVendorCDR_20' ) end [2025-04-23 04:03:17] Production.INFO: ProcessCDR(1,14969698,1,1,2) [2025-04-23 04:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969698', 'tblTempUsageDetail_20' ) start [2025-04-23 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969698', 'tblTempUsageDetail_20' ) end [2025-04-23 04:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 04:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 04:03:21] Production.INFO: ==8802== Releasing lock... [2025-04-23 04:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 04:03:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-23 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 01:04:05 [end_date_ymd] => 2025-04-23 04:04:05 [RateCDR] => 1 ) [2025-04-23 04:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 01:04:05' and `end` < '2025-04-23 04:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 04:04:17] Production.INFO: count ==381 [2025-04-23 04:04:17] Production.ERROR: pbx CDR StartTime 2025-04-23 01:04:05 - End Time 2025-04-23 04:04:05 [2025-04-23 04:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969703', 'tblTempUsageDetail_20' ) start [2025-04-23 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969703', 'tblTempUsageDetail_20' ) end [2025-04-23 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969703', 'tblTempVendorCDR_20' ) start [2025-04-23 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969703', 'tblTempVendorCDR_20' ) end [2025-04-23 04:04:17] Production.INFO: ProcessCDR(1,14969703,1,1,2) [2025-04-23 04:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969703', 'tblTempUsageDetail_20' ) start [2025-04-23 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969703', 'tblTempUsageDetail_20' ) end [2025-04-23 04:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 04:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 04:04:21] Production.INFO: ==8874== Releasing lock... [2025-04-23 04:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 04:04:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-23 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 01:05:05 [end_date_ymd] => 2025-04-23 04:05:05 [RateCDR] => 1 ) [2025-04-23 04:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 01:05:05' and `end` < '2025-04-23 04:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 04:05:17] Production.INFO: count ==381 [2025-04-23 04:05:17] Production.ERROR: pbx CDR StartTime 2025-04-23 01:05:05 - End Time 2025-04-23 04:05:05 [2025-04-23 04:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969708', 'tblTempUsageDetail_20' ) start [2025-04-23 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969708', 'tblTempUsageDetail_20' ) end [2025-04-23 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969708', 'tblTempVendorCDR_20' ) start [2025-04-23 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969708', 'tblTempVendorCDR_20' ) end [2025-04-23 04:05:17] Production.INFO: ProcessCDR(1,14969708,1,1,2) [2025-04-23 04:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969708', 'tblTempUsageDetail_20' ) start [2025-04-23 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969708', 'tblTempUsageDetail_20' ) end [2025-04-23 04:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 04:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 04:05:21] Production.INFO: ==8949== Releasing lock... [2025-04-23 04:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 04:05:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-23 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 01:06:05 [end_date_ymd] => 2025-04-23 04:06:05 [RateCDR] => 1 ) [2025-04-23 04:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 01:06:05' and `end` < '2025-04-23 04:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 04:06:18] Production.INFO: count ==380 [2025-04-23 04:06:18] Production.ERROR: pbx CDR StartTime 2025-04-23 01:06:05 - End Time 2025-04-23 04:06:05 [2025-04-23 04:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969713', 'tblTempUsageDetail_20' ) start [2025-04-23 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969713', 'tblTempUsageDetail_20' ) end [2025-04-23 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969713', 'tblTempVendorCDR_20' ) start [2025-04-23 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969713', 'tblTempVendorCDR_20' ) end [2025-04-23 04:06:18] Production.INFO: ProcessCDR(1,14969713,1,1,2) [2025-04-23 04:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969713', 'tblTempUsageDetail_20' ) start [2025-04-23 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969713', 'tblTempUsageDetail_20' ) end [2025-04-23 04:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 04:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 04:06:21] Production.INFO: ==9019== Releasing lock... [2025-04-23 04:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 04:06:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-23 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 01:07:05 [end_date_ymd] => 2025-04-23 04:07:05 [RateCDR] => 1 ) [2025-04-23 04:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 01:07:05' and `end` < '2025-04-23 04:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 04:07:18] Production.INFO: count ==379 [2025-04-23 04:07:18] Production.ERROR: pbx CDR StartTime 2025-04-23 01:07:05 - End Time 2025-04-23 04:07:05 [2025-04-23 04:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969718', 'tblTempUsageDetail_20' ) start [2025-04-23 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969718', 'tblTempUsageDetail_20' ) end [2025-04-23 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969718', 'tblTempVendorCDR_20' ) start [2025-04-23 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969718', 'tblTempVendorCDR_20' ) end [2025-04-23 04:07:18] Production.INFO: ProcessCDR(1,14969718,1,1,2) [2025-04-23 04:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969718', 'tblTempUsageDetail_20' ) start [2025-04-23 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969718', 'tblTempUsageDetail_20' ) end [2025-04-23 04:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 04:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 04:07:21] Production.INFO: ==9091== Releasing lock... [2025-04-23 04:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 04:07:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-23 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 01:08:05 [end_date_ymd] => 2025-04-23 04:08:05 [RateCDR] => 1 ) [2025-04-23 04:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 01:08:05' and `end` < '2025-04-23 04:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 04:08:17] Production.INFO: count ==378 [2025-04-23 04:08:17] Production.ERROR: pbx CDR StartTime 2025-04-23 01:08:05 - End Time 2025-04-23 04:08:05 [2025-04-23 04:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969723', 'tblTempUsageDetail_20' ) start [2025-04-23 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969723', 'tblTempUsageDetail_20' ) end [2025-04-23 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969723', 'tblTempVendorCDR_20' ) start [2025-04-23 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969723', 'tblTempVendorCDR_20' ) end [2025-04-23 04:08:17] Production.INFO: ProcessCDR(1,14969723,1,1,2) [2025-04-23 04:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969723', 'tblTempUsageDetail_20' ) start [2025-04-23 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969723', 'tblTempUsageDetail_20' ) end [2025-04-23 04:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 04:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 04:08:21] Production.INFO: ==9176== Releasing lock... [2025-04-23 04:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 04:08:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-23 04:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 01:09:06 [end_date_ymd] => 2025-04-23 04:09:06 [RateCDR] => 1 ) [2025-04-23 04:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 01:09:06' and `end` < '2025-04-23 04:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 04:09:19] Production.INFO: count ==376 [2025-04-23 04:09:19] Production.ERROR: pbx CDR StartTime 2025-04-23 01:09:06 - End Time 2025-04-23 04:09:06 [2025-04-23 04:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 04:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969728', 'tblTempUsageDetail_20' ) start [2025-04-23 04:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969728', 'tblTempUsageDetail_20' ) end [2025-04-23 04:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969728', 'tblTempVendorCDR_20' ) start [2025-04-23 04:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969728', 'tblTempVendorCDR_20' ) end [2025-04-23 04:09:19] Production.INFO: ProcessCDR(1,14969728,1,1,2) [2025-04-23 04:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969728', 'tblTempUsageDetail_20' ) start [2025-04-23 04:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969728', 'tblTempUsageDetail_20' ) end [2025-04-23 04:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 04:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 04:09:22] Production.INFO: ==9288== Releasing lock... [2025-04-23 04:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 04:09:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-23 04:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 01:10:05 [end_date_ymd] => 2025-04-23 04:10:05 [RateCDR] => 1 ) [2025-04-23 04:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 01:10:05' and `end` < '2025-04-23 04:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 04:10:18] Production.INFO: count ==367 [2025-04-23 04:10:18] Production.ERROR: pbx CDR StartTime 2025-04-23 01:10:05 - End Time 2025-04-23 04:10:05 [2025-04-23 04:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969734', 'tblTempUsageDetail_20' ) start [2025-04-23 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969734', 'tblTempUsageDetail_20' ) end [2025-04-23 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969734', 'tblTempVendorCDR_20' ) start [2025-04-23 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969734', 'tblTempVendorCDR_20' ) end [2025-04-23 04:10:18] Production.INFO: ProcessCDR(1,14969734,1,1,2) [2025-04-23 04:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969734', 'tblTempUsageDetail_20' ) start [2025-04-23 04:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969734', 'tblTempUsageDetail_20' ) end [2025-04-23 04:10:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 04:10:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 04:10:21] Production.INFO: ==9366== Releasing lock... [2025-04-23 04:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 04:10:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-23 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 01:11:05 [end_date_ymd] => 2025-04-23 04:11:05 [RateCDR] => 1 ) [2025-04-23 04:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 01:11:05' and `end` < '2025-04-23 04:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 04:11:17] Production.INFO: count ==346 [2025-04-23 04:11:18] Production.ERROR: pbx CDR StartTime 2025-04-23 01:11:05 - End Time 2025-04-23 04:11:05 [2025-04-23 04:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969739', 'tblTempUsageDetail_20' ) start [2025-04-23 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969739', 'tblTempUsageDetail_20' ) end [2025-04-23 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969739', 'tblTempVendorCDR_20' ) start [2025-04-23 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969739', 'tblTempVendorCDR_20' ) end [2025-04-23 04:11:18] Production.INFO: ProcessCDR(1,14969739,1,1,2) [2025-04-23 04:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969739', 'tblTempUsageDetail_20' ) start [2025-04-23 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969739', 'tblTempUsageDetail_20' ) end [2025-04-23 04:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 04:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 04:11:21] Production.INFO: ==9443== Releasing lock... [2025-04-23 04:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 04:11:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-23 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 01:12:05 [end_date_ymd] => 2025-04-23 04:12:05 [RateCDR] => 1 ) [2025-04-23 04:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 01:12:05' and `end` < '2025-04-23 04:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 04:12:18] Production.INFO: count ==344 [2025-04-23 04:12:18] Production.ERROR: pbx CDR StartTime 2025-04-23 01:12:05 - End Time 2025-04-23 04:12:05 [2025-04-23 04:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969744', 'tblTempUsageDetail_20' ) start [2025-04-23 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969744', 'tblTempUsageDetail_20' ) end [2025-04-23 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969744', 'tblTempVendorCDR_20' ) start [2025-04-23 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969744', 'tblTempVendorCDR_20' ) end [2025-04-23 04:12:18] Production.INFO: ProcessCDR(1,14969744,1,1,2) [2025-04-23 04:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969744', 'tblTempUsageDetail_20' ) start [2025-04-23 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969744', 'tblTempUsageDetail_20' ) end [2025-04-23 04:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 04:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 04:12:21] Production.INFO: ==9514== Releasing lock... [2025-04-23 04:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 04:12:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-23 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 01:13:05 [end_date_ymd] => 2025-04-23 04:13:05 [RateCDR] => 1 ) [2025-04-23 04:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 01:13:05' and `end` < '2025-04-23 04:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 04:13:18] Production.INFO: count ==342 [2025-04-23 04:13:18] Production.ERROR: pbx CDR StartTime 2025-04-23 01:13:05 - End Time 2025-04-23 04:13:05 [2025-04-23 04:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969749', 'tblTempUsageDetail_20' ) start [2025-04-23 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969749', 'tblTempUsageDetail_20' ) end [2025-04-23 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969749', 'tblTempVendorCDR_20' ) start [2025-04-23 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969749', 'tblTempVendorCDR_20' ) end [2025-04-23 04:13:18] Production.INFO: ProcessCDR(1,14969749,1,1,2) [2025-04-23 04:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969749', 'tblTempUsageDetail_20' ) start [2025-04-23 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969749', 'tblTempUsageDetail_20' ) end [2025-04-23 04:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 04:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 04:13:21] Production.INFO: ==9585== Releasing lock... [2025-04-23 04:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 04:13:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-23 04:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 01:14:06 [end_date_ymd] => 2025-04-23 04:14:06 [RateCDR] => 1 ) [2025-04-23 04:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 01:14:06' and `end` < '2025-04-23 04:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 04:14:18] Production.INFO: count ==342 [2025-04-23 04:14:18] Production.ERROR: pbx CDR StartTime 2025-04-23 01:14:06 - End Time 2025-04-23 04:14:06 [2025-04-23 04:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969754', 'tblTempUsageDetail_20' ) start [2025-04-23 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969754', 'tblTempUsageDetail_20' ) end [2025-04-23 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969754', 'tblTempVendorCDR_20' ) start [2025-04-23 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969754', 'tblTempVendorCDR_20' ) end [2025-04-23 04:14:18] Production.INFO: ProcessCDR(1,14969754,1,1,2) [2025-04-23 04:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969754', 'tblTempUsageDetail_20' ) start [2025-04-23 04:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969754', 'tblTempUsageDetail_20' ) end [2025-04-23 04:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 04:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 04:14:22] Production.INFO: ==9670== Releasing lock... [2025-04-23 04:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 04:14:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-23 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 01:15:05 [end_date_ymd] => 2025-04-23 04:15:05 [RateCDR] => 1 ) [2025-04-23 04:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 01:15:05' and `end` < '2025-04-23 04:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 04:15:17] Production.INFO: count ==342 [2025-04-23 04:15:18] Production.ERROR: pbx CDR StartTime 2025-04-23 01:15:05 - End Time 2025-04-23 04:15:05 [2025-04-23 04:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969759', 'tblTempUsageDetail_20' ) start [2025-04-23 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969759', 'tblTempUsageDetail_20' ) end [2025-04-23 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969759', 'tblTempVendorCDR_20' ) start [2025-04-23 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969759', 'tblTempVendorCDR_20' ) end [2025-04-23 04:15:18] Production.INFO: ProcessCDR(1,14969759,1,1,2) [2025-04-23 04:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969759', 'tblTempUsageDetail_20' ) start [2025-04-23 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969759', 'tblTempUsageDetail_20' ) end [2025-04-23 04:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 04:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 04:15:21] Production.INFO: ==9745== Releasing lock... [2025-04-23 04:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 04:15:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-23 04:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 01:16:06 [end_date_ymd] => 2025-04-23 04:16:06 [RateCDR] => 1 ) [2025-04-23 04:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 01:16:06' and `end` < '2025-04-23 04:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 04:16:18] Production.INFO: count ==342 [2025-04-23 04:16:18] Production.ERROR: pbx CDR StartTime 2025-04-23 01:16:06 - End Time 2025-04-23 04:16:06 [2025-04-23 04:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969764', 'tblTempUsageDetail_20' ) start [2025-04-23 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969764', 'tblTempUsageDetail_20' ) end [2025-04-23 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969764', 'tblTempVendorCDR_20' ) start [2025-04-23 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969764', 'tblTempVendorCDR_20' ) end [2025-04-23 04:16:18] Production.INFO: ProcessCDR(1,14969764,1,1,2) [2025-04-23 04:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969764', 'tblTempUsageDetail_20' ) start [2025-04-23 04:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969764', 'tblTempUsageDetail_20' ) end [2025-04-23 04:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 04:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 04:16:22] Production.INFO: ==9817== Releasing lock... [2025-04-23 04:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 04:16:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-23 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 01:17:05 [end_date_ymd] => 2025-04-23 04:17:05 [RateCDR] => 1 ) [2025-04-23 04:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 01:17:05' and `end` < '2025-04-23 04:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 04:17:17] Production.INFO: count ==342 [2025-04-23 04:17:17] Production.ERROR: pbx CDR StartTime 2025-04-23 01:17:05 - End Time 2025-04-23 04:17:05 [2025-04-23 04:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969769', 'tblTempUsageDetail_20' ) start [2025-04-23 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969769', 'tblTempUsageDetail_20' ) end [2025-04-23 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969769', 'tblTempVendorCDR_20' ) start [2025-04-23 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969769', 'tblTempVendorCDR_20' ) end [2025-04-23 04:17:17] Production.INFO: ProcessCDR(1,14969769,1,1,2) [2025-04-23 04:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969769', 'tblTempUsageDetail_20' ) start [2025-04-23 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969769', 'tblTempUsageDetail_20' ) end [2025-04-23 04:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 04:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 04:17:21] Production.INFO: ==9887== Releasing lock... [2025-04-23 04:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 04:17:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-23 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 01:18:05 [end_date_ymd] => 2025-04-23 04:18:05 [RateCDR] => 1 ) [2025-04-23 04:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 01:18:05' and `end` < '2025-04-23 04:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 04:18:18] Production.INFO: count ==341 [2025-04-23 04:18:18] Production.ERROR: pbx CDR StartTime 2025-04-23 01:18:05 - End Time 2025-04-23 04:18:05 [2025-04-23 04:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969774', 'tblTempUsageDetail_20' ) start [2025-04-23 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969774', 'tblTempUsageDetail_20' ) end [2025-04-23 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969774', 'tblTempVendorCDR_20' ) start [2025-04-23 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969774', 'tblTempVendorCDR_20' ) end [2025-04-23 04:18:18] Production.INFO: ProcessCDR(1,14969774,1,1,2) [2025-04-23 04:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969774', 'tblTempUsageDetail_20' ) start [2025-04-23 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969774', 'tblTempUsageDetail_20' ) end [2025-04-23 04:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 04:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 04:18:21] Production.INFO: ==9959== Releasing lock... [2025-04-23 04:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 04:18:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-23 04:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 01:19:04 [end_date_ymd] => 2025-04-23 04:19:04 [RateCDR] => 1 ) [2025-04-23 04:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 01:19:04' and `end` < '2025-04-23 04:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 04:19:17] Production.INFO: count ==343 [2025-04-23 04:19:17] Production.ERROR: pbx CDR StartTime 2025-04-23 01:19:04 - End Time 2025-04-23 04:19:04 [2025-04-23 04:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969779', 'tblTempUsageDetail_20' ) start [2025-04-23 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969779', 'tblTempUsageDetail_20' ) end [2025-04-23 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969779', 'tblTempVendorCDR_20' ) start [2025-04-23 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969779', 'tblTempVendorCDR_20' ) end [2025-04-23 04:19:17] Production.INFO: ProcessCDR(1,14969779,1,1,2) [2025-04-23 04:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969779', 'tblTempUsageDetail_20' ) start [2025-04-23 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969779', 'tblTempUsageDetail_20' ) end [2025-04-23 04:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 04:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 04:19:21] Production.INFO: ==10030== Releasing lock... [2025-04-23 04:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 04:19:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-23 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 01:20:06 [end_date_ymd] => 2025-04-23 04:20:06 [RateCDR] => 1 ) [2025-04-23 04:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 01:20:06' and `end` < '2025-04-23 04:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 04:20:18] Production.INFO: count ==333 [2025-04-23 04:20:18] Production.ERROR: pbx CDR StartTime 2025-04-23 01:20:06 - End Time 2025-04-23 04:20:06 [2025-04-23 04:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969785', 'tblTempUsageDetail_20' ) start [2025-04-23 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969785', 'tblTempUsageDetail_20' ) end [2025-04-23 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969785', 'tblTempVendorCDR_20' ) start [2025-04-23 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969785', 'tblTempVendorCDR_20' ) end [2025-04-23 04:20:18] Production.INFO: ProcessCDR(1,14969785,1,1,2) [2025-04-23 04:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969785', 'tblTempUsageDetail_20' ) start [2025-04-23 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969785', 'tblTempUsageDetail_20' ) end [2025-04-23 04:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 04:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 04:20:22] Production.INFO: ==10104== Releasing lock... [2025-04-23 04:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 04:20:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-23 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 01:21:05 [end_date_ymd] => 2025-04-23 04:21:05 [RateCDR] => 1 ) [2025-04-23 04:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 01:21:05' and `end` < '2025-04-23 04:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 04:21:18] Production.INFO: count ==332 [2025-04-23 04:21:18] Production.ERROR: pbx CDR StartTime 2025-04-23 01:21:05 - End Time 2025-04-23 04:21:05 [2025-04-23 04:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969790', 'tblTempUsageDetail_20' ) start [2025-04-23 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969790', 'tblTempUsageDetail_20' ) end [2025-04-23 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969790', 'tblTempVendorCDR_20' ) start [2025-04-23 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969790', 'tblTempVendorCDR_20' ) end [2025-04-23 04:21:18] Production.INFO: ProcessCDR(1,14969790,1,1,2) [2025-04-23 04:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969790', 'tblTempUsageDetail_20' ) start [2025-04-23 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969790', 'tblTempUsageDetail_20' ) end [2025-04-23 04:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 04:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 04:21:21] Production.INFO: ==10179== Releasing lock... [2025-04-23 04:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 04:21:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-23 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 01:22:05 [end_date_ymd] => 2025-04-23 04:22:05 [RateCDR] => 1 ) [2025-04-23 04:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 01:22:05' and `end` < '2025-04-23 04:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 04:22:17] Production.INFO: count ==329 [2025-04-23 04:22:18] Production.ERROR: pbx CDR StartTime 2025-04-23 01:22:05 - End Time 2025-04-23 04:22:05 [2025-04-23 04:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969795', 'tblTempUsageDetail_20' ) start [2025-04-23 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969795', 'tblTempUsageDetail_20' ) end [2025-04-23 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969795', 'tblTempVendorCDR_20' ) start [2025-04-23 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969795', 'tblTempVendorCDR_20' ) end [2025-04-23 04:22:18] Production.INFO: ProcessCDR(1,14969795,1,1,2) [2025-04-23 04:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969795', 'tblTempUsageDetail_20' ) start [2025-04-23 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969795', 'tblTempUsageDetail_20' ) end [2025-04-23 04:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 04:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 04:22:21] Production.INFO: ==10254== Releasing lock... [2025-04-23 04:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 04:22:21] Production.INFO: 31 MB #Memory Used# [2025-04-23 04:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 01:23:05 [end_date_ymd] => 2025-04-23 04:23:05 [RateCDR] => 1 ) [2025-04-23 04:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 01:23:05' and `end` < '2025-04-23 04:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 04:23:18] Production.INFO: count ==331 [2025-04-23 04:23:18] Production.ERROR: pbx CDR StartTime 2025-04-23 01:23:05 - End Time 2025-04-23 04:23:05 [2025-04-23 04:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969800', 'tblTempUsageDetail_20' ) start [2025-04-23 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969800', 'tblTempUsageDetail_20' ) end [2025-04-23 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969800', 'tblTempVendorCDR_20' ) start [2025-04-23 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969800', 'tblTempVendorCDR_20' ) end [2025-04-23 04:23:18] Production.INFO: ProcessCDR(1,14969800,1,1,2) [2025-04-23 04:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969800', 'tblTempUsageDetail_20' ) start [2025-04-23 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969800', 'tblTempUsageDetail_20' ) end [2025-04-23 04:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 04:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 04:23:21] Production.INFO: ==10330== Releasing lock... [2025-04-23 04:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 04:23:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-23 04:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 01:24:04 [end_date_ymd] => 2025-04-23 04:24:04 [RateCDR] => 1 ) [2025-04-23 04:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 01:24:04' and `end` < '2025-04-23 04:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 04:24:17] Production.INFO: count ==330 [2025-04-23 04:24:17] Production.ERROR: pbx CDR StartTime 2025-04-23 01:24:04 - End Time 2025-04-23 04:24:04 [2025-04-23 04:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969805', 'tblTempUsageDetail_20' ) start [2025-04-23 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969805', 'tblTempUsageDetail_20' ) end [2025-04-23 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969805', 'tblTempVendorCDR_20' ) start [2025-04-23 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969805', 'tblTempVendorCDR_20' ) end [2025-04-23 04:24:17] Production.INFO: ProcessCDR(1,14969805,1,1,2) [2025-04-23 04:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969805', 'tblTempUsageDetail_20' ) start [2025-04-23 04:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969805', 'tblTempUsageDetail_20' ) end [2025-04-23 04:24:20] Production.ERROR: pbx prc_insertCDR start [2025-04-23 04:24:20] Production.ERROR: pbx prc_insertCDR end [2025-04-23 04:24:20] Production.INFO: ==10425== Releasing lock... [2025-04-23 04:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 04:24:20] Production.INFO: 31 MB #Memory Used# [2025-04-23 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 01:25:05 [end_date_ymd] => 2025-04-23 04:25:05 [RateCDR] => 1 ) [2025-04-23 04:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 01:25:05' and `end` < '2025-04-23 04:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 04:25:17] Production.INFO: count ==330 [2025-04-23 04:25:18] Production.ERROR: pbx CDR StartTime 2025-04-23 01:25:05 - End Time 2025-04-23 04:25:05 [2025-04-23 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969809', 'tblTempUsageDetail_20' ) start [2025-04-23 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969809', 'tblTempUsageDetail_20' ) end [2025-04-23 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969809', 'tblTempVendorCDR_20' ) start [2025-04-23 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969809', 'tblTempVendorCDR_20' ) end [2025-04-23 04:25:18] Production.INFO: ProcessCDR(1,14969809,1,1,2) [2025-04-23 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969809', 'tblTempUsageDetail_20' ) start [2025-04-23 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969809', 'tblTempUsageDetail_20' ) end [2025-04-23 04:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 04:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 04:25:21] Production.INFO: ==10509== Releasing lock... [2025-04-23 04:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 04:25:21] Production.INFO: 31 MB #Memory Used# [2025-04-23 04:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 01:26:04 [end_date_ymd] => 2025-04-23 04:26:04 [RateCDR] => 1 ) [2025-04-23 04:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 01:26:04' and `end` < '2025-04-23 04:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 04:26:17] Production.INFO: count ==328 [2025-04-23 04:26:17] Production.ERROR: pbx CDR StartTime 2025-04-23 01:26:04 - End Time 2025-04-23 04:26:04 [2025-04-23 04:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969815', 'tblTempUsageDetail_20' ) start [2025-04-23 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969815', 'tblTempUsageDetail_20' ) end [2025-04-23 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969815', 'tblTempVendorCDR_20' ) start [2025-04-23 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969815', 'tblTempVendorCDR_20' ) end [2025-04-23 04:26:17] Production.INFO: ProcessCDR(1,14969815,1,1,2) [2025-04-23 04:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969815', 'tblTempUsageDetail_20' ) start [2025-04-23 04:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969815', 'tblTempUsageDetail_20' ) end [2025-04-23 04:26:20] Production.ERROR: pbx prc_insertCDR start [2025-04-23 04:26:20] Production.ERROR: pbx prc_insertCDR end [2025-04-23 04:26:20] Production.INFO: ==10579== Releasing lock... [2025-04-23 04:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 04:26:20] Production.INFO: 31 MB #Memory Used# [2025-04-23 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 01:27:05 [end_date_ymd] => 2025-04-23 04:27:05 [RateCDR] => 1 ) [2025-04-23 04:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 01:27:05' and `end` < '2025-04-23 04:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 04:27:17] Production.INFO: count ==328 [2025-04-23 04:27:17] Production.ERROR: pbx CDR StartTime 2025-04-23 01:27:05 - End Time 2025-04-23 04:27:05 [2025-04-23 04:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969820', 'tblTempUsageDetail_20' ) start [2025-04-23 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969820', 'tblTempUsageDetail_20' ) end [2025-04-23 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969820', 'tblTempVendorCDR_20' ) start [2025-04-23 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969820', 'tblTempVendorCDR_20' ) end [2025-04-23 04:27:17] Production.INFO: ProcessCDR(1,14969820,1,1,2) [2025-04-23 04:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969820', 'tblTempUsageDetail_20' ) start [2025-04-23 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969820', 'tblTempUsageDetail_20' ) end [2025-04-23 04:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 04:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 04:27:21] Production.INFO: ==10653== Releasing lock... [2025-04-23 04:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 04:27:21] Production.INFO: 31 MB #Memory Used# [2025-04-23 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 01:28:05 [end_date_ymd] => 2025-04-23 04:28:05 [RateCDR] => 1 ) [2025-04-23 04:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 01:28:05' and `end` < '2025-04-23 04:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 04:28:18] Production.INFO: count ==327 [2025-04-23 04:28:18] Production.ERROR: pbx CDR StartTime 2025-04-23 01:28:05 - End Time 2025-04-23 04:28:05 [2025-04-23 04:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969825', 'tblTempUsageDetail_20' ) start [2025-04-23 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969825', 'tblTempUsageDetail_20' ) end [2025-04-23 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969825', 'tblTempVendorCDR_20' ) start [2025-04-23 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969825', 'tblTempVendorCDR_20' ) end [2025-04-23 04:28:18] Production.INFO: ProcessCDR(1,14969825,1,1,2) [2025-04-23 04:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969825', 'tblTempUsageDetail_20' ) start [2025-04-23 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969825', 'tblTempUsageDetail_20' ) end [2025-04-23 04:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 04:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 04:28:21] Production.INFO: ==10724== Releasing lock... [2025-04-23 04:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 04:28:21] Production.INFO: 31 MB #Memory Used# [2025-04-23 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 01:29:05 [end_date_ymd] => 2025-04-23 04:29:05 [RateCDR] => 1 ) [2025-04-23 04:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 01:29:05' and `end` < '2025-04-23 04:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 04:29:18] Production.INFO: count ==325 [2025-04-23 04:29:18] Production.ERROR: pbx CDR StartTime 2025-04-23 01:29:05 - End Time 2025-04-23 04:29:05 [2025-04-23 04:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969830', 'tblTempUsageDetail_20' ) start [2025-04-23 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969830', 'tblTempUsageDetail_20' ) end [2025-04-23 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969830', 'tblTempVendorCDR_20' ) start [2025-04-23 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969830', 'tblTempVendorCDR_20' ) end [2025-04-23 04:29:18] Production.INFO: ProcessCDR(1,14969830,1,1,2) [2025-04-23 04:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969830', 'tblTempUsageDetail_20' ) start [2025-04-23 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969830', 'tblTempUsageDetail_20' ) end [2025-04-23 04:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 04:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 04:29:21] Production.INFO: ==10798== Releasing lock... [2025-04-23 04:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 04:29:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-23 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 01:30:06 [end_date_ymd] => 2025-04-23 04:30:06 [RateCDR] => 1 ) [2025-04-23 04:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 01:30:06' and `end` < '2025-04-23 04:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 04:30:19] Production.INFO: count ==317 [2025-04-23 04:30:19] Production.ERROR: pbx CDR StartTime 2025-04-23 01:30:06 - End Time 2025-04-23 04:30:06 [2025-04-23 04:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969837', 'tblTempUsageDetail_20' ) start [2025-04-23 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969837', 'tblTempUsageDetail_20' ) end [2025-04-23 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969837', 'tblTempVendorCDR_20' ) start [2025-04-23 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969837', 'tblTempVendorCDR_20' ) end [2025-04-23 04:30:19] Production.INFO: ProcessCDR(1,14969837,1,1,2) [2025-04-23 04:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969837', 'tblTempUsageDetail_20' ) start [2025-04-23 04:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969837', 'tblTempUsageDetail_20' ) end [2025-04-23 04:30:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 04:30:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 04:30:24] Production.INFO: ==10873== Releasing lock... [2025-04-23 04:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 04:30:24] Production.INFO: 31.5 MB #Memory Used# [2025-04-23 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 01:31:05 [end_date_ymd] => 2025-04-23 04:31:05 [RateCDR] => 1 ) [2025-04-23 04:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 01:31:05' and `end` < '2025-04-23 04:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 04:31:18] Production.INFO: count ==310 [2025-04-23 04:31:18] Production.ERROR: pbx CDR StartTime 2025-04-23 01:31:05 - End Time 2025-04-23 04:31:05 [2025-04-23 04:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969842', 'tblTempUsageDetail_20' ) start [2025-04-23 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969842', 'tblTempUsageDetail_20' ) end [2025-04-23 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969842', 'tblTempVendorCDR_20' ) start [2025-04-23 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969842', 'tblTempVendorCDR_20' ) end [2025-04-23 04:31:18] Production.INFO: ProcessCDR(1,14969842,1,1,2) [2025-04-23 04:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969842', 'tblTempUsageDetail_20' ) start [2025-04-23 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969842', 'tblTempUsageDetail_20' ) end [2025-04-23 04:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 04:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 04:31:21] Production.INFO: ==11010== Releasing lock... [2025-04-23 04:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 04:31:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-23 04:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 01:32:06 [end_date_ymd] => 2025-04-23 04:32:06 [RateCDR] => 1 ) [2025-04-23 04:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 01:32:06' and `end` < '2025-04-23 04:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 04:32:18] Production.INFO: count ==310 [2025-04-23 04:32:18] Production.ERROR: pbx CDR StartTime 2025-04-23 01:32:06 - End Time 2025-04-23 04:32:06 [2025-04-23 04:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969847', 'tblTempUsageDetail_20' ) start [2025-04-23 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969847', 'tblTempUsageDetail_20' ) end [2025-04-23 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969847', 'tblTempVendorCDR_20' ) start [2025-04-23 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969847', 'tblTempVendorCDR_20' ) end [2025-04-23 04:32:18] Production.INFO: ProcessCDR(1,14969847,1,1,2) [2025-04-23 04:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969847', 'tblTempUsageDetail_20' ) start [2025-04-23 04:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969847', 'tblTempUsageDetail_20' ) end [2025-04-23 04:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 04:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 04:32:22] Production.INFO: ==11083== Releasing lock... [2025-04-23 04:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 04:32:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-23 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 01:33:05 [end_date_ymd] => 2025-04-23 04:33:05 [RateCDR] => 1 ) [2025-04-23 04:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 01:33:05' and `end` < '2025-04-23 04:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 04:33:18] Production.INFO: count ==310 [2025-04-23 04:33:18] Production.ERROR: pbx CDR StartTime 2025-04-23 01:33:05 - End Time 2025-04-23 04:33:05 [2025-04-23 04:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969852', 'tblTempUsageDetail_20' ) start [2025-04-23 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969852', 'tblTempUsageDetail_20' ) end [2025-04-23 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969852', 'tblTempVendorCDR_20' ) start [2025-04-23 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969852', 'tblTempVendorCDR_20' ) end [2025-04-23 04:33:18] Production.INFO: ProcessCDR(1,14969852,1,1,2) [2025-04-23 04:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969852', 'tblTempUsageDetail_20' ) start [2025-04-23 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969852', 'tblTempUsageDetail_20' ) end [2025-04-23 04:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 04:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 04:33:21] Production.INFO: ==11159== Releasing lock... [2025-04-23 04:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 04:33:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-23 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 01:34:05 [end_date_ymd] => 2025-04-23 04:34:05 [RateCDR] => 1 ) [2025-04-23 04:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 01:34:05' and `end` < '2025-04-23 04:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 04:34:18] Production.INFO: count ==310 [2025-04-23 04:34:18] Production.ERROR: pbx CDR StartTime 2025-04-23 01:34:05 - End Time 2025-04-23 04:34:05 [2025-04-23 04:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969857', 'tblTempUsageDetail_20' ) start [2025-04-23 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969857', 'tblTempUsageDetail_20' ) end [2025-04-23 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969857', 'tblTempVendorCDR_20' ) start [2025-04-23 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969857', 'tblTempVendorCDR_20' ) end [2025-04-23 04:34:18] Production.INFO: ProcessCDR(1,14969857,1,1,2) [2025-04-23 04:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969857', 'tblTempUsageDetail_20' ) start [2025-04-23 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969857', 'tblTempUsageDetail_20' ) end [2025-04-23 04:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 04:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 04:34:21] Production.INFO: ==11228== Releasing lock... [2025-04-23 04:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 04:34:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-23 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 01:35:05 [end_date_ymd] => 2025-04-23 04:35:05 [RateCDR] => 1 ) [2025-04-23 04:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 01:35:05' and `end` < '2025-04-23 04:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 04:35:17] Production.INFO: count ==308 [2025-04-23 04:35:17] Production.ERROR: pbx CDR StartTime 2025-04-23 01:35:05 - End Time 2025-04-23 04:35:05 [2025-04-23 04:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969862', 'tblTempUsageDetail_20' ) start [2025-04-23 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969862', 'tblTempUsageDetail_20' ) end [2025-04-23 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969862', 'tblTempVendorCDR_20' ) start [2025-04-23 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969862', 'tblTempVendorCDR_20' ) end [2025-04-23 04:35:17] Production.INFO: ProcessCDR(1,14969862,1,1,2) [2025-04-23 04:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969862', 'tblTempUsageDetail_20' ) start [2025-04-23 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969862', 'tblTempUsageDetail_20' ) end [2025-04-23 04:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 04:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 04:35:21] Production.INFO: ==11305== Releasing lock... [2025-04-23 04:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 04:35:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-23 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 01:36:05 [end_date_ymd] => 2025-04-23 04:36:05 [RateCDR] => 1 ) [2025-04-23 04:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 01:36:05' and `end` < '2025-04-23 04:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 04:36:17] Production.INFO: count ==308 [2025-04-23 04:36:17] Production.ERROR: pbx CDR StartTime 2025-04-23 01:36:05 - End Time 2025-04-23 04:36:05 [2025-04-23 04:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969867', 'tblTempUsageDetail_20' ) start [2025-04-23 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969867', 'tblTempUsageDetail_20' ) end [2025-04-23 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969867', 'tblTempVendorCDR_20' ) start [2025-04-23 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969867', 'tblTempVendorCDR_20' ) end [2025-04-23 04:36:17] Production.INFO: ProcessCDR(1,14969867,1,1,2) [2025-04-23 04:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969867', 'tblTempUsageDetail_20' ) start [2025-04-23 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969867', 'tblTempUsageDetail_20' ) end [2025-04-23 04:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 04:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 04:36:21] Production.INFO: ==11379== Releasing lock... [2025-04-23 04:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 04:36:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-23 04:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 01:37:06 [end_date_ymd] => 2025-04-23 04:37:06 [RateCDR] => 1 ) [2025-04-23 04:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 01:37:06' and `end` < '2025-04-23 04:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 04:37:18] Production.INFO: count ==308 [2025-04-23 04:37:18] Production.ERROR: pbx CDR StartTime 2025-04-23 01:37:06 - End Time 2025-04-23 04:37:06 [2025-04-23 04:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969872', 'tblTempUsageDetail_20' ) start [2025-04-23 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969872', 'tblTempUsageDetail_20' ) end [2025-04-23 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969872', 'tblTempVendorCDR_20' ) start [2025-04-23 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969872', 'tblTempVendorCDR_20' ) end [2025-04-23 04:37:18] Production.INFO: ProcessCDR(1,14969872,1,1,2) [2025-04-23 04:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969872', 'tblTempUsageDetail_20' ) start [2025-04-23 04:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969872', 'tblTempUsageDetail_20' ) end [2025-04-23 04:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 04:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 04:37:22] Production.INFO: ==11452== Releasing lock... [2025-04-23 04:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 04:37:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-23 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 01:38:05 [end_date_ymd] => 2025-04-23 04:38:05 [RateCDR] => 1 ) [2025-04-23 04:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 01:38:05' and `end` < '2025-04-23 04:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 04:38:17] Production.INFO: count ==308 [2025-04-23 04:38:18] Production.ERROR: pbx CDR StartTime 2025-04-23 01:38:05 - End Time 2025-04-23 04:38:05 [2025-04-23 04:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969877', 'tblTempUsageDetail_20' ) start [2025-04-23 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969877', 'tblTempUsageDetail_20' ) end [2025-04-23 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969877', 'tblTempVendorCDR_20' ) start [2025-04-23 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969877', 'tblTempVendorCDR_20' ) end [2025-04-23 04:38:18] Production.INFO: ProcessCDR(1,14969877,1,1,2) [2025-04-23 04:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969877', 'tblTempUsageDetail_20' ) start [2025-04-23 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969877', 'tblTempUsageDetail_20' ) end [2025-04-23 04:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 04:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 04:38:21] Production.INFO: ==11531== Releasing lock... [2025-04-23 04:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 04:38:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-23 04:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 01:39:06 [end_date_ymd] => 2025-04-23 04:39:06 [RateCDR] => 1 ) [2025-04-23 04:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 01:39:06' and `end` < '2025-04-23 04:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 04:39:18] Production.INFO: count ==308 [2025-04-23 04:39:18] Production.ERROR: pbx CDR StartTime 2025-04-23 01:39:06 - End Time 2025-04-23 04:39:06 [2025-04-23 04:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969882', 'tblTempUsageDetail_20' ) start [2025-04-23 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969882', 'tblTempUsageDetail_20' ) end [2025-04-23 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969882', 'tblTempVendorCDR_20' ) start [2025-04-23 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969882', 'tblTempVendorCDR_20' ) end [2025-04-23 04:39:18] Production.INFO: ProcessCDR(1,14969882,1,1,2) [2025-04-23 04:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969882', 'tblTempUsageDetail_20' ) start [2025-04-23 04:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969882', 'tblTempUsageDetail_20' ) end [2025-04-23 04:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 04:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 04:39:22] Production.INFO: ==11605== Releasing lock... [2025-04-23 04:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 04:39:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-23 04:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 01:40:05 [end_date_ymd] => 2025-04-23 04:40:05 [RateCDR] => 1 ) [2025-04-23 04:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 01:40:05' and `end` < '2025-04-23 04:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 04:40:18] Production.INFO: count ==308 [2025-04-23 04:40:18] Production.ERROR: pbx CDR StartTime 2025-04-23 01:40:05 - End Time 2025-04-23 04:40:05 [2025-04-23 04:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969888', 'tblTempUsageDetail_20' ) start [2025-04-23 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969888', 'tblTempUsageDetail_20' ) end [2025-04-23 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969888', 'tblTempVendorCDR_20' ) start [2025-04-23 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969888', 'tblTempVendorCDR_20' ) end [2025-04-23 04:40:18] Production.INFO: ProcessCDR(1,14969888,1,1,2) [2025-04-23 04:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969888', 'tblTempUsageDetail_20' ) start [2025-04-23 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969888', 'tblTempUsageDetail_20' ) end [2025-04-23 04:40:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 04:40:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 04:40:21] Production.INFO: ==11720== Releasing lock... [2025-04-23 04:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 04:40:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-23 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 01:41:05 [end_date_ymd] => 2025-04-23 04:41:05 [RateCDR] => 1 ) [2025-04-23 04:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 01:41:05' and `end` < '2025-04-23 04:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 04:41:17] Production.INFO: count ==306 [2025-04-23 04:41:18] Production.ERROR: pbx CDR StartTime 2025-04-23 01:41:05 - End Time 2025-04-23 04:41:05 [2025-04-23 04:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969893', 'tblTempUsageDetail_20' ) start [2025-04-23 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969893', 'tblTempUsageDetail_20' ) end [2025-04-23 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969893', 'tblTempVendorCDR_20' ) start [2025-04-23 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969893', 'tblTempVendorCDR_20' ) end [2025-04-23 04:41:18] Production.INFO: ProcessCDR(1,14969893,1,1,2) [2025-04-23 04:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969893', 'tblTempUsageDetail_20' ) start [2025-04-23 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969893', 'tblTempUsageDetail_20' ) end [2025-04-23 04:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 04:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 04:41:21] Production.INFO: ==11792== Releasing lock... [2025-04-23 04:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 04:41:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-23 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 01:42:05 [end_date_ymd] => 2025-04-23 04:42:05 [RateCDR] => 1 ) [2025-04-23 04:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 01:42:05' and `end` < '2025-04-23 04:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 04:42:18] Production.INFO: count ==304 [2025-04-23 04:42:18] Production.ERROR: pbx CDR StartTime 2025-04-23 01:42:05 - End Time 2025-04-23 04:42:05 [2025-04-23 04:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969898', 'tblTempUsageDetail_20' ) start [2025-04-23 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969898', 'tblTempUsageDetail_20' ) end [2025-04-23 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969898', 'tblTempVendorCDR_20' ) start [2025-04-23 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969898', 'tblTempVendorCDR_20' ) end [2025-04-23 04:42:18] Production.INFO: ProcessCDR(1,14969898,1,1,2) [2025-04-23 04:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969898', 'tblTempUsageDetail_20' ) start [2025-04-23 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969898', 'tblTempUsageDetail_20' ) end [2025-04-23 04:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 04:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 04:42:21] Production.INFO: ==11863== Releasing lock... [2025-04-23 04:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 04:42:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-23 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 01:43:05 [end_date_ymd] => 2025-04-23 04:43:05 [RateCDR] => 1 ) [2025-04-23 04:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 01:43:05' and `end` < '2025-04-23 04:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 04:43:18] Production.INFO: count ==304 [2025-04-23 04:43:18] Production.ERROR: pbx CDR StartTime 2025-04-23 01:43:05 - End Time 2025-04-23 04:43:05 [2025-04-23 04:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969903', 'tblTempUsageDetail_20' ) start [2025-04-23 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969903', 'tblTempUsageDetail_20' ) end [2025-04-23 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969903', 'tblTempVendorCDR_20' ) start [2025-04-23 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969903', 'tblTempVendorCDR_20' ) end [2025-04-23 04:43:18] Production.INFO: ProcessCDR(1,14969903,1,1,2) [2025-04-23 04:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969903', 'tblTempUsageDetail_20' ) start [2025-04-23 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969903', 'tblTempUsageDetail_20' ) end [2025-04-23 04:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 04:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 04:43:22] Production.INFO: ==11934== Releasing lock... [2025-04-23 04:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 04:43:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-23 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 01:44:05 [end_date_ymd] => 2025-04-23 04:44:05 [RateCDR] => 1 ) [2025-04-23 04:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 01:44:05' and `end` < '2025-04-23 04:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 04:44:18] Production.INFO: count ==304 [2025-04-23 04:44:18] Production.ERROR: pbx CDR StartTime 2025-04-23 01:44:05 - End Time 2025-04-23 04:44:05 [2025-04-23 04:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969908', 'tblTempUsageDetail_20' ) start [2025-04-23 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969908', 'tblTempUsageDetail_20' ) end [2025-04-23 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969908', 'tblTempVendorCDR_20' ) start [2025-04-23 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969908', 'tblTempVendorCDR_20' ) end [2025-04-23 04:44:18] Production.INFO: ProcessCDR(1,14969908,1,1,2) [2025-04-23 04:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969908', 'tblTempUsageDetail_20' ) start [2025-04-23 04:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969908', 'tblTempUsageDetail_20' ) end [2025-04-23 04:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 04:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 04:44:22] Production.INFO: ==12007== Releasing lock... [2025-04-23 04:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 04:44:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-23 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 01:45:05 [end_date_ymd] => 2025-04-23 04:45:05 [RateCDR] => 1 ) [2025-04-23 04:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 01:45:05' and `end` < '2025-04-23 04:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 04:45:18] Production.INFO: count ==305 [2025-04-23 04:45:18] Production.ERROR: pbx CDR StartTime 2025-04-23 01:45:05 - End Time 2025-04-23 04:45:05 [2025-04-23 04:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969913', 'tblTempUsageDetail_20' ) start [2025-04-23 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969913', 'tblTempUsageDetail_20' ) end [2025-04-23 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969913', 'tblTempVendorCDR_20' ) start [2025-04-23 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969913', 'tblTempVendorCDR_20' ) end [2025-04-23 04:45:18] Production.INFO: ProcessCDR(1,14969913,1,1,2) [2025-04-23 04:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969913', 'tblTempUsageDetail_20' ) start [2025-04-23 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969913', 'tblTempUsageDetail_20' ) end [2025-04-23 04:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 04:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 04:45:21] Production.INFO: ==12077== Releasing lock... [2025-04-23 04:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 04:45:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-23 04:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 01:46:06 [end_date_ymd] => 2025-04-23 04:46:06 [RateCDR] => 1 ) [2025-04-23 04:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 01:46:06' and `end` < '2025-04-23 04:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 04:46:19] Production.INFO: count ==305 [2025-04-23 04:46:19] Production.ERROR: pbx CDR StartTime 2025-04-23 01:46:06 - End Time 2025-04-23 04:46:06 [2025-04-23 04:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 04:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969918', 'tblTempUsageDetail_20' ) start [2025-04-23 04:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969918', 'tblTempUsageDetail_20' ) end [2025-04-23 04:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969918', 'tblTempVendorCDR_20' ) start [2025-04-23 04:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969918', 'tblTempVendorCDR_20' ) end [2025-04-23 04:46:19] Production.INFO: ProcessCDR(1,14969918,1,1,2) [2025-04-23 04:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969918', 'tblTempUsageDetail_20' ) start [2025-04-23 04:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969918', 'tblTempUsageDetail_20' ) end [2025-04-23 04:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 04:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 04:46:22] Production.INFO: ==12153== Releasing lock... [2025-04-23 04:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 04:46:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-23 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 01:47:05 [end_date_ymd] => 2025-04-23 04:47:05 [RateCDR] => 1 ) [2025-04-23 04:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 01:47:05' and `end` < '2025-04-23 04:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 04:47:18] Production.INFO: count ==305 [2025-04-23 04:47:18] Production.ERROR: pbx CDR StartTime 2025-04-23 01:47:05 - End Time 2025-04-23 04:47:05 [2025-04-23 04:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969923', 'tblTempUsageDetail_20' ) start [2025-04-23 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969923', 'tblTempUsageDetail_20' ) end [2025-04-23 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969923', 'tblTempVendorCDR_20' ) start [2025-04-23 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969923', 'tblTempVendorCDR_20' ) end [2025-04-23 04:47:18] Production.INFO: ProcessCDR(1,14969923,1,1,2) [2025-04-23 04:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969923', 'tblTempUsageDetail_20' ) start [2025-04-23 04:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969923', 'tblTempUsageDetail_20' ) end [2025-04-23 04:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 04:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 04:47:21] Production.INFO: ==12224== Releasing lock... [2025-04-23 04:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 04:47:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-23 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 01:48:05 [end_date_ymd] => 2025-04-23 04:48:05 [RateCDR] => 1 ) [2025-04-23 04:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 01:48:05' and `end` < '2025-04-23 04:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 04:48:19] Production.INFO: count ==305 [2025-04-23 04:48:19] Production.ERROR: pbx CDR StartTime 2025-04-23 01:48:05 - End Time 2025-04-23 04:48:05 [2025-04-23 04:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969928', 'tblTempUsageDetail_20' ) start [2025-04-23 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969928', 'tblTempUsageDetail_20' ) end [2025-04-23 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969928', 'tblTempVendorCDR_20' ) start [2025-04-23 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969928', 'tblTempVendorCDR_20' ) end [2025-04-23 04:48:19] Production.INFO: ProcessCDR(1,14969928,1,1,2) [2025-04-23 04:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969928', 'tblTempUsageDetail_20' ) start [2025-04-23 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969928', 'tblTempUsageDetail_20' ) end [2025-04-23 04:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 04:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 04:48:22] Production.INFO: ==12296== Releasing lock... [2025-04-23 04:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 04:48:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-23 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 01:49:05 [end_date_ymd] => 2025-04-23 04:49:05 [RateCDR] => 1 ) [2025-04-23 04:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 01:49:05' and `end` < '2025-04-23 04:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 04:49:20] Production.INFO: count ==305 [2025-04-23 04:49:20] Production.ERROR: pbx CDR StartTime 2025-04-23 01:49:05 - End Time 2025-04-23 04:49:05 [2025-04-23 04:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969933', 'tblTempUsageDetail_20' ) start [2025-04-23 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969933', 'tblTempUsageDetail_20' ) end [2025-04-23 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969933', 'tblTempVendorCDR_20' ) start [2025-04-23 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969933', 'tblTempVendorCDR_20' ) end [2025-04-23 04:49:20] Production.INFO: ProcessCDR(1,14969933,1,1,2) [2025-04-23 04:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969933', 'tblTempUsageDetail_20' ) start [2025-04-23 04:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969933', 'tblTempUsageDetail_20' ) end [2025-04-23 04:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 04:49:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 04:49:23] Production.INFO: ==12373== Releasing lock... [2025-04-23 04:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 04:49:23] Production.INFO: 30.75 MB #Memory Used# [2025-04-23 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 01:50:06 [end_date_ymd] => 2025-04-23 04:50:06 [RateCDR] => 1 ) [2025-04-23 04:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 01:50:06' and `end` < '2025-04-23 04:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 04:50:19] Production.INFO: count ==295 [2025-04-23 04:50:19] Production.ERROR: pbx CDR StartTime 2025-04-23 01:50:06 - End Time 2025-04-23 04:50:06 [2025-04-23 04:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969938', 'tblTempUsageDetail_20' ) start [2025-04-23 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969938', 'tblTempUsageDetail_20' ) end [2025-04-23 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969938', 'tblTempVendorCDR_20' ) start [2025-04-23 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969938', 'tblTempVendorCDR_20' ) end [2025-04-23 04:50:19] Production.INFO: ProcessCDR(1,14969938,1,1,2) [2025-04-23 04:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969938', 'tblTempUsageDetail_20' ) start [2025-04-23 04:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969938', 'tblTempUsageDetail_20' ) end [2025-04-23 04:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 04:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 04:50:22] Production.INFO: ==12448== Releasing lock... [2025-04-23 04:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 04:50:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-23 04:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 01:51:06 [end_date_ymd] => 2025-04-23 04:51:06 [RateCDR] => 1 ) [2025-04-23 04:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 01:51:06' and `end` < '2025-04-23 04:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 04:51:19] Production.INFO: count ==290 [2025-04-23 04:51:19] Production.ERROR: pbx CDR StartTime 2025-04-23 01:51:06 - End Time 2025-04-23 04:51:06 [2025-04-23 04:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969944', 'tblTempUsageDetail_20' ) start [2025-04-23 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969944', 'tblTempUsageDetail_20' ) end [2025-04-23 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969944', 'tblTempVendorCDR_20' ) start [2025-04-23 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969944', 'tblTempVendorCDR_20' ) end [2025-04-23 04:51:19] Production.INFO: ProcessCDR(1,14969944,1,1,2) [2025-04-23 04:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969944', 'tblTempUsageDetail_20' ) start [2025-04-23 04:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969944', 'tblTempUsageDetail_20' ) end [2025-04-23 04:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 04:51:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 04:51:23] Production.INFO: ==12522== Releasing lock... [2025-04-23 04:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 04:51:23] Production.INFO: 30.75 MB #Memory Used# [2025-04-23 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 01:52:05 [end_date_ymd] => 2025-04-23 04:52:05 [RateCDR] => 1 ) [2025-04-23 04:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 01:52:05' and `end` < '2025-04-23 04:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 04:52:18] Production.INFO: count ==288 [2025-04-23 04:52:18] Production.ERROR: pbx CDR StartTime 2025-04-23 01:52:05 - End Time 2025-04-23 04:52:05 [2025-04-23 04:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969949', 'tblTempUsageDetail_20' ) start [2025-04-23 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969949', 'tblTempUsageDetail_20' ) end [2025-04-23 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969949', 'tblTempVendorCDR_20' ) start [2025-04-23 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969949', 'tblTempVendorCDR_20' ) end [2025-04-23 04:52:18] Production.INFO: ProcessCDR(1,14969949,1,1,2) [2025-04-23 04:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969949', 'tblTempUsageDetail_20' ) start [2025-04-23 04:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969949', 'tblTempUsageDetail_20' ) end [2025-04-23 04:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 04:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 04:52:21] Production.INFO: ==12595== Releasing lock... [2025-04-23 04:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 04:52:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-23 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 01:53:05 [end_date_ymd] => 2025-04-23 04:53:05 [RateCDR] => 1 ) [2025-04-23 04:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 01:53:05' and `end` < '2025-04-23 04:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 04:53:19] Production.INFO: count ==288 [2025-04-23 04:53:19] Production.ERROR: pbx CDR StartTime 2025-04-23 01:53:05 - End Time 2025-04-23 04:53:05 [2025-04-23 04:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969954', 'tblTempUsageDetail_20' ) start [2025-04-23 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969954', 'tblTempUsageDetail_20' ) end [2025-04-23 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969954', 'tblTempVendorCDR_20' ) start [2025-04-23 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969954', 'tblTempVendorCDR_20' ) end [2025-04-23 04:53:19] Production.INFO: ProcessCDR(1,14969954,1,1,2) [2025-04-23 04:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969954', 'tblTempUsageDetail_20' ) start [2025-04-23 04:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969954', 'tblTempUsageDetail_20' ) end [2025-04-23 04:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 04:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 04:53:22] Production.INFO: ==12673== Releasing lock... [2025-04-23 04:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 04:53:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-23 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 01:54:05 [end_date_ymd] => 2025-04-23 04:54:05 [RateCDR] => 1 ) [2025-04-23 04:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 01:54:05' and `end` < '2025-04-23 04:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 04:54:18] Production.INFO: count ==286 [2025-04-23 04:54:18] Production.ERROR: pbx CDR StartTime 2025-04-23 01:54:05 - End Time 2025-04-23 04:54:05 [2025-04-23 04:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969959', 'tblTempUsageDetail_20' ) start [2025-04-23 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969959', 'tblTempUsageDetail_20' ) end [2025-04-23 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969959', 'tblTempVendorCDR_20' ) start [2025-04-23 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969959', 'tblTempVendorCDR_20' ) end [2025-04-23 04:54:18] Production.INFO: ProcessCDR(1,14969959,1,1,2) [2025-04-23 04:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969959', 'tblTempUsageDetail_20' ) start [2025-04-23 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969959', 'tblTempUsageDetail_20' ) end [2025-04-23 04:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 04:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 04:54:22] Production.INFO: ==12744== Releasing lock... [2025-04-23 04:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 04:54:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-23 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 01:55:05 [end_date_ymd] => 2025-04-23 04:55:05 [RateCDR] => 1 ) [2025-04-23 04:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 01:55:05' and `end` < '2025-04-23 04:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 04:55:18] Production.INFO: count ==285 [2025-04-23 04:55:18] Production.ERROR: pbx CDR StartTime 2025-04-23 01:55:05 - End Time 2025-04-23 04:55:05 [2025-04-23 04:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969964', 'tblTempUsageDetail_20' ) start [2025-04-23 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969964', 'tblTempUsageDetail_20' ) end [2025-04-23 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969964', 'tblTempVendorCDR_20' ) start [2025-04-23 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969964', 'tblTempVendorCDR_20' ) end [2025-04-23 04:55:18] Production.INFO: ProcessCDR(1,14969964,1,1,2) [2025-04-23 04:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969964', 'tblTempUsageDetail_20' ) start [2025-04-23 04:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969964', 'tblTempUsageDetail_20' ) end [2025-04-23 04:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 04:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 04:55:21] Production.INFO: ==12854== Releasing lock... [2025-04-23 04:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 04:55:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-23 04:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 01:56:04 [end_date_ymd] => 2025-04-23 04:56:04 [RateCDR] => 1 ) [2025-04-23 04:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 01:56:04' and `end` < '2025-04-23 04:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 04:56:17] Production.INFO: count ==285 [2025-04-23 04:56:17] Production.ERROR: pbx CDR StartTime 2025-04-23 01:56:04 - End Time 2025-04-23 04:56:04 [2025-04-23 04:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969969', 'tblTempUsageDetail_20' ) start [2025-04-23 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969969', 'tblTempUsageDetail_20' ) end [2025-04-23 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969969', 'tblTempVendorCDR_20' ) start [2025-04-23 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969969', 'tblTempVendorCDR_20' ) end [2025-04-23 04:56:17] Production.INFO: ProcessCDR(1,14969969,1,1,2) [2025-04-23 04:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969969', 'tblTempUsageDetail_20' ) start [2025-04-23 04:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969969', 'tblTempUsageDetail_20' ) end [2025-04-23 04:56:20] Production.ERROR: pbx prc_insertCDR start [2025-04-23 04:56:20] Production.ERROR: pbx prc_insertCDR end [2025-04-23 04:56:20] Production.INFO: ==12923== Releasing lock... [2025-04-23 04:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 04:56:20] Production.INFO: 30.75 MB #Memory Used# [2025-04-23 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 01:57:05 [end_date_ymd] => 2025-04-23 04:57:05 [RateCDR] => 1 ) [2025-04-23 04:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 01:57:05' and `end` < '2025-04-23 04:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 04:57:19] Production.INFO: count ==285 [2025-04-23 04:57:20] Production.ERROR: pbx CDR StartTime 2025-04-23 01:57:05 - End Time 2025-04-23 04:57:05 [2025-04-23 04:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969974', 'tblTempUsageDetail_20' ) start [2025-04-23 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969974', 'tblTempUsageDetail_20' ) end [2025-04-23 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969974', 'tblTempVendorCDR_20' ) start [2025-04-23 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969974', 'tblTempVendorCDR_20' ) end [2025-04-23 04:57:20] Production.INFO: ProcessCDR(1,14969974,1,1,2) [2025-04-23 04:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969974', 'tblTempUsageDetail_20' ) start [2025-04-23 04:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969974', 'tblTempUsageDetail_20' ) end [2025-04-23 04:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 04:57:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 04:57:23] Production.INFO: ==12995== Releasing lock... [2025-04-23 04:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 04:57:23] Production.INFO: 30.75 MB #Memory Used# [2025-04-23 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 01:58:05 [end_date_ymd] => 2025-04-23 04:58:05 [RateCDR] => 1 ) [2025-04-23 04:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 01:58:05' and `end` < '2025-04-23 04:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 04:58:19] Production.INFO: count ==285 [2025-04-23 04:58:19] Production.ERROR: pbx CDR StartTime 2025-04-23 01:58:05 - End Time 2025-04-23 04:58:05 [2025-04-23 04:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969979', 'tblTempUsageDetail_20' ) start [2025-04-23 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969979', 'tblTempUsageDetail_20' ) end [2025-04-23 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969979', 'tblTempVendorCDR_20' ) start [2025-04-23 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969979', 'tblTempVendorCDR_20' ) end [2025-04-23 04:58:19] Production.INFO: ProcessCDR(1,14969979,1,1,2) [2025-04-23 04:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969979', 'tblTempUsageDetail_20' ) start [2025-04-23 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969979', 'tblTempUsageDetail_20' ) end [2025-04-23 04:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 04:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 04:58:22] Production.INFO: ==13072== Releasing lock... [2025-04-23 04:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 04:58:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-23 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 01:59:05 [end_date_ymd] => 2025-04-23 04:59:05 [RateCDR] => 1 ) [2025-04-23 04:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 01:59:05' and `end` < '2025-04-23 04:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 04:59:18] Production.INFO: count ==285 [2025-04-23 04:59:18] Production.ERROR: pbx CDR StartTime 2025-04-23 01:59:05 - End Time 2025-04-23 04:59:05 [2025-04-23 04:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969984', 'tblTempUsageDetail_20' ) start [2025-04-23 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969984', 'tblTempUsageDetail_20' ) end [2025-04-23 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969984', 'tblTempVendorCDR_20' ) start [2025-04-23 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969984', 'tblTempVendorCDR_20' ) end [2025-04-23 04:59:18] Production.INFO: ProcessCDR(1,14969984,1,1,2) [2025-04-23 04:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 04:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969984', 'tblTempUsageDetail_20' ) start [2025-04-23 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969984', 'tblTempUsageDetail_20' ) end [2025-04-23 04:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 04:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 04:59:21] Production.INFO: ==13143== Releasing lock... [2025-04-23 04:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 04:59:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-23 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 02:00:06 [end_date_ymd] => 2025-04-23 05:00:06 [RateCDR] => 1 ) [2025-04-23 05:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 02:00:06' and `end` < '2025-04-23 05:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 05:00:19] Production.INFO: count ==273 [2025-04-23 05:00:19] Production.ERROR: pbx CDR StartTime 2025-04-23 02:00:06 - End Time 2025-04-23 05:00:06 [2025-04-23 05:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969990', 'tblTempUsageDetail_20' ) start [2025-04-23 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969990', 'tblTempUsageDetail_20' ) end [2025-04-23 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969990', 'tblTempVendorCDR_20' ) start [2025-04-23 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969990', 'tblTempVendorCDR_20' ) end [2025-04-23 05:00:19] Production.INFO: ProcessCDR(1,14969990,1,1,2) [2025-04-23 05:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969990', 'tblTempUsageDetail_20' ) start [2025-04-23 05:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969990', 'tblTempUsageDetail_20' ) end [2025-04-23 05:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 05:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 05:00:22] Production.INFO: ==13218== Releasing lock... [2025-04-23 05:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 05:00:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-23 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 02:01:05 [end_date_ymd] => 2025-04-23 05:01:05 [RateCDR] => 1 ) [2025-04-23 05:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 02:01:05' and `end` < '2025-04-23 05:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 05:01:18] Production.INFO: count ==264 [2025-04-23 05:01:18] Production.ERROR: pbx CDR StartTime 2025-04-23 02:01:05 - End Time 2025-04-23 05:01:05 [2025-04-23 05:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969995', 'tblTempUsageDetail_20' ) start [2025-04-23 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14969995', 'tblTempUsageDetail_20' ) end [2025-04-23 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969995', 'tblTempVendorCDR_20' ) start [2025-04-23 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14969995', 'tblTempVendorCDR_20' ) end [2025-04-23 05:01:18] Production.INFO: ProcessCDR(1,14969995,1,1,2) [2025-04-23 05:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14969995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14969995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14969995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14969995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969995', 'tblTempUsageDetail_20' ) start [2025-04-23 05:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14969995', 'tblTempUsageDetail_20' ) end [2025-04-23 05:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 05:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 05:01:21] Production.INFO: ==13302== Releasing lock... [2025-04-23 05:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 05:01:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-23 05:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 02:02:05 [end_date_ymd] => 2025-04-23 05:02:05 [RateCDR] => 1 ) [2025-04-23 05:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 02:02:05' and `end` < '2025-04-23 05:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 05:02:18] Production.INFO: count ==264 [2025-04-23 05:02:18] Production.ERROR: pbx CDR StartTime 2025-04-23 02:02:05 - End Time 2025-04-23 05:02:05 [2025-04-23 05:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970000', 'tblTempUsageDetail_20' ) start [2025-04-23 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970000', 'tblTempUsageDetail_20' ) end [2025-04-23 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970000', 'tblTempVendorCDR_20' ) start [2025-04-23 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970000', 'tblTempVendorCDR_20' ) end [2025-04-23 05:02:18] Production.INFO: ProcessCDR(1,14970000,1,1,2) [2025-04-23 05:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970000', 'tblTempUsageDetail_20' ) start [2025-04-23 05:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970000', 'tblTempUsageDetail_20' ) end [2025-04-23 05:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 05:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 05:02:21] Production.INFO: ==13373== Releasing lock... [2025-04-23 05:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 05:02:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-23 05:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 02:03:04 [end_date_ymd] => 2025-04-23 05:03:04 [RateCDR] => 1 ) [2025-04-23 05:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 02:03:04' and `end` < '2025-04-23 05:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 05:03:17] Production.INFO: count ==262 [2025-04-23 05:03:17] Production.ERROR: pbx CDR StartTime 2025-04-23 02:03:04 - End Time 2025-04-23 05:03:04 [2025-04-23 05:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970005', 'tblTempUsageDetail_20' ) start [2025-04-23 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970005', 'tblTempUsageDetail_20' ) end [2025-04-23 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970005', 'tblTempVendorCDR_20' ) start [2025-04-23 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970005', 'tblTempVendorCDR_20' ) end [2025-04-23 05:03:17] Production.INFO: ProcessCDR(1,14970005,1,1,2) [2025-04-23 05:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970005', 'tblTempUsageDetail_20' ) start [2025-04-23 05:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970005', 'tblTempUsageDetail_20' ) end [2025-04-23 05:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 05:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 05:03:21] Production.INFO: ==13447== Releasing lock... [2025-04-23 05:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 05:03:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-23 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 02:04:05 [end_date_ymd] => 2025-04-23 05:04:05 [RateCDR] => 1 ) [2025-04-23 05:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 02:04:05' and `end` < '2025-04-23 05:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 05:04:18] Production.INFO: count ==261 [2025-04-23 05:04:18] Production.ERROR: pbx CDR StartTime 2025-04-23 02:04:05 - End Time 2025-04-23 05:04:05 [2025-04-23 05:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970010', 'tblTempUsageDetail_20' ) start [2025-04-23 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970010', 'tblTempUsageDetail_20' ) end [2025-04-23 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970010', 'tblTempVendorCDR_20' ) start [2025-04-23 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970010', 'tblTempVendorCDR_20' ) end [2025-04-23 05:04:18] Production.INFO: ProcessCDR(1,14970010,1,1,2) [2025-04-23 05:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970010', 'tblTempUsageDetail_20' ) start [2025-04-23 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970010', 'tblTempUsageDetail_20' ) end [2025-04-23 05:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 05:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 05:04:21] Production.INFO: ==13522== Releasing lock... [2025-04-23 05:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 05:04:21] Production.INFO: 31 MB #Memory Used# [2025-04-23 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 02:05:05 [end_date_ymd] => 2025-04-23 05:05:05 [RateCDR] => 1 ) [2025-04-23 05:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 02:05:05' and `end` < '2025-04-23 05:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 05:05:18] Production.INFO: count ==257 [2025-04-23 05:05:18] Production.ERROR: pbx CDR StartTime 2025-04-23 02:05:05 - End Time 2025-04-23 05:05:05 [2025-04-23 05:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970015', 'tblTempUsageDetail_20' ) start [2025-04-23 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970015', 'tblTempUsageDetail_20' ) end [2025-04-23 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970015', 'tblTempVendorCDR_20' ) start [2025-04-23 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970015', 'tblTempVendorCDR_20' ) end [2025-04-23 05:05:18] Production.INFO: ProcessCDR(1,14970015,1,1,2) [2025-04-23 05:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970015', 'tblTempUsageDetail_20' ) start [2025-04-23 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970015', 'tblTempUsageDetail_20' ) end [2025-04-23 05:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 05:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 05:05:21] Production.INFO: ==13594== Releasing lock... [2025-04-23 05:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 05:05:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-23 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 02:06:05 [end_date_ymd] => 2025-04-23 05:06:05 [RateCDR] => 1 ) [2025-04-23 05:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 02:06:05' and `end` < '2025-04-23 05:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 05:06:18] Production.INFO: count ==256 [2025-04-23 05:06:18] Production.ERROR: pbx CDR StartTime 2025-04-23 02:06:05 - End Time 2025-04-23 05:06:05 [2025-04-23 05:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970020', 'tblTempUsageDetail_20' ) start [2025-04-23 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970020', 'tblTempUsageDetail_20' ) end [2025-04-23 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970020', 'tblTempVendorCDR_20' ) start [2025-04-23 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970020', 'tblTempVendorCDR_20' ) end [2025-04-23 05:06:18] Production.INFO: ProcessCDR(1,14970020,1,1,2) [2025-04-23 05:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970020', 'tblTempUsageDetail_20' ) start [2025-04-23 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970020', 'tblTempUsageDetail_20' ) end [2025-04-23 05:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 05:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 05:06:21] Production.INFO: ==13664== Releasing lock... [2025-04-23 05:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 05:06:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-23 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 02:07:05 [end_date_ymd] => 2025-04-23 05:07:05 [RateCDR] => 1 ) [2025-04-23 05:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 02:07:05' and `end` < '2025-04-23 05:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 05:07:18] Production.INFO: count ==256 [2025-04-23 05:07:18] Production.ERROR: pbx CDR StartTime 2025-04-23 02:07:05 - End Time 2025-04-23 05:07:05 [2025-04-23 05:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970025', 'tblTempUsageDetail_20' ) start [2025-04-23 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970025', 'tblTempUsageDetail_20' ) end [2025-04-23 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970025', 'tblTempVendorCDR_20' ) start [2025-04-23 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970025', 'tblTempVendorCDR_20' ) end [2025-04-23 05:07:18] Production.INFO: ProcessCDR(1,14970025,1,1,2) [2025-04-23 05:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970025', 'tblTempUsageDetail_20' ) start [2025-04-23 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970025', 'tblTempUsageDetail_20' ) end [2025-04-23 05:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 05:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 05:07:21] Production.INFO: ==13737== Releasing lock... [2025-04-23 05:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 05:07:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-23 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 02:08:05 [end_date_ymd] => 2025-04-23 05:08:05 [RateCDR] => 1 ) [2025-04-23 05:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 02:08:05' and `end` < '2025-04-23 05:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 05:08:18] Production.INFO: count ==254 [2025-04-23 05:08:18] Production.ERROR: pbx CDR StartTime 2025-04-23 02:08:05 - End Time 2025-04-23 05:08:05 [2025-04-23 05:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970030', 'tblTempUsageDetail_20' ) start [2025-04-23 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970030', 'tblTempUsageDetail_20' ) end [2025-04-23 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970030', 'tblTempVendorCDR_20' ) start [2025-04-23 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970030', 'tblTempVendorCDR_20' ) end [2025-04-23 05:08:18] Production.INFO: ProcessCDR(1,14970030,1,1,2) [2025-04-23 05:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970030', 'tblTempUsageDetail_20' ) start [2025-04-23 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970030', 'tblTempUsageDetail_20' ) end [2025-04-23 05:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 05:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 05:08:21] Production.INFO: ==13813== Releasing lock... [2025-04-23 05:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 05:08:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-23 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 02:09:05 [end_date_ymd] => 2025-04-23 05:09:05 [RateCDR] => 1 ) [2025-04-23 05:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 02:09:05' and `end` < '2025-04-23 05:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 05:09:18] Production.INFO: count ==253 [2025-04-23 05:09:18] Production.ERROR: pbx CDR StartTime 2025-04-23 02:09:05 - End Time 2025-04-23 05:09:05 [2025-04-23 05:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970035', 'tblTempUsageDetail_20' ) start [2025-04-23 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970035', 'tblTempUsageDetail_20' ) end [2025-04-23 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970035', 'tblTempVendorCDR_20' ) start [2025-04-23 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970035', 'tblTempVendorCDR_20' ) end [2025-04-23 05:09:18] Production.INFO: ProcessCDR(1,14970035,1,1,2) [2025-04-23 05:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970035', 'tblTempUsageDetail_20' ) start [2025-04-23 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970035', 'tblTempUsageDetail_20' ) end [2025-04-23 05:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 05:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 05:09:21] Production.INFO: ==13890== Releasing lock... [2025-04-23 05:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 05:09:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-23 05:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 02:10:06 [end_date_ymd] => 2025-04-23 05:10:06 [RateCDR] => 1 ) [2025-04-23 05:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 02:10:06' and `end` < '2025-04-23 05:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 05:10:18] Production.INFO: count ==211 [2025-04-23 05:10:18] Production.ERROR: pbx CDR StartTime 2025-04-23 02:10:06 - End Time 2025-04-23 05:10:06 [2025-04-23 05:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970041', 'tblTempUsageDetail_20' ) start [2025-04-23 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970041', 'tblTempUsageDetail_20' ) end [2025-04-23 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970041', 'tblTempVendorCDR_20' ) start [2025-04-23 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970041', 'tblTempVendorCDR_20' ) end [2025-04-23 05:10:18] Production.INFO: ProcessCDR(1,14970041,1,1,2) [2025-04-23 05:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970041', 'tblTempUsageDetail_20' ) start [2025-04-23 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970041', 'tblTempUsageDetail_20' ) end [2025-04-23 05:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 05:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 05:10:22] Production.INFO: ==13967== Releasing lock... [2025-04-23 05:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 05:10:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-23 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 02:11:05 [end_date_ymd] => 2025-04-23 05:11:05 [RateCDR] => 1 ) [2025-04-23 05:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 02:11:05' and `end` < '2025-04-23 05:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 05:11:18] Production.INFO: count ==170 [2025-04-23 05:11:18] Production.ERROR: pbx CDR StartTime 2025-04-23 02:11:05 - End Time 2025-04-23 05:11:05 [2025-04-23 05:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970046', 'tblTempUsageDetail_20' ) start [2025-04-23 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970046', 'tblTempUsageDetail_20' ) end [2025-04-23 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970046', 'tblTempVendorCDR_20' ) start [2025-04-23 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970046', 'tblTempVendorCDR_20' ) end [2025-04-23 05:11:18] Production.INFO: ProcessCDR(1,14970046,1,1,2) [2025-04-23 05:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970046', 'tblTempUsageDetail_20' ) start [2025-04-23 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970046', 'tblTempUsageDetail_20' ) end [2025-04-23 05:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 05:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 05:11:21] Production.INFO: ==14079== Releasing lock... [2025-04-23 05:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 05:11:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-23 05:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 02:12:06 [end_date_ymd] => 2025-04-23 05:12:06 [RateCDR] => 1 ) [2025-04-23 05:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 02:12:06' and `end` < '2025-04-23 05:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 05:12:18] Production.INFO: count ==128 [2025-04-23 05:12:18] Production.ERROR: pbx CDR StartTime 2025-04-23 02:12:06 - End Time 2025-04-23 05:12:06 [2025-04-23 05:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970051', 'tblTempUsageDetail_20' ) start [2025-04-23 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970051', 'tblTempUsageDetail_20' ) end [2025-04-23 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970051', 'tblTempVendorCDR_20' ) start [2025-04-23 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970051', 'tblTempVendorCDR_20' ) end [2025-04-23 05:12:18] Production.INFO: ProcessCDR(1,14970051,1,1,2) [2025-04-23 05:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970051', 'tblTempUsageDetail_20' ) start [2025-04-23 05:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970051', 'tblTempUsageDetail_20' ) end [2025-04-23 05:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 05:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 05:12:22] Production.INFO: ==14150== Releasing lock... [2025-04-23 05:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 05:12:22] Production.INFO: 29 MB #Memory Used# [2025-04-23 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 02:13:05 [end_date_ymd] => 2025-04-23 05:13:05 [RateCDR] => 1 ) [2025-04-23 05:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 02:13:05' and `end` < '2025-04-23 05:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 05:13:17] Production.INFO: count ==119 [2025-04-23 05:13:17] Production.ERROR: pbx CDR StartTime 2025-04-23 02:13:05 - End Time 2025-04-23 05:13:05 [2025-04-23 05:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970056', 'tblTempUsageDetail_20' ) start [2025-04-23 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970056', 'tblTempUsageDetail_20' ) end [2025-04-23 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970056', 'tblTempVendorCDR_20' ) start [2025-04-23 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970056', 'tblTempVendorCDR_20' ) end [2025-04-23 05:13:18] Production.INFO: ProcessCDR(1,14970056,1,1,2) [2025-04-23 05:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970056', 'tblTempUsageDetail_20' ) start [2025-04-23 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970056', 'tblTempUsageDetail_20' ) end [2025-04-23 05:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 05:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 05:13:21] Production.INFO: ==14223== Releasing lock... [2025-04-23 05:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 05:13:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-23 05:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 02:14:06 [end_date_ymd] => 2025-04-23 05:14:06 [RateCDR] => 1 ) [2025-04-23 05:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 02:14:06' and `end` < '2025-04-23 05:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 05:14:18] Production.INFO: count ==117 [2025-04-23 05:14:18] Production.ERROR: pbx CDR StartTime 2025-04-23 02:14:06 - End Time 2025-04-23 05:14:06 [2025-04-23 05:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970061', 'tblTempUsageDetail_20' ) start [2025-04-23 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970061', 'tblTempUsageDetail_20' ) end [2025-04-23 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970061', 'tblTempVendorCDR_20' ) start [2025-04-23 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970061', 'tblTempVendorCDR_20' ) end [2025-04-23 05:14:18] Production.INFO: ProcessCDR(1,14970061,1,1,2) [2025-04-23 05:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970061', 'tblTempUsageDetail_20' ) start [2025-04-23 05:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970061', 'tblTempUsageDetail_20' ) end [2025-04-23 05:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 05:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 05:14:22] Production.INFO: ==14294== Releasing lock... [2025-04-23 05:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 05:14:22] Production.INFO: 29 MB #Memory Used# [2025-04-23 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 02:15:05 [end_date_ymd] => 2025-04-23 05:15:05 [RateCDR] => 1 ) [2025-04-23 05:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 02:15:05' and `end` < '2025-04-23 05:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 05:15:17] Production.INFO: count ==117 [2025-04-23 05:15:17] Production.ERROR: pbx CDR StartTime 2025-04-23 02:15:05 - End Time 2025-04-23 05:15:05 [2025-04-23 05:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970066', 'tblTempUsageDetail_20' ) start [2025-04-23 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970066', 'tblTempUsageDetail_20' ) end [2025-04-23 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970066', 'tblTempVendorCDR_20' ) start [2025-04-23 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970066', 'tblTempVendorCDR_20' ) end [2025-04-23 05:15:17] Production.INFO: ProcessCDR(1,14970066,1,1,2) [2025-04-23 05:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970066', 'tblTempUsageDetail_20' ) start [2025-04-23 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970066', 'tblTempUsageDetail_20' ) end [2025-04-23 05:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 05:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 05:15:21] Production.INFO: ==14368== Releasing lock... [2025-04-23 05:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 05:15:21] Production.INFO: 29 MB #Memory Used# [2025-04-23 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 02:16:05 [end_date_ymd] => 2025-04-23 05:16:05 [RateCDR] => 1 ) [2025-04-23 05:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 02:16:05' and `end` < '2025-04-23 05:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 05:16:18] Production.INFO: count ==115 [2025-04-23 05:16:18] Production.ERROR: pbx CDR StartTime 2025-04-23 02:16:05 - End Time 2025-04-23 05:16:05 [2025-04-23 05:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970071', 'tblTempUsageDetail_20' ) start [2025-04-23 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970071', 'tblTempUsageDetail_20' ) end [2025-04-23 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970071', 'tblTempVendorCDR_20' ) start [2025-04-23 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970071', 'tblTempVendorCDR_20' ) end [2025-04-23 05:16:18] Production.INFO: ProcessCDR(1,14970071,1,1,2) [2025-04-23 05:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970071', 'tblTempUsageDetail_20' ) start [2025-04-23 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970071', 'tblTempUsageDetail_20' ) end [2025-04-23 05:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 05:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 05:16:21] Production.INFO: ==14443== Releasing lock... [2025-04-23 05:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 05:16:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-23 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 02:17:05 [end_date_ymd] => 2025-04-23 05:17:05 [RateCDR] => 1 ) [2025-04-23 05:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 02:17:05' and `end` < '2025-04-23 05:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 05:17:18] Production.INFO: count ==115 [2025-04-23 05:17:18] Production.ERROR: pbx CDR StartTime 2025-04-23 02:17:05 - End Time 2025-04-23 05:17:05 [2025-04-23 05:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970076', 'tblTempUsageDetail_20' ) start [2025-04-23 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970076', 'tblTempUsageDetail_20' ) end [2025-04-23 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970076', 'tblTempVendorCDR_20' ) start [2025-04-23 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970076', 'tblTempVendorCDR_20' ) end [2025-04-23 05:17:18] Production.INFO: ProcessCDR(1,14970076,1,1,2) [2025-04-23 05:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970076', 'tblTempUsageDetail_20' ) start [2025-04-23 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970076', 'tblTempUsageDetail_20' ) end [2025-04-23 05:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 05:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 05:17:21] Production.INFO: ==14518== Releasing lock... [2025-04-23 05:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 05:17:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-23 05:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 02:18:06 [end_date_ymd] => 2025-04-23 05:18:06 [RateCDR] => 1 ) [2025-04-23 05:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 02:18:06' and `end` < '2025-04-23 05:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 05:18:18] Production.INFO: count ==115 [2025-04-23 05:18:18] Production.ERROR: pbx CDR StartTime 2025-04-23 02:18:06 - End Time 2025-04-23 05:18:06 [2025-04-23 05:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970081', 'tblTempUsageDetail_20' ) start [2025-04-23 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970081', 'tblTempUsageDetail_20' ) end [2025-04-23 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970081', 'tblTempVendorCDR_20' ) start [2025-04-23 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970081', 'tblTempVendorCDR_20' ) end [2025-04-23 05:18:18] Production.INFO: ProcessCDR(1,14970081,1,1,2) [2025-04-23 05:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970081', 'tblTempUsageDetail_20' ) start [2025-04-23 05:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970081', 'tblTempUsageDetail_20' ) end [2025-04-23 05:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 05:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 05:18:22] Production.INFO: ==14600== Releasing lock... [2025-04-23 05:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 05:18:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-23 05:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 02:19:04 [end_date_ymd] => 2025-04-23 05:19:04 [RateCDR] => 1 ) [2025-04-23 05:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 02:19:04' and `end` < '2025-04-23 05:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 05:19:17] Production.INFO: count ==113 [2025-04-23 05:19:17] Production.ERROR: pbx CDR StartTime 2025-04-23 02:19:04 - End Time 2025-04-23 05:19:04 [2025-04-23 05:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970086', 'tblTempUsageDetail_20' ) start [2025-04-23 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970086', 'tblTempUsageDetail_20' ) end [2025-04-23 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970086', 'tblTempVendorCDR_20' ) start [2025-04-23 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970086', 'tblTempVendorCDR_20' ) end [2025-04-23 05:19:17] Production.INFO: ProcessCDR(1,14970086,1,1,2) [2025-04-23 05:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970086', 'tblTempUsageDetail_20' ) start [2025-04-23 05:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970086', 'tblTempUsageDetail_20' ) end [2025-04-23 05:19:20] Production.ERROR: pbx prc_insertCDR start [2025-04-23 05:19:20] Production.ERROR: pbx prc_insertCDR end [2025-04-23 05:19:20] Production.INFO: ==14673== Releasing lock... [2025-04-23 05:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 05:19:20] Production.INFO: 28.75 MB #Memory Used# [2025-04-23 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 02:20:06 [end_date_ymd] => 2025-04-23 05:20:06 [RateCDR] => 1 ) [2025-04-23 05:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 02:20:06' and `end` < '2025-04-23 05:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 05:20:19] Production.INFO: count ==105 [2025-04-23 05:20:19] Production.ERROR: pbx CDR StartTime 2025-04-23 02:20:06 - End Time 2025-04-23 05:20:06 [2025-04-23 05:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970092', 'tblTempUsageDetail_20' ) start [2025-04-23 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970092', 'tblTempUsageDetail_20' ) end [2025-04-23 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970092', 'tblTempVendorCDR_20' ) start [2025-04-23 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970092', 'tblTempVendorCDR_20' ) end [2025-04-23 05:20:19] Production.INFO: ProcessCDR(1,14970092,1,1,2) [2025-04-23 05:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970092', 'tblTempUsageDetail_20' ) start [2025-04-23 05:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970092', 'tblTempUsageDetail_20' ) end [2025-04-23 05:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 05:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 05:20:23] Production.INFO: ==14748== Releasing lock... [2025-04-23 05:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 05:20:23] Production.INFO: 28.75 MB #Memory Used# [2025-04-23 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 02:21:05 [end_date_ymd] => 2025-04-23 05:21:05 [RateCDR] => 1 ) [2025-04-23 05:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 02:21:05' and `end` < '2025-04-23 05:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 05:21:17] Production.INFO: count ==105 [2025-04-23 05:21:17] Production.ERROR: pbx CDR StartTime 2025-04-23 02:21:05 - End Time 2025-04-23 05:21:05 [2025-04-23 05:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970097', 'tblTempUsageDetail_20' ) start [2025-04-23 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970097', 'tblTempUsageDetail_20' ) end [2025-04-23 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970097', 'tblTempVendorCDR_20' ) start [2025-04-23 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970097', 'tblTempVendorCDR_20' ) end [2025-04-23 05:21:17] Production.INFO: ProcessCDR(1,14970097,1,1,2) [2025-04-23 05:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970097', 'tblTempUsageDetail_20' ) start [2025-04-23 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970097', 'tblTempUsageDetail_20' ) end [2025-04-23 05:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 05:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 05:21:21] Production.INFO: ==14822== Releasing lock... [2025-04-23 05:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 05:21:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-23 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 02:22:05 [end_date_ymd] => 2025-04-23 05:22:05 [RateCDR] => 1 ) [2025-04-23 05:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 02:22:05' and `end` < '2025-04-23 05:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 05:22:18] Production.INFO: count ==104 [2025-04-23 05:22:18] Production.ERROR: pbx CDR StartTime 2025-04-23 02:22:05 - End Time 2025-04-23 05:22:05 [2025-04-23 05:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970102', 'tblTempUsageDetail_20' ) start [2025-04-23 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970102', 'tblTempUsageDetail_20' ) end [2025-04-23 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970102', 'tblTempVendorCDR_20' ) start [2025-04-23 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970102', 'tblTempVendorCDR_20' ) end [2025-04-23 05:22:18] Production.INFO: ProcessCDR(1,14970102,1,1,2) [2025-04-23 05:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970102', 'tblTempUsageDetail_20' ) start [2025-04-23 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970102', 'tblTempUsageDetail_20' ) end [2025-04-23 05:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 05:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 05:22:21] Production.INFO: ==14895== Releasing lock... [2025-04-23 05:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 05:22:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-23 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 02:23:05 [end_date_ymd] => 2025-04-23 05:23:05 [RateCDR] => 1 ) [2025-04-23 05:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 02:23:05' and `end` < '2025-04-23 05:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 05:23:18] Production.INFO: count ==104 [2025-04-23 05:23:18] Production.ERROR: pbx CDR StartTime 2025-04-23 02:23:05 - End Time 2025-04-23 05:23:05 [2025-04-23 05:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970107', 'tblTempUsageDetail_20' ) start [2025-04-23 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970107', 'tblTempUsageDetail_20' ) end [2025-04-23 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970107', 'tblTempVendorCDR_20' ) start [2025-04-23 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970107', 'tblTempVendorCDR_20' ) end [2025-04-23 05:23:18] Production.INFO: ProcessCDR(1,14970107,1,1,2) [2025-04-23 05:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970107', 'tblTempUsageDetail_20' ) start [2025-04-23 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970107', 'tblTempUsageDetail_20' ) end [2025-04-23 05:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 05:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 05:23:21] Production.INFO: ==14965== Releasing lock... [2025-04-23 05:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 05:23:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-23 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 02:24:05 [end_date_ymd] => 2025-04-23 05:24:05 [RateCDR] => 1 ) [2025-04-23 05:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 02:24:05' and `end` < '2025-04-23 05:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 05:24:18] Production.INFO: count ==94 [2025-04-23 05:24:18] Production.ERROR: pbx CDR StartTime 2025-04-23 02:24:05 - End Time 2025-04-23 05:24:05 [2025-04-23 05:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970112', 'tblTempUsageDetail_20' ) start [2025-04-23 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970112', 'tblTempUsageDetail_20' ) end [2025-04-23 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970112', 'tblTempVendorCDR_20' ) start [2025-04-23 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970112', 'tblTempVendorCDR_20' ) end [2025-04-23 05:24:18] Production.INFO: ProcessCDR(1,14970112,1,1,2) [2025-04-23 05:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970112', 'tblTempUsageDetail_20' ) start [2025-04-23 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970112', 'tblTempUsageDetail_20' ) end [2025-04-23 05:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 05:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 05:24:21] Production.INFO: ==15040== Releasing lock... [2025-04-23 05:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 05:24:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-23 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 02:25:05 [end_date_ymd] => 2025-04-23 05:25:05 [RateCDR] => 1 ) [2025-04-23 05:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 02:25:05' and `end` < '2025-04-23 05:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 05:25:18] Production.INFO: count ==83 [2025-04-23 05:25:18] Production.ERROR: pbx CDR StartTime 2025-04-23 02:25:05 - End Time 2025-04-23 05:25:05 [2025-04-23 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970117', 'tblTempUsageDetail_20' ) start [2025-04-23 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970117', 'tblTempUsageDetail_20' ) end [2025-04-23 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970117', 'tblTempVendorCDR_20' ) start [2025-04-23 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970117', 'tblTempVendorCDR_20' ) end [2025-04-23 05:25:18] Production.INFO: ProcessCDR(1,14970117,1,1,2) [2025-04-23 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970117', 'tblTempUsageDetail_20' ) start [2025-04-23 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970117', 'tblTempUsageDetail_20' ) end [2025-04-23 05:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 05:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 05:25:21] Production.INFO: ==15118== Releasing lock... [2025-04-23 05:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 05:25:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-23 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 02:26:05 [end_date_ymd] => 2025-04-23 05:26:05 [RateCDR] => 1 ) [2025-04-23 05:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 02:26:05' and `end` < '2025-04-23 05:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 05:26:17] Production.INFO: count ==77 [2025-04-23 05:26:17] Production.ERROR: pbx CDR StartTime 2025-04-23 02:26:05 - End Time 2025-04-23 05:26:05 [2025-04-23 05:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970122', 'tblTempUsageDetail_20' ) start [2025-04-23 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970122', 'tblTempUsageDetail_20' ) end [2025-04-23 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970122', 'tblTempVendorCDR_20' ) start [2025-04-23 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970122', 'tblTempVendorCDR_20' ) end [2025-04-23 05:26:17] Production.INFO: ProcessCDR(1,14970122,1,1,2) [2025-04-23 05:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970122', 'tblTempUsageDetail_20' ) start [2025-04-23 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970122', 'tblTempUsageDetail_20' ) end [2025-04-23 05:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 05:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 05:26:21] Production.INFO: ==15227== Releasing lock... [2025-04-23 05:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 05:26:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-23 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 02:27:05 [end_date_ymd] => 2025-04-23 05:27:05 [RateCDR] => 1 ) [2025-04-23 05:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 02:27:05' and `end` < '2025-04-23 05:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 05:27:18] Production.INFO: count ==75 [2025-04-23 05:27:18] Production.ERROR: pbx CDR StartTime 2025-04-23 02:27:05 - End Time 2025-04-23 05:27:05 [2025-04-23 05:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970127', 'tblTempUsageDetail_20' ) start [2025-04-23 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970127', 'tblTempUsageDetail_20' ) end [2025-04-23 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970127', 'tblTempVendorCDR_20' ) start [2025-04-23 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970127', 'tblTempVendorCDR_20' ) end [2025-04-23 05:27:18] Production.INFO: ProcessCDR(1,14970127,1,1,2) [2025-04-23 05:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970127', 'tblTempUsageDetail_20' ) start [2025-04-23 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970127', 'tblTempUsageDetail_20' ) end [2025-04-23 05:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 05:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 05:27:21] Production.INFO: ==15305== Releasing lock... [2025-04-23 05:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 05:27:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-23 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 02:28:05 [end_date_ymd] => 2025-04-23 05:28:05 [RateCDR] => 1 ) [2025-04-23 05:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 02:28:05' and `end` < '2025-04-23 05:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 05:28:18] Production.INFO: count ==72 [2025-04-23 05:28:18] Production.ERROR: pbx CDR StartTime 2025-04-23 02:28:05 - End Time 2025-04-23 05:28:05 [2025-04-23 05:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970132', 'tblTempUsageDetail_20' ) start [2025-04-23 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970132', 'tblTempUsageDetail_20' ) end [2025-04-23 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970132', 'tblTempVendorCDR_20' ) start [2025-04-23 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970132', 'tblTempVendorCDR_20' ) end [2025-04-23 05:28:18] Production.INFO: ProcessCDR(1,14970132,1,1,2) [2025-04-23 05:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970132', 'tblTempUsageDetail_20' ) start [2025-04-23 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970132', 'tblTempUsageDetail_20' ) end [2025-04-23 05:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 05:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 05:28:21] Production.INFO: ==15389== Releasing lock... [2025-04-23 05:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 05:28:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-23 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 02:29:05 [end_date_ymd] => 2025-04-23 05:29:05 [RateCDR] => 1 ) [2025-04-23 05:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 02:29:05' and `end` < '2025-04-23 05:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 05:29:18] Production.INFO: count ==71 [2025-04-23 05:29:18] Production.ERROR: pbx CDR StartTime 2025-04-23 02:29:05 - End Time 2025-04-23 05:29:05 [2025-04-23 05:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970137', 'tblTempUsageDetail_20' ) start [2025-04-23 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970137', 'tblTempUsageDetail_20' ) end [2025-04-23 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970137', 'tblTempVendorCDR_20' ) start [2025-04-23 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970137', 'tblTempVendorCDR_20' ) end [2025-04-23 05:29:18] Production.INFO: ProcessCDR(1,14970137,1,1,2) [2025-04-23 05:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970137', 'tblTempUsageDetail_20' ) start [2025-04-23 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970137', 'tblTempUsageDetail_20' ) end [2025-04-23 05:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 05:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 05:29:21] Production.INFO: ==15461== Releasing lock... [2025-04-23 05:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 05:29:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-23 05:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 02:30:07 [end_date_ymd] => 2025-04-23 05:30:07 [RateCDR] => 1 ) [2025-04-23 05:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 02:30:07' and `end` < '2025-04-23 05:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 05:30:19] Production.INFO: count ==61 [2025-04-23 05:30:19] Production.ERROR: pbx CDR StartTime 2025-04-23 02:30:07 - End Time 2025-04-23 05:30:07 [2025-04-23 05:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970143', 'tblTempUsageDetail_20' ) start [2025-04-23 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970143', 'tblTempUsageDetail_20' ) end [2025-04-23 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970143', 'tblTempVendorCDR_20' ) start [2025-04-23 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970143', 'tblTempVendorCDR_20' ) end [2025-04-23 05:30:19] Production.INFO: ProcessCDR(1,14970143,1,1,2) [2025-04-23 05:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970143', 'tblTempUsageDetail_20' ) start [2025-04-23 05:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970143', 'tblTempUsageDetail_20' ) end [2025-04-23 05:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 05:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 05:30:23] Production.INFO: ==15541== Releasing lock... [2025-04-23 05:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 05:30:23] Production.INFO: 28.25 MB #Memory Used# [2025-04-23 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 02:31:05 [end_date_ymd] => 2025-04-23 05:31:05 [RateCDR] => 1 ) [2025-04-23 05:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 02:31:05' and `end` < '2025-04-23 05:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 05:31:17] Production.INFO: count ==60 [2025-04-23 05:31:17] Production.ERROR: pbx CDR StartTime 2025-04-23 02:31:05 - End Time 2025-04-23 05:31:05 [2025-04-23 05:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970148', 'tblTempUsageDetail_20' ) start [2025-04-23 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970148', 'tblTempUsageDetail_20' ) end [2025-04-23 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970148', 'tblTempVendorCDR_20' ) start [2025-04-23 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970148', 'tblTempVendorCDR_20' ) end [2025-04-23 05:31:17] Production.INFO: ProcessCDR(1,14970148,1,1,2) [2025-04-23 05:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970148', 'tblTempUsageDetail_20' ) start [2025-04-23 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970148', 'tblTempUsageDetail_20' ) end [2025-04-23 05:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 05:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 05:31:21] Production.INFO: ==15618== Releasing lock... [2025-04-23 05:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 05:31:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-23 05:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 02:32:06 [end_date_ymd] => 2025-04-23 05:32:06 [RateCDR] => 1 ) [2025-04-23 05:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 02:32:06' and `end` < '2025-04-23 05:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 05:32:18] Production.INFO: count ==60 [2025-04-23 05:32:18] Production.ERROR: pbx CDR StartTime 2025-04-23 02:32:06 - End Time 2025-04-23 05:32:06 [2025-04-23 05:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970153', 'tblTempUsageDetail_20' ) start [2025-04-23 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970153', 'tblTempUsageDetail_20' ) end [2025-04-23 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970153', 'tblTempVendorCDR_20' ) start [2025-04-23 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970153', 'tblTempVendorCDR_20' ) end [2025-04-23 05:32:18] Production.INFO: ProcessCDR(1,14970153,1,1,2) [2025-04-23 05:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970153', 'tblTempUsageDetail_20' ) start [2025-04-23 05:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970153', 'tblTempUsageDetail_20' ) end [2025-04-23 05:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 05:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 05:32:22] Production.INFO: ==15691== Releasing lock... [2025-04-23 05:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 05:32:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-23 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 02:33:05 [end_date_ymd] => 2025-04-23 05:33:05 [RateCDR] => 1 ) [2025-04-23 05:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 02:33:05' and `end` < '2025-04-23 05:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 05:33:18] Production.INFO: count ==60 [2025-04-23 05:33:18] Production.ERROR: pbx CDR StartTime 2025-04-23 02:33:05 - End Time 2025-04-23 05:33:05 [2025-04-23 05:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970158', 'tblTempUsageDetail_20' ) start [2025-04-23 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970158', 'tblTempUsageDetail_20' ) end [2025-04-23 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970158', 'tblTempVendorCDR_20' ) start [2025-04-23 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970158', 'tblTempVendorCDR_20' ) end [2025-04-23 05:33:18] Production.INFO: ProcessCDR(1,14970158,1,1,2) [2025-04-23 05:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970158', 'tblTempUsageDetail_20' ) start [2025-04-23 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970158', 'tblTempUsageDetail_20' ) end [2025-04-23 05:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 05:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 05:33:21] Production.INFO: ==15763== Releasing lock... [2025-04-23 05:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 05:33:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-23 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 02:34:05 [end_date_ymd] => 2025-04-23 05:34:05 [RateCDR] => 1 ) [2025-04-23 05:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 02:34:05' and `end` < '2025-04-23 05:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 05:34:18] Production.INFO: count ==60 [2025-04-23 05:34:18] Production.ERROR: pbx CDR StartTime 2025-04-23 02:34:05 - End Time 2025-04-23 05:34:05 [2025-04-23 05:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970163', 'tblTempUsageDetail_20' ) start [2025-04-23 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970163', 'tblTempUsageDetail_20' ) end [2025-04-23 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970163', 'tblTempVendorCDR_20' ) start [2025-04-23 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970163', 'tblTempVendorCDR_20' ) end [2025-04-23 05:34:18] Production.INFO: ProcessCDR(1,14970163,1,1,2) [2025-04-23 05:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970163', 'tblTempUsageDetail_20' ) start [2025-04-23 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970163', 'tblTempUsageDetail_20' ) end [2025-04-23 05:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 05:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 05:34:21] Production.INFO: ==15833== Releasing lock... [2025-04-23 05:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 05:34:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-23 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 02:35:05 [end_date_ymd] => 2025-04-23 05:35:05 [RateCDR] => 1 ) [2025-04-23 05:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 02:35:05' and `end` < '2025-04-23 05:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 05:35:17] Production.INFO: count ==59 [2025-04-23 05:35:17] Production.ERROR: pbx CDR StartTime 2025-04-23 02:35:05 - End Time 2025-04-23 05:35:05 [2025-04-23 05:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970168', 'tblTempUsageDetail_20' ) start [2025-04-23 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970168', 'tblTempUsageDetail_20' ) end [2025-04-23 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970168', 'tblTempVendorCDR_20' ) start [2025-04-23 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970168', 'tblTempVendorCDR_20' ) end [2025-04-23 05:35:17] Production.INFO: ProcessCDR(1,14970168,1,1,2) [2025-04-23 05:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970168', 'tblTempUsageDetail_20' ) start [2025-04-23 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970168', 'tblTempUsageDetail_20' ) end [2025-04-23 05:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 05:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 05:35:21] Production.INFO: ==15905== Releasing lock... [2025-04-23 05:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 05:35:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-23 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 02:36:05 [end_date_ymd] => 2025-04-23 05:36:05 [RateCDR] => 1 ) [2025-04-23 05:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 02:36:05' and `end` < '2025-04-23 05:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 05:36:18] Production.INFO: count ==57 [2025-04-23 05:36:18] Production.ERROR: pbx CDR StartTime 2025-04-23 02:36:05 - End Time 2025-04-23 05:36:05 [2025-04-23 05:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970173', 'tblTempUsageDetail_20' ) start [2025-04-23 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970173', 'tblTempUsageDetail_20' ) end [2025-04-23 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970173', 'tblTempVendorCDR_20' ) start [2025-04-23 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970173', 'tblTempVendorCDR_20' ) end [2025-04-23 05:36:18] Production.INFO: ProcessCDR(1,14970173,1,1,2) [2025-04-23 05:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970173', 'tblTempUsageDetail_20' ) start [2025-04-23 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970173', 'tblTempUsageDetail_20' ) end [2025-04-23 05:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 05:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 05:36:21] Production.INFO: ==15976== Releasing lock... [2025-04-23 05:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 05:36:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-23 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 02:37:05 [end_date_ymd] => 2025-04-23 05:37:05 [RateCDR] => 1 ) [2025-04-23 05:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 02:37:05' and `end` < '2025-04-23 05:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 05:37:18] Production.INFO: count ==56 [2025-04-23 05:37:18] Production.ERROR: pbx CDR StartTime 2025-04-23 02:37:05 - End Time 2025-04-23 05:37:05 [2025-04-23 05:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970178', 'tblTempUsageDetail_20' ) start [2025-04-23 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970178', 'tblTempUsageDetail_20' ) end [2025-04-23 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970178', 'tblTempVendorCDR_20' ) start [2025-04-23 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970178', 'tblTempVendorCDR_20' ) end [2025-04-23 05:37:18] Production.INFO: ProcessCDR(1,14970178,1,1,2) [2025-04-23 05:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970178', 'tblTempUsageDetail_20' ) start [2025-04-23 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970178', 'tblTempUsageDetail_20' ) end [2025-04-23 05:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 05:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 05:37:21] Production.INFO: ==16050== Releasing lock... [2025-04-23 05:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 05:37:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-23 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 02:38:05 [end_date_ymd] => 2025-04-23 05:38:05 [RateCDR] => 1 ) [2025-04-23 05:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 02:38:05' and `end` < '2025-04-23 05:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 05:38:17] Production.INFO: count ==56 [2025-04-23 05:38:17] Production.ERROR: pbx CDR StartTime 2025-04-23 02:38:05 - End Time 2025-04-23 05:38:05 [2025-04-23 05:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970183', 'tblTempUsageDetail_20' ) start [2025-04-23 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970183', 'tblTempUsageDetail_20' ) end [2025-04-23 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970183', 'tblTempVendorCDR_20' ) start [2025-04-23 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970183', 'tblTempVendorCDR_20' ) end [2025-04-23 05:38:17] Production.INFO: ProcessCDR(1,14970183,1,1,2) [2025-04-23 05:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970183', 'tblTempUsageDetail_20' ) start [2025-04-23 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970183', 'tblTempUsageDetail_20' ) end [2025-04-23 05:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 05:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 05:38:21] Production.INFO: ==16122== Releasing lock... [2025-04-23 05:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 05:38:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-23 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 02:39:05 [end_date_ymd] => 2025-04-23 05:39:05 [RateCDR] => 1 ) [2025-04-23 05:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 02:39:05' and `end` < '2025-04-23 05:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 05:39:18] Production.INFO: count ==56 [2025-04-23 05:39:18] Production.ERROR: pbx CDR StartTime 2025-04-23 02:39:05 - End Time 2025-04-23 05:39:05 [2025-04-23 05:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970188', 'tblTempUsageDetail_20' ) start [2025-04-23 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970188', 'tblTempUsageDetail_20' ) end [2025-04-23 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970188', 'tblTempVendorCDR_20' ) start [2025-04-23 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970188', 'tblTempVendorCDR_20' ) end [2025-04-23 05:39:18] Production.INFO: ProcessCDR(1,14970188,1,1,2) [2025-04-23 05:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970188', 'tblTempUsageDetail_20' ) start [2025-04-23 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970188', 'tblTempUsageDetail_20' ) end [2025-04-23 05:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 05:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 05:39:21] Production.INFO: ==16199== Releasing lock... [2025-04-23 05:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 05:39:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-23 05:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 02:40:05 [end_date_ymd] => 2025-04-23 05:40:05 [RateCDR] => 1 ) [2025-04-23 05:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 02:40:05' and `end` < '2025-04-23 05:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 05:40:18] Production.INFO: count ==53 [2025-04-23 05:40:18] Production.ERROR: pbx CDR StartTime 2025-04-23 02:40:05 - End Time 2025-04-23 05:40:05 [2025-04-23 05:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970194', 'tblTempUsageDetail_20' ) start [2025-04-23 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970194', 'tblTempUsageDetail_20' ) end [2025-04-23 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970194', 'tblTempVendorCDR_20' ) start [2025-04-23 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970194', 'tblTempVendorCDR_20' ) end [2025-04-23 05:40:18] Production.INFO: ProcessCDR(1,14970194,1,1,2) [2025-04-23 05:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970194', 'tblTempUsageDetail_20' ) start [2025-04-23 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970194', 'tblTempUsageDetail_20' ) end [2025-04-23 05:40:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 05:40:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 05:40:21] Production.INFO: ==16305== Releasing lock... [2025-04-23 05:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 05:40:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 02:41:05 [end_date_ymd] => 2025-04-23 05:41:05 [RateCDR] => 1 ) [2025-04-23 05:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 02:41:05' and `end` < '2025-04-23 05:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 05:41:18] Production.INFO: count ==53 [2025-04-23 05:41:18] Production.ERROR: pbx CDR StartTime 2025-04-23 02:41:05 - End Time 2025-04-23 05:41:05 [2025-04-23 05:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970199', 'tblTempUsageDetail_20' ) start [2025-04-23 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970199', 'tblTempUsageDetail_20' ) end [2025-04-23 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970199', 'tblTempVendorCDR_20' ) start [2025-04-23 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970199', 'tblTempVendorCDR_20' ) end [2025-04-23 05:41:18] Production.INFO: ProcessCDR(1,14970199,1,1,2) [2025-04-23 05:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970199', 'tblTempUsageDetail_20' ) start [2025-04-23 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970199', 'tblTempUsageDetail_20' ) end [2025-04-23 05:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 05:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 05:41:21] Production.INFO: ==16457== Releasing lock... [2025-04-23 05:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 05:41:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 02:42:05 [end_date_ymd] => 2025-04-23 05:42:05 [RateCDR] => 1 ) [2025-04-23 05:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 02:42:05' and `end` < '2025-04-23 05:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 05:42:18] Production.INFO: count ==53 [2025-04-23 05:42:18] Production.ERROR: pbx CDR StartTime 2025-04-23 02:42:05 - End Time 2025-04-23 05:42:05 [2025-04-23 05:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970204', 'tblTempUsageDetail_20' ) start [2025-04-23 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970204', 'tblTempUsageDetail_20' ) end [2025-04-23 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970204', 'tblTempVendorCDR_20' ) start [2025-04-23 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970204', 'tblTempVendorCDR_20' ) end [2025-04-23 05:42:18] Production.INFO: ProcessCDR(1,14970204,1,1,2) [2025-04-23 05:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970204', 'tblTempUsageDetail_20' ) start [2025-04-23 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970204', 'tblTempUsageDetail_20' ) end [2025-04-23 05:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 05:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 05:42:21] Production.INFO: ==16590== Releasing lock... [2025-04-23 05:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 05:42:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 02:43:05 [end_date_ymd] => 2025-04-23 05:43:05 [RateCDR] => 1 ) [2025-04-23 05:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 02:43:05' and `end` < '2025-04-23 05:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 05:43:18] Production.INFO: count ==53 [2025-04-23 05:43:18] Production.ERROR: pbx CDR StartTime 2025-04-23 02:43:05 - End Time 2025-04-23 05:43:05 [2025-04-23 05:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970209', 'tblTempUsageDetail_20' ) start [2025-04-23 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970209', 'tblTempUsageDetail_20' ) end [2025-04-23 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970209', 'tblTempVendorCDR_20' ) start [2025-04-23 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970209', 'tblTempVendorCDR_20' ) end [2025-04-23 05:43:18] Production.INFO: ProcessCDR(1,14970209,1,1,2) [2025-04-23 05:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970209', 'tblTempUsageDetail_20' ) start [2025-04-23 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970209', 'tblTempUsageDetail_20' ) end [2025-04-23 05:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 05:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 05:43:21] Production.INFO: ==16666== Releasing lock... [2025-04-23 05:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 05:43:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 02:44:05 [end_date_ymd] => 2025-04-23 05:44:05 [RateCDR] => 1 ) [2025-04-23 05:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 02:44:05' and `end` < '2025-04-23 05:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 05:44:17] Production.INFO: count ==52 [2025-04-23 05:44:17] Production.ERROR: pbx CDR StartTime 2025-04-23 02:44:05 - End Time 2025-04-23 05:44:05 [2025-04-23 05:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970214', 'tblTempUsageDetail_20' ) start [2025-04-23 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970214', 'tblTempUsageDetail_20' ) end [2025-04-23 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970214', 'tblTempVendorCDR_20' ) start [2025-04-23 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970214', 'tblTempVendorCDR_20' ) end [2025-04-23 05:44:17] Production.INFO: ProcessCDR(1,14970214,1,1,2) [2025-04-23 05:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970214', 'tblTempUsageDetail_20' ) start [2025-04-23 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970214', 'tblTempUsageDetail_20' ) end [2025-04-23 05:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 05:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 05:44:21] Production.INFO: ==16740== Releasing lock... [2025-04-23 05:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 05:44:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 02:45:05 [end_date_ymd] => 2025-04-23 05:45:05 [RateCDR] => 1 ) [2025-04-23 05:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 02:45:05' and `end` < '2025-04-23 05:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 05:45:17] Production.INFO: count ==52 [2025-04-23 05:45:17] Production.ERROR: pbx CDR StartTime 2025-04-23 02:45:05 - End Time 2025-04-23 05:45:05 [2025-04-23 05:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970219', 'tblTempUsageDetail_20' ) start [2025-04-23 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970219', 'tblTempUsageDetail_20' ) end [2025-04-23 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970219', 'tblTempVendorCDR_20' ) start [2025-04-23 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970219', 'tblTempVendorCDR_20' ) end [2025-04-23 05:45:18] Production.INFO: ProcessCDR(1,14970219,1,1,2) [2025-04-23 05:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970219', 'tblTempUsageDetail_20' ) start [2025-04-23 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970219', 'tblTempUsageDetail_20' ) end [2025-04-23 05:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 05:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 05:45:21] Production.INFO: ==16812== Releasing lock... [2025-04-23 05:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 05:45:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 05:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 02:46:06 [end_date_ymd] => 2025-04-23 05:46:06 [RateCDR] => 1 ) [2025-04-23 05:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 02:46:06' and `end` < '2025-04-23 05:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 05:46:18] Production.INFO: count ==52 [2025-04-23 05:46:18] Production.ERROR: pbx CDR StartTime 2025-04-23 02:46:06 - End Time 2025-04-23 05:46:06 [2025-04-23 05:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970224', 'tblTempUsageDetail_20' ) start [2025-04-23 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970224', 'tblTempUsageDetail_20' ) end [2025-04-23 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970224', 'tblTempVendorCDR_20' ) start [2025-04-23 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970224', 'tblTempVendorCDR_20' ) end [2025-04-23 05:46:18] Production.INFO: ProcessCDR(1,14970224,1,1,2) [2025-04-23 05:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970224', 'tblTempUsageDetail_20' ) start [2025-04-23 05:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970224', 'tblTempUsageDetail_20' ) end [2025-04-23 05:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 05:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 05:46:22] Production.INFO: ==16889== Releasing lock... [2025-04-23 05:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 05:46:22] Production.INFO: 28 MB #Memory Used# [2025-04-23 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 02:47:05 [end_date_ymd] => 2025-04-23 05:47:05 [RateCDR] => 1 ) [2025-04-23 05:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 02:47:05' and `end` < '2025-04-23 05:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 05:47:18] Production.INFO: count ==52 [2025-04-23 05:47:18] Production.ERROR: pbx CDR StartTime 2025-04-23 02:47:05 - End Time 2025-04-23 05:47:05 [2025-04-23 05:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970229', 'tblTempUsageDetail_20' ) start [2025-04-23 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970229', 'tblTempUsageDetail_20' ) end [2025-04-23 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970229', 'tblTempVendorCDR_20' ) start [2025-04-23 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970229', 'tblTempVendorCDR_20' ) end [2025-04-23 05:47:18] Production.INFO: ProcessCDR(1,14970229,1,1,2) [2025-04-23 05:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970229', 'tblTempUsageDetail_20' ) start [2025-04-23 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970229', 'tblTempUsageDetail_20' ) end [2025-04-23 05:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 05:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 05:47:21] Production.INFO: ==16959== Releasing lock... [2025-04-23 05:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 05:47:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 05:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 02:48:06 [end_date_ymd] => 2025-04-23 05:48:06 [RateCDR] => 1 ) [2025-04-23 05:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 02:48:06' and `end` < '2025-04-23 05:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 05:48:18] Production.INFO: count ==52 [2025-04-23 05:48:18] Production.ERROR: pbx CDR StartTime 2025-04-23 02:48:06 - End Time 2025-04-23 05:48:06 [2025-04-23 05:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970234', 'tblTempUsageDetail_20' ) start [2025-04-23 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970234', 'tblTempUsageDetail_20' ) end [2025-04-23 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970234', 'tblTempVendorCDR_20' ) start [2025-04-23 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970234', 'tblTempVendorCDR_20' ) end [2025-04-23 05:48:18] Production.INFO: ProcessCDR(1,14970234,1,1,2) [2025-04-23 05:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970234', 'tblTempUsageDetail_20' ) start [2025-04-23 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970234', 'tblTempUsageDetail_20' ) end [2025-04-23 05:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 05:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 05:48:21] Production.INFO: ==17033== Releasing lock... [2025-04-23 05:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 05:48:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 02:49:05 [end_date_ymd] => 2025-04-23 05:49:05 [RateCDR] => 1 ) [2025-04-23 05:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 02:49:05' and `end` < '2025-04-23 05:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 05:49:18] Production.INFO: count ==52 [2025-04-23 05:49:18] Production.ERROR: pbx CDR StartTime 2025-04-23 02:49:05 - End Time 2025-04-23 05:49:05 [2025-04-23 05:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970239', 'tblTempUsageDetail_20' ) start [2025-04-23 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970239', 'tblTempUsageDetail_20' ) end [2025-04-23 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970239', 'tblTempVendorCDR_20' ) start [2025-04-23 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970239', 'tblTempVendorCDR_20' ) end [2025-04-23 05:49:18] Production.INFO: ProcessCDR(1,14970239,1,1,2) [2025-04-23 05:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970239', 'tblTempUsageDetail_20' ) start [2025-04-23 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970239', 'tblTempUsageDetail_20' ) end [2025-04-23 05:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 05:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 05:49:21] Production.INFO: ==17103== Releasing lock... [2025-04-23 05:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 05:49:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 02:50:06 [end_date_ymd] => 2025-04-23 05:50:06 [RateCDR] => 1 ) [2025-04-23 05:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 02:50:06' and `end` < '2025-04-23 05:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 05:50:18] Production.INFO: count ==44 [2025-04-23 05:50:18] Production.ERROR: pbx CDR StartTime 2025-04-23 02:50:06 - End Time 2025-04-23 05:50:06 [2025-04-23 05:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970245', 'tblTempUsageDetail_20' ) start [2025-04-23 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970245', 'tblTempUsageDetail_20' ) end [2025-04-23 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970245', 'tblTempVendorCDR_20' ) start [2025-04-23 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970245', 'tblTempVendorCDR_20' ) end [2025-04-23 05:50:18] Production.INFO: ProcessCDR(1,14970245,1,1,2) [2025-04-23 05:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970245', 'tblTempUsageDetail_20' ) start [2025-04-23 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970245', 'tblTempUsageDetail_20' ) end [2025-04-23 05:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 05:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 05:50:22] Production.INFO: ==17180== Releasing lock... [2025-04-23 05:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 05:50:22] Production.INFO: 28 MB #Memory Used# [2025-04-23 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 02:51:05 [end_date_ymd] => 2025-04-23 05:51:05 [RateCDR] => 1 ) [2025-04-23 05:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 02:51:05' and `end` < '2025-04-23 05:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 05:51:17] Production.INFO: count ==43 [2025-04-23 05:51:17] Production.ERROR: pbx CDR StartTime 2025-04-23 02:51:05 - End Time 2025-04-23 05:51:05 [2025-04-23 05:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970250', 'tblTempUsageDetail_20' ) start [2025-04-23 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970250', 'tblTempUsageDetail_20' ) end [2025-04-23 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970250', 'tblTempVendorCDR_20' ) start [2025-04-23 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970250', 'tblTempVendorCDR_20' ) end [2025-04-23 05:51:17] Production.INFO: ProcessCDR(1,14970250,1,1,2) [2025-04-23 05:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970250', 'tblTempUsageDetail_20' ) start [2025-04-23 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970250', 'tblTempUsageDetail_20' ) end [2025-04-23 05:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 05:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 05:51:21] Production.INFO: ==17255== Releasing lock... [2025-04-23 05:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 05:51:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 02:52:05 [end_date_ymd] => 2025-04-23 05:52:05 [RateCDR] => 1 ) [2025-04-23 05:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 02:52:05' and `end` < '2025-04-23 05:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 05:52:17] Production.INFO: count ==40 [2025-04-23 05:52:17] Production.ERROR: pbx CDR StartTime 2025-04-23 02:52:05 - End Time 2025-04-23 05:52:05 [2025-04-23 05:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970255', 'tblTempUsageDetail_20' ) start [2025-04-23 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970255', 'tblTempUsageDetail_20' ) end [2025-04-23 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970255', 'tblTempVendorCDR_20' ) start [2025-04-23 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970255', 'tblTempVendorCDR_20' ) end [2025-04-23 05:52:17] Production.INFO: ProcessCDR(1,14970255,1,1,2) [2025-04-23 05:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970255', 'tblTempUsageDetail_20' ) start [2025-04-23 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970255', 'tblTempUsageDetail_20' ) end [2025-04-23 05:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 05:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 05:52:21] Production.INFO: ==17324== Releasing lock... [2025-04-23 05:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 05:52:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 02:53:05 [end_date_ymd] => 2025-04-23 05:53:05 [RateCDR] => 1 ) [2025-04-23 05:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 02:53:05' and `end` < '2025-04-23 05:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 05:53:17] Production.INFO: count ==35 [2025-04-23 05:53:17] Production.ERROR: pbx CDR StartTime 2025-04-23 02:53:05 - End Time 2025-04-23 05:53:05 [2025-04-23 05:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970260', 'tblTempUsageDetail_20' ) start [2025-04-23 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970260', 'tblTempUsageDetail_20' ) end [2025-04-23 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970260', 'tblTempVendorCDR_20' ) start [2025-04-23 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970260', 'tblTempVendorCDR_20' ) end [2025-04-23 05:53:17] Production.INFO: ProcessCDR(1,14970260,1,1,2) [2025-04-23 05:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970260', 'tblTempUsageDetail_20' ) start [2025-04-23 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970260', 'tblTempUsageDetail_20' ) end [2025-04-23 05:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 05:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 05:53:21] Production.INFO: ==17396== Releasing lock... [2025-04-23 05:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 05:53:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 02:54:05 [end_date_ymd] => 2025-04-23 05:54:05 [RateCDR] => 1 ) [2025-04-23 05:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 02:54:05' and `end` < '2025-04-23 05:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 05:54:18] Production.INFO: count ==35 [2025-04-23 05:54:18] Production.ERROR: pbx CDR StartTime 2025-04-23 02:54:05 - End Time 2025-04-23 05:54:05 [2025-04-23 05:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970265', 'tblTempUsageDetail_20' ) start [2025-04-23 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970265', 'tblTempUsageDetail_20' ) end [2025-04-23 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970265', 'tblTempVendorCDR_20' ) start [2025-04-23 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970265', 'tblTempVendorCDR_20' ) end [2025-04-23 05:54:18] Production.INFO: ProcessCDR(1,14970265,1,1,2) [2025-04-23 05:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970265', 'tblTempUsageDetail_20' ) start [2025-04-23 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970265', 'tblTempUsageDetail_20' ) end [2025-04-23 05:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 05:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 05:54:21] Production.INFO: ==17473== Releasing lock... [2025-04-23 05:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 05:54:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 05:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 02:55:06 [end_date_ymd] => 2025-04-23 05:55:06 [RateCDR] => 1 ) [2025-04-23 05:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 02:55:06' and `end` < '2025-04-23 05:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 05:55:19] Production.INFO: count ==34 [2025-04-23 05:55:19] Production.ERROR: pbx CDR StartTime 2025-04-23 02:55:06 - End Time 2025-04-23 05:55:06 [2025-04-23 05:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 05:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970270', 'tblTempUsageDetail_20' ) start [2025-04-23 05:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970270', 'tblTempUsageDetail_20' ) end [2025-04-23 05:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970270', 'tblTempVendorCDR_20' ) start [2025-04-23 05:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970270', 'tblTempVendorCDR_20' ) end [2025-04-23 05:55:19] Production.INFO: ProcessCDR(1,14970270,1,1,2) [2025-04-23 05:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970270', 'tblTempUsageDetail_20' ) start [2025-04-23 05:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970270', 'tblTempUsageDetail_20' ) end [2025-04-23 05:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 05:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 05:55:23] Production.INFO: ==17551== Releasing lock... [2025-04-23 05:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 05:55:23] Production.INFO: 28 MB #Memory Used# [2025-04-23 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 02:56:05 [end_date_ymd] => 2025-04-23 05:56:05 [RateCDR] => 1 ) [2025-04-23 05:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 02:56:05' and `end` < '2025-04-23 05:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 05:56:18] Production.INFO: count ==35 [2025-04-23 05:56:18] Production.ERROR: pbx CDR StartTime 2025-04-23 02:56:05 - End Time 2025-04-23 05:56:05 [2025-04-23 05:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970275', 'tblTempUsageDetail_20' ) start [2025-04-23 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970275', 'tblTempUsageDetail_20' ) end [2025-04-23 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970275', 'tblTempVendorCDR_20' ) start [2025-04-23 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970275', 'tblTempVendorCDR_20' ) end [2025-04-23 05:56:18] Production.INFO: ProcessCDR(1,14970275,1,1,2) [2025-04-23 05:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970275', 'tblTempUsageDetail_20' ) start [2025-04-23 05:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970275', 'tblTempUsageDetail_20' ) end [2025-04-23 05:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 05:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 05:56:23] Production.INFO: ==17624== Releasing lock... [2025-04-23 05:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 05:56:23] Production.INFO: 28 MB #Memory Used# [2025-04-23 05:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 02:57:06 [end_date_ymd] => 2025-04-23 05:57:06 [RateCDR] => 1 ) [2025-04-23 05:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 02:57:06' and `end` < '2025-04-23 05:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 05:57:18] Production.INFO: count ==35 [2025-04-23 05:57:18] Production.ERROR: pbx CDR StartTime 2025-04-23 02:57:06 - End Time 2025-04-23 05:57:06 [2025-04-23 05:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970280', 'tblTempUsageDetail_20' ) start [2025-04-23 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970280', 'tblTempUsageDetail_20' ) end [2025-04-23 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970280', 'tblTempVendorCDR_20' ) start [2025-04-23 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970280', 'tblTempVendorCDR_20' ) end [2025-04-23 05:57:18] Production.INFO: ProcessCDR(1,14970280,1,1,2) [2025-04-23 05:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970280', 'tblTempUsageDetail_20' ) start [2025-04-23 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970280', 'tblTempUsageDetail_20' ) end [2025-04-23 05:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 05:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 05:57:21] Production.INFO: ==17739== Releasing lock... [2025-04-23 05:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 05:57:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 02:58:05 [end_date_ymd] => 2025-04-23 05:58:05 [RateCDR] => 1 ) [2025-04-23 05:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 02:58:05' and `end` < '2025-04-23 05:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 05:58:18] Production.INFO: count ==35 [2025-04-23 05:58:18] Production.ERROR: pbx CDR StartTime 2025-04-23 02:58:05 - End Time 2025-04-23 05:58:05 [2025-04-23 05:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970285', 'tblTempUsageDetail_20' ) start [2025-04-23 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970285', 'tblTempUsageDetail_20' ) end [2025-04-23 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970285', 'tblTempVendorCDR_20' ) start [2025-04-23 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970285', 'tblTempVendorCDR_20' ) end [2025-04-23 05:58:18] Production.INFO: ProcessCDR(1,14970285,1,1,2) [2025-04-23 05:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970285', 'tblTempUsageDetail_20' ) start [2025-04-23 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970285', 'tblTempUsageDetail_20' ) end [2025-04-23 05:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 05:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 05:58:21] Production.INFO: ==17811== Releasing lock... [2025-04-23 05:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 05:58:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 02:59:05 [end_date_ymd] => 2025-04-23 05:59:05 [RateCDR] => 1 ) [2025-04-23 05:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 02:59:05' and `end` < '2025-04-23 05:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 05:59:18] Production.INFO: count ==35 [2025-04-23 05:59:18] Production.ERROR: pbx CDR StartTime 2025-04-23 02:59:05 - End Time 2025-04-23 05:59:05 [2025-04-23 05:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970290', 'tblTempUsageDetail_20' ) start [2025-04-23 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970290', 'tblTempUsageDetail_20' ) end [2025-04-23 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970290', 'tblTempVendorCDR_20' ) start [2025-04-23 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970290', 'tblTempVendorCDR_20' ) end [2025-04-23 05:59:18] Production.INFO: ProcessCDR(1,14970290,1,1,2) [2025-04-23 05:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 05:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970290', 'tblTempUsageDetail_20' ) start [2025-04-23 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970290', 'tblTempUsageDetail_20' ) end [2025-04-23 05:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 05:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 05:59:21] Production.INFO: ==17885== Releasing lock... [2025-04-23 05:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 05:59:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 03:00:06 [end_date_ymd] => 2025-04-23 06:00:06 [RateCDR] => 1 ) [2025-04-23 06:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 03:00:06' and `end` < '2025-04-23 06:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 06:00:19] Production.INFO: count ==35 [2025-04-23 06:00:19] Production.ERROR: pbx CDR StartTime 2025-04-23 03:00:06 - End Time 2025-04-23 06:00:06 [2025-04-23 06:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970296', 'tblTempUsageDetail_20' ) start [2025-04-23 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970296', 'tblTempUsageDetail_20' ) end [2025-04-23 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970296', 'tblTempVendorCDR_20' ) start [2025-04-23 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970296', 'tblTempVendorCDR_20' ) end [2025-04-23 06:00:19] Production.INFO: ProcessCDR(1,14970296,1,1,2) [2025-04-23 06:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970296', 'tblTempUsageDetail_20' ) start [2025-04-23 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970296', 'tblTempUsageDetail_20' ) end [2025-04-23 06:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 06:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 06:00:22] Production.INFO: ==17960== Releasing lock... [2025-04-23 06:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 06:00:22] Production.INFO: 28 MB #Memory Used# [2025-04-23 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 03:01:05 [end_date_ymd] => 2025-04-23 06:01:05 [RateCDR] => 1 ) [2025-04-23 06:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 03:01:05' and `end` < '2025-04-23 06:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 06:01:18] Production.INFO: count ==35 [2025-04-23 06:01:18] Production.ERROR: pbx CDR StartTime 2025-04-23 03:01:05 - End Time 2025-04-23 06:01:05 [2025-04-23 06:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970301', 'tblTempUsageDetail_20' ) start [2025-04-23 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970301', 'tblTempUsageDetail_20' ) end [2025-04-23 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970301', 'tblTempVendorCDR_20' ) start [2025-04-23 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970301', 'tblTempVendorCDR_20' ) end [2025-04-23 06:01:18] Production.INFO: ProcessCDR(1,14970301,1,1,2) [2025-04-23 06:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970301', 'tblTempUsageDetail_20' ) start [2025-04-23 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970301', 'tblTempUsageDetail_20' ) end [2025-04-23 06:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 06:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 06:01:21] Production.INFO: ==18049== Releasing lock... [2025-04-23 06:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 06:01:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 03:02:05 [end_date_ymd] => 2025-04-23 06:02:05 [RateCDR] => 1 ) [2025-04-23 06:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 03:02:05' and `end` < '2025-04-23 06:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 06:02:18] Production.INFO: count ==35 [2025-04-23 06:02:18] Production.ERROR: pbx CDR StartTime 2025-04-23 03:02:05 - End Time 2025-04-23 06:02:05 [2025-04-23 06:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970306', 'tblTempUsageDetail_20' ) start [2025-04-23 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970306', 'tblTempUsageDetail_20' ) end [2025-04-23 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970306', 'tblTempVendorCDR_20' ) start [2025-04-23 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970306', 'tblTempVendorCDR_20' ) end [2025-04-23 06:02:18] Production.INFO: ProcessCDR(1,14970306,1,1,2) [2025-04-23 06:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970306', 'tblTempUsageDetail_20' ) start [2025-04-23 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970306', 'tblTempUsageDetail_20' ) end [2025-04-23 06:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 06:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 06:02:21] Production.INFO: ==18120== Releasing lock... [2025-04-23 06:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 06:02:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 03:03:05 [end_date_ymd] => 2025-04-23 06:03:05 [RateCDR] => 1 ) [2025-04-23 06:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 03:03:05' and `end` < '2025-04-23 06:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 06:03:17] Production.INFO: count ==36 [2025-04-23 06:03:17] Production.ERROR: pbx CDR StartTime 2025-04-23 03:03:05 - End Time 2025-04-23 06:03:05 [2025-04-23 06:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970311', 'tblTempUsageDetail_20' ) start [2025-04-23 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970311', 'tblTempUsageDetail_20' ) end [2025-04-23 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970311', 'tblTempVendorCDR_20' ) start [2025-04-23 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970311', 'tblTempVendorCDR_20' ) end [2025-04-23 06:03:17] Production.INFO: ProcessCDR(1,14970311,1,1,2) [2025-04-23 06:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970311', 'tblTempUsageDetail_20' ) start [2025-04-23 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970311', 'tblTempUsageDetail_20' ) end [2025-04-23 06:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 06:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 06:03:21] Production.INFO: ==18190== Releasing lock... [2025-04-23 06:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 06:03:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 03:04:05 [end_date_ymd] => 2025-04-23 06:04:05 [RateCDR] => 1 ) [2025-04-23 06:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 03:04:05' and `end` < '2025-04-23 06:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 06:04:18] Production.INFO: count ==36 [2025-04-23 06:04:18] Production.ERROR: pbx CDR StartTime 2025-04-23 03:04:05 - End Time 2025-04-23 06:04:05 [2025-04-23 06:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970316', 'tblTempUsageDetail_20' ) start [2025-04-23 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970316', 'tblTempUsageDetail_20' ) end [2025-04-23 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970316', 'tblTempVendorCDR_20' ) start [2025-04-23 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970316', 'tblTempVendorCDR_20' ) end [2025-04-23 06:04:18] Production.INFO: ProcessCDR(1,14970316,1,1,2) [2025-04-23 06:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970316', 'tblTempUsageDetail_20' ) start [2025-04-23 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970316', 'tblTempUsageDetail_20' ) end [2025-04-23 06:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 06:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 06:04:21] Production.INFO: ==18263== Releasing lock... [2025-04-23 06:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 06:04:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 03:05:05 [end_date_ymd] => 2025-04-23 06:05:05 [RateCDR] => 1 ) [2025-04-23 06:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 03:05:05' and `end` < '2025-04-23 06:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 06:05:17] Production.INFO: count ==35 [2025-04-23 06:05:17] Production.ERROR: pbx CDR StartTime 2025-04-23 03:05:05 - End Time 2025-04-23 06:05:05 [2025-04-23 06:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970321', 'tblTempUsageDetail_20' ) start [2025-04-23 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970321', 'tblTempUsageDetail_20' ) end [2025-04-23 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970321', 'tblTempVendorCDR_20' ) start [2025-04-23 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970321', 'tblTempVendorCDR_20' ) end [2025-04-23 06:05:17] Production.INFO: ProcessCDR(1,14970321,1,1,2) [2025-04-23 06:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970321', 'tblTempUsageDetail_20' ) start [2025-04-23 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970321', 'tblTempUsageDetail_20' ) end [2025-04-23 06:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 06:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 06:05:21] Production.INFO: ==18334== Releasing lock... [2025-04-23 06:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 06:05:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 03:06:05 [end_date_ymd] => 2025-04-23 06:06:05 [RateCDR] => 1 ) [2025-04-23 06:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 03:06:05' and `end` < '2025-04-23 06:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 06:06:18] Production.INFO: count ==34 [2025-04-23 06:06:18] Production.ERROR: pbx CDR StartTime 2025-04-23 03:06:05 - End Time 2025-04-23 06:06:05 [2025-04-23 06:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970326', 'tblTempUsageDetail_20' ) start [2025-04-23 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970326', 'tblTempUsageDetail_20' ) end [2025-04-23 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970326', 'tblTempVendorCDR_20' ) start [2025-04-23 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970326', 'tblTempVendorCDR_20' ) end [2025-04-23 06:06:18] Production.INFO: ProcessCDR(1,14970326,1,1,2) [2025-04-23 06:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970326', 'tblTempUsageDetail_20' ) start [2025-04-23 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970326', 'tblTempUsageDetail_20' ) end [2025-04-23 06:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 06:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 06:06:21] Production.INFO: ==18409== Releasing lock... [2025-04-23 06:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 06:06:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 06:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 03:07:04 [end_date_ymd] => 2025-04-23 06:07:04 [RateCDR] => 1 ) [2025-04-23 06:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 03:07:04' and `end` < '2025-04-23 06:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 06:07:17] Production.INFO: count ==33 [2025-04-23 06:07:17] Production.ERROR: pbx CDR StartTime 2025-04-23 03:07:04 - End Time 2025-04-23 06:07:04 [2025-04-23 06:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970331', 'tblTempUsageDetail_20' ) start [2025-04-23 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970331', 'tblTempUsageDetail_20' ) end [2025-04-23 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970331', 'tblTempVendorCDR_20' ) start [2025-04-23 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970331', 'tblTempVendorCDR_20' ) end [2025-04-23 06:07:17] Production.INFO: ProcessCDR(1,14970331,1,1,2) [2025-04-23 06:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970331', 'tblTempUsageDetail_20' ) start [2025-04-23 06:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970331', 'tblTempUsageDetail_20' ) end [2025-04-23 06:07:20] Production.ERROR: pbx prc_insertCDR start [2025-04-23 06:07:20] Production.ERROR: pbx prc_insertCDR end [2025-04-23 06:07:20] Production.INFO: ==18481== Releasing lock... [2025-04-23 06:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 06:07:20] Production.INFO: 28 MB #Memory Used# [2025-04-23 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 03:08:05 [end_date_ymd] => 2025-04-23 06:08:05 [RateCDR] => 1 ) [2025-04-23 06:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 03:08:05' and `end` < '2025-04-23 06:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 06:08:18] Production.INFO: count ==32 [2025-04-23 06:08:18] Production.ERROR: pbx CDR StartTime 2025-04-23 03:08:05 - End Time 2025-04-23 06:08:05 [2025-04-23 06:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970336', 'tblTempUsageDetail_20' ) start [2025-04-23 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970336', 'tblTempUsageDetail_20' ) end [2025-04-23 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970336', 'tblTempVendorCDR_20' ) start [2025-04-23 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970336', 'tblTempVendorCDR_20' ) end [2025-04-23 06:08:18] Production.INFO: ProcessCDR(1,14970336,1,1,2) [2025-04-23 06:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970336', 'tblTempUsageDetail_20' ) start [2025-04-23 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970336', 'tblTempUsageDetail_20' ) end [2025-04-23 06:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 06:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 06:08:21] Production.INFO: ==18553== Releasing lock... [2025-04-23 06:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 06:08:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 06:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 03:09:06 [end_date_ymd] => 2025-04-23 06:09:06 [RateCDR] => 1 ) [2025-04-23 06:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 03:09:06' and `end` < '2025-04-23 06:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 06:09:18] Production.INFO: count ==32 [2025-04-23 06:09:18] Production.ERROR: pbx CDR StartTime 2025-04-23 03:09:06 - End Time 2025-04-23 06:09:06 [2025-04-23 06:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970341', 'tblTempUsageDetail_20' ) start [2025-04-23 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970341', 'tblTempUsageDetail_20' ) end [2025-04-23 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970341', 'tblTempVendorCDR_20' ) start [2025-04-23 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970341', 'tblTempVendorCDR_20' ) end [2025-04-23 06:09:18] Production.INFO: ProcessCDR(1,14970341,1,1,2) [2025-04-23 06:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970341', 'tblTempUsageDetail_20' ) start [2025-04-23 06:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970341', 'tblTempUsageDetail_20' ) end [2025-04-23 06:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 06:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 06:09:22] Production.INFO: ==18627== Releasing lock... [2025-04-23 06:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 06:09:22] Production.INFO: 28 MB #Memory Used# [2025-04-23 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 03:10:06 [end_date_ymd] => 2025-04-23 06:10:06 [RateCDR] => 1 ) [2025-04-23 06:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 03:10:06' and `end` < '2025-04-23 06:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 06:10:18] Production.INFO: count ==34 [2025-04-23 06:10:18] Production.ERROR: pbx CDR StartTime 2025-04-23 03:10:06 - End Time 2025-04-23 06:10:06 [2025-04-23 06:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970347', 'tblTempUsageDetail_20' ) start [2025-04-23 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970347', 'tblTempUsageDetail_20' ) end [2025-04-23 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970347', 'tblTempVendorCDR_20' ) start [2025-04-23 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970347', 'tblTempVendorCDR_20' ) end [2025-04-23 06:10:18] Production.INFO: ProcessCDR(1,14970347,1,1,2) [2025-04-23 06:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970347', 'tblTempUsageDetail_20' ) start [2025-04-23 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970347', 'tblTempUsageDetail_20' ) end [2025-04-23 06:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 06:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 06:10:22] Production.INFO: ==18701== Releasing lock... [2025-04-23 06:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 06:10:22] Production.INFO: 28 MB #Memory Used# [2025-04-23 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 03:11:05 [end_date_ymd] => 2025-04-23 06:11:05 [RateCDR] => 1 ) [2025-04-23 06:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 03:11:05' and `end` < '2025-04-23 06:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 06:11:18] Production.INFO: count ==33 [2025-04-23 06:11:18] Production.ERROR: pbx CDR StartTime 2025-04-23 03:11:05 - End Time 2025-04-23 06:11:05 [2025-04-23 06:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970352', 'tblTempUsageDetail_20' ) start [2025-04-23 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970352', 'tblTempUsageDetail_20' ) end [2025-04-23 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970352', 'tblTempVendorCDR_20' ) start [2025-04-23 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970352', 'tblTempVendorCDR_20' ) end [2025-04-23 06:11:18] Production.INFO: ProcessCDR(1,14970352,1,1,2) [2025-04-23 06:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970352', 'tblTempUsageDetail_20' ) start [2025-04-23 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970352', 'tblTempUsageDetail_20' ) end [2025-04-23 06:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 06:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 06:11:21] Production.INFO: ==18781== Releasing lock... [2025-04-23 06:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 06:11:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 03:12:05 [end_date_ymd] => 2025-04-23 06:12:05 [RateCDR] => 1 ) [2025-04-23 06:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 03:12:05' and `end` < '2025-04-23 06:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 06:12:17] Production.INFO: count ==34 [2025-04-23 06:12:17] Production.ERROR: pbx CDR StartTime 2025-04-23 03:12:05 - End Time 2025-04-23 06:12:05 [2025-04-23 06:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970357', 'tblTempUsageDetail_20' ) start [2025-04-23 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970357', 'tblTempUsageDetail_20' ) end [2025-04-23 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970357', 'tblTempVendorCDR_20' ) start [2025-04-23 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970357', 'tblTempVendorCDR_20' ) end [2025-04-23 06:12:17] Production.INFO: ProcessCDR(1,14970357,1,1,2) [2025-04-23 06:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970357', 'tblTempUsageDetail_20' ) start [2025-04-23 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970357', 'tblTempUsageDetail_20' ) end [2025-04-23 06:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 06:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 06:12:21] Production.INFO: ==18852== Releasing lock... [2025-04-23 06:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 06:12:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 03:13:05 [end_date_ymd] => 2025-04-23 06:13:05 [RateCDR] => 1 ) [2025-04-23 06:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 03:13:05' and `end` < '2025-04-23 06:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 06:13:18] Production.INFO: count ==33 [2025-04-23 06:13:18] Production.ERROR: pbx CDR StartTime 2025-04-23 03:13:05 - End Time 2025-04-23 06:13:05 [2025-04-23 06:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970362', 'tblTempUsageDetail_20' ) start [2025-04-23 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970362', 'tblTempUsageDetail_20' ) end [2025-04-23 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970362', 'tblTempVendorCDR_20' ) start [2025-04-23 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970362', 'tblTempVendorCDR_20' ) end [2025-04-23 06:13:18] Production.INFO: ProcessCDR(1,14970362,1,1,2) [2025-04-23 06:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970362', 'tblTempUsageDetail_20' ) start [2025-04-23 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970362', 'tblTempUsageDetail_20' ) end [2025-04-23 06:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 06:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 06:13:21] Production.INFO: ==18965== Releasing lock... [2025-04-23 06:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 06:13:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 06:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 03:14:04 [end_date_ymd] => 2025-04-23 06:14:04 [RateCDR] => 1 ) [2025-04-23 06:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 03:14:04' and `end` < '2025-04-23 06:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 06:14:17] Production.INFO: count ==32 [2025-04-23 06:14:17] Production.ERROR: pbx CDR StartTime 2025-04-23 03:14:04 - End Time 2025-04-23 06:14:04 [2025-04-23 06:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970367', 'tblTempUsageDetail_20' ) start [2025-04-23 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970367', 'tblTempUsageDetail_20' ) end [2025-04-23 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970367', 'tblTempVendorCDR_20' ) start [2025-04-23 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970367', 'tblTempVendorCDR_20' ) end [2025-04-23 06:14:17] Production.INFO: ProcessCDR(1,14970367,1,1,2) [2025-04-23 06:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970367', 'tblTempUsageDetail_20' ) start [2025-04-23 06:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970367', 'tblTempUsageDetail_20' ) end [2025-04-23 06:14:20] Production.ERROR: pbx prc_insertCDR start [2025-04-23 06:14:20] Production.ERROR: pbx prc_insertCDR end [2025-04-23 06:14:20] Production.INFO: ==19033== Releasing lock... [2025-04-23 06:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 06:14:20] Production.INFO: 28 MB #Memory Used# [2025-04-23 06:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 03:15:04 [end_date_ymd] => 2025-04-23 06:15:04 [RateCDR] => 1 ) [2025-04-23 06:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 03:15:04' and `end` < '2025-04-23 06:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 06:15:17] Production.INFO: count ==31 [2025-04-23 06:15:17] Production.ERROR: pbx CDR StartTime 2025-04-23 03:15:04 - End Time 2025-04-23 06:15:04 [2025-04-23 06:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970372', 'tblTempUsageDetail_20' ) start [2025-04-23 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970372', 'tblTempUsageDetail_20' ) end [2025-04-23 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970372', 'tblTempVendorCDR_20' ) start [2025-04-23 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970372', 'tblTempVendorCDR_20' ) end [2025-04-23 06:15:17] Production.INFO: ProcessCDR(1,14970372,1,1,2) [2025-04-23 06:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970372', 'tblTempUsageDetail_20' ) start [2025-04-23 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970372', 'tblTempUsageDetail_20' ) end [2025-04-23 06:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 06:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 06:15:21] Production.INFO: ==19108== Releasing lock... [2025-04-23 06:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 06:15:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 06:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 03:16:06 [end_date_ymd] => 2025-04-23 06:16:06 [RateCDR] => 1 ) [2025-04-23 06:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 03:16:06' and `end` < '2025-04-23 06:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 06:16:19] Production.INFO: count ==31 [2025-04-23 06:16:19] Production.ERROR: pbx CDR StartTime 2025-04-23 03:16:06 - End Time 2025-04-23 06:16:06 [2025-04-23 06:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 06:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970377', 'tblTempUsageDetail_20' ) start [2025-04-23 06:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970377', 'tblTempUsageDetail_20' ) end [2025-04-23 06:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970377', 'tblTempVendorCDR_20' ) start [2025-04-23 06:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970377', 'tblTempVendorCDR_20' ) end [2025-04-23 06:16:19] Production.INFO: ProcessCDR(1,14970377,1,1,2) [2025-04-23 06:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970377', 'tblTempUsageDetail_20' ) start [2025-04-23 06:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970377', 'tblTempUsageDetail_20' ) end [2025-04-23 06:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 06:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 06:16:22] Production.INFO: ==19180== Releasing lock... [2025-04-23 06:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 06:16:22] Production.INFO: 28 MB #Memory Used# [2025-04-23 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 03:17:05 [end_date_ymd] => 2025-04-23 06:17:05 [RateCDR] => 1 ) [2025-04-23 06:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 03:17:05' and `end` < '2025-04-23 06:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 06:17:17] Production.INFO: count ==31 [2025-04-23 06:17:17] Production.ERROR: pbx CDR StartTime 2025-04-23 03:17:05 - End Time 2025-04-23 06:17:05 [2025-04-23 06:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970382', 'tblTempUsageDetail_20' ) start [2025-04-23 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970382', 'tblTempUsageDetail_20' ) end [2025-04-23 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970382', 'tblTempVendorCDR_20' ) start [2025-04-23 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970382', 'tblTempVendorCDR_20' ) end [2025-04-23 06:17:17] Production.INFO: ProcessCDR(1,14970382,1,1,2) [2025-04-23 06:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970382', 'tblTempUsageDetail_20' ) start [2025-04-23 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970382', 'tblTempUsageDetail_20' ) end [2025-04-23 06:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 06:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 06:17:21] Production.INFO: ==19250== Releasing lock... [2025-04-23 06:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 06:17:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 03:18:05 [end_date_ymd] => 2025-04-23 06:18:05 [RateCDR] => 1 ) [2025-04-23 06:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 03:18:05' and `end` < '2025-04-23 06:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 06:18:18] Production.INFO: count ==31 [2025-04-23 06:18:18] Production.ERROR: pbx CDR StartTime 2025-04-23 03:18:05 - End Time 2025-04-23 06:18:05 [2025-04-23 06:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970387', 'tblTempUsageDetail_20' ) start [2025-04-23 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970387', 'tblTempUsageDetail_20' ) end [2025-04-23 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970387', 'tblTempVendorCDR_20' ) start [2025-04-23 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970387', 'tblTempVendorCDR_20' ) end [2025-04-23 06:18:18] Production.INFO: ProcessCDR(1,14970387,1,1,2) [2025-04-23 06:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970387', 'tblTempUsageDetail_20' ) start [2025-04-23 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970387', 'tblTempUsageDetail_20' ) end [2025-04-23 06:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 06:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 06:18:21] Production.INFO: ==19332== Releasing lock... [2025-04-23 06:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 06:18:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 06:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 03:19:04 [end_date_ymd] => 2025-04-23 06:19:04 [RateCDR] => 1 ) [2025-04-23 06:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 03:19:04' and `end` < '2025-04-23 06:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 06:19:17] Production.INFO: count ==31 [2025-04-23 06:19:17] Production.ERROR: pbx CDR StartTime 2025-04-23 03:19:04 - End Time 2025-04-23 06:19:04 [2025-04-23 06:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970392', 'tblTempUsageDetail_20' ) start [2025-04-23 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970392', 'tblTempUsageDetail_20' ) end [2025-04-23 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970392', 'tblTempVendorCDR_20' ) start [2025-04-23 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970392', 'tblTempVendorCDR_20' ) end [2025-04-23 06:19:17] Production.INFO: ProcessCDR(1,14970392,1,1,2) [2025-04-23 06:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970392', 'tblTempUsageDetail_20' ) start [2025-04-23 06:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970392', 'tblTempUsageDetail_20' ) end [2025-04-23 06:19:20] Production.ERROR: pbx prc_insertCDR start [2025-04-23 06:19:20] Production.ERROR: pbx prc_insertCDR end [2025-04-23 06:19:20] Production.INFO: ==19406== Releasing lock... [2025-04-23 06:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 06:19:20] Production.INFO: 28 MB #Memory Used# [2025-04-23 06:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 03:20:06 [end_date_ymd] => 2025-04-23 06:20:06 [RateCDR] => 1 ) [2025-04-23 06:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 03:20:06' and `end` < '2025-04-23 06:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 06:20:18] Production.INFO: count ==31 [2025-04-23 06:20:18] Production.ERROR: pbx CDR StartTime 2025-04-23 03:20:06 - End Time 2025-04-23 06:20:06 [2025-04-23 06:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970397', 'tblTempUsageDetail_20' ) start [2025-04-23 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970397', 'tblTempUsageDetail_20' ) end [2025-04-23 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970397', 'tblTempVendorCDR_20' ) start [2025-04-23 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970397', 'tblTempVendorCDR_20' ) end [2025-04-23 06:20:18] Production.INFO: ProcessCDR(1,14970397,1,1,2) [2025-04-23 06:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970397', 'tblTempUsageDetail_20' ) start [2025-04-23 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970397', 'tblTempUsageDetail_20' ) end [2025-04-23 06:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 06:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 06:20:22] Production.INFO: ==19480== Releasing lock... [2025-04-23 06:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 06:20:22] Production.INFO: 28 MB #Memory Used# [2025-04-23 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 03:21:05 [end_date_ymd] => 2025-04-23 06:21:05 [RateCDR] => 1 ) [2025-04-23 06:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 03:21:05' and `end` < '2025-04-23 06:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 06:21:17] Production.INFO: count ==31 [2025-04-23 06:21:17] Production.ERROR: pbx CDR StartTime 2025-04-23 03:21:05 - End Time 2025-04-23 06:21:05 [2025-04-23 06:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970403', 'tblTempUsageDetail_20' ) start [2025-04-23 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970403', 'tblTempUsageDetail_20' ) end [2025-04-23 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970403', 'tblTempVendorCDR_20' ) start [2025-04-23 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970403', 'tblTempVendorCDR_20' ) end [2025-04-23 06:21:17] Production.INFO: ProcessCDR(1,14970403,1,1,2) [2025-04-23 06:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970403', 'tblTempUsageDetail_20' ) start [2025-04-23 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970403', 'tblTempUsageDetail_20' ) end [2025-04-23 06:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 06:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 06:21:21] Production.INFO: ==19553== Releasing lock... [2025-04-23 06:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 06:21:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 03:22:05 [end_date_ymd] => 2025-04-23 06:22:05 [RateCDR] => 1 ) [2025-04-23 06:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 03:22:05' and `end` < '2025-04-23 06:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 06:22:18] Production.INFO: count ==31 [2025-04-23 06:22:18] Production.ERROR: pbx CDR StartTime 2025-04-23 03:22:05 - End Time 2025-04-23 06:22:05 [2025-04-23 06:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970408', 'tblTempUsageDetail_20' ) start [2025-04-23 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970408', 'tblTempUsageDetail_20' ) end [2025-04-23 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970408', 'tblTempVendorCDR_20' ) start [2025-04-23 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970408', 'tblTempVendorCDR_20' ) end [2025-04-23 06:22:18] Production.INFO: ProcessCDR(1,14970408,1,1,2) [2025-04-23 06:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970408', 'tblTempUsageDetail_20' ) start [2025-04-23 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970408', 'tblTempUsageDetail_20' ) end [2025-04-23 06:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 06:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 06:22:21] Production.INFO: ==19624== Releasing lock... [2025-04-23 06:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 06:22:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 06:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 03:23:06 [end_date_ymd] => 2025-04-23 06:23:06 [RateCDR] => 1 ) [2025-04-23 06:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 03:23:06' and `end` < '2025-04-23 06:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 06:23:18] Production.INFO: count ==31 [2025-04-23 06:23:18] Production.ERROR: pbx CDR StartTime 2025-04-23 03:23:06 - End Time 2025-04-23 06:23:06 [2025-04-23 06:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970413', 'tblTempUsageDetail_20' ) start [2025-04-23 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970413', 'tblTempUsageDetail_20' ) end [2025-04-23 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970413', 'tblTempVendorCDR_20' ) start [2025-04-23 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970413', 'tblTempVendorCDR_20' ) end [2025-04-23 06:23:18] Production.INFO: ProcessCDR(1,14970413,1,1,2) [2025-04-23 06:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970413', 'tblTempUsageDetail_20' ) start [2025-04-23 06:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970413', 'tblTempUsageDetail_20' ) end [2025-04-23 06:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 06:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 06:23:22] Production.INFO: ==19698== Releasing lock... [2025-04-23 06:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 06:23:22] Production.INFO: 28 MB #Memory Used# [2025-04-23 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 03:24:05 [end_date_ymd] => 2025-04-23 06:24:05 [RateCDR] => 1 ) [2025-04-23 06:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 03:24:05' and `end` < '2025-04-23 06:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 06:24:18] Production.INFO: count ==30 [2025-04-23 06:24:18] Production.ERROR: pbx CDR StartTime 2025-04-23 03:24:05 - End Time 2025-04-23 06:24:05 [2025-04-23 06:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970418', 'tblTempUsageDetail_20' ) start [2025-04-23 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970418', 'tblTempUsageDetail_20' ) end [2025-04-23 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970418', 'tblTempVendorCDR_20' ) start [2025-04-23 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970418', 'tblTempVendorCDR_20' ) end [2025-04-23 06:24:18] Production.INFO: ProcessCDR(1,14970418,1,1,2) [2025-04-23 06:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970418', 'tblTempUsageDetail_20' ) start [2025-04-23 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970418', 'tblTempUsageDetail_20' ) end [2025-04-23 06:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 06:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 06:24:21] Production.INFO: ==19775== Releasing lock... [2025-04-23 06:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 06:24:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 03:25:05 [end_date_ymd] => 2025-04-23 06:25:05 [RateCDR] => 1 ) [2025-04-23 06:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 03:25:05' and `end` < '2025-04-23 06:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 06:25:18] Production.INFO: count ==30 [2025-04-23 06:25:18] Production.ERROR: pbx CDR StartTime 2025-04-23 03:25:05 - End Time 2025-04-23 06:25:05 [2025-04-23 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970423', 'tblTempUsageDetail_20' ) start [2025-04-23 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970423', 'tblTempUsageDetail_20' ) end [2025-04-23 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970423', 'tblTempVendorCDR_20' ) start [2025-04-23 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970423', 'tblTempVendorCDR_20' ) end [2025-04-23 06:25:18] Production.INFO: ProcessCDR(1,14970423,1,1,2) [2025-04-23 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970423', 'tblTempUsageDetail_20' ) start [2025-04-23 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970423', 'tblTempUsageDetail_20' ) end [2025-04-23 06:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 06:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 06:25:21] Production.INFO: ==19859== Releasing lock... [2025-04-23 06:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 06:25:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 03:26:05 [end_date_ymd] => 2025-04-23 06:26:05 [RateCDR] => 1 ) [2025-04-23 06:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 03:26:05' and `end` < '2025-04-23 06:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 06:26:18] Production.INFO: count ==30 [2025-04-23 06:26:18] Production.ERROR: pbx CDR StartTime 2025-04-23 03:26:05 - End Time 2025-04-23 06:26:05 [2025-04-23 06:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970428', 'tblTempUsageDetail_20' ) start [2025-04-23 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970428', 'tblTempUsageDetail_20' ) end [2025-04-23 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970428', 'tblTempVendorCDR_20' ) start [2025-04-23 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970428', 'tblTempVendorCDR_20' ) end [2025-04-23 06:26:18] Production.INFO: ProcessCDR(1,14970428,1,1,2) [2025-04-23 06:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970428', 'tblTempUsageDetail_20' ) start [2025-04-23 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970428', 'tblTempUsageDetail_20' ) end [2025-04-23 06:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 06:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 06:26:21] Production.INFO: ==19930== Releasing lock... [2025-04-23 06:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 06:26:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 03:27:05 [end_date_ymd] => 2025-04-23 06:27:05 [RateCDR] => 1 ) [2025-04-23 06:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 03:27:05' and `end` < '2025-04-23 06:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 06:27:18] Production.INFO: count ==30 [2025-04-23 06:27:18] Production.ERROR: pbx CDR StartTime 2025-04-23 03:27:05 - End Time 2025-04-23 06:27:05 [2025-04-23 06:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970433', 'tblTempUsageDetail_20' ) start [2025-04-23 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970433', 'tblTempUsageDetail_20' ) end [2025-04-23 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970433', 'tblTempVendorCDR_20' ) start [2025-04-23 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970433', 'tblTempVendorCDR_20' ) end [2025-04-23 06:27:18] Production.INFO: ProcessCDR(1,14970433,1,1,2) [2025-04-23 06:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970433', 'tblTempUsageDetail_20' ) start [2025-04-23 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970433', 'tblTempUsageDetail_20' ) end [2025-04-23 06:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 06:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 06:27:21] Production.INFO: ==20003== Releasing lock... [2025-04-23 06:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 06:27:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 03:28:05 [end_date_ymd] => 2025-04-23 06:28:05 [RateCDR] => 1 ) [2025-04-23 06:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 03:28:05' and `end` < '2025-04-23 06:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 06:28:18] Production.INFO: count ==30 [2025-04-23 06:28:18] Production.ERROR: pbx CDR StartTime 2025-04-23 03:28:05 - End Time 2025-04-23 06:28:05 [2025-04-23 06:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970438', 'tblTempUsageDetail_20' ) start [2025-04-23 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970438', 'tblTempUsageDetail_20' ) end [2025-04-23 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970438', 'tblTempVendorCDR_20' ) start [2025-04-23 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970438', 'tblTempVendorCDR_20' ) end [2025-04-23 06:28:18] Production.INFO: ProcessCDR(1,14970438,1,1,2) [2025-04-23 06:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970438', 'tblTempUsageDetail_20' ) start [2025-04-23 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970438', 'tblTempUsageDetail_20' ) end [2025-04-23 06:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 06:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 06:28:21] Production.INFO: ==20123== Releasing lock... [2025-04-23 06:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 06:28:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 06:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 03:29:05 [end_date_ymd] => 2025-04-23 06:29:05 [RateCDR] => 1 ) [2025-04-23 06:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 03:29:05' and `end` < '2025-04-23 06:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 06:29:18] Production.INFO: count ==30 [2025-04-23 06:29:18] Production.ERROR: pbx CDR StartTime 2025-04-23 03:29:05 - End Time 2025-04-23 06:29:05 [2025-04-23 06:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970443', 'tblTempUsageDetail_20' ) start [2025-04-23 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970443', 'tblTempUsageDetail_20' ) end [2025-04-23 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970443', 'tblTempVendorCDR_20' ) start [2025-04-23 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970443', 'tblTempVendorCDR_20' ) end [2025-04-23 06:29:18] Production.INFO: ProcessCDR(1,14970443,1,1,2) [2025-04-23 06:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970443', 'tblTempUsageDetail_20' ) start [2025-04-23 06:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970443', 'tblTempUsageDetail_20' ) end [2025-04-23 06:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 06:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 06:29:22] Production.INFO: ==20198== Releasing lock... [2025-04-23 06:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 06:29:22] Production.INFO: 28 MB #Memory Used# [2025-04-23 06:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 03:30:05 [end_date_ymd] => 2025-04-23 06:30:05 [RateCDR] => 1 ) [2025-04-23 06:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 03:30:05' and `end` < '2025-04-23 06:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 06:30:17] Production.INFO: count ==32 [2025-04-23 06:30:17] Production.ERROR: pbx CDR StartTime 2025-04-23 03:30:05 - End Time 2025-04-23 06:30:05 [2025-04-23 06:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 06:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970449', 'tblTempUsageDetail_20' ) start [2025-04-23 06:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970449', 'tblTempUsageDetail_20' ) end [2025-04-23 06:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970449', 'tblTempVendorCDR_20' ) start [2025-04-23 06:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970449', 'tblTempVendorCDR_20' ) end [2025-04-23 06:30:17] Production.INFO: ProcessCDR(1,14970449,1,1,2) [2025-04-23 06:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970449', 'tblTempUsageDetail_20' ) start [2025-04-23 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970449', 'tblTempUsageDetail_20' ) end [2025-04-23 06:30:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 06:30:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 06:30:21] Production.INFO: ==20274== Releasing lock... [2025-04-23 06:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 06:30:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 03:31:05 [end_date_ymd] => 2025-04-23 06:31:05 [RateCDR] => 1 ) [2025-04-23 06:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 03:31:05' and `end` < '2025-04-23 06:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 06:31:18] Production.INFO: count ==32 [2025-04-23 06:31:18] Production.ERROR: pbx CDR StartTime 2025-04-23 03:31:05 - End Time 2025-04-23 06:31:05 [2025-04-23 06:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970454', 'tblTempUsageDetail_20' ) start [2025-04-23 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970454', 'tblTempUsageDetail_20' ) end [2025-04-23 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970454', 'tblTempVendorCDR_20' ) start [2025-04-23 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970454', 'tblTempVendorCDR_20' ) end [2025-04-23 06:31:18] Production.INFO: ProcessCDR(1,14970454,1,1,2) [2025-04-23 06:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970454', 'tblTempUsageDetail_20' ) start [2025-04-23 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970454', 'tblTempUsageDetail_20' ) end [2025-04-23 06:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 06:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 06:31:22] Production.INFO: ==20349== Releasing lock... [2025-04-23 06:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 06:31:22] Production.INFO: 28 MB #Memory Used# [2025-04-23 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 03:32:05 [end_date_ymd] => 2025-04-23 06:32:05 [RateCDR] => 1 ) [2025-04-23 06:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 03:32:05' and `end` < '2025-04-23 06:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 06:32:17] Production.INFO: count ==32 [2025-04-23 06:32:17] Production.ERROR: pbx CDR StartTime 2025-04-23 03:32:05 - End Time 2025-04-23 06:32:05 [2025-04-23 06:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970459', 'tblTempUsageDetail_20' ) start [2025-04-23 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970459', 'tblTempUsageDetail_20' ) end [2025-04-23 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970459', 'tblTempVendorCDR_20' ) start [2025-04-23 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970459', 'tblTempVendorCDR_20' ) end [2025-04-23 06:32:17] Production.INFO: ProcessCDR(1,14970459,1,1,2) [2025-04-23 06:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970459', 'tblTempUsageDetail_20' ) start [2025-04-23 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970459', 'tblTempUsageDetail_20' ) end [2025-04-23 06:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 06:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 06:32:21] Production.INFO: ==20421== Releasing lock... [2025-04-23 06:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 06:32:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 03:33:05 [end_date_ymd] => 2025-04-23 06:33:05 [RateCDR] => 1 ) [2025-04-23 06:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 03:33:05' and `end` < '2025-04-23 06:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 06:33:18] Production.INFO: count ==36 [2025-04-23 06:33:18] Production.ERROR: pbx CDR StartTime 2025-04-23 03:33:05 - End Time 2025-04-23 06:33:05 [2025-04-23 06:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970464', 'tblTempUsageDetail_20' ) start [2025-04-23 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970464', 'tblTempUsageDetail_20' ) end [2025-04-23 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970464', 'tblTempVendorCDR_20' ) start [2025-04-23 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970464', 'tblTempVendorCDR_20' ) end [2025-04-23 06:33:18] Production.INFO: ProcessCDR(1,14970464,1,1,2) [2025-04-23 06:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970464', 'tblTempUsageDetail_20' ) start [2025-04-23 06:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970464', 'tblTempUsageDetail_20' ) end [2025-04-23 06:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 06:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 06:33:23] Production.INFO: ==20492== Releasing lock... [2025-04-23 06:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 06:33:23] Production.INFO: 28 MB #Memory Used# [2025-04-23 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 03:34:05 [end_date_ymd] => 2025-04-23 06:34:05 [RateCDR] => 1 ) [2025-04-23 06:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 03:34:05' and `end` < '2025-04-23 06:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 06:34:18] Production.INFO: count ==36 [2025-04-23 06:34:18] Production.ERROR: pbx CDR StartTime 2025-04-23 03:34:05 - End Time 2025-04-23 06:34:05 [2025-04-23 06:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970469', 'tblTempUsageDetail_20' ) start [2025-04-23 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970469', 'tblTempUsageDetail_20' ) end [2025-04-23 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970469', 'tblTempVendorCDR_20' ) start [2025-04-23 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970469', 'tblTempVendorCDR_20' ) end [2025-04-23 06:34:18] Production.INFO: ProcessCDR(1,14970469,1,1,2) [2025-04-23 06:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970469', 'tblTempUsageDetail_20' ) start [2025-04-23 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970469', 'tblTempUsageDetail_20' ) end [2025-04-23 06:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 06:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 06:34:21] Production.INFO: ==20565== Releasing lock... [2025-04-23 06:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 06:34:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 03:35:05 [end_date_ymd] => 2025-04-23 06:35:05 [RateCDR] => 1 ) [2025-04-23 06:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 03:35:05' and `end` < '2025-04-23 06:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 06:35:18] Production.INFO: count ==36 [2025-04-23 06:35:18] Production.ERROR: pbx CDR StartTime 2025-04-23 03:35:05 - End Time 2025-04-23 06:35:05 [2025-04-23 06:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970474', 'tblTempUsageDetail_20' ) start [2025-04-23 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970474', 'tblTempUsageDetail_20' ) end [2025-04-23 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970474', 'tblTempVendorCDR_20' ) start [2025-04-23 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970474', 'tblTempVendorCDR_20' ) end [2025-04-23 06:35:18] Production.INFO: ProcessCDR(1,14970474,1,1,2) [2025-04-23 06:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970474', 'tblTempUsageDetail_20' ) start [2025-04-23 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970474', 'tblTempUsageDetail_20' ) end [2025-04-23 06:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 06:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 06:35:21] Production.INFO: ==20639== Releasing lock... [2025-04-23 06:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 06:35:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 06:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 03:36:06 [end_date_ymd] => 2025-04-23 06:36:06 [RateCDR] => 1 ) [2025-04-23 06:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 03:36:06' and `end` < '2025-04-23 06:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 06:36:19] Production.INFO: count ==36 [2025-04-23 06:36:19] Production.ERROR: pbx CDR StartTime 2025-04-23 03:36:06 - End Time 2025-04-23 06:36:06 [2025-04-23 06:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 06:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970479', 'tblTempUsageDetail_20' ) start [2025-04-23 06:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970479', 'tblTempUsageDetail_20' ) end [2025-04-23 06:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970479', 'tblTempVendorCDR_20' ) start [2025-04-23 06:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970479', 'tblTempVendorCDR_20' ) end [2025-04-23 06:36:19] Production.INFO: ProcessCDR(1,14970479,1,1,2) [2025-04-23 06:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970479', 'tblTempUsageDetail_20' ) start [2025-04-23 06:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970479', 'tblTempUsageDetail_20' ) end [2025-04-23 06:36:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 06:36:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 06:36:23] Production.INFO: ==20711== Releasing lock... [2025-04-23 06:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 06:36:23] Production.INFO: 28 MB #Memory Used# [2025-04-23 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 03:37:05 [end_date_ymd] => 2025-04-23 06:37:05 [RateCDR] => 1 ) [2025-04-23 06:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 03:37:05' and `end` < '2025-04-23 06:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 06:37:18] Production.INFO: count ==36 [2025-04-23 06:37:18] Production.ERROR: pbx CDR StartTime 2025-04-23 03:37:05 - End Time 2025-04-23 06:37:05 [2025-04-23 06:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970484', 'tblTempUsageDetail_20' ) start [2025-04-23 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970484', 'tblTempUsageDetail_20' ) end [2025-04-23 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970484', 'tblTempVendorCDR_20' ) start [2025-04-23 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970484', 'tblTempVendorCDR_20' ) end [2025-04-23 06:37:18] Production.INFO: ProcessCDR(1,14970484,1,1,2) [2025-04-23 06:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970484', 'tblTempUsageDetail_20' ) start [2025-04-23 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970484', 'tblTempUsageDetail_20' ) end [2025-04-23 06:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 06:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 06:37:21] Production.INFO: ==20784== Releasing lock... [2025-04-23 06:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 06:37:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 03:38:05 [end_date_ymd] => 2025-04-23 06:38:05 [RateCDR] => 1 ) [2025-04-23 06:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 03:38:05' and `end` < '2025-04-23 06:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 06:38:18] Production.INFO: count ==37 [2025-04-23 06:38:18] Production.ERROR: pbx CDR StartTime 2025-04-23 03:38:05 - End Time 2025-04-23 06:38:05 [2025-04-23 06:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970489', 'tblTempUsageDetail_20' ) start [2025-04-23 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970489', 'tblTempUsageDetail_20' ) end [2025-04-23 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970489', 'tblTempVendorCDR_20' ) start [2025-04-23 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970489', 'tblTempVendorCDR_20' ) end [2025-04-23 06:38:18] Production.INFO: ProcessCDR(1,14970489,1,1,2) [2025-04-23 06:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970489', 'tblTempUsageDetail_20' ) start [2025-04-23 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970489', 'tblTempUsageDetail_20' ) end [2025-04-23 06:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 06:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 06:38:21] Production.INFO: ==20862== Releasing lock... [2025-04-23 06:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 06:38:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 03:39:05 [end_date_ymd] => 2025-04-23 06:39:05 [RateCDR] => 1 ) [2025-04-23 06:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 03:39:05' and `end` < '2025-04-23 06:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 06:39:17] Production.INFO: count ==37 [2025-04-23 06:39:17] Production.ERROR: pbx CDR StartTime 2025-04-23 03:39:05 - End Time 2025-04-23 06:39:05 [2025-04-23 06:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970494', 'tblTempUsageDetail_20' ) start [2025-04-23 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970494', 'tblTempUsageDetail_20' ) end [2025-04-23 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970494', 'tblTempVendorCDR_20' ) start [2025-04-23 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970494', 'tblTempVendorCDR_20' ) end [2025-04-23 06:39:17] Production.INFO: ProcessCDR(1,14970494,1,1,2) [2025-04-23 06:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970494', 'tblTempUsageDetail_20' ) start [2025-04-23 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970494', 'tblTempUsageDetail_20' ) end [2025-04-23 06:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 06:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 06:39:21] Production.INFO: ==20934== Releasing lock... [2025-04-23 06:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 06:39:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 03:40:06 [end_date_ymd] => 2025-04-23 06:40:06 [RateCDR] => 1 ) [2025-04-23 06:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 03:40:06' and `end` < '2025-04-23 06:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 06:40:19] Production.INFO: count ==37 [2025-04-23 06:40:19] Production.ERROR: pbx CDR StartTime 2025-04-23 03:40:06 - End Time 2025-04-23 06:40:06 [2025-04-23 06:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970499', 'tblTempUsageDetail_20' ) start [2025-04-23 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970499', 'tblTempUsageDetail_20' ) end [2025-04-23 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970499', 'tblTempVendorCDR_20' ) start [2025-04-23 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970499', 'tblTempVendorCDR_20' ) end [2025-04-23 06:40:19] Production.INFO: ProcessCDR(1,14970499,1,1,2) [2025-04-23 06:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970499', 'tblTempUsageDetail_20' ) start [2025-04-23 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970499', 'tblTempUsageDetail_20' ) end [2025-04-23 06:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 06:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 06:40:22] Production.INFO: ==21011== Releasing lock... [2025-04-23 06:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 06:40:22] Production.INFO: 28 MB #Memory Used# [2025-04-23 06:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 03:41:04 [end_date_ymd] => 2025-04-23 06:41:04 [RateCDR] => 1 ) [2025-04-23 06:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 03:41:04' and `end` < '2025-04-23 06:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 06:41:17] Production.INFO: count ==37 [2025-04-23 06:41:17] Production.ERROR: pbx CDR StartTime 2025-04-23 03:41:04 - End Time 2025-04-23 06:41:04 [2025-04-23 06:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970505', 'tblTempUsageDetail_20' ) start [2025-04-23 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970505', 'tblTempUsageDetail_20' ) end [2025-04-23 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970505', 'tblTempVendorCDR_20' ) start [2025-04-23 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970505', 'tblTempVendorCDR_20' ) end [2025-04-23 06:41:17] Production.INFO: ProcessCDR(1,14970505,1,1,2) [2025-04-23 06:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970505', 'tblTempUsageDetail_20' ) start [2025-04-23 06:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970505', 'tblTempUsageDetail_20' ) end [2025-04-23 06:41:20] Production.ERROR: pbx prc_insertCDR start [2025-04-23 06:41:20] Production.ERROR: pbx prc_insertCDR end [2025-04-23 06:41:20] Production.INFO: ==21083== Releasing lock... [2025-04-23 06:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 06:41:20] Production.INFO: 28 MB #Memory Used# [2025-04-23 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 03:42:05 [end_date_ymd] => 2025-04-23 06:42:05 [RateCDR] => 1 ) [2025-04-23 06:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 03:42:05' and `end` < '2025-04-23 06:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 06:42:18] Production.INFO: count ==37 [2025-04-23 06:42:18] Production.ERROR: pbx CDR StartTime 2025-04-23 03:42:05 - End Time 2025-04-23 06:42:05 [2025-04-23 06:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970510', 'tblTempUsageDetail_20' ) start [2025-04-23 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970510', 'tblTempUsageDetail_20' ) end [2025-04-23 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970510', 'tblTempVendorCDR_20' ) start [2025-04-23 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970510', 'tblTempVendorCDR_20' ) end [2025-04-23 06:42:18] Production.INFO: ProcessCDR(1,14970510,1,1,2) [2025-04-23 06:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970510', 'tblTempUsageDetail_20' ) start [2025-04-23 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970510', 'tblTempUsageDetail_20' ) end [2025-04-23 06:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 06:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 06:42:21] Production.INFO: ==21155== Releasing lock... [2025-04-23 06:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 06:42:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 06:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 03:43:04 [end_date_ymd] => 2025-04-23 06:43:04 [RateCDR] => 1 ) [2025-04-23 06:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 03:43:04' and `end` < '2025-04-23 06:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 06:43:17] Production.INFO: count ==36 [2025-04-23 06:43:17] Production.ERROR: pbx CDR StartTime 2025-04-23 03:43:04 - End Time 2025-04-23 06:43:04 [2025-04-23 06:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970515', 'tblTempUsageDetail_20' ) start [2025-04-23 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970515', 'tblTempUsageDetail_20' ) end [2025-04-23 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970515', 'tblTempVendorCDR_20' ) start [2025-04-23 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970515', 'tblTempVendorCDR_20' ) end [2025-04-23 06:43:17] Production.INFO: ProcessCDR(1,14970515,1,1,2) [2025-04-23 06:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970515', 'tblTempUsageDetail_20' ) start [2025-04-23 06:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970515', 'tblTempUsageDetail_20' ) end [2025-04-23 06:43:20] Production.ERROR: pbx prc_insertCDR start [2025-04-23 06:43:20] Production.ERROR: pbx prc_insertCDR end [2025-04-23 06:43:20] Production.INFO: ==21265== Releasing lock... [2025-04-23 06:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 06:43:20] Production.INFO: 28 MB #Memory Used# [2025-04-23 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 03:44:05 [end_date_ymd] => 2025-04-23 06:44:05 [RateCDR] => 1 ) [2025-04-23 06:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 03:44:05' and `end` < '2025-04-23 06:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 06:44:17] Production.INFO: count ==36 [2025-04-23 06:44:17] Production.ERROR: pbx CDR StartTime 2025-04-23 03:44:05 - End Time 2025-04-23 06:44:05 [2025-04-23 06:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970520', 'tblTempUsageDetail_20' ) start [2025-04-23 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970520', 'tblTempUsageDetail_20' ) end [2025-04-23 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970520', 'tblTempVendorCDR_20' ) start [2025-04-23 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970520', 'tblTempVendorCDR_20' ) end [2025-04-23 06:44:17] Production.INFO: ProcessCDR(1,14970520,1,1,2) [2025-04-23 06:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970520', 'tblTempUsageDetail_20' ) start [2025-04-23 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970520', 'tblTempUsageDetail_20' ) end [2025-04-23 06:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 06:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 06:44:21] Production.INFO: ==21338== Releasing lock... [2025-04-23 06:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 06:44:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 03:45:05 [end_date_ymd] => 2025-04-23 06:45:05 [RateCDR] => 1 ) [2025-04-23 06:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 03:45:05' and `end` < '2025-04-23 06:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 06:45:18] Production.INFO: count ==37 [2025-04-23 06:45:18] Production.ERROR: pbx CDR StartTime 2025-04-23 03:45:05 - End Time 2025-04-23 06:45:05 [2025-04-23 06:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970525', 'tblTempUsageDetail_20' ) start [2025-04-23 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970525', 'tblTempUsageDetail_20' ) end [2025-04-23 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970525', 'tblTempVendorCDR_20' ) start [2025-04-23 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970525', 'tblTempVendorCDR_20' ) end [2025-04-23 06:45:18] Production.INFO: ProcessCDR(1,14970525,1,1,2) [2025-04-23 06:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970525', 'tblTempUsageDetail_20' ) start [2025-04-23 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970525', 'tblTempUsageDetail_20' ) end [2025-04-23 06:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 06:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 06:45:21] Production.INFO: ==21409== Releasing lock... [2025-04-23 06:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 06:45:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 03:46:05 [end_date_ymd] => 2025-04-23 06:46:05 [RateCDR] => 1 ) [2025-04-23 06:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 03:46:05' and `end` < '2025-04-23 06:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 06:46:18] Production.INFO: count ==37 [2025-04-23 06:46:18] Production.ERROR: pbx CDR StartTime 2025-04-23 03:46:05 - End Time 2025-04-23 06:46:05 [2025-04-23 06:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970530', 'tblTempUsageDetail_20' ) start [2025-04-23 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970530', 'tblTempUsageDetail_20' ) end [2025-04-23 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970530', 'tblTempVendorCDR_20' ) start [2025-04-23 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970530', 'tblTempVendorCDR_20' ) end [2025-04-23 06:46:18] Production.INFO: ProcessCDR(1,14970530,1,1,2) [2025-04-23 06:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970530', 'tblTempUsageDetail_20' ) start [2025-04-23 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970530', 'tblTempUsageDetail_20' ) end [2025-04-23 06:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 06:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 06:46:21] Production.INFO: ==21480== Releasing lock... [2025-04-23 06:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 06:46:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 03:47:05 [end_date_ymd] => 2025-04-23 06:47:05 [RateCDR] => 1 ) [2025-04-23 06:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 03:47:05' and `end` < '2025-04-23 06:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 06:47:18] Production.INFO: count ==37 [2025-04-23 06:47:18] Production.ERROR: pbx CDR StartTime 2025-04-23 03:47:05 - End Time 2025-04-23 06:47:05 [2025-04-23 06:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970535', 'tblTempUsageDetail_20' ) start [2025-04-23 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970535', 'tblTempUsageDetail_20' ) end [2025-04-23 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970535', 'tblTempVendorCDR_20' ) start [2025-04-23 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970535', 'tblTempVendorCDR_20' ) end [2025-04-23 06:47:18] Production.INFO: ProcessCDR(1,14970535,1,1,2) [2025-04-23 06:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970535', 'tblTempUsageDetail_20' ) start [2025-04-23 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970535', 'tblTempUsageDetail_20' ) end [2025-04-23 06:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 06:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 06:47:21] Production.INFO: ==21552== Releasing lock... [2025-04-23 06:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 06:47:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 03:48:05 [end_date_ymd] => 2025-04-23 06:48:05 [RateCDR] => 1 ) [2025-04-23 06:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 03:48:05' and `end` < '2025-04-23 06:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 06:48:18] Production.INFO: count ==37 [2025-04-23 06:48:18] Production.ERROR: pbx CDR StartTime 2025-04-23 03:48:05 - End Time 2025-04-23 06:48:05 [2025-04-23 06:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970540', 'tblTempUsageDetail_20' ) start [2025-04-23 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970540', 'tblTempUsageDetail_20' ) end [2025-04-23 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970540', 'tblTempVendorCDR_20' ) start [2025-04-23 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970540', 'tblTempVendorCDR_20' ) end [2025-04-23 06:48:18] Production.INFO: ProcessCDR(1,14970540,1,1,2) [2025-04-23 06:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970540', 'tblTempUsageDetail_20' ) start [2025-04-23 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970540', 'tblTempUsageDetail_20' ) end [2025-04-23 06:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 06:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 06:48:21] Production.INFO: ==21623== Releasing lock... [2025-04-23 06:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 06:48:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 03:49:05 [end_date_ymd] => 2025-04-23 06:49:05 [RateCDR] => 1 ) [2025-04-23 06:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 03:49:05' and `end` < '2025-04-23 06:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 06:49:18] Production.INFO: count ==37 [2025-04-23 06:49:18] Production.ERROR: pbx CDR StartTime 2025-04-23 03:49:05 - End Time 2025-04-23 06:49:05 [2025-04-23 06:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970545', 'tblTempUsageDetail_20' ) start [2025-04-23 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970545', 'tblTempUsageDetail_20' ) end [2025-04-23 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970545', 'tblTempVendorCDR_20' ) start [2025-04-23 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970545', 'tblTempVendorCDR_20' ) end [2025-04-23 06:49:18] Production.INFO: ProcessCDR(1,14970545,1,1,2) [2025-04-23 06:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970545', 'tblTempUsageDetail_20' ) start [2025-04-23 06:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970545', 'tblTempUsageDetail_20' ) end [2025-04-23 06:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 06:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 06:49:22] Production.INFO: ==21692== Releasing lock... [2025-04-23 06:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 06:49:22] Production.INFO: 28 MB #Memory Used# [2025-04-23 06:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 03:50:06 [end_date_ymd] => 2025-04-23 06:50:06 [RateCDR] => 1 ) [2025-04-23 06:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 03:50:06' and `end` < '2025-04-23 06:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 06:50:18] Production.INFO: count ==37 [2025-04-23 06:50:18] Production.ERROR: pbx CDR StartTime 2025-04-23 03:50:06 - End Time 2025-04-23 06:50:06 [2025-04-23 06:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970551', 'tblTempUsageDetail_20' ) start [2025-04-23 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970551', 'tblTempUsageDetail_20' ) end [2025-04-23 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970551', 'tblTempVendorCDR_20' ) start [2025-04-23 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970551', 'tblTempVendorCDR_20' ) end [2025-04-23 06:50:18] Production.INFO: ProcessCDR(1,14970551,1,1,2) [2025-04-23 06:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970551', 'tblTempUsageDetail_20' ) start [2025-04-23 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970551', 'tblTempUsageDetail_20' ) end [2025-04-23 06:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 06:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 06:50:22] Production.INFO: ==21766== Releasing lock... [2025-04-23 06:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 06:50:22] Production.INFO: 28 MB #Memory Used# [2025-04-23 06:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 03:51:06 [end_date_ymd] => 2025-04-23 06:51:06 [RateCDR] => 1 ) [2025-04-23 06:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 03:51:06' and `end` < '2025-04-23 06:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 06:51:18] Production.INFO: count ==37 [2025-04-23 06:51:18] Production.ERROR: pbx CDR StartTime 2025-04-23 03:51:06 - End Time 2025-04-23 06:51:06 [2025-04-23 06:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970556', 'tblTempUsageDetail_20' ) start [2025-04-23 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970556', 'tblTempUsageDetail_20' ) end [2025-04-23 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970556', 'tblTempVendorCDR_20' ) start [2025-04-23 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970556', 'tblTempVendorCDR_20' ) end [2025-04-23 06:51:18] Production.INFO: ProcessCDR(1,14970556,1,1,2) [2025-04-23 06:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970556', 'tblTempUsageDetail_20' ) start [2025-04-23 06:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970556', 'tblTempUsageDetail_20' ) end [2025-04-23 06:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 06:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 06:51:22] Production.INFO: ==21839== Releasing lock... [2025-04-23 06:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 06:51:22] Production.INFO: 28 MB #Memory Used# [2025-04-23 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 03:52:05 [end_date_ymd] => 2025-04-23 06:52:05 [RateCDR] => 1 ) [2025-04-23 06:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 03:52:05' and `end` < '2025-04-23 06:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 06:52:18] Production.INFO: count ==37 [2025-04-23 06:52:18] Production.ERROR: pbx CDR StartTime 2025-04-23 03:52:05 - End Time 2025-04-23 06:52:05 [2025-04-23 06:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970561', 'tblTempUsageDetail_20' ) start [2025-04-23 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970561', 'tblTempUsageDetail_20' ) end [2025-04-23 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970561', 'tblTempVendorCDR_20' ) start [2025-04-23 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970561', 'tblTempVendorCDR_20' ) end [2025-04-23 06:52:18] Production.INFO: ProcessCDR(1,14970561,1,1,2) [2025-04-23 06:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970561', 'tblTempUsageDetail_20' ) start [2025-04-23 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970561', 'tblTempUsageDetail_20' ) end [2025-04-23 06:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 06:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 06:52:21] Production.INFO: ==21915== Releasing lock... [2025-04-23 06:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 06:52:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 03:53:05 [end_date_ymd] => 2025-04-23 06:53:05 [RateCDR] => 1 ) [2025-04-23 06:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 03:53:05' and `end` < '2025-04-23 06:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 06:53:18] Production.INFO: count ==37 [2025-04-23 06:53:18] Production.ERROR: pbx CDR StartTime 2025-04-23 03:53:05 - End Time 2025-04-23 06:53:05 [2025-04-23 06:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970566', 'tblTempUsageDetail_20' ) start [2025-04-23 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970566', 'tblTempUsageDetail_20' ) end [2025-04-23 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970566', 'tblTempVendorCDR_20' ) start [2025-04-23 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970566', 'tblTempVendorCDR_20' ) end [2025-04-23 06:53:18] Production.INFO: ProcessCDR(1,14970566,1,1,2) [2025-04-23 06:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970566', 'tblTempUsageDetail_20' ) start [2025-04-23 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970566', 'tblTempUsageDetail_20' ) end [2025-04-23 06:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 06:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 06:53:21] Production.INFO: ==21988== Releasing lock... [2025-04-23 06:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 06:53:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 03:54:05 [end_date_ymd] => 2025-04-23 06:54:05 [RateCDR] => 1 ) [2025-04-23 06:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 03:54:05' and `end` < '2025-04-23 06:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 06:54:17] Production.INFO: count ==37 [2025-04-23 06:54:17] Production.ERROR: pbx CDR StartTime 2025-04-23 03:54:05 - End Time 2025-04-23 06:54:05 [2025-04-23 06:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970571', 'tblTempUsageDetail_20' ) start [2025-04-23 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970571', 'tblTempUsageDetail_20' ) end [2025-04-23 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970571', 'tblTempVendorCDR_20' ) start [2025-04-23 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970571', 'tblTempVendorCDR_20' ) end [2025-04-23 06:54:17] Production.INFO: ProcessCDR(1,14970571,1,1,2) [2025-04-23 06:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970571', 'tblTempUsageDetail_20' ) start [2025-04-23 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970571', 'tblTempUsageDetail_20' ) end [2025-04-23 06:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 06:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 06:54:21] Production.INFO: ==22064== Releasing lock... [2025-04-23 06:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 06:54:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 06:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 03:55:06 [end_date_ymd] => 2025-04-23 06:55:06 [RateCDR] => 1 ) [2025-04-23 06:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 03:55:06' and `end` < '2025-04-23 06:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 06:55:18] Production.INFO: count ==37 [2025-04-23 06:55:18] Production.ERROR: pbx CDR StartTime 2025-04-23 03:55:06 - End Time 2025-04-23 06:55:06 [2025-04-23 06:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970576', 'tblTempUsageDetail_20' ) start [2025-04-23 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970576', 'tblTempUsageDetail_20' ) end [2025-04-23 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970576', 'tblTempVendorCDR_20' ) start [2025-04-23 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970576', 'tblTempVendorCDR_20' ) end [2025-04-23 06:55:18] Production.INFO: ProcessCDR(1,14970576,1,1,2) [2025-04-23 06:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970576', 'tblTempUsageDetail_20' ) start [2025-04-23 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970576', 'tblTempUsageDetail_20' ) end [2025-04-23 06:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 06:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 06:55:21] Production.INFO: ==22143== Releasing lock... [2025-04-23 06:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 06:55:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 03:56:05 [end_date_ymd] => 2025-04-23 06:56:05 [RateCDR] => 1 ) [2025-04-23 06:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 03:56:05' and `end` < '2025-04-23 06:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 06:56:17] Production.INFO: count ==37 [2025-04-23 06:56:17] Production.ERROR: pbx CDR StartTime 2025-04-23 03:56:05 - End Time 2025-04-23 06:56:05 [2025-04-23 06:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970581', 'tblTempUsageDetail_20' ) start [2025-04-23 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970581', 'tblTempUsageDetail_20' ) end [2025-04-23 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970581', 'tblTempVendorCDR_20' ) start [2025-04-23 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970581', 'tblTempVendorCDR_20' ) end [2025-04-23 06:56:17] Production.INFO: ProcessCDR(1,14970581,1,1,2) [2025-04-23 06:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970581', 'tblTempUsageDetail_20' ) start [2025-04-23 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970581', 'tblTempUsageDetail_20' ) end [2025-04-23 06:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 06:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 06:56:21] Production.INFO: ==22214== Releasing lock... [2025-04-23 06:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 06:56:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 03:57:05 [end_date_ymd] => 2025-04-23 06:57:05 [RateCDR] => 1 ) [2025-04-23 06:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 03:57:05' and `end` < '2025-04-23 06:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 06:57:18] Production.INFO: count ==37 [2025-04-23 06:57:18] Production.ERROR: pbx CDR StartTime 2025-04-23 03:57:05 - End Time 2025-04-23 06:57:05 [2025-04-23 06:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970586', 'tblTempUsageDetail_20' ) start [2025-04-23 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970586', 'tblTempUsageDetail_20' ) end [2025-04-23 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970586', 'tblTempVendorCDR_20' ) start [2025-04-23 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970586', 'tblTempVendorCDR_20' ) end [2025-04-23 06:57:18] Production.INFO: ProcessCDR(1,14970586,1,1,2) [2025-04-23 06:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970586', 'tblTempUsageDetail_20' ) start [2025-04-23 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970586', 'tblTempUsageDetail_20' ) end [2025-04-23 06:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 06:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 06:57:21] Production.INFO: ==22286== Releasing lock... [2025-04-23 06:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 06:57:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 03:58:05 [end_date_ymd] => 2025-04-23 06:58:05 [RateCDR] => 1 ) [2025-04-23 06:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 03:58:05' and `end` < '2025-04-23 06:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 06:58:18] Production.INFO: count ==37 [2025-04-23 06:58:18] Production.ERROR: pbx CDR StartTime 2025-04-23 03:58:05 - End Time 2025-04-23 06:58:05 [2025-04-23 06:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970591', 'tblTempUsageDetail_20' ) start [2025-04-23 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970591', 'tblTempUsageDetail_20' ) end [2025-04-23 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970591', 'tblTempVendorCDR_20' ) start [2025-04-23 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970591', 'tblTempVendorCDR_20' ) end [2025-04-23 06:58:18] Production.INFO: ProcessCDR(1,14970591,1,1,2) [2025-04-23 06:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970591', 'tblTempUsageDetail_20' ) start [2025-04-23 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970591', 'tblTempUsageDetail_20' ) end [2025-04-23 06:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 06:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 06:58:21] Production.INFO: ==22356== Releasing lock... [2025-04-23 06:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 06:58:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 03:59:05 [end_date_ymd] => 2025-04-23 06:59:05 [RateCDR] => 1 ) [2025-04-23 06:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 03:59:05' and `end` < '2025-04-23 06:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 06:59:18] Production.INFO: count ==38 [2025-04-23 06:59:18] Production.ERROR: pbx CDR StartTime 2025-04-23 03:59:05 - End Time 2025-04-23 06:59:05 [2025-04-23 06:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970596', 'tblTempUsageDetail_20' ) start [2025-04-23 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970596', 'tblTempUsageDetail_20' ) end [2025-04-23 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970596', 'tblTempVendorCDR_20' ) start [2025-04-23 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970596', 'tblTempVendorCDR_20' ) end [2025-04-23 06:59:18] Production.INFO: ProcessCDR(1,14970596,1,1,2) [2025-04-23 06:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 06:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 06:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970596', 'tblTempUsageDetail_20' ) start [2025-04-23 06:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970596', 'tblTempUsageDetail_20' ) end [2025-04-23 06:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 06:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 06:59:22] Production.INFO: ==22470== Releasing lock... [2025-04-23 06:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 06:59:22] Production.INFO: 28 MB #Memory Used# [2025-04-23 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 04:00:06 [end_date_ymd] => 2025-04-23 07:00:06 [RateCDR] => 1 ) [2025-04-23 07:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 04:00:06' and `end` < '2025-04-23 07:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 07:00:19] Production.INFO: count ==38 [2025-04-23 07:00:19] Production.ERROR: pbx CDR StartTime 2025-04-23 04:00:06 - End Time 2025-04-23 07:00:06 [2025-04-23 07:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970601', 'tblTempUsageDetail_20' ) start [2025-04-23 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970601', 'tblTempUsageDetail_20' ) end [2025-04-23 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970601', 'tblTempVendorCDR_20' ) start [2025-04-23 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970601', 'tblTempVendorCDR_20' ) end [2025-04-23 07:00:19] Production.INFO: ProcessCDR(1,14970601,1,1,2) [2025-04-23 07:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970601', 'tblTempUsageDetail_20' ) start [2025-04-23 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970601', 'tblTempUsageDetail_20' ) end [2025-04-23 07:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 07:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 07:00:22] Production.INFO: ==22543== Releasing lock... [2025-04-23 07:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 07:00:22] Production.INFO: 28 MB #Memory Used# [2025-04-23 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 04:01:05 [end_date_ymd] => 2025-04-23 07:01:05 [RateCDR] => 1 ) [2025-04-23 07:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 04:01:05' and `end` < '2025-04-23 07:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 07:01:17] Production.INFO: count ==38 [2025-04-23 07:01:17] Production.ERROR: pbx CDR StartTime 2025-04-23 04:01:05 - End Time 2025-04-23 07:01:05 [2025-04-23 07:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970607', 'tblTempUsageDetail_20' ) start [2025-04-23 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970607', 'tblTempUsageDetail_20' ) end [2025-04-23 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970607', 'tblTempVendorCDR_20' ) start [2025-04-23 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970607', 'tblTempVendorCDR_20' ) end [2025-04-23 07:01:17] Production.INFO: ProcessCDR(1,14970607,1,1,2) [2025-04-23 07:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970607', 'tblTempUsageDetail_20' ) start [2025-04-23 07:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970607', 'tblTempUsageDetail_20' ) end [2025-04-23 07:01:20] Production.ERROR: pbx prc_insertCDR start [2025-04-23 07:01:20] Production.ERROR: pbx prc_insertCDR end [2025-04-23 07:01:21] Production.INFO: ==22706== Releasing lock... [2025-04-23 07:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 07:01:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 07:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 04:02:06 [end_date_ymd] => 2025-04-23 07:02:06 [RateCDR] => 1 ) [2025-04-23 07:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 04:02:06' and `end` < '2025-04-23 07:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 07:02:19] Production.INFO: count ==40 [2025-04-23 07:02:19] Production.ERROR: pbx CDR StartTime 2025-04-23 04:02:06 - End Time 2025-04-23 07:02:06 [2025-04-23 07:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970612', 'tblTempUsageDetail_20' ) start [2025-04-23 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970612', 'tblTempUsageDetail_20' ) end [2025-04-23 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970612', 'tblTempVendorCDR_20' ) start [2025-04-23 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970612', 'tblTempVendorCDR_20' ) end [2025-04-23 07:02:19] Production.INFO: ProcessCDR(1,14970612,1,1,2) [2025-04-23 07:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970612', 'tblTempUsageDetail_20' ) start [2025-04-23 07:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970612', 'tblTempUsageDetail_20' ) end [2025-04-23 07:02:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 07:02:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 07:02:24] Production.INFO: ==22777== Releasing lock... [2025-04-23 07:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 07:02:24] Production.INFO: 28 MB #Memory Used# [2025-04-23 07:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 04:03:05 [end_date_ymd] => 2025-04-23 07:03:05 [RateCDR] => 1 ) [2025-04-23 07:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 04:03:05' and `end` < '2025-04-23 07:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 07:03:19] Production.INFO: count ==40 [2025-04-23 07:03:19] Production.ERROR: pbx CDR StartTime 2025-04-23 04:03:05 - End Time 2025-04-23 07:03:05 [2025-04-23 07:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970617', 'tblTempUsageDetail_20' ) start [2025-04-23 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970617', 'tblTempUsageDetail_20' ) end [2025-04-23 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970617', 'tblTempVendorCDR_20' ) start [2025-04-23 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970617', 'tblTempVendorCDR_20' ) end [2025-04-23 07:03:19] Production.INFO: ProcessCDR(1,14970617,1,1,2) [2025-04-23 07:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970617', 'tblTempUsageDetail_20' ) start [2025-04-23 07:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970617', 'tblTempUsageDetail_20' ) end [2025-04-23 07:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 07:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 07:03:22] Production.INFO: ==22850== Releasing lock... [2025-04-23 07:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 07:03:22] Production.INFO: 28 MB #Memory Used# [2025-04-23 07:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 04:04:05 [end_date_ymd] => 2025-04-23 07:04:05 [RateCDR] => 1 ) [2025-04-23 07:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 04:04:05' and `end` < '2025-04-23 07:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 07:04:18] Production.INFO: count ==40 [2025-04-23 07:04:18] Production.ERROR: pbx CDR StartTime 2025-04-23 04:04:05 - End Time 2025-04-23 07:04:05 [2025-04-23 07:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970622', 'tblTempUsageDetail_20' ) start [2025-04-23 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970622', 'tblTempUsageDetail_20' ) end [2025-04-23 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970622', 'tblTempVendorCDR_20' ) start [2025-04-23 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970622', 'tblTempVendorCDR_20' ) end [2025-04-23 07:04:18] Production.INFO: ProcessCDR(1,14970622,1,1,2) [2025-04-23 07:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970622', 'tblTempUsageDetail_20' ) start [2025-04-23 07:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970622', 'tblTempUsageDetail_20' ) end [2025-04-23 07:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 07:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 07:04:21] Production.INFO: ==22926== Releasing lock... [2025-04-23 07:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 07:04:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 04:05:05 [end_date_ymd] => 2025-04-23 07:05:05 [RateCDR] => 1 ) [2025-04-23 07:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 04:05:05' and `end` < '2025-04-23 07:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 07:05:19] Production.INFO: count ==40 [2025-04-23 07:05:19] Production.ERROR: pbx CDR StartTime 2025-04-23 04:05:05 - End Time 2025-04-23 07:05:05 [2025-04-23 07:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970627', 'tblTempUsageDetail_20' ) start [2025-04-23 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970627', 'tblTempUsageDetail_20' ) end [2025-04-23 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970627', 'tblTempVendorCDR_20' ) start [2025-04-23 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970627', 'tblTempVendorCDR_20' ) end [2025-04-23 07:05:19] Production.INFO: ProcessCDR(1,14970627,1,1,2) [2025-04-23 07:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970627', 'tblTempUsageDetail_20' ) start [2025-04-23 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970627', 'tblTempUsageDetail_20' ) end [2025-04-23 07:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 07:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 07:05:22] Production.INFO: ==23081== Releasing lock... [2025-04-23 07:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 07:05:22] Production.INFO: 28 MB #Memory Used# [2025-04-23 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 04:06:05 [end_date_ymd] => 2025-04-23 07:06:05 [RateCDR] => 1 ) [2025-04-23 07:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 04:06:05' and `end` < '2025-04-23 07:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 07:06:18] Production.INFO: count ==40 [2025-04-23 07:06:18] Production.ERROR: pbx CDR StartTime 2025-04-23 04:06:05 - End Time 2025-04-23 07:06:05 [2025-04-23 07:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970632', 'tblTempUsageDetail_20' ) start [2025-04-23 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970632', 'tblTempUsageDetail_20' ) end [2025-04-23 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970632', 'tblTempVendorCDR_20' ) start [2025-04-23 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970632', 'tblTempVendorCDR_20' ) end [2025-04-23 07:06:18] Production.INFO: ProcessCDR(1,14970632,1,1,2) [2025-04-23 07:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970632', 'tblTempUsageDetail_20' ) start [2025-04-23 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970632', 'tblTempUsageDetail_20' ) end [2025-04-23 07:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 07:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 07:06:22] Production.INFO: ==23151== Releasing lock... [2025-04-23 07:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 07:06:22] Production.INFO: 28 MB #Memory Used# [2025-04-23 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 04:07:05 [end_date_ymd] => 2025-04-23 07:07:05 [RateCDR] => 1 ) [2025-04-23 07:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 04:07:05' and `end` < '2025-04-23 07:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 07:07:17] Production.INFO: count ==40 [2025-04-23 07:07:17] Production.ERROR: pbx CDR StartTime 2025-04-23 04:07:05 - End Time 2025-04-23 07:07:05 [2025-04-23 07:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 07:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970637', 'tblTempUsageDetail_20' ) start [2025-04-23 07:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970637', 'tblTempUsageDetail_20' ) end [2025-04-23 07:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970637', 'tblTempVendorCDR_20' ) start [2025-04-23 07:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970637', 'tblTempVendorCDR_20' ) end [2025-04-23 07:07:17] Production.INFO: ProcessCDR(1,14970637,1,1,2) [2025-04-23 07:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970637', 'tblTempUsageDetail_20' ) start [2025-04-23 07:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970637', 'tblTempUsageDetail_20' ) end [2025-04-23 07:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 07:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 07:07:21] Production.INFO: ==23224== Releasing lock... [2025-04-23 07:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 07:07:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 04:08:05 [end_date_ymd] => 2025-04-23 07:08:05 [RateCDR] => 1 ) [2025-04-23 07:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 04:08:05' and `end` < '2025-04-23 07:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 07:08:18] Production.INFO: count ==40 [2025-04-23 07:08:18] Production.ERROR: pbx CDR StartTime 2025-04-23 04:08:05 - End Time 2025-04-23 07:08:05 [2025-04-23 07:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970642', 'tblTempUsageDetail_20' ) start [2025-04-23 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970642', 'tblTempUsageDetail_20' ) end [2025-04-23 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970642', 'tblTempVendorCDR_20' ) start [2025-04-23 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970642', 'tblTempVendorCDR_20' ) end [2025-04-23 07:08:18] Production.INFO: ProcessCDR(1,14970642,1,1,2) [2025-04-23 07:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970642', 'tblTempUsageDetail_20' ) start [2025-04-23 07:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970642', 'tblTempUsageDetail_20' ) end [2025-04-23 07:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 07:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 07:08:21] Production.INFO: ==23375== Releasing lock... [2025-04-23 07:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 07:08:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 07:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 04:09:04 [end_date_ymd] => 2025-04-23 07:09:04 [RateCDR] => 1 ) [2025-04-23 07:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 04:09:04' and `end` < '2025-04-23 07:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 07:09:18] Production.INFO: count ==40 [2025-04-23 07:09:18] Production.ERROR: pbx CDR StartTime 2025-04-23 04:09:04 - End Time 2025-04-23 07:09:04 [2025-04-23 07:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970647', 'tblTempUsageDetail_20' ) start [2025-04-23 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970647', 'tblTempUsageDetail_20' ) end [2025-04-23 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970647', 'tblTempVendorCDR_20' ) start [2025-04-23 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970647', 'tblTempVendorCDR_20' ) end [2025-04-23 07:09:18] Production.INFO: ProcessCDR(1,14970647,1,1,2) [2025-04-23 07:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970647', 'tblTempUsageDetail_20' ) start [2025-04-23 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970647', 'tblTempUsageDetail_20' ) end [2025-04-23 07:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 07:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 07:09:21] Production.INFO: ==23445== Releasing lock... [2025-04-23 07:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 07:09:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 04:10:06 [end_date_ymd] => 2025-04-23 07:10:06 [RateCDR] => 1 ) [2025-04-23 07:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 04:10:06' and `end` < '2025-04-23 07:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 07:10:19] Production.INFO: count ==40 [2025-04-23 07:10:19] Production.ERROR: pbx CDR StartTime 2025-04-23 04:10:06 - End Time 2025-04-23 07:10:06 [2025-04-23 07:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970653', 'tblTempUsageDetail_20' ) start [2025-04-23 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970653', 'tblTempUsageDetail_20' ) end [2025-04-23 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970653', 'tblTempVendorCDR_20' ) start [2025-04-23 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970653', 'tblTempVendorCDR_20' ) end [2025-04-23 07:10:19] Production.INFO: ProcessCDR(1,14970653,1,1,2) [2025-04-23 07:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970653', 'tblTempUsageDetail_20' ) start [2025-04-23 07:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970653', 'tblTempUsageDetail_20' ) end [2025-04-23 07:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 07:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 07:10:23] Production.INFO: ==23526== Releasing lock... [2025-04-23 07:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 07:10:23] Production.INFO: 28 MB #Memory Used# [2025-04-23 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 04:11:05 [end_date_ymd] => 2025-04-23 07:11:05 [RateCDR] => 1 ) [2025-04-23 07:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 04:11:05' and `end` < '2025-04-23 07:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 07:11:18] Production.INFO: count ==41 [2025-04-23 07:11:18] Production.ERROR: pbx CDR StartTime 2025-04-23 04:11:05 - End Time 2025-04-23 07:11:05 [2025-04-23 07:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970658', 'tblTempUsageDetail_20' ) start [2025-04-23 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970658', 'tblTempUsageDetail_20' ) end [2025-04-23 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970658', 'tblTempVendorCDR_20' ) start [2025-04-23 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970658', 'tblTempVendorCDR_20' ) end [2025-04-23 07:11:18] Production.INFO: ProcessCDR(1,14970658,1,1,2) [2025-04-23 07:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970658', 'tblTempUsageDetail_20' ) start [2025-04-23 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970658', 'tblTempUsageDetail_20' ) end [2025-04-23 07:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 07:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 07:11:22] Production.INFO: ==23600== Releasing lock... [2025-04-23 07:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 07:11:22] Production.INFO: 28 MB #Memory Used# [2025-04-23 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 04:12:05 [end_date_ymd] => 2025-04-23 07:12:05 [RateCDR] => 1 ) [2025-04-23 07:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 04:12:05' and `end` < '2025-04-23 07:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 07:12:18] Production.INFO: count ==41 [2025-04-23 07:12:18] Production.ERROR: pbx CDR StartTime 2025-04-23 04:12:05 - End Time 2025-04-23 07:12:05 [2025-04-23 07:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970663', 'tblTempUsageDetail_20' ) start [2025-04-23 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970663', 'tblTempUsageDetail_20' ) end [2025-04-23 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970663', 'tblTempVendorCDR_20' ) start [2025-04-23 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970663', 'tblTempVendorCDR_20' ) end [2025-04-23 07:12:18] Production.INFO: ProcessCDR(1,14970663,1,1,2) [2025-04-23 07:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970663', 'tblTempUsageDetail_20' ) start [2025-04-23 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970663', 'tblTempUsageDetail_20' ) end [2025-04-23 07:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 07:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 07:12:21] Production.INFO: ==23751== Releasing lock... [2025-04-23 07:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 07:12:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 04:13:05 [end_date_ymd] => 2025-04-23 07:13:05 [RateCDR] => 1 ) [2025-04-23 07:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 04:13:05' and `end` < '2025-04-23 07:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 07:13:18] Production.INFO: count ==41 [2025-04-23 07:13:18] Production.ERROR: pbx CDR StartTime 2025-04-23 04:13:05 - End Time 2025-04-23 07:13:05 [2025-04-23 07:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970668', 'tblTempUsageDetail_20' ) start [2025-04-23 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970668', 'tblTempUsageDetail_20' ) end [2025-04-23 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970668', 'tblTempVendorCDR_20' ) start [2025-04-23 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970668', 'tblTempVendorCDR_20' ) end [2025-04-23 07:13:18] Production.INFO: ProcessCDR(1,14970668,1,1,2) [2025-04-23 07:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970668', 'tblTempUsageDetail_20' ) start [2025-04-23 07:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970668', 'tblTempUsageDetail_20' ) end [2025-04-23 07:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 07:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 07:13:21] Production.INFO: ==23835== Releasing lock... [2025-04-23 07:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 07:13:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 07:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 04:14:04 [end_date_ymd] => 2025-04-23 07:14:04 [RateCDR] => 1 ) [2025-04-23 07:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 04:14:04' and `end` < '2025-04-23 07:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 07:14:17] Production.INFO: count ==41 [2025-04-23 07:14:17] Production.ERROR: pbx CDR StartTime 2025-04-23 04:14:04 - End Time 2025-04-23 07:14:04 [2025-04-23 07:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 07:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970673', 'tblTempUsageDetail_20' ) start [2025-04-23 07:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970673', 'tblTempUsageDetail_20' ) end [2025-04-23 07:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970673', 'tblTempVendorCDR_20' ) start [2025-04-23 07:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970673', 'tblTempVendorCDR_20' ) end [2025-04-23 07:14:17] Production.INFO: ProcessCDR(1,14970673,1,1,2) [2025-04-23 07:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970673', 'tblTempUsageDetail_20' ) start [2025-04-23 07:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970673', 'tblTempUsageDetail_20' ) end [2025-04-23 07:14:20] Production.ERROR: pbx prc_insertCDR start [2025-04-23 07:14:20] Production.ERROR: pbx prc_insertCDR end [2025-04-23 07:14:21] Production.INFO: ==23949== Releasing lock... [2025-04-23 07:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 07:14:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 04:15:05 [end_date_ymd] => 2025-04-23 07:15:05 [RateCDR] => 1 ) [2025-04-23 07:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 04:15:05' and `end` < '2025-04-23 07:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 07:15:19] Production.INFO: count ==43 [2025-04-23 07:15:19] Production.ERROR: pbx CDR StartTime 2025-04-23 04:15:05 - End Time 2025-04-23 07:15:05 [2025-04-23 07:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970678', 'tblTempUsageDetail_20' ) start [2025-04-23 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970678', 'tblTempUsageDetail_20' ) end [2025-04-23 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970678', 'tblTempVendorCDR_20' ) start [2025-04-23 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970678', 'tblTempVendorCDR_20' ) end [2025-04-23 07:15:19] Production.INFO: ProcessCDR(1,14970678,1,1,2) [2025-04-23 07:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970678', 'tblTempUsageDetail_20' ) start [2025-04-23 07:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970678', 'tblTempUsageDetail_20' ) end [2025-04-23 07:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 07:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 07:15:22] Production.INFO: ==24100== Releasing lock... [2025-04-23 07:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 07:15:22] Production.INFO: 28 MB #Memory Used# [2025-04-23 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 04:16:05 [end_date_ymd] => 2025-04-23 07:16:05 [RateCDR] => 1 ) [2025-04-23 07:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 04:16:05' and `end` < '2025-04-23 07:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 07:16:18] Production.INFO: count ==43 [2025-04-23 07:16:18] Production.ERROR: pbx CDR StartTime 2025-04-23 04:16:05 - End Time 2025-04-23 07:16:05 [2025-04-23 07:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970683', 'tblTempUsageDetail_20' ) start [2025-04-23 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970683', 'tblTempUsageDetail_20' ) end [2025-04-23 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970683', 'tblTempVendorCDR_20' ) start [2025-04-23 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970683', 'tblTempVendorCDR_20' ) end [2025-04-23 07:16:18] Production.INFO: ProcessCDR(1,14970683,1,1,2) [2025-04-23 07:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970683', 'tblTempUsageDetail_20' ) start [2025-04-23 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970683', 'tblTempUsageDetail_20' ) end [2025-04-23 07:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 07:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 07:16:21] Production.INFO: ==24171== Releasing lock... [2025-04-23 07:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 07:16:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 07:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 04:17:05 [end_date_ymd] => 2025-04-23 07:17:05 [RateCDR] => 1 ) [2025-04-23 07:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 04:17:05' and `end` < '2025-04-23 07:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 07:17:18] Production.INFO: count ==43 [2025-04-23 07:17:18] Production.ERROR: pbx CDR StartTime 2025-04-23 04:17:05 - End Time 2025-04-23 07:17:05 [2025-04-23 07:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970688', 'tblTempUsageDetail_20' ) start [2025-04-23 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970688', 'tblTempUsageDetail_20' ) end [2025-04-23 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970688', 'tblTempVendorCDR_20' ) start [2025-04-23 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970688', 'tblTempVendorCDR_20' ) end [2025-04-23 07:17:18] Production.INFO: ProcessCDR(1,14970688,1,1,2) [2025-04-23 07:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970688', 'tblTempUsageDetail_20' ) start [2025-04-23 07:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970688', 'tblTempUsageDetail_20' ) end [2025-04-23 07:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 07:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 07:17:22] Production.INFO: ==24242== Releasing lock... [2025-04-23 07:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 07:17:22] Production.INFO: 28 MB #Memory Used# [2025-04-23 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 04:18:05 [end_date_ymd] => 2025-04-23 07:18:05 [RateCDR] => 1 ) [2025-04-23 07:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 04:18:05' and `end` < '2025-04-23 07:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 07:18:18] Production.INFO: count ==43 [2025-04-23 07:18:18] Production.ERROR: pbx CDR StartTime 2025-04-23 04:18:05 - End Time 2025-04-23 07:18:05 [2025-04-23 07:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970693', 'tblTempUsageDetail_20' ) start [2025-04-23 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970693', 'tblTempUsageDetail_20' ) end [2025-04-23 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970693', 'tblTempVendorCDR_20' ) start [2025-04-23 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970693', 'tblTempVendorCDR_20' ) end [2025-04-23 07:18:18] Production.INFO: ProcessCDR(1,14970693,1,1,2) [2025-04-23 07:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970693', 'tblTempUsageDetail_20' ) start [2025-04-23 07:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970693', 'tblTempUsageDetail_20' ) end [2025-04-23 07:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 07:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 07:18:21] Production.INFO: ==24312== Releasing lock... [2025-04-23 07:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 07:18:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 04:19:05 [end_date_ymd] => 2025-04-23 07:19:05 [RateCDR] => 1 ) [2025-04-23 07:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 04:19:05' and `end` < '2025-04-23 07:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 07:19:18] Production.INFO: count ==41 [2025-04-23 07:19:18] Production.ERROR: pbx CDR StartTime 2025-04-23 04:19:05 - End Time 2025-04-23 07:19:05 [2025-04-23 07:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970698', 'tblTempUsageDetail_20' ) start [2025-04-23 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970698', 'tblTempUsageDetail_20' ) end [2025-04-23 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970698', 'tblTempVendorCDR_20' ) start [2025-04-23 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970698', 'tblTempVendorCDR_20' ) end [2025-04-23 07:19:18] Production.INFO: ProcessCDR(1,14970698,1,1,2) [2025-04-23 07:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970698', 'tblTempUsageDetail_20' ) start [2025-04-23 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970698', 'tblTempUsageDetail_20' ) end [2025-04-23 07:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 07:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 07:19:21] Production.INFO: ==24389== Releasing lock... [2025-04-23 07:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 07:19:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 04:20:06 [end_date_ymd] => 2025-04-23 07:20:06 [RateCDR] => 1 ) [2025-04-23 07:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 04:20:06' and `end` < '2025-04-23 07:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 07:20:18] Production.INFO: count ==42 [2025-04-23 07:20:18] Production.ERROR: pbx CDR StartTime 2025-04-23 04:20:06 - End Time 2025-04-23 07:20:06 [2025-04-23 07:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970703', 'tblTempUsageDetail_20' ) start [2025-04-23 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970703', 'tblTempUsageDetail_20' ) end [2025-04-23 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970703', 'tblTempVendorCDR_20' ) start [2025-04-23 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970703', 'tblTempVendorCDR_20' ) end [2025-04-23 07:20:18] Production.INFO: ProcessCDR(1,14970703,1,1,2) [2025-04-23 07:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970703', 'tblTempUsageDetail_20' ) start [2025-04-23 07:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970703', 'tblTempUsageDetail_20' ) end [2025-04-23 07:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 07:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 07:20:23] Production.INFO: ==24463== Releasing lock... [2025-04-23 07:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 07:20:23] Production.INFO: 28 MB #Memory Used# [2025-04-23 07:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 04:21:05 [end_date_ymd] => 2025-04-23 07:21:05 [RateCDR] => 1 ) [2025-04-23 07:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 04:21:05' and `end` < '2025-04-23 07:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 07:21:18] Production.INFO: count ==42 [2025-04-23 07:21:18] Production.ERROR: pbx CDR StartTime 2025-04-23 04:21:05 - End Time 2025-04-23 07:21:05 [2025-04-23 07:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970709', 'tblTempUsageDetail_20' ) start [2025-04-23 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970709', 'tblTempUsageDetail_20' ) end [2025-04-23 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970709', 'tblTempVendorCDR_20' ) start [2025-04-23 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970709', 'tblTempVendorCDR_20' ) end [2025-04-23 07:21:18] Production.INFO: ProcessCDR(1,14970709,1,1,2) [2025-04-23 07:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970709', 'tblTempUsageDetail_20' ) start [2025-04-23 07:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970709', 'tblTempUsageDetail_20' ) end [2025-04-23 07:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 07:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 07:21:21] Production.INFO: ==24538== Releasing lock... [2025-04-23 07:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 07:21:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 04:22:05 [end_date_ymd] => 2025-04-23 07:22:05 [RateCDR] => 1 ) [2025-04-23 07:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 04:22:05' and `end` < '2025-04-23 07:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 07:22:20] Production.INFO: count ==42 [2025-04-23 07:22:20] Production.ERROR: pbx CDR StartTime 2025-04-23 04:22:05 - End Time 2025-04-23 07:22:05 [2025-04-23 07:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 07:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970714', 'tblTempUsageDetail_20' ) start [2025-04-23 07:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970714', 'tblTempUsageDetail_20' ) end [2025-04-23 07:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970714', 'tblTempVendorCDR_20' ) start [2025-04-23 07:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970714', 'tblTempVendorCDR_20' ) end [2025-04-23 07:22:20] Production.INFO: ProcessCDR(1,14970714,1,1,2) [2025-04-23 07:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970714', 'tblTempUsageDetail_20' ) start [2025-04-23 07:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970714', 'tblTempUsageDetail_20' ) end [2025-04-23 07:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 07:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 07:22:23] Production.INFO: ==24610== Releasing lock... [2025-04-23 07:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 07:22:23] Production.INFO: 28 MB #Memory Used# [2025-04-23 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 04:23:05 [end_date_ymd] => 2025-04-23 07:23:05 [RateCDR] => 1 ) [2025-04-23 07:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 04:23:05' and `end` < '2025-04-23 07:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 07:23:18] Production.INFO: count ==40 [2025-04-23 07:23:18] Production.ERROR: pbx CDR StartTime 2025-04-23 04:23:05 - End Time 2025-04-23 07:23:05 [2025-04-23 07:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970719', 'tblTempUsageDetail_20' ) start [2025-04-23 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970719', 'tblTempUsageDetail_20' ) end [2025-04-23 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970719', 'tblTempVendorCDR_20' ) start [2025-04-23 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970719', 'tblTempVendorCDR_20' ) end [2025-04-23 07:23:18] Production.INFO: ProcessCDR(1,14970719,1,1,2) [2025-04-23 07:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970719', 'tblTempUsageDetail_20' ) start [2025-04-23 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970719', 'tblTempUsageDetail_20' ) end [2025-04-23 07:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 07:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 07:23:21] Production.INFO: ==24683== Releasing lock... [2025-04-23 07:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 07:23:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 07:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 04:24:06 [end_date_ymd] => 2025-04-23 07:24:06 [RateCDR] => 1 ) [2025-04-23 07:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 04:24:06' and `end` < '2025-04-23 07:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 07:24:18] Production.INFO: count ==40 [2025-04-23 07:24:18] Production.ERROR: pbx CDR StartTime 2025-04-23 04:24:06 - End Time 2025-04-23 07:24:06 [2025-04-23 07:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970724', 'tblTempUsageDetail_20' ) start [2025-04-23 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970724', 'tblTempUsageDetail_20' ) end [2025-04-23 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970724', 'tblTempVendorCDR_20' ) start [2025-04-23 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970724', 'tblTempVendorCDR_20' ) end [2025-04-23 07:24:18] Production.INFO: ProcessCDR(1,14970724,1,1,2) [2025-04-23 07:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970724', 'tblTempUsageDetail_20' ) start [2025-04-23 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970724', 'tblTempUsageDetail_20' ) end [2025-04-23 07:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 07:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 07:24:21] Production.INFO: ==24754== Releasing lock... [2025-04-23 07:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 07:24:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 04:25:05 [end_date_ymd] => 2025-04-23 07:25:05 [RateCDR] => 1 ) [2025-04-23 07:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 04:25:05' and `end` < '2025-04-23 07:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 07:25:18] Production.INFO: count ==40 [2025-04-23 07:25:18] Production.ERROR: pbx CDR StartTime 2025-04-23 04:25:05 - End Time 2025-04-23 07:25:05 [2025-04-23 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970729', 'tblTempUsageDetail_20' ) start [2025-04-23 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970729', 'tblTempUsageDetail_20' ) end [2025-04-23 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970729', 'tblTempVendorCDR_20' ) start [2025-04-23 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970729', 'tblTempVendorCDR_20' ) end [2025-04-23 07:25:18] Production.INFO: ProcessCDR(1,14970729,1,1,2) [2025-04-23 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970729', 'tblTempUsageDetail_20' ) start [2025-04-23 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970729', 'tblTempUsageDetail_20' ) end [2025-04-23 07:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 07:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 07:25:21] Production.INFO: ==24832== Releasing lock... [2025-04-23 07:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 07:25:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 04:26:05 [end_date_ymd] => 2025-04-23 07:26:05 [RateCDR] => 1 ) [2025-04-23 07:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 04:26:05' and `end` < '2025-04-23 07:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 07:26:18] Production.INFO: count ==39 [2025-04-23 07:26:18] Production.ERROR: pbx CDR StartTime 2025-04-23 04:26:05 - End Time 2025-04-23 07:26:05 [2025-04-23 07:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970734', 'tblTempUsageDetail_20' ) start [2025-04-23 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970734', 'tblTempUsageDetail_20' ) end [2025-04-23 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970734', 'tblTempVendorCDR_20' ) start [2025-04-23 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970734', 'tblTempVendorCDR_20' ) end [2025-04-23 07:26:18] Production.INFO: ProcessCDR(1,14970734,1,1,2) [2025-04-23 07:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970734', 'tblTempUsageDetail_20' ) start [2025-04-23 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970734', 'tblTempUsageDetail_20' ) end [2025-04-23 07:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 07:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 07:26:21] Production.INFO: ==24905== Releasing lock... [2025-04-23 07:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 07:26:21] Production.INFO: 28 MB #Memory Used# [2025-04-23 07:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 04:27:05 [end_date_ymd] => 2025-04-23 07:27:05 [RateCDR] => 1 ) [2025-04-23 07:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 04:27:05' and `end` < '2025-04-23 07:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 07:27:17] Production.INFO: count ==39 [2025-04-23 07:27:17] Production.ERROR: pbx CDR StartTime 2025-04-23 04:27:05 - End Time 2025-04-23 07:27:05 [2025-04-23 07:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970739', 'tblTempUsageDetail_20' ) start [2025-04-23 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970739', 'tblTempUsageDetail_20' ) end [2025-04-23 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970739', 'tblTempVendorCDR_20' ) start [2025-04-23 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970739', 'tblTempVendorCDR_20' ) end [2025-04-23 07:27:17] Production.INFO: ProcessCDR(1,14970739,1,1,2) [2025-04-23 07:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970739', 'tblTempUsageDetail_20' ) start [2025-04-23 07:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970739', 'tblTempUsageDetail_20' ) end [2025-04-23 07:27:20] Production.ERROR: pbx prc_insertCDR start [2025-04-23 07:27:20] Production.ERROR: pbx prc_insertCDR end [2025-04-23 07:27:20] Production.INFO: ==24979== Releasing lock... [2025-04-23 07:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 07:27:20] Production.INFO: 28.25 MB #Memory Used# [2025-04-23 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 04:28:05 [end_date_ymd] => 2025-04-23 07:28:05 [RateCDR] => 1 ) [2025-04-23 07:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 04:28:05' and `end` < '2025-04-23 07:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 07:28:18] Production.INFO: count ==41 [2025-04-23 07:28:18] Production.ERROR: pbx CDR StartTime 2025-04-23 04:28:05 - End Time 2025-04-23 07:28:05 [2025-04-23 07:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970744', 'tblTempUsageDetail_20' ) start [2025-04-23 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970744', 'tblTempUsageDetail_20' ) end [2025-04-23 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970744', 'tblTempVendorCDR_20' ) start [2025-04-23 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970744', 'tblTempVendorCDR_20' ) end [2025-04-23 07:28:18] Production.INFO: ProcessCDR(1,14970744,1,1,2) [2025-04-23 07:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970744', 'tblTempUsageDetail_20' ) start [2025-04-23 07:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970744', 'tblTempUsageDetail_20' ) end [2025-04-23 07:28:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 07:28:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 07:28:23] Production.INFO: ==25051== Releasing lock... [2025-04-23 07:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 07:28:23] Production.INFO: 28 MB #Memory Used# [2025-04-23 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 04:29:05 [end_date_ymd] => 2025-04-23 07:29:05 [RateCDR] => 1 ) [2025-04-23 07:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 04:29:05' and `end` < '2025-04-23 07:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 07:29:18] Production.INFO: count ==42 [2025-04-23 07:29:18] Production.ERROR: pbx CDR StartTime 2025-04-23 04:29:05 - End Time 2025-04-23 07:29:05 [2025-04-23 07:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970749', 'tblTempUsageDetail_20' ) start [2025-04-23 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970749', 'tblTempUsageDetail_20' ) end [2025-04-23 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970749', 'tblTempVendorCDR_20' ) start [2025-04-23 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970749', 'tblTempVendorCDR_20' ) end [2025-04-23 07:29:18] Production.INFO: ProcessCDR(1,14970749,1,1,2) [2025-04-23 07:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970749', 'tblTempUsageDetail_20' ) start [2025-04-23 07:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970749', 'tblTempUsageDetail_20' ) end [2025-04-23 07:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 07:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 07:29:22] Production.INFO: ==25125== Releasing lock... [2025-04-23 07:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 07:29:22] Production.INFO: 28 MB #Memory Used# [2025-04-23 07:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 04:30:06 [end_date_ymd] => 2025-04-23 07:30:06 [RateCDR] => 1 ) [2025-04-23 07:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 04:30:06' and `end` < '2025-04-23 07:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 07:30:19] Production.INFO: count ==46 [2025-04-23 07:30:19] Production.ERROR: pbx CDR StartTime 2025-04-23 04:30:06 - End Time 2025-04-23 07:30:06 [2025-04-23 07:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970755', 'tblTempUsageDetail_20' ) start [2025-04-23 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970755', 'tblTempUsageDetail_20' ) end [2025-04-23 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970755', 'tblTempVendorCDR_20' ) start [2025-04-23 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970755', 'tblTempVendorCDR_20' ) end [2025-04-23 07:30:19] Production.INFO: ProcessCDR(1,14970755,1,1,2) [2025-04-23 07:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970755', 'tblTempUsageDetail_20' ) start [2025-04-23 07:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970755', 'tblTempUsageDetail_20' ) end [2025-04-23 07:30:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 07:30:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 07:30:24] Production.INFO: ==25235== Releasing lock... [2025-04-23 07:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 07:30:24] Production.INFO: 28 MB #Memory Used# [2025-04-23 07:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 04:31:06 [end_date_ymd] => 2025-04-23 07:31:06 [RateCDR] => 1 ) [2025-04-23 07:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 04:31:06' and `end` < '2025-04-23 07:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 07:31:18] Production.INFO: count ==47 [2025-04-23 07:31:18] Production.ERROR: pbx CDR StartTime 2025-04-23 04:31:06 - End Time 2025-04-23 07:31:06 [2025-04-23 07:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970760', 'tblTempUsageDetail_20' ) start [2025-04-23 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970760', 'tblTempUsageDetail_20' ) end [2025-04-23 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970760', 'tblTempVendorCDR_20' ) start [2025-04-23 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970760', 'tblTempVendorCDR_20' ) end [2025-04-23 07:31:18] Production.INFO: ProcessCDR(1,14970760,1,1,2) [2025-04-23 07:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970760', 'tblTempUsageDetail_20' ) start [2025-04-23 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970760', 'tblTempUsageDetail_20' ) end [2025-04-23 07:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 07:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 07:31:22] Production.INFO: ==25313== Releasing lock... [2025-04-23 07:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 07:31:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-23 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 04:32:05 [end_date_ymd] => 2025-04-23 07:32:05 [RateCDR] => 1 ) [2025-04-23 07:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 04:32:05' and `end` < '2025-04-23 07:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 07:32:18] Production.INFO: count ==53 [2025-04-23 07:32:18] Production.ERROR: pbx CDR StartTime 2025-04-23 04:32:05 - End Time 2025-04-23 07:32:05 [2025-04-23 07:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970765', 'tblTempUsageDetail_20' ) start [2025-04-23 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970765', 'tblTempUsageDetail_20' ) end [2025-04-23 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970765', 'tblTempVendorCDR_20' ) start [2025-04-23 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970765', 'tblTempVendorCDR_20' ) end [2025-04-23 07:32:18] Production.INFO: ProcessCDR(1,14970765,1,1,2) [2025-04-23 07:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970765', 'tblTempUsageDetail_20' ) start [2025-04-23 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970765', 'tblTempUsageDetail_20' ) end [2025-04-23 07:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 07:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 07:32:22] Production.INFO: ==25389== Releasing lock... [2025-04-23 07:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 07:32:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-23 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 04:33:05 [end_date_ymd] => 2025-04-23 07:33:05 [RateCDR] => 1 ) [2025-04-23 07:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 04:33:05' and `end` < '2025-04-23 07:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 07:33:18] Production.INFO: count ==56 [2025-04-23 07:33:18] Production.ERROR: pbx CDR StartTime 2025-04-23 04:33:05 - End Time 2025-04-23 07:33:05 [2025-04-23 07:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970770', 'tblTempUsageDetail_20' ) start [2025-04-23 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970770', 'tblTempUsageDetail_20' ) end [2025-04-23 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970770', 'tblTempVendorCDR_20' ) start [2025-04-23 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970770', 'tblTempVendorCDR_20' ) end [2025-04-23 07:33:18] Production.INFO: ProcessCDR(1,14970770,1,1,2) [2025-04-23 07:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970770', 'tblTempUsageDetail_20' ) start [2025-04-23 07:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970770', 'tblTempUsageDetail_20' ) end [2025-04-23 07:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 07:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 07:33:23] Production.INFO: ==25463== Releasing lock... [2025-04-23 07:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 07:33:23] Production.INFO: 28.5 MB #Memory Used# [2025-04-23 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 04:34:05 [end_date_ymd] => 2025-04-23 07:34:05 [RateCDR] => 1 ) [2025-04-23 07:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 04:34:05' and `end` < '2025-04-23 07:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 07:34:18] Production.INFO: count ==57 [2025-04-23 07:34:18] Production.ERROR: pbx CDR StartTime 2025-04-23 04:34:05 - End Time 2025-04-23 07:34:05 [2025-04-23 07:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970775', 'tblTempUsageDetail_20' ) start [2025-04-23 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970775', 'tblTempUsageDetail_20' ) end [2025-04-23 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970775', 'tblTempVendorCDR_20' ) start [2025-04-23 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970775', 'tblTempVendorCDR_20' ) end [2025-04-23 07:34:18] Production.INFO: ProcessCDR(1,14970775,1,1,2) [2025-04-23 07:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970775', 'tblTempUsageDetail_20' ) start [2025-04-23 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970775', 'tblTempUsageDetail_20' ) end [2025-04-23 07:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 07:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 07:34:21] Production.INFO: ==25535== Releasing lock... [2025-04-23 07:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 07:34:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-23 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 04:35:05 [end_date_ymd] => 2025-04-23 07:35:05 [RateCDR] => 1 ) [2025-04-23 07:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 04:35:05' and `end` < '2025-04-23 07:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 07:35:18] Production.INFO: count ==60 [2025-04-23 07:35:18] Production.ERROR: pbx CDR StartTime 2025-04-23 04:35:05 - End Time 2025-04-23 07:35:05 [2025-04-23 07:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970780', 'tblTempUsageDetail_20' ) start [2025-04-23 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970780', 'tblTempUsageDetail_20' ) end [2025-04-23 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970780', 'tblTempVendorCDR_20' ) start [2025-04-23 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970780', 'tblTempVendorCDR_20' ) end [2025-04-23 07:35:18] Production.INFO: ProcessCDR(1,14970780,1,1,2) [2025-04-23 07:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970780', 'tblTempUsageDetail_20' ) start [2025-04-23 07:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970780', 'tblTempUsageDetail_20' ) end [2025-04-23 07:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 07:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 07:35:23] Production.INFO: ==25607== Releasing lock... [2025-04-23 07:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 07:35:23] Production.INFO: 28.5 MB #Memory Used# [2025-04-23 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 04:36:05 [end_date_ymd] => 2025-04-23 07:36:05 [RateCDR] => 1 ) [2025-04-23 07:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 04:36:05' and `end` < '2025-04-23 07:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 07:36:17] Production.INFO: count ==62 [2025-04-23 07:36:17] Production.ERROR: pbx CDR StartTime 2025-04-23 04:36:05 - End Time 2025-04-23 07:36:05 [2025-04-23 07:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970785', 'tblTempUsageDetail_20' ) start [2025-04-23 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970785', 'tblTempUsageDetail_20' ) end [2025-04-23 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970785', 'tblTempVendorCDR_20' ) start [2025-04-23 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970785', 'tblTempVendorCDR_20' ) end [2025-04-23 07:36:17] Production.INFO: ProcessCDR(1,14970785,1,1,2) [2025-04-23 07:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970785', 'tblTempUsageDetail_20' ) start [2025-04-23 07:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970785', 'tblTempUsageDetail_20' ) end [2025-04-23 07:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 07:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 07:36:22] Production.INFO: ==25680== Releasing lock... [2025-04-23 07:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 07:36:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-23 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 04:37:05 [end_date_ymd] => 2025-04-23 07:37:05 [RateCDR] => 1 ) [2025-04-23 07:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 04:37:05' and `end` < '2025-04-23 07:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 07:37:18] Production.INFO: count ==67 [2025-04-23 07:37:18] Production.ERROR: pbx CDR StartTime 2025-04-23 04:37:05 - End Time 2025-04-23 07:37:05 [2025-04-23 07:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970790', 'tblTempUsageDetail_20' ) start [2025-04-23 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970790', 'tblTempUsageDetail_20' ) end [2025-04-23 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970790', 'tblTempVendorCDR_20' ) start [2025-04-23 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970790', 'tblTempVendorCDR_20' ) end [2025-04-23 07:37:18] Production.INFO: ProcessCDR(1,14970790,1,1,2) [2025-04-23 07:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970790', 'tblTempUsageDetail_20' ) start [2025-04-23 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970790', 'tblTempUsageDetail_20' ) end [2025-04-23 07:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 07:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 07:37:21] Production.INFO: ==25751== Releasing lock... [2025-04-23 07:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 07:37:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-23 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 04:38:05 [end_date_ymd] => 2025-04-23 07:38:05 [RateCDR] => 1 ) [2025-04-23 07:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 04:38:05' and `end` < '2025-04-23 07:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 07:38:18] Production.INFO: count ==67 [2025-04-23 07:38:18] Production.ERROR: pbx CDR StartTime 2025-04-23 04:38:05 - End Time 2025-04-23 07:38:05 [2025-04-23 07:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970795', 'tblTempUsageDetail_20' ) start [2025-04-23 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970795', 'tblTempUsageDetail_20' ) end [2025-04-23 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970795', 'tblTempVendorCDR_20' ) start [2025-04-23 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970795', 'tblTempVendorCDR_20' ) end [2025-04-23 07:38:18] Production.INFO: ProcessCDR(1,14970795,1,1,2) [2025-04-23 07:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970795', 'tblTempUsageDetail_20' ) start [2025-04-23 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970795', 'tblTempUsageDetail_20' ) end [2025-04-23 07:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 07:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 07:38:21] Production.INFO: ==25822== Releasing lock... [2025-04-23 07:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 07:38:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-23 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 04:39:05 [end_date_ymd] => 2025-04-23 07:39:05 [RateCDR] => 1 ) [2025-04-23 07:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 04:39:05' and `end` < '2025-04-23 07:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 07:39:18] Production.INFO: count ==67 [2025-04-23 07:39:18] Production.ERROR: pbx CDR StartTime 2025-04-23 04:39:05 - End Time 2025-04-23 07:39:05 [2025-04-23 07:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970800', 'tblTempUsageDetail_20' ) start [2025-04-23 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970800', 'tblTempUsageDetail_20' ) end [2025-04-23 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970800', 'tblTempVendorCDR_20' ) start [2025-04-23 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970800', 'tblTempVendorCDR_20' ) end [2025-04-23 07:39:18] Production.INFO: ProcessCDR(1,14970800,1,1,2) [2025-04-23 07:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970800', 'tblTempUsageDetail_20' ) start [2025-04-23 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970800', 'tblTempUsageDetail_20' ) end [2025-04-23 07:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 07:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 07:39:21] Production.INFO: ==25894== Releasing lock... [2025-04-23 07:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 07:39:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-23 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 04:40:06 [end_date_ymd] => 2025-04-23 07:40:06 [RateCDR] => 1 ) [2025-04-23 07:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 04:40:06' and `end` < '2025-04-23 07:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 07:40:19] Production.INFO: count ==67 [2025-04-23 07:40:19] Production.ERROR: pbx CDR StartTime 2025-04-23 04:40:06 - End Time 2025-04-23 07:40:06 [2025-04-23 07:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970806', 'tblTempUsageDetail_20' ) start [2025-04-23 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970806', 'tblTempUsageDetail_20' ) end [2025-04-23 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970806', 'tblTempVendorCDR_20' ) start [2025-04-23 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970806', 'tblTempVendorCDR_20' ) end [2025-04-23 07:40:19] Production.INFO: ProcessCDR(1,14970806,1,1,2) [2025-04-23 07:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970806', 'tblTempUsageDetail_20' ) start [2025-04-23 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970806', 'tblTempUsageDetail_20' ) end [2025-04-23 07:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 07:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 07:40:22] Production.INFO: ==25971== Releasing lock... [2025-04-23 07:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 07:40:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-23 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 04:41:05 [end_date_ymd] => 2025-04-23 07:41:05 [RateCDR] => 1 ) [2025-04-23 07:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 04:41:05' and `end` < '2025-04-23 07:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 07:41:18] Production.INFO: count ==67 [2025-04-23 07:41:18] Production.ERROR: pbx CDR StartTime 2025-04-23 04:41:05 - End Time 2025-04-23 07:41:05 [2025-04-23 07:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970811', 'tblTempUsageDetail_20' ) start [2025-04-23 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970811', 'tblTempUsageDetail_20' ) end [2025-04-23 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970811', 'tblTempVendorCDR_20' ) start [2025-04-23 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970811', 'tblTempVendorCDR_20' ) end [2025-04-23 07:41:18] Production.INFO: ProcessCDR(1,14970811,1,1,2) [2025-04-23 07:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970811', 'tblTempUsageDetail_20' ) start [2025-04-23 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970811', 'tblTempUsageDetail_20' ) end [2025-04-23 07:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 07:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 07:41:21] Production.INFO: ==26048== Releasing lock... [2025-04-23 07:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 07:41:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-23 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 04:42:05 [end_date_ymd] => 2025-04-23 07:42:05 [RateCDR] => 1 ) [2025-04-23 07:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 04:42:05' and `end` < '2025-04-23 07:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 07:42:18] Production.INFO: count ==67 [2025-04-23 07:42:18] Production.ERROR: pbx CDR StartTime 2025-04-23 04:42:05 - End Time 2025-04-23 07:42:05 [2025-04-23 07:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970816', 'tblTempUsageDetail_20' ) start [2025-04-23 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970816', 'tblTempUsageDetail_20' ) end [2025-04-23 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970816', 'tblTempVendorCDR_20' ) start [2025-04-23 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970816', 'tblTempVendorCDR_20' ) end [2025-04-23 07:42:18] Production.INFO: ProcessCDR(1,14970816,1,1,2) [2025-04-23 07:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970816', 'tblTempUsageDetail_20' ) start [2025-04-23 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970816', 'tblTempUsageDetail_20' ) end [2025-04-23 07:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 07:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 07:42:21] Production.INFO: ==26121== Releasing lock... [2025-04-23 07:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 07:42:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-23 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 04:43:05 [end_date_ymd] => 2025-04-23 07:43:05 [RateCDR] => 1 ) [2025-04-23 07:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 04:43:05' and `end` < '2025-04-23 07:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 07:43:18] Production.INFO: count ==67 [2025-04-23 07:43:18] Production.ERROR: pbx CDR StartTime 2025-04-23 04:43:05 - End Time 2025-04-23 07:43:05 [2025-04-23 07:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970821', 'tblTempUsageDetail_20' ) start [2025-04-23 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970821', 'tblTempUsageDetail_20' ) end [2025-04-23 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970821', 'tblTempVendorCDR_20' ) start [2025-04-23 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970821', 'tblTempVendorCDR_20' ) end [2025-04-23 07:43:18] Production.INFO: ProcessCDR(1,14970821,1,1,2) [2025-04-23 07:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970821', 'tblTempUsageDetail_20' ) start [2025-04-23 07:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970821', 'tblTempUsageDetail_20' ) end [2025-04-23 07:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 07:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 07:43:22] Production.INFO: ==26195== Releasing lock... [2025-04-23 07:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 07:43:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-23 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 04:44:05 [end_date_ymd] => 2025-04-23 07:44:05 [RateCDR] => 1 ) [2025-04-23 07:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 04:44:05' and `end` < '2025-04-23 07:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 07:44:18] Production.INFO: count ==67 [2025-04-23 07:44:18] Production.ERROR: pbx CDR StartTime 2025-04-23 04:44:05 - End Time 2025-04-23 07:44:05 [2025-04-23 07:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970826', 'tblTempUsageDetail_20' ) start [2025-04-23 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970826', 'tblTempUsageDetail_20' ) end [2025-04-23 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970826', 'tblTempVendorCDR_20' ) start [2025-04-23 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970826', 'tblTempVendorCDR_20' ) end [2025-04-23 07:44:18] Production.INFO: ProcessCDR(1,14970826,1,1,2) [2025-04-23 07:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970826', 'tblTempUsageDetail_20' ) start [2025-04-23 07:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970826', 'tblTempUsageDetail_20' ) end [2025-04-23 07:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 07:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 07:44:22] Production.INFO: ==26269== Releasing lock... [2025-04-23 07:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 07:44:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-23 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 04:45:05 [end_date_ymd] => 2025-04-23 07:45:05 [RateCDR] => 1 ) [2025-04-23 07:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 04:45:05' and `end` < '2025-04-23 07:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 07:45:17] Production.INFO: count ==72 [2025-04-23 07:45:17] Production.ERROR: pbx CDR StartTime 2025-04-23 04:45:05 - End Time 2025-04-23 07:45:05 [2025-04-23 07:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970831', 'tblTempUsageDetail_20' ) start [2025-04-23 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970831', 'tblTempUsageDetail_20' ) end [2025-04-23 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970831', 'tblTempVendorCDR_20' ) start [2025-04-23 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970831', 'tblTempVendorCDR_20' ) end [2025-04-23 07:45:17] Production.INFO: ProcessCDR(1,14970831,1,1,2) [2025-04-23 07:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970831', 'tblTempUsageDetail_20' ) start [2025-04-23 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970831', 'tblTempUsageDetail_20' ) end [2025-04-23 07:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 07:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 07:45:21] Production.INFO: ==26384== Releasing lock... [2025-04-23 07:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 07:45:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-23 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 04:46:05 [end_date_ymd] => 2025-04-23 07:46:05 [RateCDR] => 1 ) [2025-04-23 07:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 04:46:05' and `end` < '2025-04-23 07:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 07:46:18] Production.INFO: count ==72 [2025-04-23 07:46:18] Production.ERROR: pbx CDR StartTime 2025-04-23 04:46:05 - End Time 2025-04-23 07:46:05 [2025-04-23 07:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970836', 'tblTempUsageDetail_20' ) start [2025-04-23 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970836', 'tblTempUsageDetail_20' ) end [2025-04-23 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970836', 'tblTempVendorCDR_20' ) start [2025-04-23 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970836', 'tblTempVendorCDR_20' ) end [2025-04-23 07:46:18] Production.INFO: ProcessCDR(1,14970836,1,1,2) [2025-04-23 07:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970836', 'tblTempUsageDetail_20' ) start [2025-04-23 07:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970836', 'tblTempUsageDetail_20' ) end [2025-04-23 07:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 07:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 07:46:22] Production.INFO: ==26471== Releasing lock... [2025-04-23 07:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 07:46:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-23 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 04:47:05 [end_date_ymd] => 2025-04-23 07:47:05 [RateCDR] => 1 ) [2025-04-23 07:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 04:47:05' and `end` < '2025-04-23 07:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 07:47:18] Production.INFO: count ==72 [2025-04-23 07:47:18] Production.ERROR: pbx CDR StartTime 2025-04-23 04:47:05 - End Time 2025-04-23 07:47:05 [2025-04-23 07:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970841', 'tblTempUsageDetail_20' ) start [2025-04-23 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970841', 'tblTempUsageDetail_20' ) end [2025-04-23 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970841', 'tblTempVendorCDR_20' ) start [2025-04-23 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970841', 'tblTempVendorCDR_20' ) end [2025-04-23 07:47:18] Production.INFO: ProcessCDR(1,14970841,1,1,2) [2025-04-23 07:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970841', 'tblTempUsageDetail_20' ) start [2025-04-23 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970841', 'tblTempUsageDetail_20' ) end [2025-04-23 07:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 07:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 07:47:21] Production.INFO: ==26544== Releasing lock... [2025-04-23 07:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 07:47:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-23 07:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 04:48:06 [end_date_ymd] => 2025-04-23 07:48:06 [RateCDR] => 1 ) [2025-04-23 07:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 04:48:06' and `end` < '2025-04-23 07:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 07:48:18] Production.INFO: count ==72 [2025-04-23 07:48:18] Production.ERROR: pbx CDR StartTime 2025-04-23 04:48:06 - End Time 2025-04-23 07:48:06 [2025-04-23 07:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970846', 'tblTempUsageDetail_20' ) start [2025-04-23 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970846', 'tblTempUsageDetail_20' ) end [2025-04-23 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970846', 'tblTempVendorCDR_20' ) start [2025-04-23 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970846', 'tblTempVendorCDR_20' ) end [2025-04-23 07:48:18] Production.INFO: ProcessCDR(1,14970846,1,1,2) [2025-04-23 07:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970846', 'tblTempUsageDetail_20' ) start [2025-04-23 07:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970846', 'tblTempUsageDetail_20' ) end [2025-04-23 07:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 07:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 07:48:22] Production.INFO: ==26618== Releasing lock... [2025-04-23 07:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 07:48:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-23 07:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 04:49:04 [end_date_ymd] => 2025-04-23 07:49:04 [RateCDR] => 1 ) [2025-04-23 07:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 04:49:04' and `end` < '2025-04-23 07:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 07:49:17] Production.INFO: count ==74 [2025-04-23 07:49:17] Production.ERROR: pbx CDR StartTime 2025-04-23 04:49:04 - End Time 2025-04-23 07:49:04 [2025-04-23 07:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970851', 'tblTempUsageDetail_20' ) start [2025-04-23 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970851', 'tblTempUsageDetail_20' ) end [2025-04-23 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970851', 'tblTempVendorCDR_20' ) start [2025-04-23 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970851', 'tblTempVendorCDR_20' ) end [2025-04-23 07:49:17] Production.INFO: ProcessCDR(1,14970851,1,1,2) [2025-04-23 07:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970851', 'tblTempUsageDetail_20' ) start [2025-04-23 07:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970851', 'tblTempUsageDetail_20' ) end [2025-04-23 07:49:20] Production.ERROR: pbx prc_insertCDR start [2025-04-23 07:49:20] Production.ERROR: pbx prc_insertCDR end [2025-04-23 07:49:20] Production.INFO: ==26691== Releasing lock... [2025-04-23 07:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 07:49:20] Production.INFO: 28.75 MB #Memory Used# [2025-04-23 07:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 04:50:06 [end_date_ymd] => 2025-04-23 07:50:06 [RateCDR] => 1 ) [2025-04-23 07:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 04:50:06' and `end` < '2025-04-23 07:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 07:50:19] Production.INFO: count ==84 [2025-04-23 07:50:19] Production.ERROR: pbx CDR StartTime 2025-04-23 04:50:06 - End Time 2025-04-23 07:50:06 [2025-04-23 07:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970856', 'tblTempUsageDetail_20' ) start [2025-04-23 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970856', 'tblTempUsageDetail_20' ) end [2025-04-23 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970856', 'tblTempVendorCDR_20' ) start [2025-04-23 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970856', 'tblTempVendorCDR_20' ) end [2025-04-23 07:50:19] Production.INFO: ProcessCDR(1,14970856,1,1,2) [2025-04-23 07:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970856', 'tblTempUsageDetail_20' ) start [2025-04-23 07:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970856', 'tblTempUsageDetail_20' ) end [2025-04-23 07:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 07:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 07:50:22] Production.INFO: ==26767== Releasing lock... [2025-04-23 07:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 07:50:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-23 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 04:51:05 [end_date_ymd] => 2025-04-23 07:51:05 [RateCDR] => 1 ) [2025-04-23 07:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 04:51:05' and `end` < '2025-04-23 07:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 07:51:17] Production.INFO: count ==90 [2025-04-23 07:51:17] Production.ERROR: pbx CDR StartTime 2025-04-23 04:51:05 - End Time 2025-04-23 07:51:05 [2025-04-23 07:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970862', 'tblTempUsageDetail_20' ) start [2025-04-23 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970862', 'tblTempUsageDetail_20' ) end [2025-04-23 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970862', 'tblTempVendorCDR_20' ) start [2025-04-23 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970862', 'tblTempVendorCDR_20' ) end [2025-04-23 07:51:17] Production.INFO: ProcessCDR(1,14970862,1,1,2) [2025-04-23 07:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970862', 'tblTempUsageDetail_20' ) start [2025-04-23 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970862', 'tblTempUsageDetail_20' ) end [2025-04-23 07:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 07:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 07:51:21] Production.INFO: ==26840== Releasing lock... [2025-04-23 07:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 07:51:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-23 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 04:52:05 [end_date_ymd] => 2025-04-23 07:52:05 [RateCDR] => 1 ) [2025-04-23 07:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 04:52:05' and `end` < '2025-04-23 07:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 07:52:17] Production.INFO: count ==91 [2025-04-23 07:52:17] Production.ERROR: pbx CDR StartTime 2025-04-23 04:52:05 - End Time 2025-04-23 07:52:05 [2025-04-23 07:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970867', 'tblTempUsageDetail_20' ) start [2025-04-23 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970867', 'tblTempUsageDetail_20' ) end [2025-04-23 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970867', 'tblTempVendorCDR_20' ) start [2025-04-23 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970867', 'tblTempVendorCDR_20' ) end [2025-04-23 07:52:17] Production.INFO: ProcessCDR(1,14970867,1,1,2) [2025-04-23 07:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970867', 'tblTempUsageDetail_20' ) start [2025-04-23 07:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970867', 'tblTempUsageDetail_20' ) end [2025-04-23 07:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 07:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 07:52:22] Production.INFO: ==26916== Releasing lock... [2025-04-23 07:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 07:52:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-23 07:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 04:53:06 [end_date_ymd] => 2025-04-23 07:53:06 [RateCDR] => 1 ) [2025-04-23 07:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 04:53:06' and `end` < '2025-04-23 07:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 07:53:18] Production.INFO: count ==91 [2025-04-23 07:53:18] Production.ERROR: pbx CDR StartTime 2025-04-23 04:53:06 - End Time 2025-04-23 07:53:06 [2025-04-23 07:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970872', 'tblTempUsageDetail_20' ) start [2025-04-23 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970872', 'tblTempUsageDetail_20' ) end [2025-04-23 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970872', 'tblTempVendorCDR_20' ) start [2025-04-23 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970872', 'tblTempVendorCDR_20' ) end [2025-04-23 07:53:18] Production.INFO: ProcessCDR(1,14970872,1,1,2) [2025-04-23 07:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970872', 'tblTempUsageDetail_20' ) start [2025-04-23 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970872', 'tblTempUsageDetail_20' ) end [2025-04-23 07:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 07:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 07:53:22] Production.INFO: ==26992== Releasing lock... [2025-04-23 07:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 07:53:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-23 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 04:54:05 [end_date_ymd] => 2025-04-23 07:54:05 [RateCDR] => 1 ) [2025-04-23 07:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 04:54:05' and `end` < '2025-04-23 07:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 07:54:18] Production.INFO: count ==94 [2025-04-23 07:54:18] Production.ERROR: pbx CDR StartTime 2025-04-23 04:54:05 - End Time 2025-04-23 07:54:05 [2025-04-23 07:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970877', 'tblTempUsageDetail_20' ) start [2025-04-23 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970877', 'tblTempUsageDetail_20' ) end [2025-04-23 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970877', 'tblTempVendorCDR_20' ) start [2025-04-23 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970877', 'tblTempVendorCDR_20' ) end [2025-04-23 07:54:18] Production.INFO: ProcessCDR(1,14970877,1,1,2) [2025-04-23 07:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970877', 'tblTempUsageDetail_20' ) start [2025-04-23 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970877', 'tblTempUsageDetail_20' ) end [2025-04-23 07:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 07:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 07:54:21] Production.INFO: ==27063== Releasing lock... [2025-04-23 07:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 07:54:21] Production.INFO: 29 MB #Memory Used# [2025-04-23 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 04:55:05 [end_date_ymd] => 2025-04-23 07:55:05 [RateCDR] => 1 ) [2025-04-23 07:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 04:55:05' and `end` < '2025-04-23 07:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 07:55:18] Production.INFO: count ==97 [2025-04-23 07:55:18] Production.ERROR: pbx CDR StartTime 2025-04-23 04:55:05 - End Time 2025-04-23 07:55:05 [2025-04-23 07:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970882', 'tblTempUsageDetail_20' ) start [2025-04-23 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970882', 'tblTempUsageDetail_20' ) end [2025-04-23 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970882', 'tblTempVendorCDR_20' ) start [2025-04-23 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970882', 'tblTempVendorCDR_20' ) end [2025-04-23 07:55:18] Production.INFO: ProcessCDR(1,14970882,1,1,2) [2025-04-23 07:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970882', 'tblTempUsageDetail_20' ) start [2025-04-23 07:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970882', 'tblTempUsageDetail_20' ) end [2025-04-23 07:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 07:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 07:55:23] Production.INFO: ==27140== Releasing lock... [2025-04-23 07:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 07:55:23] Production.INFO: 29 MB #Memory Used# [2025-04-23 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 04:56:05 [end_date_ymd] => 2025-04-23 07:56:05 [RateCDR] => 1 ) [2025-04-23 07:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 04:56:05' and `end` < '2025-04-23 07:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 07:56:17] Production.INFO: count ==103 [2025-04-23 07:56:17] Production.ERROR: pbx CDR StartTime 2025-04-23 04:56:05 - End Time 2025-04-23 07:56:05 [2025-04-23 07:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970887', 'tblTempUsageDetail_20' ) start [2025-04-23 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970887', 'tblTempUsageDetail_20' ) end [2025-04-23 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970887', 'tblTempVendorCDR_20' ) start [2025-04-23 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970887', 'tblTempVendorCDR_20' ) end [2025-04-23 07:56:17] Production.INFO: ProcessCDR(1,14970887,1,1,2) [2025-04-23 07:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970887', 'tblTempUsageDetail_20' ) start [2025-04-23 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970887', 'tblTempUsageDetail_20' ) end [2025-04-23 07:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 07:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 07:56:21] Production.INFO: ==27217== Releasing lock... [2025-04-23 07:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 07:56:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-23 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 04:57:05 [end_date_ymd] => 2025-04-23 07:57:05 [RateCDR] => 1 ) [2025-04-23 07:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 04:57:05' and `end` < '2025-04-23 07:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 07:57:18] Production.INFO: count ==103 [2025-04-23 07:57:18] Production.ERROR: pbx CDR StartTime 2025-04-23 04:57:05 - End Time 2025-04-23 07:57:05 [2025-04-23 07:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970892', 'tblTempUsageDetail_20' ) start [2025-04-23 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970892', 'tblTempUsageDetail_20' ) end [2025-04-23 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970892', 'tblTempVendorCDR_20' ) start [2025-04-23 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970892', 'tblTempVendorCDR_20' ) end [2025-04-23 07:57:18] Production.INFO: ProcessCDR(1,14970892,1,1,2) [2025-04-23 07:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970892', 'tblTempUsageDetail_20' ) start [2025-04-23 07:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970892', 'tblTempUsageDetail_20' ) end [2025-04-23 07:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 07:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 07:57:22] Production.INFO: ==27291== Releasing lock... [2025-04-23 07:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 07:57:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-23 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 04:58:05 [end_date_ymd] => 2025-04-23 07:58:05 [RateCDR] => 1 ) [2025-04-23 07:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 04:58:05' and `end` < '2025-04-23 07:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 07:58:18] Production.INFO: count ==120 [2025-04-23 07:58:18] Production.ERROR: pbx CDR StartTime 2025-04-23 04:58:05 - End Time 2025-04-23 07:58:05 [2025-04-23 07:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970897', 'tblTempUsageDetail_20' ) start [2025-04-23 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970897', 'tblTempUsageDetail_20' ) end [2025-04-23 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970897', 'tblTempVendorCDR_20' ) start [2025-04-23 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970897', 'tblTempVendorCDR_20' ) end [2025-04-23 07:58:18] Production.INFO: ProcessCDR(1,14970897,1,1,2) [2025-04-23 07:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970897', 'tblTempUsageDetail_20' ) start [2025-04-23 07:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970897', 'tblTempUsageDetail_20' ) end [2025-04-23 07:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 07:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 07:58:22] Production.INFO: ==27363== Releasing lock... [2025-04-23 07:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 07:58:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-23 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 04:59:05 [end_date_ymd] => 2025-04-23 07:59:05 [RateCDR] => 1 ) [2025-04-23 07:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 04:59:05' and `end` < '2025-04-23 07:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 07:59:18] Production.INFO: count ==121 [2025-04-23 07:59:18] Production.ERROR: pbx CDR StartTime 2025-04-23 04:59:05 - End Time 2025-04-23 07:59:05 [2025-04-23 07:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970902', 'tblTempUsageDetail_20' ) start [2025-04-23 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970902', 'tblTempUsageDetail_20' ) end [2025-04-23 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970902', 'tblTempVendorCDR_20' ) start [2025-04-23 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970902', 'tblTempVendorCDR_20' ) end [2025-04-23 07:59:18] Production.INFO: ProcessCDR(1,14970902,1,1,2) [2025-04-23 07:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 07:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 07:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970902', 'tblTempUsageDetail_20' ) start [2025-04-23 07:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970902', 'tblTempUsageDetail_20' ) end [2025-04-23 07:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 07:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 07:59:23] Production.INFO: ==27434== Releasing lock... [2025-04-23 07:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 07:59:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-23 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 05:00:06 [end_date_ymd] => 2025-04-23 08:00:06 [RateCDR] => 1 ) [2025-04-23 08:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 05:00:06' and `end` < '2025-04-23 08:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 08:00:19] Production.INFO: count ==131 [2025-04-23 08:00:19] Production.ERROR: pbx CDR StartTime 2025-04-23 05:00:06 - End Time 2025-04-23 08:00:06 [2025-04-23 08:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970908', 'tblTempUsageDetail_20' ) start [2025-04-23 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970908', 'tblTempUsageDetail_20' ) end [2025-04-23 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970908', 'tblTempVendorCDR_20' ) start [2025-04-23 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970908', 'tblTempVendorCDR_20' ) end [2025-04-23 08:00:19] Production.INFO: ProcessCDR(1,14970908,1,1,2) [2025-04-23 08:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970908', 'tblTempUsageDetail_20' ) start [2025-04-23 08:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970908', 'tblTempUsageDetail_20' ) end [2025-04-23 08:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 08:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 08:00:22] Production.INFO: ==27516== Releasing lock... [2025-04-23 08:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 08:00:22] Production.INFO: 29 MB #Memory Used# [2025-04-23 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 05:01:05 [end_date_ymd] => 2025-04-23 08:01:05 [RateCDR] => 1 ) [2025-04-23 08:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 05:01:05' and `end` < '2025-04-23 08:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 08:01:18] Production.INFO: count ==147 [2025-04-23 08:01:18] Production.ERROR: pbx CDR StartTime 2025-04-23 05:01:05 - End Time 2025-04-23 08:01:05 [2025-04-23 08:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970913', 'tblTempUsageDetail_20' ) start [2025-04-23 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970913', 'tblTempUsageDetail_20' ) end [2025-04-23 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970913', 'tblTempVendorCDR_20' ) start [2025-04-23 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970913', 'tblTempVendorCDR_20' ) end [2025-04-23 08:01:18] Production.INFO: ProcessCDR(1,14970913,1,1,2) [2025-04-23 08:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970913', 'tblTempUsageDetail_20' ) start [2025-04-23 08:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970913', 'tblTempUsageDetail_20' ) end [2025-04-23 08:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 08:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 08:01:23] Production.INFO: ==27645== Releasing lock... [2025-04-23 08:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 08:01:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-23 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 05:02:05 [end_date_ymd] => 2025-04-23 08:02:05 [RateCDR] => 1 ) [2025-04-23 08:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 05:02:05' and `end` < '2025-04-23 08:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 08:02:18] Production.INFO: count ==157 [2025-04-23 08:02:18] Production.ERROR: pbx CDR StartTime 2025-04-23 05:02:05 - End Time 2025-04-23 08:02:05 [2025-04-23 08:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970918', 'tblTempUsageDetail_20' ) start [2025-04-23 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970918', 'tblTempUsageDetail_20' ) end [2025-04-23 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970918', 'tblTempVendorCDR_20' ) start [2025-04-23 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970918', 'tblTempVendorCDR_20' ) end [2025-04-23 08:02:18] Production.INFO: ProcessCDR(1,14970918,1,1,2) [2025-04-23 08:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970918', 'tblTempUsageDetail_20' ) start [2025-04-23 08:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970918', 'tblTempUsageDetail_20' ) end [2025-04-23 08:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 08:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 08:02:23] Production.INFO: ==27736== Releasing lock... [2025-04-23 08:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 08:02:23] Production.INFO: 29.75 MB #Memory Used# [2025-04-23 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 05:03:05 [end_date_ymd] => 2025-04-23 08:03:05 [RateCDR] => 1 ) [2025-04-23 08:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 05:03:05' and `end` < '2025-04-23 08:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 08:03:17] Production.INFO: count ==172 [2025-04-23 08:03:17] Production.ERROR: pbx CDR StartTime 2025-04-23 05:03:05 - End Time 2025-04-23 08:03:05 [2025-04-23 08:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970923', 'tblTempUsageDetail_20' ) start [2025-04-23 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970923', 'tblTempUsageDetail_20' ) end [2025-04-23 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970923', 'tblTempVendorCDR_20' ) start [2025-04-23 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970923', 'tblTempVendorCDR_20' ) end [2025-04-23 08:03:17] Production.INFO: ProcessCDR(1,14970923,1,1,2) [2025-04-23 08:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970923', 'tblTempUsageDetail_20' ) start [2025-04-23 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970923', 'tblTempUsageDetail_20' ) end [2025-04-23 08:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 08:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 08:03:21] Production.INFO: ==27807== Releasing lock... [2025-04-23 08:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 08:03:21] Production.INFO: 30 MB #Memory Used# [2025-04-23 08:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 05:04:06 [end_date_ymd] => 2025-04-23 08:04:06 [RateCDR] => 1 ) [2025-04-23 08:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 05:04:06' and `end` < '2025-04-23 08:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 08:04:18] Production.INFO: count ==178 [2025-04-23 08:04:18] Production.ERROR: pbx CDR StartTime 2025-04-23 05:04:06 - End Time 2025-04-23 08:04:06 [2025-04-23 08:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970928', 'tblTempUsageDetail_20' ) start [2025-04-23 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970928', 'tblTempUsageDetail_20' ) end [2025-04-23 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970928', 'tblTempVendorCDR_20' ) start [2025-04-23 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970928', 'tblTempVendorCDR_20' ) end [2025-04-23 08:04:18] Production.INFO: ProcessCDR(1,14970928,1,1,2) [2025-04-23 08:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970928', 'tblTempUsageDetail_20' ) start [2025-04-23 08:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970928', 'tblTempUsageDetail_20' ) end [2025-04-23 08:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 08:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 08:04:22] Production.INFO: ==27884== Releasing lock... [2025-04-23 08:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 08:04:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-23 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 05:05:05 [end_date_ymd] => 2025-04-23 08:05:05 [RateCDR] => 1 ) [2025-04-23 08:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 05:05:05' and `end` < '2025-04-23 08:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 08:05:18] Production.INFO: count ==179 [2025-04-23 08:05:18] Production.ERROR: pbx CDR StartTime 2025-04-23 05:05:05 - End Time 2025-04-23 08:05:05 [2025-04-23 08:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970933', 'tblTempUsageDetail_20' ) start [2025-04-23 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970933', 'tblTempUsageDetail_20' ) end [2025-04-23 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970933', 'tblTempVendorCDR_20' ) start [2025-04-23 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970933', 'tblTempVendorCDR_20' ) end [2025-04-23 08:05:18] Production.INFO: ProcessCDR(1,14970933,1,1,2) [2025-04-23 08:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970933', 'tblTempUsageDetail_20' ) start [2025-04-23 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970933', 'tblTempUsageDetail_20' ) end [2025-04-23 08:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 08:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 08:05:21] Production.INFO: ==27959== Releasing lock... [2025-04-23 08:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 08:05:21] Production.INFO: 30 MB #Memory Used# [2025-04-23 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 05:06:05 [end_date_ymd] => 2025-04-23 08:06:05 [RateCDR] => 1 ) [2025-04-23 08:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 05:06:05' and `end` < '2025-04-23 08:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 08:06:18] Production.INFO: count ==185 [2025-04-23 08:06:18] Production.ERROR: pbx CDR StartTime 2025-04-23 05:06:05 - End Time 2025-04-23 08:06:05 [2025-04-23 08:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970938', 'tblTempUsageDetail_20' ) start [2025-04-23 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970938', 'tblTempUsageDetail_20' ) end [2025-04-23 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970938', 'tblTempVendorCDR_20' ) start [2025-04-23 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970938', 'tblTempVendorCDR_20' ) end [2025-04-23 08:06:18] Production.INFO: ProcessCDR(1,14970938,1,1,2) [2025-04-23 08:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970938', 'tblTempUsageDetail_20' ) start [2025-04-23 08:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970938', 'tblTempUsageDetail_20' ) end [2025-04-23 08:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 08:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 08:06:21] Production.INFO: ==28036== Releasing lock... [2025-04-23 08:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 08:06:21] Production.INFO: 30 MB #Memory Used# [2025-04-23 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 05:07:05 [end_date_ymd] => 2025-04-23 08:07:05 [RateCDR] => 1 ) [2025-04-23 08:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 05:07:05' and `end` < '2025-04-23 08:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 08:07:18] Production.INFO: count ==185 [2025-04-23 08:07:18] Production.ERROR: pbx CDR StartTime 2025-04-23 05:07:05 - End Time 2025-04-23 08:07:05 [2025-04-23 08:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970943', 'tblTempUsageDetail_20' ) start [2025-04-23 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970943', 'tblTempUsageDetail_20' ) end [2025-04-23 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970943', 'tblTempVendorCDR_20' ) start [2025-04-23 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970943', 'tblTempVendorCDR_20' ) end [2025-04-23 08:07:18] Production.INFO: ProcessCDR(1,14970943,1,1,2) [2025-04-23 08:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970943', 'tblTempUsageDetail_20' ) start [2025-04-23 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970943', 'tblTempUsageDetail_20' ) end [2025-04-23 08:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 08:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 08:07:21] Production.INFO: ==28113== Releasing lock... [2025-04-23 08:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 08:07:21] Production.INFO: 30 MB #Memory Used# [2025-04-23 08:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 05:08:06 [end_date_ymd] => 2025-04-23 08:08:06 [RateCDR] => 1 ) [2025-04-23 08:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 05:08:06' and `end` < '2025-04-23 08:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 08:08:18] Production.INFO: count ==197 [2025-04-23 08:08:18] Production.ERROR: pbx CDR StartTime 2025-04-23 05:08:06 - End Time 2025-04-23 08:08:06 [2025-04-23 08:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970948', 'tblTempUsageDetail_20' ) start [2025-04-23 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970948', 'tblTempUsageDetail_20' ) end [2025-04-23 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970948', 'tblTempVendorCDR_20' ) start [2025-04-23 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970948', 'tblTempVendorCDR_20' ) end [2025-04-23 08:08:19] Production.INFO: ProcessCDR(1,14970948,1,1,2) [2025-04-23 08:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970948', 'tblTempUsageDetail_20' ) start [2025-04-23 08:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970948', 'tblTempUsageDetail_20' ) end [2025-04-23 08:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 08:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 08:08:22] Production.INFO: ==28184== Releasing lock... [2025-04-23 08:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 08:08:22] Production.INFO: 30 MB #Memory Used# [2025-04-23 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 05:09:04 [end_date_ymd] => 2025-04-23 08:09:04 [RateCDR] => 1 ) [2025-04-23 08:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 05:09:04' and `end` < '2025-04-23 08:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 08:09:17] Production.INFO: count ==206 [2025-04-23 08:09:17] Production.ERROR: pbx CDR StartTime 2025-04-23 05:09:04 - End Time 2025-04-23 08:09:04 [2025-04-23 08:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970953', 'tblTempUsageDetail_20' ) start [2025-04-23 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970953', 'tblTempUsageDetail_20' ) end [2025-04-23 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970953', 'tblTempVendorCDR_20' ) start [2025-04-23 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970953', 'tblTempVendorCDR_20' ) end [2025-04-23 08:09:17] Production.INFO: ProcessCDR(1,14970953,1,1,2) [2025-04-23 08:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970953', 'tblTempUsageDetail_20' ) start [2025-04-23 08:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970953', 'tblTempUsageDetail_20' ) end [2025-04-23 08:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 08:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 08:09:22] Production.INFO: ==28258== Releasing lock... [2025-04-23 08:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 08:09:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-23 08:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 05:10:06 [end_date_ymd] => 2025-04-23 08:10:06 [RateCDR] => 1 ) [2025-04-23 08:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 05:10:06' and `end` < '2025-04-23 08:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 08:10:19] Production.INFO: count ==216 [2025-04-23 08:10:19] Production.ERROR: pbx CDR StartTime 2025-04-23 05:10:06 - End Time 2025-04-23 08:10:06 [2025-04-23 08:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970958', 'tblTempUsageDetail_20' ) start [2025-04-23 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970958', 'tblTempUsageDetail_20' ) end [2025-04-23 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970958', 'tblTempVendorCDR_20' ) start [2025-04-23 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970958', 'tblTempVendorCDR_20' ) end [2025-04-23 08:10:19] Production.INFO: ProcessCDR(1,14970958,1,1,2) [2025-04-23 08:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970958', 'tblTempUsageDetail_20' ) start [2025-04-23 08:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970958', 'tblTempUsageDetail_20' ) end [2025-04-23 08:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 08:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 08:10:22] Production.INFO: ==28335== Releasing lock... [2025-04-23 08:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 08:10:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-23 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 05:11:05 [end_date_ymd] => 2025-04-23 08:11:05 [RateCDR] => 1 ) [2025-04-23 08:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 05:11:05' and `end` < '2025-04-23 08:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 08:11:17] Production.INFO: count ==238 [2025-04-23 08:11:18] Production.ERROR: pbx CDR StartTime 2025-04-23 05:11:05 - End Time 2025-04-23 08:11:05 [2025-04-23 08:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970964', 'tblTempUsageDetail_20' ) start [2025-04-23 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970964', 'tblTempUsageDetail_20' ) end [2025-04-23 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970964', 'tblTempVendorCDR_20' ) start [2025-04-23 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970964', 'tblTempVendorCDR_20' ) end [2025-04-23 08:11:18] Production.INFO: ProcessCDR(1,14970964,1,1,2) [2025-04-23 08:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970964', 'tblTempUsageDetail_20' ) start [2025-04-23 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970964', 'tblTempUsageDetail_20' ) end [2025-04-23 08:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 08:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 08:11:21] Production.INFO: ==28416== Releasing lock... [2025-04-23 08:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 08:11:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-23 08:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 05:12:06 [end_date_ymd] => 2025-04-23 08:12:06 [RateCDR] => 1 ) [2025-04-23 08:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 05:12:06' and `end` < '2025-04-23 08:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 08:12:18] Production.INFO: count ==242 [2025-04-23 08:12:18] Production.ERROR: pbx CDR StartTime 2025-04-23 05:12:06 - End Time 2025-04-23 08:12:06 [2025-04-23 08:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970969', 'tblTempUsageDetail_20' ) start [2025-04-23 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970969', 'tblTempUsageDetail_20' ) end [2025-04-23 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970969', 'tblTempVendorCDR_20' ) start [2025-04-23 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970969', 'tblTempVendorCDR_20' ) end [2025-04-23 08:12:18] Production.INFO: ProcessCDR(1,14970969,1,1,2) [2025-04-23 08:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970969', 'tblTempUsageDetail_20' ) start [2025-04-23 08:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970969', 'tblTempUsageDetail_20' ) end [2025-04-23 08:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 08:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 08:12:22] Production.INFO: ==28490== Releasing lock... [2025-04-23 08:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 08:12:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-23 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 05:13:05 [end_date_ymd] => 2025-04-23 08:13:05 [RateCDR] => 1 ) [2025-04-23 08:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 05:13:05' and `end` < '2025-04-23 08:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 08:13:18] Production.INFO: count ==243 [2025-04-23 08:13:18] Production.ERROR: pbx CDR StartTime 2025-04-23 05:13:05 - End Time 2025-04-23 08:13:05 [2025-04-23 08:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970974', 'tblTempUsageDetail_20' ) start [2025-04-23 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970974', 'tblTempUsageDetail_20' ) end [2025-04-23 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970974', 'tblTempVendorCDR_20' ) start [2025-04-23 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970974', 'tblTempVendorCDR_20' ) end [2025-04-23 08:13:18] Production.INFO: ProcessCDR(1,14970974,1,1,2) [2025-04-23 08:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970974', 'tblTempUsageDetail_20' ) start [2025-04-23 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970974', 'tblTempUsageDetail_20' ) end [2025-04-23 08:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 08:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 08:13:21] Production.INFO: ==28570== Releasing lock... [2025-04-23 08:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 08:13:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-23 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 05:14:05 [end_date_ymd] => 2025-04-23 08:14:05 [RateCDR] => 1 ) [2025-04-23 08:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 05:14:05' and `end` < '2025-04-23 08:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 08:14:17] Production.INFO: count ==257 [2025-04-23 08:14:17] Production.ERROR: pbx CDR StartTime 2025-04-23 05:14:05 - End Time 2025-04-23 08:14:05 [2025-04-23 08:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970979', 'tblTempUsageDetail_20' ) start [2025-04-23 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970979', 'tblTempUsageDetail_20' ) end [2025-04-23 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970979', 'tblTempVendorCDR_20' ) start [2025-04-23 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970979', 'tblTempVendorCDR_20' ) end [2025-04-23 08:14:17] Production.INFO: ProcessCDR(1,14970979,1,1,2) [2025-04-23 08:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970979', 'tblTempUsageDetail_20' ) start [2025-04-23 08:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970979', 'tblTempUsageDetail_20' ) end [2025-04-23 08:14:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 08:14:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 08:14:23] Production.INFO: ==28643== Releasing lock... [2025-04-23 08:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 08:14:23] Production.INFO: 30.25 MB #Memory Used# [2025-04-23 08:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 05:15:06 [end_date_ymd] => 2025-04-23 08:15:06 [RateCDR] => 1 ) [2025-04-23 08:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 05:15:06' and `end` < '2025-04-23 08:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 08:15:18] Production.INFO: count ==270 [2025-04-23 08:15:19] Production.ERROR: pbx CDR StartTime 2025-04-23 05:15:06 - End Time 2025-04-23 08:15:06 [2025-04-23 08:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 08:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970984', 'tblTempUsageDetail_20' ) start [2025-04-23 08:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970984', 'tblTempUsageDetail_20' ) end [2025-04-23 08:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970984', 'tblTempVendorCDR_20' ) start [2025-04-23 08:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970984', 'tblTempVendorCDR_20' ) end [2025-04-23 08:15:19] Production.INFO: ProcessCDR(1,14970984,1,1,2) [2025-04-23 08:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970984', 'tblTempUsageDetail_20' ) start [2025-04-23 08:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970984', 'tblTempUsageDetail_20' ) end [2025-04-23 08:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 08:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 08:15:22] Production.INFO: ==28718== Releasing lock... [2025-04-23 08:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 08:15:22] Production.INFO: 31 MB #Memory Used# [2025-04-23 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 05:16:05 [end_date_ymd] => 2025-04-23 08:16:05 [RateCDR] => 1 ) [2025-04-23 08:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 05:16:05' and `end` < '2025-04-23 08:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 08:16:17] Production.INFO: count ==271 [2025-04-23 08:16:18] Production.ERROR: pbx CDR StartTime 2025-04-23 05:16:05 - End Time 2025-04-23 08:16:05 [2025-04-23 08:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970989', 'tblTempUsageDetail_20' ) start [2025-04-23 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970989', 'tblTempUsageDetail_20' ) end [2025-04-23 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970989', 'tblTempVendorCDR_20' ) start [2025-04-23 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970989', 'tblTempVendorCDR_20' ) end [2025-04-23 08:16:18] Production.INFO: ProcessCDR(1,14970989,1,1,2) [2025-04-23 08:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970989', 'tblTempUsageDetail_20' ) start [2025-04-23 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970989', 'tblTempUsageDetail_20' ) end [2025-04-23 08:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 08:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 08:16:21] Production.INFO: ==28835== Releasing lock... [2025-04-23 08:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 08:16:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-23 08:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 05:17:06 [end_date_ymd] => 2025-04-23 08:17:06 [RateCDR] => 1 ) [2025-04-23 08:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 05:17:06' and `end` < '2025-04-23 08:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 08:17:18] Production.INFO: count ==276 [2025-04-23 08:17:18] Production.ERROR: pbx CDR StartTime 2025-04-23 05:17:06 - End Time 2025-04-23 08:17:06 [2025-04-23 08:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970994', 'tblTempUsageDetail_20' ) start [2025-04-23 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970994', 'tblTempUsageDetail_20' ) end [2025-04-23 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970994', 'tblTempVendorCDR_20' ) start [2025-04-23 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970994', 'tblTempVendorCDR_20' ) end [2025-04-23 08:17:18] Production.INFO: ProcessCDR(1,14970994,1,1,2) [2025-04-23 08:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970994', 'tblTempUsageDetail_20' ) start [2025-04-23 08:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970994', 'tblTempUsageDetail_20' ) end [2025-04-23 08:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 08:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 08:17:22] Production.INFO: ==28908== Releasing lock... [2025-04-23 08:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 08:17:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-23 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 05:18:05 [end_date_ymd] => 2025-04-23 08:18:05 [RateCDR] => 1 ) [2025-04-23 08:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 05:18:05' and `end` < '2025-04-23 08:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 08:18:17] Production.INFO: count ==283 [2025-04-23 08:18:18] Production.ERROR: pbx CDR StartTime 2025-04-23 05:18:05 - End Time 2025-04-23 08:18:05 [2025-04-23 08:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970999', 'tblTempUsageDetail_20' ) start [2025-04-23 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14970999', 'tblTempUsageDetail_20' ) end [2025-04-23 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970999', 'tblTempVendorCDR_20' ) start [2025-04-23 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14970999', 'tblTempVendorCDR_20' ) end [2025-04-23 08:18:18] Production.INFO: ProcessCDR(1,14970999,1,1,2) [2025-04-23 08:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14970999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14970999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14970999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14970999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970999', 'tblTempUsageDetail_20' ) start [2025-04-23 08:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14970999', 'tblTempUsageDetail_20' ) end [2025-04-23 08:18:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 08:18:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 08:18:23] Production.INFO: ==28984== Releasing lock... [2025-04-23 08:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 08:18:23] Production.INFO: 30.5 MB #Memory Used# [2025-04-23 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 05:19:05 [end_date_ymd] => 2025-04-23 08:19:05 [RateCDR] => 1 ) [2025-04-23 08:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 05:19:05' and `end` < '2025-04-23 08:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 08:19:18] Production.INFO: count ==307 [2025-04-23 08:19:18] Production.ERROR: pbx CDR StartTime 2025-04-23 05:19:05 - End Time 2025-04-23 08:19:05 [2025-04-23 08:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971004', 'tblTempUsageDetail_20' ) start [2025-04-23 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971004', 'tblTempUsageDetail_20' ) end [2025-04-23 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971004', 'tblTempVendorCDR_20' ) start [2025-04-23 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971004', 'tblTempVendorCDR_20' ) end [2025-04-23 08:19:18] Production.INFO: ProcessCDR(1,14971004,1,1,2) [2025-04-23 08:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971004', 'tblTempUsageDetail_20' ) start [2025-04-23 08:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971004', 'tblTempUsageDetail_20' ) end [2025-04-23 08:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 08:19:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 08:19:23] Production.INFO: ==29058== Releasing lock... [2025-04-23 08:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 08:19:23] Production.INFO: 30.75 MB #Memory Used# [2025-04-23 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 05:20:06 [end_date_ymd] => 2025-04-23 08:20:06 [RateCDR] => 1 ) [2025-04-23 08:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 05:20:06' and `end` < '2025-04-23 08:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 08:20:18] Production.INFO: count ==319 [2025-04-23 08:20:19] Production.ERROR: pbx CDR StartTime 2025-04-23 05:20:06 - End Time 2025-04-23 08:20:06 [2025-04-23 08:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971010', 'tblTempUsageDetail_20' ) start [2025-04-23 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971010', 'tblTempUsageDetail_20' ) end [2025-04-23 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971010', 'tblTempVendorCDR_20' ) start [2025-04-23 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971010', 'tblTempVendorCDR_20' ) end [2025-04-23 08:20:19] Production.INFO: ProcessCDR(1,14971010,1,1,2) [2025-04-23 08:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971010', 'tblTempUsageDetail_20' ) start [2025-04-23 08:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971010', 'tblTempUsageDetail_20' ) end [2025-04-23 08:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 08:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 08:20:24] Production.INFO: ==29138== Releasing lock... [2025-04-23 08:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 08:20:24] Production.INFO: 31.25 MB #Memory Used# [2025-04-23 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 05:21:05 [end_date_ymd] => 2025-04-23 08:21:05 [RateCDR] => 1 ) [2025-04-23 08:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 05:21:05' and `end` < '2025-04-23 08:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 08:21:18] Production.INFO: count ==329 [2025-04-23 08:21:18] Production.ERROR: pbx CDR StartTime 2025-04-23 05:21:05 - End Time 2025-04-23 08:21:05 [2025-04-23 08:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971015', 'tblTempUsageDetail_20' ) start [2025-04-23 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971015', 'tblTempUsageDetail_20' ) end [2025-04-23 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971015', 'tblTempVendorCDR_20' ) start [2025-04-23 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971015', 'tblTempVendorCDR_20' ) end [2025-04-23 08:21:18] Production.INFO: ProcessCDR(1,14971015,1,1,2) [2025-04-23 08:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971015', 'tblTempUsageDetail_20' ) start [2025-04-23 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971015', 'tblTempUsageDetail_20' ) end [2025-04-23 08:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 08:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 08:21:21] Production.INFO: ==29217== Releasing lock... [2025-04-23 08:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 08:21:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-23 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 05:22:05 [end_date_ymd] => 2025-04-23 08:22:05 [RateCDR] => 1 ) [2025-04-23 08:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 05:22:05' and `end` < '2025-04-23 08:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 08:22:17] Production.INFO: count ==331 [2025-04-23 08:22:18] Production.ERROR: pbx CDR StartTime 2025-04-23 05:22:05 - End Time 2025-04-23 08:22:05 [2025-04-23 08:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971020', 'tblTempUsageDetail_20' ) start [2025-04-23 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971020', 'tblTempUsageDetail_20' ) end [2025-04-23 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971020', 'tblTempVendorCDR_20' ) start [2025-04-23 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971020', 'tblTempVendorCDR_20' ) end [2025-04-23 08:22:18] Production.INFO: ProcessCDR(1,14971020,1,1,2) [2025-04-23 08:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971020', 'tblTempUsageDetail_20' ) start [2025-04-23 08:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971020', 'tblTempUsageDetail_20' ) end [2025-04-23 08:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 08:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 08:22:23] Production.INFO: ==29290== Releasing lock... [2025-04-23 08:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 08:22:23] Production.INFO: 31.25 MB #Memory Used# [2025-04-23 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 05:23:05 [end_date_ymd] => 2025-04-23 08:23:05 [RateCDR] => 1 ) [2025-04-23 08:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 05:23:05' and `end` < '2025-04-23 08:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 08:23:17] Production.INFO: count ==332 [2025-04-23 08:23:18] Production.ERROR: pbx CDR StartTime 2025-04-23 05:23:05 - End Time 2025-04-23 08:23:05 [2025-04-23 08:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971025', 'tblTempUsageDetail_20' ) start [2025-04-23 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971025', 'tblTempUsageDetail_20' ) end [2025-04-23 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971025', 'tblTempVendorCDR_20' ) start [2025-04-23 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971025', 'tblTempVendorCDR_20' ) end [2025-04-23 08:23:18] Production.INFO: ProcessCDR(1,14971025,1,1,2) [2025-04-23 08:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971025', 'tblTempUsageDetail_20' ) start [2025-04-23 08:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971025', 'tblTempUsageDetail_20' ) end [2025-04-23 08:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 08:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 08:23:21] Production.INFO: ==29365== Releasing lock... [2025-04-23 08:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 08:23:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-23 08:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 05:24:06 [end_date_ymd] => 2025-04-23 08:24:06 [RateCDR] => 1 ) [2025-04-23 08:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 05:24:06' and `end` < '2025-04-23 08:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 08:24:19] Production.INFO: count ==339 [2025-04-23 08:24:19] Production.ERROR: pbx CDR StartTime 2025-04-23 05:24:06 - End Time 2025-04-23 08:24:06 [2025-04-23 08:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971030', 'tblTempUsageDetail_20' ) start [2025-04-23 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971030', 'tblTempUsageDetail_20' ) end [2025-04-23 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971030', 'tblTempVendorCDR_20' ) start [2025-04-23 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971030', 'tblTempVendorCDR_20' ) end [2025-04-23 08:24:19] Production.INFO: ProcessCDR(1,14971030,1,1,2) [2025-04-23 08:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971030', 'tblTempUsageDetail_20' ) start [2025-04-23 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971030', 'tblTempUsageDetail_20' ) end [2025-04-23 08:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 08:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 08:24:22] Production.INFO: ==29439== Releasing lock... [2025-04-23 08:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 08:24:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-23 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 05:25:05 [end_date_ymd] => 2025-04-23 08:25:05 [RateCDR] => 1 ) [2025-04-23 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-04-23 05:25:05' and `end` < '2025-04-23 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-04-23 08:25:18] Production.INFO: count ==352 [2025-04-23 08:25:18] Production.ERROR: pbx CDR StartTime 2025-04-23 05:25:05 - End Time 2025-04-23 08:25:05 [2025-04-23 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971035', 'tblTempUsageDetail_20' ) start [2025-04-23 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971035', 'tblTempUsageDetail_20' ) end [2025-04-23 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971035', 'tblTempVendorCDR_20' ) start [2025-04-23 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971035', 'tblTempVendorCDR_20' ) end [2025-04-23 08:25:18] Production.INFO: ProcessCDR(1,14971035,1,1,2) [2025-04-23 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971035', 'tblTempUsageDetail_20' ) start [2025-04-23 08:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971035', 'tblTempUsageDetail_20' ) end [2025-04-23 08:25:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 08:25:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 08:25:23] Production.INFO: ==29518== Releasing lock... [2025-04-23 08:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 08:25:23] Production.INFO: 31.25 MB #Memory Used# [2025-04-23 08:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 05:26:06 [end_date_ymd] => 2025-04-23 08:26:06 [RateCDR] => 1 ) [2025-04-23 08:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 05:26:06' and `end` < '2025-04-23 08:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 08:26:18] Production.INFO: count ==359 [2025-04-23 08:26:18] Production.ERROR: pbx CDR StartTime 2025-04-23 05:26:06 - End Time 2025-04-23 08:26:06 [2025-04-23 08:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971040', 'tblTempUsageDetail_20' ) start [2025-04-23 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971040', 'tblTempUsageDetail_20' ) end [2025-04-23 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971040', 'tblTempVendorCDR_20' ) start [2025-04-23 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971040', 'tblTempVendorCDR_20' ) end [2025-04-23 08:26:18] Production.INFO: ProcessCDR(1,14971040,1,1,2) [2025-04-23 08:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971040', 'tblTempUsageDetail_20' ) start [2025-04-23 08:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971040', 'tblTempUsageDetail_20' ) end [2025-04-23 08:26:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 08:26:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 08:26:24] Production.INFO: ==29597== Releasing lock... [2025-04-23 08:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 08:26:24] Production.INFO: 31 MB #Memory Used# [2025-04-23 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 05:27:05 [end_date_ymd] => 2025-04-23 08:27:05 [RateCDR] => 1 ) [2025-04-23 08:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 05:27:05' and `end` < '2025-04-23 08:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 08:27:18] Production.INFO: count ==362 [2025-04-23 08:27:18] Production.ERROR: pbx CDR StartTime 2025-04-23 05:27:05 - End Time 2025-04-23 08:27:05 [2025-04-23 08:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971045', 'tblTempUsageDetail_20' ) start [2025-04-23 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971045', 'tblTempUsageDetail_20' ) end [2025-04-23 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971045', 'tblTempVendorCDR_20' ) start [2025-04-23 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971045', 'tblTempVendorCDR_20' ) end [2025-04-23 08:27:18] Production.INFO: ProcessCDR(1,14971045,1,1,2) [2025-04-23 08:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971045', 'tblTempUsageDetail_20' ) start [2025-04-23 08:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971045', 'tblTempUsageDetail_20' ) end [2025-04-23 08:27:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 08:27:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 08:27:23] Production.INFO: ==29682== Releasing lock... [2025-04-23 08:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 08:27:23] Production.INFO: 31.25 MB #Memory Used# [2025-04-23 08:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 05:28:06 [end_date_ymd] => 2025-04-23 08:28:06 [RateCDR] => 1 ) [2025-04-23 08:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 05:28:06' and `end` < '2025-04-23 08:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 08:28:19] Production.INFO: count ==366 [2025-04-23 08:28:19] Production.ERROR: pbx CDR StartTime 2025-04-23 05:28:06 - End Time 2025-04-23 08:28:06 [2025-04-23 08:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971050', 'tblTempUsageDetail_20' ) start [2025-04-23 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971050', 'tblTempUsageDetail_20' ) end [2025-04-23 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971050', 'tblTempVendorCDR_20' ) start [2025-04-23 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971050', 'tblTempVendorCDR_20' ) end [2025-04-23 08:28:19] Production.INFO: ProcessCDR(1,14971050,1,1,2) [2025-04-23 08:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971050', 'tblTempUsageDetail_20' ) start [2025-04-23 08:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971050', 'tblTempUsageDetail_20' ) end [2025-04-23 08:28:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 08:28:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 08:28:24] Production.INFO: ==29754== Releasing lock... [2025-04-23 08:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 08:28:24] Production.INFO: 31.25 MB #Memory Used# [2025-04-23 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 05:29:05 [end_date_ymd] => 2025-04-23 08:29:05 [RateCDR] => 1 ) [2025-04-23 08:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 05:29:05' and `end` < '2025-04-23 08:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 08:29:18] Production.INFO: count ==381 [2025-04-23 08:29:18] Production.ERROR: pbx CDR StartTime 2025-04-23 05:29:05 - End Time 2025-04-23 08:29:05 [2025-04-23 08:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971055', 'tblTempUsageDetail_20' ) start [2025-04-23 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971055', 'tblTempUsageDetail_20' ) end [2025-04-23 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971055', 'tblTempVendorCDR_20' ) start [2025-04-23 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971055', 'tblTempVendorCDR_20' ) end [2025-04-23 08:29:18] Production.INFO: ProcessCDR(1,14971055,1,1,2) [2025-04-23 08:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971055', 'tblTempUsageDetail_20' ) start [2025-04-23 08:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971055', 'tblTempUsageDetail_20' ) end [2025-04-23 08:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 08:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 08:29:22] Production.INFO: ==29831== Releasing lock... [2025-04-23 08:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 08:29:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-23 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 05:30:06 [end_date_ymd] => 2025-04-23 08:30:06 [RateCDR] => 1 ) [2025-04-23 08:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 05:30:06' and `end` < '2025-04-23 08:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 08:30:19] Production.INFO: count ==391 [2025-04-23 08:30:19] Production.ERROR: pbx CDR StartTime 2025-04-23 05:30:06 - End Time 2025-04-23 08:30:06 [2025-04-23 08:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971060', 'tblTempUsageDetail_20' ) start [2025-04-23 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971060', 'tblTempUsageDetail_20' ) end [2025-04-23 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971060', 'tblTempVendorCDR_20' ) start [2025-04-23 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971060', 'tblTempVendorCDR_20' ) end [2025-04-23 08:30:19] Production.INFO: ProcessCDR(1,14971060,1,1,2) [2025-04-23 08:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971060', 'tblTempUsageDetail_20' ) start [2025-04-23 08:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971060', 'tblTempUsageDetail_20' ) end [2025-04-23 08:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 08:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 08:30:23] Production.INFO: ==29909== Releasing lock... [2025-04-23 08:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 08:30:23] Production.INFO: 31.75 MB #Memory Used# [2025-04-23 08:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 05:31:04 [end_date_ymd] => 2025-04-23 08:31:04 [RateCDR] => 1 ) [2025-04-23 08:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 05:31:04' and `end` < '2025-04-23 08:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 08:31:17] Production.INFO: count ==426 [2025-04-23 08:31:17] Production.ERROR: pbx CDR StartTime 2025-04-23 05:31:04 - End Time 2025-04-23 08:31:04 [2025-04-23 08:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971066', 'tblTempUsageDetail_20' ) start [2025-04-23 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971066', 'tblTempUsageDetail_20' ) end [2025-04-23 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971066', 'tblTempVendorCDR_20' ) start [2025-04-23 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971066', 'tblTempVendorCDR_20' ) end [2025-04-23 08:31:17] Production.INFO: ProcessCDR(1,14971066,1,1,2) [2025-04-23 08:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971066', 'tblTempUsageDetail_20' ) start [2025-04-23 08:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971066', 'tblTempUsageDetail_20' ) end [2025-04-23 08:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 08:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 08:31:22] Production.INFO: ==29985== Releasing lock... [2025-04-23 08:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 08:31:22] Production.INFO: 32 MB #Memory Used# [2025-04-23 08:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 05:32:06 [end_date_ymd] => 2025-04-23 08:32:06 [RateCDR] => 1 ) [2025-04-23 08:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 05:32:06' and `end` < '2025-04-23 08:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 08:32:18] Production.INFO: count ==426 [2025-04-23 08:32:19] Production.ERROR: pbx CDR StartTime 2025-04-23 05:32:06 - End Time 2025-04-23 08:32:06 [2025-04-23 08:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971071', 'tblTempUsageDetail_20' ) start [2025-04-23 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971071', 'tblTempUsageDetail_20' ) end [2025-04-23 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971071', 'tblTempVendorCDR_20' ) start [2025-04-23 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971071', 'tblTempVendorCDR_20' ) end [2025-04-23 08:32:19] Production.INFO: ProcessCDR(1,14971071,1,1,2) [2025-04-23 08:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971071', 'tblTempUsageDetail_20' ) start [2025-04-23 08:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971071', 'tblTempUsageDetail_20' ) end [2025-04-23 08:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 08:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 08:32:22] Production.INFO: ==30099== Releasing lock... [2025-04-23 08:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 08:32:22] Production.INFO: 32 MB #Memory Used# [2025-04-23 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 05:33:05 [end_date_ymd] => 2025-04-23 08:33:05 [RateCDR] => 1 ) [2025-04-23 08:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 05:33:05' and `end` < '2025-04-23 08:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 08:33:18] Production.INFO: count ==426 [2025-04-23 08:33:18] Production.ERROR: pbx CDR StartTime 2025-04-23 05:33:05 - End Time 2025-04-23 08:33:05 [2025-04-23 08:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971076', 'tblTempUsageDetail_20' ) start [2025-04-23 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971076', 'tblTempUsageDetail_20' ) end [2025-04-23 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971076', 'tblTempVendorCDR_20' ) start [2025-04-23 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971076', 'tblTempVendorCDR_20' ) end [2025-04-23 08:33:18] Production.INFO: ProcessCDR(1,14971076,1,1,2) [2025-04-23 08:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971076', 'tblTempUsageDetail_20' ) start [2025-04-23 08:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971076', 'tblTempUsageDetail_20' ) end [2025-04-23 08:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 08:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 08:33:21] Production.INFO: ==30178== Releasing lock... [2025-04-23 08:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 08:33:21] Production.INFO: 32 MB #Memory Used# [2025-04-23 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 05:34:05 [end_date_ymd] => 2025-04-23 08:34:05 [RateCDR] => 1 ) [2025-04-23 08:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 05:34:05' and `end` < '2025-04-23 08:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 08:34:18] Production.INFO: count ==441 [2025-04-23 08:34:18] Production.ERROR: pbx CDR StartTime 2025-04-23 05:34:05 - End Time 2025-04-23 08:34:05 [2025-04-23 08:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971081', 'tblTempUsageDetail_20' ) start [2025-04-23 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971081', 'tblTempUsageDetail_20' ) end [2025-04-23 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971081', 'tblTempVendorCDR_20' ) start [2025-04-23 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971081', 'tblTempVendorCDR_20' ) end [2025-04-23 08:34:18] Production.INFO: ProcessCDR(1,14971081,1,1,2) [2025-04-23 08:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971081', 'tblTempUsageDetail_20' ) start [2025-04-23 08:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971081', 'tblTempUsageDetail_20' ) end [2025-04-23 08:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 08:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 08:34:21] Production.INFO: ==30254== Releasing lock... [2025-04-23 08:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 08:34:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-23 08:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 05:35:06 [end_date_ymd] => 2025-04-23 08:35:06 [RateCDR] => 1 ) [2025-04-23 08:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 05:35:06' and `end` < '2025-04-23 08:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 08:35:18] Production.INFO: count ==447 [2025-04-23 08:35:19] Production.ERROR: pbx CDR StartTime 2025-04-23 05:35:06 - End Time 2025-04-23 08:35:06 [2025-04-23 08:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 08:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971086', 'tblTempUsageDetail_20' ) start [2025-04-23 08:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971086', 'tblTempUsageDetail_20' ) end [2025-04-23 08:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971086', 'tblTempVendorCDR_20' ) start [2025-04-23 08:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971086', 'tblTempVendorCDR_20' ) end [2025-04-23 08:35:19] Production.INFO: ProcessCDR(1,14971086,1,1,2) [2025-04-23 08:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971086', 'tblTempUsageDetail_20' ) start [2025-04-23 08:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971086', 'tblTempUsageDetail_20' ) end [2025-04-23 08:35:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 08:35:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 08:35:24] Production.INFO: ==30330== Releasing lock... [2025-04-23 08:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 08:35:24] Production.INFO: 31.75 MB #Memory Used# [2025-04-23 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 05:36:05 [end_date_ymd] => 2025-04-23 08:36:05 [RateCDR] => 1 ) [2025-04-23 08:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 05:36:05' and `end` < '2025-04-23 08:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 08:36:18] Production.INFO: count ==451 [2025-04-23 08:36:18] Production.ERROR: pbx CDR StartTime 2025-04-23 05:36:05 - End Time 2025-04-23 08:36:05 [2025-04-23 08:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971091', 'tblTempUsageDetail_20' ) start [2025-04-23 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971091', 'tblTempUsageDetail_20' ) end [2025-04-23 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971091', 'tblTempVendorCDR_20' ) start [2025-04-23 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971091', 'tblTempVendorCDR_20' ) end [2025-04-23 08:36:18] Production.INFO: ProcessCDR(1,14971091,1,1,2) [2025-04-23 08:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971091', 'tblTempUsageDetail_20' ) start [2025-04-23 08:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971091', 'tblTempUsageDetail_20' ) end [2025-04-23 08:36:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 08:36:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 08:36:24] Production.INFO: ==30408== Releasing lock... [2025-04-23 08:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 08:36:24] Production.INFO: 32.25 MB #Memory Used# [2025-04-23 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 05:37:05 [end_date_ymd] => 2025-04-23 08:37:05 [RateCDR] => 1 ) [2025-04-23 08:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 05:37:05' and `end` < '2025-04-23 08:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 08:37:18] Production.INFO: count ==452 [2025-04-23 08:37:18] Production.ERROR: pbx CDR StartTime 2025-04-23 05:37:05 - End Time 2025-04-23 08:37:05 [2025-04-23 08:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971096', 'tblTempUsageDetail_20' ) start [2025-04-23 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971096', 'tblTempUsageDetail_20' ) end [2025-04-23 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971096', 'tblTempVendorCDR_20' ) start [2025-04-23 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971096', 'tblTempVendorCDR_20' ) end [2025-04-23 08:37:18] Production.INFO: ProcessCDR(1,14971096,1,1,2) [2025-04-23 08:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971096', 'tblTempUsageDetail_20' ) start [2025-04-23 08:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971096', 'tblTempUsageDetail_20' ) end [2025-04-23 08:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 08:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 08:37:21] Production.INFO: ==30479== Releasing lock... [2025-04-23 08:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 08:37:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-23 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 05:38:05 [end_date_ymd] => 2025-04-23 08:38:05 [RateCDR] => 1 ) [2025-04-23 08:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 05:38:05' and `end` < '2025-04-23 08:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 08:38:18] Production.INFO: count ==456 [2025-04-23 08:38:18] Production.ERROR: pbx CDR StartTime 2025-04-23 05:38:05 - End Time 2025-04-23 08:38:05 [2025-04-23 08:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971101', 'tblTempUsageDetail_20' ) start [2025-04-23 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971101', 'tblTempUsageDetail_20' ) end [2025-04-23 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971101', 'tblTempVendorCDR_20' ) start [2025-04-23 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971101', 'tblTempVendorCDR_20' ) end [2025-04-23 08:38:18] Production.INFO: ProcessCDR(1,14971101,1,1,2) [2025-04-23 08:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971101', 'tblTempUsageDetail_20' ) start [2025-04-23 08:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971101', 'tblTempUsageDetail_20' ) end [2025-04-23 08:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 08:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 08:38:23] Production.INFO: ==30556== Releasing lock... [2025-04-23 08:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 08:38:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-23 08:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 05:39:05 [end_date_ymd] => 2025-04-23 08:39:05 [RateCDR] => 1 ) [2025-04-23 08:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 05:39:05' and `end` < '2025-04-23 08:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 08:39:18] Production.INFO: count ==465 [2025-04-23 08:39:18] Production.ERROR: pbx CDR StartTime 2025-04-23 05:39:05 - End Time 2025-04-23 08:39:05 [2025-04-23 08:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971106', 'tblTempUsageDetail_20' ) start [2025-04-23 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971106', 'tblTempUsageDetail_20' ) end [2025-04-23 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971106', 'tblTempVendorCDR_20' ) start [2025-04-23 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971106', 'tblTempVendorCDR_20' ) end [2025-04-23 08:39:18] Production.INFO: ProcessCDR(1,14971106,1,1,2) [2025-04-23 08:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971106', 'tblTempUsageDetail_20' ) start [2025-04-23 08:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971106', 'tblTempUsageDetail_20' ) end [2025-04-23 08:39:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 08:39:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 08:39:23] Production.INFO: ==30634== Releasing lock... [2025-04-23 08:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 08:39:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-23 08:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 05:40:05 [end_date_ymd] => 2025-04-23 08:40:05 [RateCDR] => 1 ) [2025-04-23 08:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 05:40:05' and `end` < '2025-04-23 08:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 08:40:18] Production.INFO: count ==476 [2025-04-23 08:40:18] Production.ERROR: pbx CDR StartTime 2025-04-23 05:40:05 - End Time 2025-04-23 08:40:05 [2025-04-23 08:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971111', 'tblTempUsageDetail_20' ) start [2025-04-23 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971111', 'tblTempUsageDetail_20' ) end [2025-04-23 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971111', 'tblTempVendorCDR_20' ) start [2025-04-23 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971111', 'tblTempVendorCDR_20' ) end [2025-04-23 08:40:18] Production.INFO: ProcessCDR(1,14971111,1,1,2) [2025-04-23 08:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971111', 'tblTempUsageDetail_20' ) start [2025-04-23 08:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971111', 'tblTempUsageDetail_20' ) end [2025-04-23 08:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 08:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 08:40:23] Production.INFO: ==30715== Releasing lock... [2025-04-23 08:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 08:40:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-23 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 05:41:05 [end_date_ymd] => 2025-04-23 08:41:05 [RateCDR] => 1 ) [2025-04-23 08:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 05:41:05' and `end` < '2025-04-23 08:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 08:41:18] Production.INFO: count ==504 [2025-04-23 08:41:18] Production.ERROR: pbx CDR StartTime 2025-04-23 05:41:05 - End Time 2025-04-23 08:41:05 [2025-04-23 08:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971117', 'tblTempUsageDetail_20' ) start [2025-04-23 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971117', 'tblTempUsageDetail_20' ) end [2025-04-23 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971117', 'tblTempVendorCDR_20' ) start [2025-04-23 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971117', 'tblTempVendorCDR_20' ) end [2025-04-23 08:41:18] Production.INFO: ProcessCDR(1,14971117,1,1,2) [2025-04-23 08:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971117', 'tblTempUsageDetail_20' ) start [2025-04-23 08:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971117', 'tblTempUsageDetail_20' ) end [2025-04-23 08:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 08:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 08:41:22] Production.INFO: ==30796== Releasing lock... [2025-04-23 08:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 08:41:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-23 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 05:42:05 [end_date_ymd] => 2025-04-23 08:42:05 [RateCDR] => 1 ) [2025-04-23 08:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 05:42:05' and `end` < '2025-04-23 08:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 08:42:18] Production.INFO: count ==506 [2025-04-23 08:42:18] Production.ERROR: pbx CDR StartTime 2025-04-23 05:42:05 - End Time 2025-04-23 08:42:05 [2025-04-23 08:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971122', 'tblTempUsageDetail_20' ) start [2025-04-23 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971122', 'tblTempUsageDetail_20' ) end [2025-04-23 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971122', 'tblTempVendorCDR_20' ) start [2025-04-23 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971122', 'tblTempVendorCDR_20' ) end [2025-04-23 08:42:18] Production.INFO: ProcessCDR(1,14971122,1,1,2) [2025-04-23 08:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971122', 'tblTempUsageDetail_20' ) start [2025-04-23 08:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971122', 'tblTempUsageDetail_20' ) end [2025-04-23 08:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 08:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 08:42:23] Production.INFO: ==30876== Releasing lock... [2025-04-23 08:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 08:42:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-23 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 05:43:05 [end_date_ymd] => 2025-04-23 08:43:05 [RateCDR] => 1 ) [2025-04-23 08:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 05:43:05' and `end` < '2025-04-23 08:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 08:43:18] Production.INFO: count ==508 [2025-04-23 08:43:18] Production.ERROR: pbx CDR StartTime 2025-04-23 05:43:05 - End Time 2025-04-23 08:43:05 [2025-04-23 08:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971127', 'tblTempUsageDetail_20' ) start [2025-04-23 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971127', 'tblTempUsageDetail_20' ) end [2025-04-23 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971127', 'tblTempVendorCDR_20' ) start [2025-04-23 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971127', 'tblTempVendorCDR_20' ) end [2025-04-23 08:43:18] Production.INFO: ProcessCDR(1,14971127,1,1,2) [2025-04-23 08:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971127', 'tblTempUsageDetail_20' ) start [2025-04-23 08:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971127', 'tblTempUsageDetail_20' ) end [2025-04-23 08:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 08:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 08:43:23] Production.INFO: ==30957== Releasing lock... [2025-04-23 08:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 08:43:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-23 08:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 05:44:06 [end_date_ymd] => 2025-04-23 08:44:06 [RateCDR] => 1 ) [2025-04-23 08:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 05:44:06' and `end` < '2025-04-23 08:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 08:44:19] Production.INFO: count ==517 [2025-04-23 08:44:19] Production.ERROR: pbx CDR StartTime 2025-04-23 05:44:06 - End Time 2025-04-23 08:44:06 [2025-04-23 08:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971132', 'tblTempUsageDetail_20' ) start [2025-04-23 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971132', 'tblTempUsageDetail_20' ) end [2025-04-23 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971132', 'tblTempVendorCDR_20' ) start [2025-04-23 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971132', 'tblTempVendorCDR_20' ) end [2025-04-23 08:44:19] Production.INFO: ProcessCDR(1,14971132,1,1,2) [2025-04-23 08:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971132', 'tblTempUsageDetail_20' ) start [2025-04-23 08:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971132', 'tblTempUsageDetail_20' ) end [2025-04-23 08:44:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 08:44:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 08:44:24] Production.INFO: ==31035== Releasing lock... [2025-04-23 08:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 08:44:24] Production.INFO: 32.75 MB #Memory Used# [2025-04-23 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 05:45:05 [end_date_ymd] => 2025-04-23 08:45:05 [RateCDR] => 1 ) [2025-04-23 08:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 05:45:05' and `end` < '2025-04-23 08:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 08:45:18] Production.INFO: count ==522 [2025-04-23 08:45:18] Production.ERROR: pbx CDR StartTime 2025-04-23 05:45:05 - End Time 2025-04-23 08:45:05 [2025-04-23 08:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971137', 'tblTempUsageDetail_20' ) start [2025-04-23 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971137', 'tblTempUsageDetail_20' ) end [2025-04-23 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971137', 'tblTempVendorCDR_20' ) start [2025-04-23 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971137', 'tblTempVendorCDR_20' ) end [2025-04-23 08:45:18] Production.INFO: ProcessCDR(1,14971137,1,1,2) [2025-04-23 08:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971137', 'tblTempUsageDetail_20' ) start [2025-04-23 08:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971137', 'tblTempUsageDetail_20' ) end [2025-04-23 08:45:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 08:45:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 08:45:23] Production.INFO: ==31151== Releasing lock... [2025-04-23 08:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 08:45:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-23 08:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 05:46:06 [end_date_ymd] => 2025-04-23 08:46:06 [RateCDR] => 1 ) [2025-04-23 08:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 05:46:06' and `end` < '2025-04-23 08:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 08:46:19] Production.INFO: count ==525 [2025-04-23 08:46:19] Production.ERROR: pbx CDR StartTime 2025-04-23 05:46:06 - End Time 2025-04-23 08:46:06 [2025-04-23 08:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 08:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971142', 'tblTempUsageDetail_20' ) start [2025-04-23 08:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971142', 'tblTempUsageDetail_20' ) end [2025-04-23 08:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971142', 'tblTempVendorCDR_20' ) start [2025-04-23 08:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971142', 'tblTempVendorCDR_20' ) end [2025-04-23 08:46:19] Production.INFO: ProcessCDR(1,14971142,1,1,2) [2025-04-23 08:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971142', 'tblTempUsageDetail_20' ) start [2025-04-23 08:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971142', 'tblTempUsageDetail_20' ) end [2025-04-23 08:46:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 08:46:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 08:46:24] Production.INFO: ==31226== Releasing lock... [2025-04-23 08:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 08:46:24] Production.INFO: 31.75 MB #Memory Used# [2025-04-23 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 05:47:05 [end_date_ymd] => 2025-04-23 08:47:05 [RateCDR] => 1 ) [2025-04-23 08:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 05:47:05' and `end` < '2025-04-23 08:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 08:47:18] Production.INFO: count ==533 [2025-04-23 08:47:18] Production.ERROR: pbx CDR StartTime 2025-04-23 05:47:05 - End Time 2025-04-23 08:47:05 [2025-04-23 08:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971147', 'tblTempUsageDetail_20' ) start [2025-04-23 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971147', 'tblTempUsageDetail_20' ) end [2025-04-23 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971147', 'tblTempVendorCDR_20' ) start [2025-04-23 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971147', 'tblTempVendorCDR_20' ) end [2025-04-23 08:47:18] Production.INFO: ProcessCDR(1,14971147,1,1,2) [2025-04-23 08:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971147', 'tblTempUsageDetail_20' ) start [2025-04-23 08:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971147', 'tblTempUsageDetail_20' ) end [2025-04-23 08:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 08:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 08:47:22] Production.INFO: ==31339== Releasing lock... [2025-04-23 08:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 08:47:22] Production.INFO: 33 MB #Memory Used# [2025-04-23 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 05:48:05 [end_date_ymd] => 2025-04-23 08:48:05 [RateCDR] => 1 ) [2025-04-23 08:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 05:48:05' and `end` < '2025-04-23 08:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 08:48:18] Production.INFO: count ==536 [2025-04-23 08:48:18] Production.ERROR: pbx CDR StartTime 2025-04-23 05:48:05 - End Time 2025-04-23 08:48:05 [2025-04-23 08:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971152', 'tblTempUsageDetail_20' ) start [2025-04-23 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971152', 'tblTempUsageDetail_20' ) end [2025-04-23 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971152', 'tblTempVendorCDR_20' ) start [2025-04-23 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971152', 'tblTempVendorCDR_20' ) end [2025-04-23 08:48:18] Production.INFO: ProcessCDR(1,14971152,1,1,2) [2025-04-23 08:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971152', 'tblTempUsageDetail_20' ) start [2025-04-23 08:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971152', 'tblTempUsageDetail_20' ) end [2025-04-23 08:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 08:48:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 08:48:24] Production.INFO: ==31417== Releasing lock... [2025-04-23 08:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 08:48:24] Production.INFO: 33 MB #Memory Used# [2025-04-23 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 05:49:05 [end_date_ymd] => 2025-04-23 08:49:05 [RateCDR] => 1 ) [2025-04-23 08:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 05:49:05' and `end` < '2025-04-23 08:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 08:49:18] Production.INFO: count ==549 [2025-04-23 08:49:18] Production.ERROR: pbx CDR StartTime 2025-04-23 05:49:05 - End Time 2025-04-23 08:49:05 [2025-04-23 08:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971157', 'tblTempUsageDetail_20' ) start [2025-04-23 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971157', 'tblTempUsageDetail_20' ) end [2025-04-23 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971157', 'tblTempVendorCDR_20' ) start [2025-04-23 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971157', 'tblTempVendorCDR_20' ) end [2025-04-23 08:49:18] Production.INFO: ProcessCDR(1,14971157,1,1,2) [2025-04-23 08:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971157', 'tblTempUsageDetail_20' ) start [2025-04-23 08:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971157', 'tblTempUsageDetail_20' ) end [2025-04-23 08:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 08:49:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 08:49:23] Production.INFO: ==31495== Releasing lock... [2025-04-23 08:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 08:49:23] Production.INFO: 33 MB #Memory Used# [2025-04-23 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 05:50:06 [end_date_ymd] => 2025-04-23 08:50:06 [RateCDR] => 1 ) [2025-04-23 08:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 05:50:06' and `end` < '2025-04-23 08:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 08:50:19] Production.INFO: count ==562 [2025-04-23 08:50:19] Production.ERROR: pbx CDR StartTime 2025-04-23 05:50:06 - End Time 2025-04-23 08:50:06 [2025-04-23 08:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971163', 'tblTempUsageDetail_20' ) start [2025-04-23 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971163', 'tblTempUsageDetail_20' ) end [2025-04-23 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971163', 'tblTempVendorCDR_20' ) start [2025-04-23 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971163', 'tblTempVendorCDR_20' ) end [2025-04-23 08:50:19] Production.INFO: ProcessCDR(1,14971163,1,1,2) [2025-04-23 08:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971163', 'tblTempUsageDetail_20' ) start [2025-04-23 08:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971163', 'tblTempUsageDetail_20' ) end [2025-04-23 08:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 08:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 08:50:24] Production.INFO: ==31578== Releasing lock... [2025-04-23 08:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 08:50:24] Production.INFO: 32.75 MB #Memory Used# [2025-04-23 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 05:51:05 [end_date_ymd] => 2025-04-23 08:51:05 [RateCDR] => 1 ) [2025-04-23 08:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 05:51:05' and `end` < '2025-04-23 08:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 08:51:18] Production.INFO: count ==575 [2025-04-23 08:51:18] Production.ERROR: pbx CDR StartTime 2025-04-23 05:51:05 - End Time 2025-04-23 08:51:05 [2025-04-23 08:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971168', 'tblTempUsageDetail_20' ) start [2025-04-23 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971168', 'tblTempUsageDetail_20' ) end [2025-04-23 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971168', 'tblTempVendorCDR_20' ) start [2025-04-23 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971168', 'tblTempVendorCDR_20' ) end [2025-04-23 08:51:18] Production.INFO: ProcessCDR(1,14971168,1,1,2) [2025-04-23 08:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971168', 'tblTempUsageDetail_20' ) start [2025-04-23 08:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971168', 'tblTempUsageDetail_20' ) end [2025-04-23 08:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 08:51:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 08:51:23] Production.INFO: ==31662== Releasing lock... [2025-04-23 08:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 08:51:23] Production.INFO: 32.75 MB #Memory Used# [2025-04-23 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 05:52:05 [end_date_ymd] => 2025-04-23 08:52:05 [RateCDR] => 1 ) [2025-04-23 08:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 05:52:05' and `end` < '2025-04-23 08:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 08:52:18] Production.INFO: count ==581 [2025-04-23 08:52:18] Production.ERROR: pbx CDR StartTime 2025-04-23 05:52:05 - End Time 2025-04-23 08:52:05 [2025-04-23 08:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971173', 'tblTempUsageDetail_20' ) start [2025-04-23 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971173', 'tblTempUsageDetail_20' ) end [2025-04-23 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971173', 'tblTempVendorCDR_20' ) start [2025-04-23 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971173', 'tblTempVendorCDR_20' ) end [2025-04-23 08:52:18] Production.INFO: ProcessCDR(1,14971173,1,1,2) [2025-04-23 08:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971173', 'tblTempUsageDetail_20' ) start [2025-04-23 08:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971173', 'tblTempUsageDetail_20' ) end [2025-04-23 08:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 08:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 08:52:23] Production.INFO: ==31735== Releasing lock... [2025-04-23 08:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 08:52:23] Production.INFO: 33 MB #Memory Used# [2025-04-23 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 05:53:05 [end_date_ymd] => 2025-04-23 08:53:05 [RateCDR] => 1 ) [2025-04-23 08:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 05:53:05' and `end` < '2025-04-23 08:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 08:53:17] Production.INFO: count ==588 [2025-04-23 08:53:18] Production.ERROR: pbx CDR StartTime 2025-04-23 05:53:05 - End Time 2025-04-23 08:53:05 [2025-04-23 08:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971178', 'tblTempUsageDetail_20' ) start [2025-04-23 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971178', 'tblTempUsageDetail_20' ) end [2025-04-23 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971178', 'tblTempVendorCDR_20' ) start [2025-04-23 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971178', 'tblTempVendorCDR_20' ) end [2025-04-23 08:53:18] Production.INFO: ProcessCDR(1,14971178,1,1,2) [2025-04-23 08:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971178', 'tblTempUsageDetail_20' ) start [2025-04-23 08:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971178', 'tblTempUsageDetail_20' ) end [2025-04-23 08:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 08:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 08:53:23] Production.INFO: ==31812== Releasing lock... [2025-04-23 08:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 08:53:23] Production.INFO: 33 MB #Memory Used# [2025-04-23 08:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 05:54:06 [end_date_ymd] => 2025-04-23 08:54:06 [RateCDR] => 1 ) [2025-04-23 08:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 05:54:06' and `end` < '2025-04-23 08:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 08:54:19] Production.INFO: count ==595 [2025-04-23 08:54:19] Production.ERROR: pbx CDR StartTime 2025-04-23 05:54:06 - End Time 2025-04-23 08:54:06 [2025-04-23 08:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971183', 'tblTempUsageDetail_20' ) start [2025-04-23 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971183', 'tblTempUsageDetail_20' ) end [2025-04-23 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971183', 'tblTempVendorCDR_20' ) start [2025-04-23 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971183', 'tblTempVendorCDR_20' ) end [2025-04-23 08:54:19] Production.INFO: ProcessCDR(1,14971183,1,1,2) [2025-04-23 08:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971183', 'tblTempUsageDetail_20' ) start [2025-04-23 08:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971183', 'tblTempUsageDetail_20' ) end [2025-04-23 08:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 08:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 08:54:22] Production.INFO: ==31892== Releasing lock... [2025-04-23 08:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 08:54:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-23 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 05:55:05 [end_date_ymd] => 2025-04-23 08:55:05 [RateCDR] => 1 ) [2025-04-23 08:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 05:55:05' and `end` < '2025-04-23 08:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 08:55:18] Production.INFO: count ==603 [2025-04-23 08:55:18] Production.ERROR: pbx CDR StartTime 2025-04-23 05:55:05 - End Time 2025-04-23 08:55:05 [2025-04-23 08:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971188', 'tblTempUsageDetail_20' ) start [2025-04-23 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971188', 'tblTempUsageDetail_20' ) end [2025-04-23 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971188', 'tblTempVendorCDR_20' ) start [2025-04-23 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971188', 'tblTempVendorCDR_20' ) end [2025-04-23 08:55:18] Production.INFO: ProcessCDR(1,14971188,1,1,2) [2025-04-23 08:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971188', 'tblTempUsageDetail_20' ) start [2025-04-23 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971188', 'tblTempUsageDetail_20' ) end [2025-04-23 08:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 08:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 08:55:21] Production.INFO: ==31968== Releasing lock... [2025-04-23 08:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 08:55:21] Production.INFO: 33 MB #Memory Used# [2025-04-23 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 05:56:05 [end_date_ymd] => 2025-04-23 08:56:05 [RateCDR] => 1 ) [2025-04-23 08:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 05:56:05' and `end` < '2025-04-23 08:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 08:56:18] Production.INFO: count ==604 [2025-04-23 08:56:18] Production.ERROR: pbx CDR StartTime 2025-04-23 05:56:05 - End Time 2025-04-23 08:56:05 [2025-04-23 08:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971193', 'tblTempUsageDetail_20' ) start [2025-04-23 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971193', 'tblTempUsageDetail_20' ) end [2025-04-23 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971193', 'tblTempVendorCDR_20' ) start [2025-04-23 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971193', 'tblTempVendorCDR_20' ) end [2025-04-23 08:56:18] Production.INFO: ProcessCDR(1,14971193,1,1,2) [2025-04-23 08:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971193', 'tblTempUsageDetail_20' ) start [2025-04-23 08:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971193', 'tblTempUsageDetail_20' ) end [2025-04-23 08:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 08:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 08:56:23] Production.INFO: ==32047== Releasing lock... [2025-04-23 08:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 08:56:23] Production.INFO: 33.25 MB #Memory Used# [2025-04-23 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 05:57:05 [end_date_ymd] => 2025-04-23 08:57:05 [RateCDR] => 1 ) [2025-04-23 08:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 05:57:05' and `end` < '2025-04-23 08:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 08:57:18] Production.INFO: count ==604 [2025-04-23 08:57:18] Production.ERROR: pbx CDR StartTime 2025-04-23 05:57:05 - End Time 2025-04-23 08:57:05 [2025-04-23 08:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971198', 'tblTempUsageDetail_20' ) start [2025-04-23 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971198', 'tblTempUsageDetail_20' ) end [2025-04-23 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971198', 'tblTempVendorCDR_20' ) start [2025-04-23 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971198', 'tblTempVendorCDR_20' ) end [2025-04-23 08:57:18] Production.INFO: ProcessCDR(1,14971198,1,1,2) [2025-04-23 08:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971198', 'tblTempUsageDetail_20' ) start [2025-04-23 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971198', 'tblTempUsageDetail_20' ) end [2025-04-23 08:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 08:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 08:57:22] Production.INFO: ==32123== Releasing lock... [2025-04-23 08:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 08:57:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-23 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 05:58:05 [end_date_ymd] => 2025-04-23 08:58:05 [RateCDR] => 1 ) [2025-04-23 08:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 05:58:05' and `end` < '2025-04-23 08:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 08:58:18] Production.INFO: count ==611 [2025-04-23 08:58:18] Production.ERROR: pbx CDR StartTime 2025-04-23 05:58:05 - End Time 2025-04-23 08:58:05 [2025-04-23 08:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971203', 'tblTempUsageDetail_20' ) start [2025-04-23 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971203', 'tblTempUsageDetail_20' ) end [2025-04-23 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971203', 'tblTempVendorCDR_20' ) start [2025-04-23 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971203', 'tblTempVendorCDR_20' ) end [2025-04-23 08:58:18] Production.INFO: ProcessCDR(1,14971203,1,1,2) [2025-04-23 08:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971203', 'tblTempUsageDetail_20' ) start [2025-04-23 08:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971203', 'tblTempUsageDetail_20' ) end [2025-04-23 08:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 08:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 08:58:23] Production.INFO: ==32194== Releasing lock... [2025-04-23 08:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 08:58:23] Production.INFO: 32.75 MB #Memory Used# [2025-04-23 08:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 05:59:06 [end_date_ymd] => 2025-04-23 08:59:06 [RateCDR] => 1 ) [2025-04-23 08:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 05:59:06' and `end` < '2025-04-23 08:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 08:59:19] Production.INFO: count ==622 [2025-04-23 08:59:19] Production.ERROR: pbx CDR StartTime 2025-04-23 05:59:06 - End Time 2025-04-23 08:59:06 [2025-04-23 08:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971208', 'tblTempUsageDetail_20' ) start [2025-04-23 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971208', 'tblTempUsageDetail_20' ) end [2025-04-23 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971208', 'tblTempVendorCDR_20' ) start [2025-04-23 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971208', 'tblTempVendorCDR_20' ) end [2025-04-23 08:59:19] Production.INFO: ProcessCDR(1,14971208,1,1,2) [2025-04-23 08:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 08:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 08:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971208', 'tblTempUsageDetail_20' ) start [2025-04-23 08:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971208', 'tblTempUsageDetail_20' ) end [2025-04-23 08:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 08:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 08:59:22] Production.INFO: ==32273== Releasing lock... [2025-04-23 08:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 08:59:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-23 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 06:00:06 [end_date_ymd] => 2025-04-23 09:00:06 [RateCDR] => 1 ) [2025-04-23 09:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 06:00:06' and `end` < '2025-04-23 09:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 09:00:19] Production.INFO: count ==649 [2025-04-23 09:00:19] Production.ERROR: pbx CDR StartTime 2025-04-23 06:00:06 - End Time 2025-04-23 09:00:06 [2025-04-23 09:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971213', 'tblTempUsageDetail_20' ) start [2025-04-23 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971213', 'tblTempUsageDetail_20' ) end [2025-04-23 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971213', 'tblTempVendorCDR_20' ) start [2025-04-23 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971213', 'tblTempVendorCDR_20' ) end [2025-04-23 09:00:19] Production.INFO: ProcessCDR(1,14971213,1,1,2) [2025-04-23 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971213', 'tblTempUsageDetail_20' ) start [2025-04-23 09:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971213', 'tblTempUsageDetail_20' ) end [2025-04-23 09:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 09:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 09:00:24] Production.INFO: ==32350== Releasing lock... [2025-04-23 09:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 09:00:24] Production.INFO: 33.5 MB #Memory Used# [2025-04-23 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 06:01:05 [end_date_ymd] => 2025-04-23 09:01:05 [RateCDR] => 1 ) [2025-04-23 09:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 06:01:05' and `end` < '2025-04-23 09:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 09:01:18] Production.INFO: count ==699 [2025-04-23 09:01:19] Production.ERROR: pbx CDR StartTime 2025-04-23 06:01:05 - End Time 2025-04-23 09:01:05 [2025-04-23 09:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971219', 'tblTempUsageDetail_20' ) start [2025-04-23 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971219', 'tblTempUsageDetail_20' ) end [2025-04-23 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971219', 'tblTempVendorCDR_20' ) start [2025-04-23 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971219', 'tblTempVendorCDR_20' ) end [2025-04-23 09:01:19] Production.INFO: ProcessCDR(1,14971219,1,1,2) [2025-04-23 09:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971219', 'tblTempUsageDetail_20' ) start [2025-04-23 09:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971219', 'tblTempUsageDetail_20' ) end [2025-04-23 09:01:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 09:01:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 09:01:24] Production.INFO: ==32441== Releasing lock... [2025-04-23 09:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 09:01:24] Production.INFO: 33.25 MB #Memory Used# [2025-04-23 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 06:02:05 [end_date_ymd] => 2025-04-23 09:02:05 [RateCDR] => 1 ) [2025-04-23 09:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 06:02:05' and `end` < '2025-04-23 09:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 09:02:18] Production.INFO: count ==709 [2025-04-23 09:02:18] Production.ERROR: pbx CDR StartTime 2025-04-23 06:02:05 - End Time 2025-04-23 09:02:05 [2025-04-23 09:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971224', 'tblTempUsageDetail_20' ) start [2025-04-23 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971224', 'tblTempUsageDetail_20' ) end [2025-04-23 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971224', 'tblTempVendorCDR_20' ) start [2025-04-23 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971224', 'tblTempVendorCDR_20' ) end [2025-04-23 09:02:18] Production.INFO: ProcessCDR(1,14971224,1,1,2) [2025-04-23 09:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971224', 'tblTempUsageDetail_20' ) start [2025-04-23 09:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971224', 'tblTempUsageDetail_20' ) end [2025-04-23 09:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 09:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 09:02:23] Production.INFO: ==32557== Releasing lock... [2025-04-23 09:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 09:02:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-23 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 06:03:05 [end_date_ymd] => 2025-04-23 09:03:05 [RateCDR] => 1 ) [2025-04-23 09:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 06:03:05' and `end` < '2025-04-23 09:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 09:03:18] Production.INFO: count ==722 [2025-04-23 09:03:18] Production.ERROR: pbx CDR StartTime 2025-04-23 06:03:05 - End Time 2025-04-23 09:03:05 [2025-04-23 09:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971229', 'tblTempUsageDetail_20' ) start [2025-04-23 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971229', 'tblTempUsageDetail_20' ) end [2025-04-23 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971229', 'tblTempVendorCDR_20' ) start [2025-04-23 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971229', 'tblTempVendorCDR_20' ) end [2025-04-23 09:03:18] Production.INFO: ProcessCDR(1,14971229,1,1,2) [2025-04-23 09:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971229', 'tblTempUsageDetail_20' ) start [2025-04-23 09:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971229', 'tblTempUsageDetail_20' ) end [2025-04-23 09:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 09:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 09:03:22] Production.INFO: ==32631== Releasing lock... [2025-04-23 09:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 09:03:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-23 09:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 06:04:05 [end_date_ymd] => 2025-04-23 09:04:05 [RateCDR] => 1 ) [2025-04-23 09:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 06:04:05' and `end` < '2025-04-23 09:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 09:04:17] Production.INFO: count ==730 [2025-04-23 09:04:18] Production.ERROR: pbx CDR StartTime 2025-04-23 06:04:05 - End Time 2025-04-23 09:04:05 [2025-04-23 09:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971234', 'tblTempUsageDetail_20' ) start [2025-04-23 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971234', 'tblTempUsageDetail_20' ) end [2025-04-23 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971234', 'tblTempVendorCDR_20' ) start [2025-04-23 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971234', 'tblTempVendorCDR_20' ) end [2025-04-23 09:04:18] Production.INFO: ProcessCDR(1,14971234,1,1,2) [2025-04-23 09:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971234', 'tblTempUsageDetail_20' ) start [2025-04-23 09:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971234', 'tblTempUsageDetail_20' ) end [2025-04-23 09:04:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 09:04:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 09:04:23] Production.INFO: ==32705== Releasing lock... [2025-04-23 09:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 09:04:23] Production.INFO: 34 MB #Memory Used# [2025-04-23 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 06:05:05 [end_date_ymd] => 2025-04-23 09:05:05 [RateCDR] => 1 ) [2025-04-23 09:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 06:05:05' and `end` < '2025-04-23 09:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 09:05:18] Production.INFO: count ==751 [2025-04-23 09:05:18] Production.ERROR: pbx CDR StartTime 2025-04-23 06:05:05 - End Time 2025-04-23 09:05:05 [2025-04-23 09:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971239', 'tblTempUsageDetail_20' ) start [2025-04-23 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971239', 'tblTempUsageDetail_20' ) end [2025-04-23 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971239', 'tblTempVendorCDR_20' ) start [2025-04-23 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971239', 'tblTempVendorCDR_20' ) end [2025-04-23 09:05:19] Production.INFO: ProcessCDR(1,14971239,1,1,2) [2025-04-23 09:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971239', 'tblTempUsageDetail_20' ) start [2025-04-23 09:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971239', 'tblTempUsageDetail_20' ) end [2025-04-23 09:05:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 09:05:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 09:05:24] Production.INFO: ==319== Releasing lock... [2025-04-23 09:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 09:05:24] Production.INFO: 33.5 MB #Memory Used# [2025-04-23 09:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 06:06:05 [end_date_ymd] => 2025-04-23 09:06:05 [RateCDR] => 1 ) [2025-04-23 09:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 06:06:05' and `end` < '2025-04-23 09:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 09:06:18] Production.INFO: count ==766 [2025-04-23 09:06:18] Production.ERROR: pbx CDR StartTime 2025-04-23 06:06:05 - End Time 2025-04-23 09:06:05 [2025-04-23 09:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971244', 'tblTempUsageDetail_20' ) start [2025-04-23 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971244', 'tblTempUsageDetail_20' ) end [2025-04-23 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971244', 'tblTempVendorCDR_20' ) start [2025-04-23 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971244', 'tblTempVendorCDR_20' ) end [2025-04-23 09:06:18] Production.INFO: ProcessCDR(1,14971244,1,1,2) [2025-04-23 09:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971244', 'tblTempUsageDetail_20' ) start [2025-04-23 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971244', 'tblTempUsageDetail_20' ) end [2025-04-23 09:06:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 09:06:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 09:06:23] Production.INFO: ==406== Releasing lock... [2025-04-23 09:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 09:06:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-23 09:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 06:07:05 [end_date_ymd] => 2025-04-23 09:07:05 [RateCDR] => 1 ) [2025-04-23 09:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 06:07:05' and `end` < '2025-04-23 09:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 09:07:18] Production.INFO: count ==768 [2025-04-23 09:07:18] Production.ERROR: pbx CDR StartTime 2025-04-23 06:07:05 - End Time 2025-04-23 09:07:05 [2025-04-23 09:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971249', 'tblTempUsageDetail_20' ) start [2025-04-23 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971249', 'tblTempUsageDetail_20' ) end [2025-04-23 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971249', 'tblTempVendorCDR_20' ) start [2025-04-23 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971249', 'tblTempVendorCDR_20' ) end [2025-04-23 09:07:18] Production.INFO: ProcessCDR(1,14971249,1,1,2) [2025-04-23 09:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971249', 'tblTempUsageDetail_20' ) start [2025-04-23 09:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971249', 'tblTempUsageDetail_20' ) end [2025-04-23 09:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 09:07:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 09:07:23] Production.INFO: ==478== Releasing lock... [2025-04-23 09:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 09:07:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-23 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 06:08:05 [end_date_ymd] => 2025-04-23 09:08:05 [RateCDR] => 1 ) [2025-04-23 09:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 06:08:05' and `end` < '2025-04-23 09:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 09:08:17] Production.INFO: count ==787 [2025-04-23 09:08:18] Production.ERROR: pbx CDR StartTime 2025-04-23 06:08:05 - End Time 2025-04-23 09:08:05 [2025-04-23 09:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971254', 'tblTempUsageDetail_20' ) start [2025-04-23 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971254', 'tblTempUsageDetail_20' ) end [2025-04-23 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971254', 'tblTempVendorCDR_20' ) start [2025-04-23 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971254', 'tblTempVendorCDR_20' ) end [2025-04-23 09:08:18] Production.INFO: ProcessCDR(1,14971254,1,1,2) [2025-04-23 09:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971254', 'tblTempUsageDetail_20' ) start [2025-04-23 09:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971254', 'tblTempUsageDetail_20' ) end [2025-04-23 09:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 09:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 09:08:21] Production.INFO: ==562== Releasing lock... [2025-04-23 09:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 09:08:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-23 09:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 06:09:05 [end_date_ymd] => 2025-04-23 09:09:05 [RateCDR] => 1 ) [2025-04-23 09:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 06:09:05' and `end` < '2025-04-23 09:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 09:09:17] Production.INFO: count ==809 [2025-04-23 09:09:18] Production.ERROR: pbx CDR StartTime 2025-04-23 06:09:05 - End Time 2025-04-23 09:09:05 [2025-04-23 09:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971259', 'tblTempUsageDetail_20' ) start [2025-04-23 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971259', 'tblTempUsageDetail_20' ) end [2025-04-23 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971259', 'tblTempVendorCDR_20' ) start [2025-04-23 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971259', 'tblTempVendorCDR_20' ) end [2025-04-23 09:09:18] Production.INFO: ProcessCDR(1,14971259,1,1,2) [2025-04-23 09:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971259', 'tblTempUsageDetail_20' ) start [2025-04-23 09:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971259', 'tblTempUsageDetail_20' ) end [2025-04-23 09:09:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 09:09:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 09:09:23] Production.INFO: ==645== Releasing lock... [2025-04-23 09:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 09:09:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-23 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 06:10:06 [end_date_ymd] => 2025-04-23 09:10:06 [RateCDR] => 1 ) [2025-04-23 09:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 06:10:06' and `end` < '2025-04-23 09:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 09:10:19] Production.INFO: count ==819 [2025-04-23 09:10:19] Production.ERROR: pbx CDR StartTime 2025-04-23 06:10:06 - End Time 2025-04-23 09:10:06 [2025-04-23 09:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971265', 'tblTempUsageDetail_20' ) start [2025-04-23 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971265', 'tblTempUsageDetail_20' ) end [2025-04-23 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971265', 'tblTempVendorCDR_20' ) start [2025-04-23 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971265', 'tblTempVendorCDR_20' ) end [2025-04-23 09:10:19] Production.INFO: ProcessCDR(1,14971265,1,1,2) [2025-04-23 09:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971265', 'tblTempUsageDetail_20' ) start [2025-04-23 09:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971265', 'tblTempUsageDetail_20' ) end [2025-04-23 09:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 09:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 09:10:25] Production.INFO: ==743== Releasing lock... [2025-04-23 09:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 09:10:25] Production.INFO: 34.25 MB #Memory Used# [2025-04-23 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 06:11:05 [end_date_ymd] => 2025-04-23 09:11:05 [RateCDR] => 1 ) [2025-04-23 09:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 06:11:05' and `end` < '2025-04-23 09:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 09:11:18] Production.INFO: count ==883 [2025-04-23 09:11:19] Production.ERROR: pbx CDR StartTime 2025-04-23 06:11:05 - End Time 2025-04-23 09:11:05 [2025-04-23 09:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971270', 'tblTempUsageDetail_20' ) start [2025-04-23 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971270', 'tblTempUsageDetail_20' ) end [2025-04-23 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971270', 'tblTempVendorCDR_20' ) start [2025-04-23 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971270', 'tblTempVendorCDR_20' ) end [2025-04-23 09:11:19] Production.INFO: ProcessCDR(1,14971270,1,1,2) [2025-04-23 09:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971270', 'tblTempUsageDetail_20' ) start [2025-04-23 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971270', 'tblTempUsageDetail_20' ) end [2025-04-23 09:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 09:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 09:11:23] Production.INFO: ==824== Releasing lock... [2025-04-23 09:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 09:11:23] Production.INFO: 34.75 MB #Memory Used# [2025-04-23 09:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 06:12:06 [end_date_ymd] => 2025-04-23 09:12:06 [RateCDR] => 1 ) [2025-04-23 09:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 06:12:06' and `end` < '2025-04-23 09:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 09:12:19] Production.INFO: count ==888 [2025-04-23 09:12:19] Production.ERROR: pbx CDR StartTime 2025-04-23 06:12:06 - End Time 2025-04-23 09:12:06 [2025-04-23 09:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971275', 'tblTempUsageDetail_20' ) start [2025-04-23 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971275', 'tblTempUsageDetail_20' ) end [2025-04-23 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971275', 'tblTempVendorCDR_20' ) start [2025-04-23 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971275', 'tblTempVendorCDR_20' ) end [2025-04-23 09:12:19] Production.INFO: ProcessCDR(1,14971275,1,1,2) [2025-04-23 09:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971275', 'tblTempUsageDetail_20' ) start [2025-04-23 09:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971275', 'tblTempUsageDetail_20' ) end [2025-04-23 09:12:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 09:12:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 09:12:24] Production.INFO: ==902== Releasing lock... [2025-04-23 09:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 09:12:24] Production.INFO: 35 MB #Memory Used# [2025-04-23 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 06:13:05 [end_date_ymd] => 2025-04-23 09:13:05 [RateCDR] => 1 ) [2025-04-23 09:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 06:13:05' and `end` < '2025-04-23 09:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 09:13:17] Production.INFO: count ==900 [2025-04-23 09:13:18] Production.ERROR: pbx CDR StartTime 2025-04-23 06:13:05 - End Time 2025-04-23 09:13:05 [2025-04-23 09:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971280', 'tblTempUsageDetail_20' ) start [2025-04-23 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971280', 'tblTempUsageDetail_20' ) end [2025-04-23 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971280', 'tblTempVendorCDR_20' ) start [2025-04-23 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971280', 'tblTempVendorCDR_20' ) end [2025-04-23 09:13:18] Production.INFO: ProcessCDR(1,14971280,1,1,2) [2025-04-23 09:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971280', 'tblTempUsageDetail_20' ) start [2025-04-23 09:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971280', 'tblTempUsageDetail_20' ) end [2025-04-23 09:13:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 09:13:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 09:13:23] Production.INFO: ==980== Releasing lock... [2025-04-23 09:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 09:13:23] Production.INFO: 34.75 MB #Memory Used# [2025-04-23 09:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 06:14:06 [end_date_ymd] => 2025-04-23 09:14:06 [RateCDR] => 1 ) [2025-04-23 09:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 06:14:06' and `end` < '2025-04-23 09:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 09:14:19] Production.INFO: count ==905 [2025-04-23 09:14:19] Production.ERROR: pbx CDR StartTime 2025-04-23 06:14:06 - End Time 2025-04-23 09:14:06 [2025-04-23 09:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971285', 'tblTempUsageDetail_20' ) start [2025-04-23 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971285', 'tblTempUsageDetail_20' ) end [2025-04-23 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971285', 'tblTempVendorCDR_20' ) start [2025-04-23 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971285', 'tblTempVendorCDR_20' ) end [2025-04-23 09:14:19] Production.INFO: ProcessCDR(1,14971285,1,1,2) [2025-04-23 09:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971285', 'tblTempUsageDetail_20' ) start [2025-04-23 09:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971285', 'tblTempUsageDetail_20' ) end [2025-04-23 09:14:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 09:14:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 09:14:24] Production.INFO: ==1058== Releasing lock... [2025-04-23 09:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 09:14:24] Production.INFO: 35.25 MB #Memory Used# [2025-04-23 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 06:15:05 [end_date_ymd] => 2025-04-23 09:15:05 [RateCDR] => 1 ) [2025-04-23 09:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 06:15:05' and `end` < '2025-04-23 09:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 09:15:18] Production.INFO: count ==912 [2025-04-23 09:15:18] Production.ERROR: pbx CDR StartTime 2025-04-23 06:15:05 - End Time 2025-04-23 09:15:05 [2025-04-23 09:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971290', 'tblTempUsageDetail_20' ) start [2025-04-23 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971290', 'tblTempUsageDetail_20' ) end [2025-04-23 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971290', 'tblTempVendorCDR_20' ) start [2025-04-23 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971290', 'tblTempVendorCDR_20' ) end [2025-04-23 09:15:18] Production.INFO: ProcessCDR(1,14971290,1,1,2) [2025-04-23 09:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971290', 'tblTempUsageDetail_20' ) start [2025-04-23 09:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971290', 'tblTempUsageDetail_20' ) end [2025-04-23 09:15:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 09:15:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 09:15:23] Production.INFO: ==1130== Releasing lock... [2025-04-23 09:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 09:15:23] Production.INFO: 35.25 MB #Memory Used# [2025-04-23 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 06:16:05 [end_date_ymd] => 2025-04-23 09:16:05 [RateCDR] => 1 ) [2025-04-23 09:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 06:16:05' and `end` < '2025-04-23 09:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 09:16:19] Production.INFO: count ==932 [2025-04-23 09:16:19] Production.ERROR: pbx CDR StartTime 2025-04-23 06:16:05 - End Time 2025-04-23 09:16:05 [2025-04-23 09:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971295', 'tblTempUsageDetail_20' ) start [2025-04-23 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971295', 'tblTempUsageDetail_20' ) end [2025-04-23 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971295', 'tblTempVendorCDR_20' ) start [2025-04-23 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971295', 'tblTempVendorCDR_20' ) end [2025-04-23 09:16:19] Production.INFO: ProcessCDR(1,14971295,1,1,2) [2025-04-23 09:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971295', 'tblTempUsageDetail_20' ) start [2025-04-23 09:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971295', 'tblTempUsageDetail_20' ) end [2025-04-23 09:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 09:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 09:16:22] Production.INFO: ==1210== Releasing lock... [2025-04-23 09:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 09:16:22] Production.INFO: 35 MB #Memory Used# [2025-04-23 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 06:17:05 [end_date_ymd] => 2025-04-23 09:17:05 [RateCDR] => 1 ) [2025-04-23 09:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 06:17:05' and `end` < '2025-04-23 09:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 09:17:18] Production.INFO: count ==946 [2025-04-23 09:17:18] Production.ERROR: pbx CDR StartTime 2025-04-23 06:17:05 - End Time 2025-04-23 09:17:05 [2025-04-23 09:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971300', 'tblTempUsageDetail_20' ) start [2025-04-23 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971300', 'tblTempUsageDetail_20' ) end [2025-04-23 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971300', 'tblTempVendorCDR_20' ) start [2025-04-23 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971300', 'tblTempVendorCDR_20' ) end [2025-04-23 09:17:18] Production.INFO: ProcessCDR(1,14971300,1,1,2) [2025-04-23 09:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971300', 'tblTempUsageDetail_20' ) start [2025-04-23 09:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971300', 'tblTempUsageDetail_20' ) end [2025-04-23 09:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 09:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 09:17:22] Production.INFO: ==1297== Releasing lock... [2025-04-23 09:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 09:17:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-23 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 06:18:05 [end_date_ymd] => 2025-04-23 09:18:05 [RateCDR] => 1 ) [2025-04-23 09:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 06:18:05' and `end` < '2025-04-23 09:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 09:18:18] Production.INFO: count ==976 [2025-04-23 09:18:18] Production.ERROR: pbx CDR StartTime 2025-04-23 06:18:05 - End Time 2025-04-23 09:18:05 [2025-04-23 09:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971305', 'tblTempUsageDetail_20' ) start [2025-04-23 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971305', 'tblTempUsageDetail_20' ) end [2025-04-23 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971305', 'tblTempVendorCDR_20' ) start [2025-04-23 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971305', 'tblTempVendorCDR_20' ) end [2025-04-23 09:18:18] Production.INFO: ProcessCDR(1,14971305,1,1,2) [2025-04-23 09:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971305', 'tblTempUsageDetail_20' ) start [2025-04-23 09:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971305', 'tblTempUsageDetail_20' ) end [2025-04-23 09:18:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 09:18:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 09:18:24] Production.INFO: ==1426== Releasing lock... [2025-04-23 09:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 09:18:24] Production.INFO: 36 MB #Memory Used# [2025-04-23 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 06:19:05 [end_date_ymd] => 2025-04-23 09:19:05 [RateCDR] => 1 ) [2025-04-23 09:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 06:19:05' and `end` < '2025-04-23 09:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 09:19:18] Production.INFO: count ==985 [2025-04-23 09:19:18] Production.ERROR: pbx CDR StartTime 2025-04-23 06:19:05 - End Time 2025-04-23 09:19:05 [2025-04-23 09:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971310', 'tblTempUsageDetail_20' ) start [2025-04-23 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971310', 'tblTempUsageDetail_20' ) end [2025-04-23 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971310', 'tblTempVendorCDR_20' ) start [2025-04-23 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971310', 'tblTempVendorCDR_20' ) end [2025-04-23 09:19:18] Production.INFO: ProcessCDR(1,14971310,1,1,2) [2025-04-23 09:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971310', 'tblTempUsageDetail_20' ) start [2025-04-23 09:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971310', 'tblTempUsageDetail_20' ) end [2025-04-23 09:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 09:19:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 09:19:23] Production.INFO: ==1505== Releasing lock... [2025-04-23 09:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 09:19:23] Production.INFO: 36 MB #Memory Used# [2025-04-23 09:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 06:20:06 [end_date_ymd] => 2025-04-23 09:20:06 [RateCDR] => 1 ) [2025-04-23 09:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 06:20:06' and `end` < '2025-04-23 09:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 09:20:19] Production.INFO: count ==1001 [2025-04-23 09:20:19] Production.ERROR: pbx CDR StartTime 2025-04-23 06:20:06 - End Time 2025-04-23 09:20:06 [2025-04-23 09:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971316', 'tblTempUsageDetail_20' ) start [2025-04-23 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971316', 'tblTempUsageDetail_20' ) end [2025-04-23 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971316', 'tblTempVendorCDR_20' ) start [2025-04-23 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971316', 'tblTempVendorCDR_20' ) end [2025-04-23 09:20:19] Production.INFO: ProcessCDR(1,14971316,1,1,2) [2025-04-23 09:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971316', 'tblTempUsageDetail_20' ) start [2025-04-23 09:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971316', 'tblTempUsageDetail_20' ) end [2025-04-23 09:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 09:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 09:20:24] Production.INFO: ==1610== Releasing lock... [2025-04-23 09:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 09:20:24] Production.INFO: 36 MB #Memory Used# [2025-04-23 09:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 06:21:06 [end_date_ymd] => 2025-04-23 09:21:06 [RateCDR] => 1 ) [2025-04-23 09:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 06:21:06' and `end` < '2025-04-23 09:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 09:21:19] Production.INFO: count ==1093 [2025-04-23 09:21:19] Production.ERROR: pbx CDR StartTime 2025-04-23 06:21:06 - End Time 2025-04-23 09:21:06 [2025-04-23 09:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971321', 'tblTempUsageDetail_20' ) start [2025-04-23 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971321', 'tblTempUsageDetail_20' ) end [2025-04-23 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971321', 'tblTempVendorCDR_20' ) start [2025-04-23 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971321', 'tblTempVendorCDR_20' ) end [2025-04-23 09:21:19] Production.INFO: ProcessCDR(1,14971321,1,1,2) [2025-04-23 09:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971321', 'tblTempUsageDetail_20' ) start [2025-04-23 09:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971321', 'tblTempUsageDetail_20' ) end [2025-04-23 09:21:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 09:21:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 09:21:25] Production.INFO: ==1693== Releasing lock... [2025-04-23 09:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 09:21:25] Production.INFO: 36.5 MB #Memory Used# [2025-04-23 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 06:22:05 [end_date_ymd] => 2025-04-23 09:22:05 [RateCDR] => 1 ) [2025-04-23 09:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 06:22:05' and `end` < '2025-04-23 09:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 09:22:18] Production.INFO: count ==1111 [2025-04-23 09:22:18] Production.ERROR: pbx CDR StartTime 2025-04-23 06:22:05 - End Time 2025-04-23 09:22:05 [2025-04-23 09:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971326', 'tblTempUsageDetail_20' ) start [2025-04-23 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971326', 'tblTempUsageDetail_20' ) end [2025-04-23 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971326', 'tblTempVendorCDR_20' ) start [2025-04-23 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971326', 'tblTempVendorCDR_20' ) end [2025-04-23 09:22:18] Production.INFO: ProcessCDR(1,14971326,1,1,2) [2025-04-23 09:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971326', 'tblTempUsageDetail_20' ) start [2025-04-23 09:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971326', 'tblTempUsageDetail_20' ) end [2025-04-23 09:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 09:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 09:22:23] Production.INFO: ==1770== Releasing lock... [2025-04-23 09:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 09:22:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-23 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 06:23:05 [end_date_ymd] => 2025-04-23 09:23:05 [RateCDR] => 1 ) [2025-04-23 09:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 06:23:05' and `end` < '2025-04-23 09:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 09:23:18] Production.INFO: count ==1145 [2025-04-23 09:23:19] Production.ERROR: pbx CDR StartTime 2025-04-23 06:23:05 - End Time 2025-04-23 09:23:05 [2025-04-23 09:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971331', 'tblTempUsageDetail_20' ) start [2025-04-23 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971331', 'tblTempUsageDetail_20' ) end [2025-04-23 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971331', 'tblTempVendorCDR_20' ) start [2025-04-23 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971331', 'tblTempVendorCDR_20' ) end [2025-04-23 09:23:19] Production.INFO: ProcessCDR(1,14971331,1,1,2) [2025-04-23 09:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971331', 'tblTempUsageDetail_20' ) start [2025-04-23 09:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971331', 'tblTempUsageDetail_20' ) end [2025-04-23 09:23:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 09:23:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 09:23:24] Production.INFO: ==1848== Releasing lock... [2025-04-23 09:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 09:23:24] Production.INFO: 36.75 MB #Memory Used# [2025-04-23 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 06:24:05 [end_date_ymd] => 2025-04-23 09:24:05 [RateCDR] => 1 ) [2025-04-23 09:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 06:24:05' and `end` < '2025-04-23 09:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 09:24:18] Production.INFO: count ==1153 [2025-04-23 09:24:18] Production.ERROR: pbx CDR StartTime 2025-04-23 06:24:05 - End Time 2025-04-23 09:24:05 [2025-04-23 09:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971336', 'tblTempUsageDetail_20' ) start [2025-04-23 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971336', 'tblTempUsageDetail_20' ) end [2025-04-23 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971336', 'tblTempVendorCDR_20' ) start [2025-04-23 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971336', 'tblTempVendorCDR_20' ) end [2025-04-23 09:24:19] Production.INFO: ProcessCDR(1,14971336,1,1,2) [2025-04-23 09:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971336', 'tblTempUsageDetail_20' ) start [2025-04-23 09:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971336', 'tblTempUsageDetail_20' ) end [2025-04-23 09:24:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 09:24:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 09:24:24] Production.INFO: ==1921== Releasing lock... [2025-04-23 09:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 09:24:24] Production.INFO: 36.75 MB #Memory Used# [2025-04-23 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 06:25:05 [end_date_ymd] => 2025-04-23 09:25:05 [RateCDR] => 1 ) [2025-04-23 09:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 06:25:05' and `end` < '2025-04-23 09:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 09:25:19] Production.INFO: count ==1174 [2025-04-23 09:25:19] Production.ERROR: pbx CDR StartTime 2025-04-23 06:25:05 - End Time 2025-04-23 09:25:05 [2025-04-23 09:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971341', 'tblTempUsageDetail_20' ) start [2025-04-23 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971341', 'tblTempUsageDetail_20' ) end [2025-04-23 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971341', 'tblTempVendorCDR_20' ) start [2025-04-23 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971341', 'tblTempVendorCDR_20' ) end [2025-04-23 09:25:19] Production.INFO: ProcessCDR(1,14971341,1,1,2) [2025-04-23 09:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971341', 'tblTempUsageDetail_20' ) start [2025-04-23 09:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971341', 'tblTempUsageDetail_20' ) end [2025-04-23 09:25:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 09:25:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 09:25:24] Production.INFO: ==1993== Releasing lock... [2025-04-23 09:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 09:25:24] Production.INFO: 37 MB #Memory Used# [2025-04-23 09:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 06:26:04 [end_date_ymd] => 2025-04-23 09:26:04 [RateCDR] => 1 ) [2025-04-23 09:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 06:26:04' and `end` < '2025-04-23 09:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 09:26:18] Production.INFO: count ==1194 [2025-04-23 09:26:18] Production.ERROR: pbx CDR StartTime 2025-04-23 06:26:04 - End Time 2025-04-23 09:26:04 [2025-04-23 09:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971346', 'tblTempUsageDetail_20' ) start [2025-04-23 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971346', 'tblTempUsageDetail_20' ) end [2025-04-23 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971346', 'tblTempVendorCDR_20' ) start [2025-04-23 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971346', 'tblTempVendorCDR_20' ) end [2025-04-23 09:26:18] Production.INFO: ProcessCDR(1,14971346,1,1,2) [2025-04-23 09:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971346', 'tblTempUsageDetail_20' ) start [2025-04-23 09:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971346', 'tblTempUsageDetail_20' ) end [2025-04-23 09:26:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 09:26:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 09:26:23] Production.INFO: ==2065== Releasing lock... [2025-04-23 09:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 09:26:23] Production.INFO: 37.5 MB #Memory Used# [2025-04-23 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 06:27:05 [end_date_ymd] => 2025-04-23 09:27:05 [RateCDR] => 1 ) [2025-04-23 09:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 06:27:05' and `end` < '2025-04-23 09:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 09:27:18] Production.INFO: count ==1218 [2025-04-23 09:27:19] Production.ERROR: pbx CDR StartTime 2025-04-23 06:27:05 - End Time 2025-04-23 09:27:05 [2025-04-23 09:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971351', 'tblTempUsageDetail_20' ) start [2025-04-23 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971351', 'tblTempUsageDetail_20' ) end [2025-04-23 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971351', 'tblTempVendorCDR_20' ) start [2025-04-23 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971351', 'tblTempVendorCDR_20' ) end [2025-04-23 09:27:19] Production.INFO: ProcessCDR(1,14971351,1,1,2) [2025-04-23 09:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971351', 'tblTempUsageDetail_20' ) start [2025-04-23 09:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971351', 'tblTempUsageDetail_20' ) end [2025-04-23 09:27:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 09:27:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 09:27:24] Production.INFO: ==2146== Releasing lock... [2025-04-23 09:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 09:27:24] Production.INFO: 37.75 MB #Memory Used# [2025-04-23 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 06:28:05 [end_date_ymd] => 2025-04-23 09:28:05 [RateCDR] => 1 ) [2025-04-23 09:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 06:28:05' and `end` < '2025-04-23 09:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 09:28:18] Production.INFO: count ==1240 [2025-04-23 09:28:19] Production.ERROR: pbx CDR StartTime 2025-04-23 06:28:05 - End Time 2025-04-23 09:28:05 [2025-04-23 09:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971356', 'tblTempUsageDetail_20' ) start [2025-04-23 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971356', 'tblTempUsageDetail_20' ) end [2025-04-23 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971356', 'tblTempVendorCDR_20' ) start [2025-04-23 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971356', 'tblTempVendorCDR_20' ) end [2025-04-23 09:28:19] Production.INFO: ProcessCDR(1,14971356,1,1,2) [2025-04-23 09:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971356', 'tblTempUsageDetail_20' ) start [2025-04-23 09:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971356', 'tblTempUsageDetail_20' ) end [2025-04-23 09:28:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 09:28:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 09:28:24] Production.INFO: ==2225== Releasing lock... [2025-04-23 09:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 09:28:24] Production.INFO: 37.75 MB #Memory Used# [2025-04-23 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 06:29:05 [end_date_ymd] => 2025-04-23 09:29:05 [RateCDR] => 1 ) [2025-04-23 09:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 06:29:05' and `end` < '2025-04-23 09:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 09:29:18] Production.INFO: count ==1254 [2025-04-23 09:29:18] Production.ERROR: pbx CDR StartTime 2025-04-23 06:29:05 - End Time 2025-04-23 09:29:05 [2025-04-23 09:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971361', 'tblTempUsageDetail_20' ) start [2025-04-23 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971361', 'tblTempUsageDetail_20' ) end [2025-04-23 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971361', 'tblTempVendorCDR_20' ) start [2025-04-23 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971361', 'tblTempVendorCDR_20' ) end [2025-04-23 09:29:19] Production.INFO: ProcessCDR(1,14971361,1,1,2) [2025-04-23 09:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971361', 'tblTempUsageDetail_20' ) start [2025-04-23 09:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971361', 'tblTempUsageDetail_20' ) end [2025-04-23 09:29:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 09:29:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 09:29:24] Production.INFO: ==2300== Releasing lock... [2025-04-23 09:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 09:29:24] Production.INFO: 37.75 MB #Memory Used# [2025-04-23 09:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 06:30:06 [end_date_ymd] => 2025-04-23 09:30:06 [RateCDR] => 1 ) [2025-04-23 09:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 06:30:06' and `end` < '2025-04-23 09:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 09:30:19] Production.INFO: count ==1278 [2025-04-23 09:30:19] Production.ERROR: pbx CDR StartTime 2025-04-23 06:30:06 - End Time 2025-04-23 09:30:06 [2025-04-23 09:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971367', 'tblTempUsageDetail_20' ) start [2025-04-23 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971367', 'tblTempUsageDetail_20' ) end [2025-04-23 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971367', 'tblTempVendorCDR_20' ) start [2025-04-23 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971367', 'tblTempVendorCDR_20' ) end [2025-04-23 09:30:19] Production.INFO: ProcessCDR(1,14971367,1,1,2) [2025-04-23 09:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971367', 'tblTempUsageDetail_20' ) start [2025-04-23 09:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971367', 'tblTempUsageDetail_20' ) end [2025-04-23 09:30:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 09:30:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 09:30:25] Production.INFO: ==2378== Releasing lock... [2025-04-23 09:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 09:30:25] Production.INFO: 37.75 MB #Memory Used# [2025-04-23 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 06:31:05 [end_date_ymd] => 2025-04-23 09:31:05 [RateCDR] => 1 ) [2025-04-23 09:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 06:31:05' and `end` < '2025-04-23 09:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 09:31:18] Production.INFO: count ==1377 [2025-04-23 09:31:18] Production.ERROR: pbx CDR StartTime 2025-04-23 06:31:05 - End Time 2025-04-23 09:31:05 [2025-04-23 09:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971372', 'tblTempUsageDetail_20' ) start [2025-04-23 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971372', 'tblTempUsageDetail_20' ) end [2025-04-23 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971372', 'tblTempVendorCDR_20' ) start [2025-04-23 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971372', 'tblTempVendorCDR_20' ) end [2025-04-23 09:31:18] Production.INFO: ProcessCDR(1,14971372,1,1,2) [2025-04-23 09:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971372', 'tblTempUsageDetail_20' ) start [2025-04-23 09:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971372', 'tblTempUsageDetail_20' ) end [2025-04-23 09:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 09:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 09:31:24] Production.INFO: ==2451== Releasing lock... [2025-04-23 09:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 09:31:24] Production.INFO: 38.75 MB #Memory Used# [2025-04-23 09:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 06:32:05 [end_date_ymd] => 2025-04-23 09:32:05 [RateCDR] => 1 ) [2025-04-23 09:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 06:32:05' and `end` < '2025-04-23 09:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 09:32:18] Production.INFO: count ==1406 [2025-04-23 09:32:18] Production.ERROR: pbx CDR StartTime 2025-04-23 06:32:05 - End Time 2025-04-23 09:32:05 [2025-04-23 09:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971377', 'tblTempUsageDetail_20' ) start [2025-04-23 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971377', 'tblTempUsageDetail_20' ) end [2025-04-23 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971377', 'tblTempVendorCDR_20' ) start [2025-04-23 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971377', 'tblTempVendorCDR_20' ) end [2025-04-23 09:32:19] Production.INFO: ProcessCDR(1,14971377,1,1,2) [2025-04-23 09:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971377', 'tblTempUsageDetail_20' ) start [2025-04-23 09:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971377', 'tblTempUsageDetail_20' ) end [2025-04-23 09:32:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 09:32:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 09:32:24] Production.INFO: ==2523== Releasing lock... [2025-04-23 09:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 09:32:24] Production.INFO: 39 MB #Memory Used# [2025-04-23 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 06:33:05 [end_date_ymd] => 2025-04-23 09:33:05 [RateCDR] => 1 ) [2025-04-23 09:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 06:33:05' and `end` < '2025-04-23 09:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 09:33:18] Production.INFO: count ==1407 [2025-04-23 09:33:19] Production.ERROR: pbx CDR StartTime 2025-04-23 06:33:05 - End Time 2025-04-23 09:33:05 [2025-04-23 09:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971382', 'tblTempUsageDetail_20' ) start [2025-04-23 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971382', 'tblTempUsageDetail_20' ) end [2025-04-23 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971382', 'tblTempVendorCDR_20' ) start [2025-04-23 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971382', 'tblTempVendorCDR_20' ) end [2025-04-23 09:33:19] Production.INFO: ProcessCDR(1,14971382,1,1,2) [2025-04-23 09:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971382', 'tblTempUsageDetail_20' ) start [2025-04-23 09:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971382', 'tblTempUsageDetail_20' ) end [2025-04-23 09:33:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 09:33:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 09:33:24] Production.INFO: ==2635== Releasing lock... [2025-04-23 09:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 09:33:24] Production.INFO: 39 MB #Memory Used# [2025-04-23 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 06:34:05 [end_date_ymd] => 2025-04-23 09:34:05 [RateCDR] => 1 ) [2025-04-23 09:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 06:34:05' and `end` < '2025-04-23 09:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 09:34:18] Production.INFO: count ==1423 [2025-04-23 09:34:19] Production.ERROR: pbx CDR StartTime 2025-04-23 06:34:05 - End Time 2025-04-23 09:34:05 [2025-04-23 09:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971387', 'tblTempUsageDetail_20' ) start [2025-04-23 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971387', 'tblTempUsageDetail_20' ) end [2025-04-23 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971387', 'tblTempVendorCDR_20' ) start [2025-04-23 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971387', 'tblTempVendorCDR_20' ) end [2025-04-23 09:34:19] Production.INFO: ProcessCDR(1,14971387,1,1,2) [2025-04-23 09:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971387', 'tblTempUsageDetail_20' ) start [2025-04-23 09:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971387', 'tblTempUsageDetail_20' ) end [2025-04-23 09:34:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 09:34:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 09:34:24] Production.INFO: ==2713== Releasing lock... [2025-04-23 09:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 09:34:24] Production.INFO: 38.75 MB #Memory Used# [2025-04-23 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 06:35:05 [end_date_ymd] => 2025-04-23 09:35:05 [RateCDR] => 1 ) [2025-04-23 09:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 06:35:05' and `end` < '2025-04-23 09:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 09:35:18] Production.INFO: count ==1435 [2025-04-23 09:35:18] Production.ERROR: pbx CDR StartTime 2025-04-23 06:35:05 - End Time 2025-04-23 09:35:05 [2025-04-23 09:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971392', 'tblTempUsageDetail_20' ) start [2025-04-23 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971392', 'tblTempUsageDetail_20' ) end [2025-04-23 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971392', 'tblTempVendorCDR_20' ) start [2025-04-23 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971392', 'tblTempVendorCDR_20' ) end [2025-04-23 09:35:18] Production.INFO: ProcessCDR(1,14971392,1,1,2) [2025-04-23 09:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971392', 'tblTempUsageDetail_20' ) start [2025-04-23 09:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971392', 'tblTempUsageDetail_20' ) end [2025-04-23 09:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 09:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 09:35:23] Production.INFO: ==2791== Releasing lock... [2025-04-23 09:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 09:35:23] Production.INFO: 38.75 MB #Memory Used# [2025-04-23 09:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 06:36:06 [end_date_ymd] => 2025-04-23 09:36:06 [RateCDR] => 1 ) [2025-04-23 09:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 06:36:06' and `end` < '2025-04-23 09:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 09:36:19] Production.INFO: count ==1450 [2025-04-23 09:36:20] Production.ERROR: pbx CDR StartTime 2025-04-23 06:36:06 - End Time 2025-04-23 09:36:06 [2025-04-23 09:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 09:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971397', 'tblTempUsageDetail_20' ) start [2025-04-23 09:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971397', 'tblTempUsageDetail_20' ) end [2025-04-23 09:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971397', 'tblTempVendorCDR_20' ) start [2025-04-23 09:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971397', 'tblTempVendorCDR_20' ) end [2025-04-23 09:36:20] Production.INFO: ProcessCDR(1,14971397,1,1,2) [2025-04-23 09:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971397', 'tblTempUsageDetail_20' ) start [2025-04-23 09:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971397', 'tblTempUsageDetail_20' ) end [2025-04-23 09:36:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 09:36:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 09:36:23] Production.INFO: ==2864== Releasing lock... [2025-04-23 09:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 09:36:23] Production.INFO: 39 MB #Memory Used# [2025-04-23 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 06:37:05 [end_date_ymd] => 2025-04-23 09:37:05 [RateCDR] => 1 ) [2025-04-23 09:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 06:37:05' and `end` < '2025-04-23 09:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 09:37:18] Production.INFO: count ==1470 [2025-04-23 09:37:19] Production.ERROR: pbx CDR StartTime 2025-04-23 06:37:05 - End Time 2025-04-23 09:37:05 [2025-04-23 09:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971402', 'tblTempUsageDetail_20' ) start [2025-04-23 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971402', 'tblTempUsageDetail_20' ) end [2025-04-23 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971402', 'tblTempVendorCDR_20' ) start [2025-04-23 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971402', 'tblTempVendorCDR_20' ) end [2025-04-23 09:37:19] Production.INFO: ProcessCDR(1,14971402,1,1,2) [2025-04-23 09:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971402', 'tblTempUsageDetail_20' ) start [2025-04-23 09:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971402', 'tblTempUsageDetail_20' ) end [2025-04-23 09:37:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 09:37:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 09:37:24] Production.INFO: ==2936== Releasing lock... [2025-04-23 09:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 09:37:24] Production.INFO: 39 MB #Memory Used# [2025-04-23 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 06:38:05 [end_date_ymd] => 2025-04-23 09:38:05 [RateCDR] => 1 ) [2025-04-23 09:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 06:38:05' and `end` < '2025-04-23 09:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 09:38:18] Production.INFO: count ==1484 [2025-04-23 09:38:19] Production.ERROR: pbx CDR StartTime 2025-04-23 06:38:05 - End Time 2025-04-23 09:38:05 [2025-04-23 09:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971407', 'tblTempUsageDetail_20' ) start [2025-04-23 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971407', 'tblTempUsageDetail_20' ) end [2025-04-23 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971407', 'tblTempVendorCDR_20' ) start [2025-04-23 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971407', 'tblTempVendorCDR_20' ) end [2025-04-23 09:38:19] Production.INFO: ProcessCDR(1,14971407,1,1,2) [2025-04-23 09:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971407', 'tblTempUsageDetail_20' ) start [2025-04-23 09:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971407', 'tblTempUsageDetail_20' ) end [2025-04-23 09:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 09:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 09:38:23] Production.INFO: ==3022== Releasing lock... [2025-04-23 09:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 09:38:23] Production.INFO: 39.25 MB #Memory Used# [2025-04-23 09:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 06:39:04 [end_date_ymd] => 2025-04-23 09:39:04 [RateCDR] => 1 ) [2025-04-23 09:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 06:39:04' and `end` < '2025-04-23 09:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 09:39:18] Production.INFO: count ==1491 [2025-04-23 09:39:18] Production.ERROR: pbx CDR StartTime 2025-04-23 06:39:04 - End Time 2025-04-23 09:39:04 [2025-04-23 09:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971412', 'tblTempUsageDetail_20' ) start [2025-04-23 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971412', 'tblTempUsageDetail_20' ) end [2025-04-23 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971412', 'tblTempVendorCDR_20' ) start [2025-04-23 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971412', 'tblTempVendorCDR_20' ) end [2025-04-23 09:39:18] Production.INFO: ProcessCDR(1,14971412,1,1,2) [2025-04-23 09:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971412', 'tblTempUsageDetail_20' ) start [2025-04-23 09:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971412', 'tblTempUsageDetail_20' ) end [2025-04-23 09:39:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 09:39:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 09:39:24] Production.INFO: ==3102== Releasing lock... [2025-04-23 09:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 09:39:24] Production.INFO: 39.25 MB #Memory Used# [2025-04-23 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 06:40:06 [end_date_ymd] => 2025-04-23 09:40:06 [RateCDR] => 1 ) [2025-04-23 09:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 06:40:06' and `end` < '2025-04-23 09:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 09:40:19] Production.INFO: count ==1518 [2025-04-23 09:40:20] Production.ERROR: pbx CDR StartTime 2025-04-23 06:40:06 - End Time 2025-04-23 09:40:06 [2025-04-23 09:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971418', 'tblTempUsageDetail_20' ) start [2025-04-23 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971418', 'tblTempUsageDetail_20' ) end [2025-04-23 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971418', 'tblTempVendorCDR_20' ) start [2025-04-23 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971418', 'tblTempVendorCDR_20' ) end [2025-04-23 09:40:20] Production.INFO: ProcessCDR(1,14971418,1,1,2) [2025-04-23 09:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971418', 'tblTempUsageDetail_20' ) start [2025-04-23 09:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971418', 'tblTempUsageDetail_20' ) end [2025-04-23 09:40:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 09:40:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 09:40:25] Production.INFO: ==3184== Releasing lock... [2025-04-23 09:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 09:40:25] Production.INFO: 39.75 MB #Memory Used# [2025-04-23 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 06:41:05 [end_date_ymd] => 2025-04-23 09:41:05 [RateCDR] => 1 ) [2025-04-23 09:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 06:41:05' and `end` < '2025-04-23 09:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 09:41:18] Production.INFO: count ==1659 [2025-04-23 09:41:19] Production.ERROR: pbx CDR StartTime 2025-04-23 06:41:05 - End Time 2025-04-23 09:41:05 [2025-04-23 09:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971423', 'tblTempUsageDetail_20' ) start [2025-04-23 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971423', 'tblTempUsageDetail_20' ) end [2025-04-23 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971423', 'tblTempVendorCDR_20' ) start [2025-04-23 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971423', 'tblTempVendorCDR_20' ) end [2025-04-23 09:41:19] Production.INFO: ProcessCDR(1,14971423,1,1,2) [2025-04-23 09:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971423', 'tblTempUsageDetail_20' ) start [2025-04-23 09:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971423', 'tblTempUsageDetail_20' ) end [2025-04-23 09:41:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 09:41:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 09:41:25] Production.INFO: ==3258== Releasing lock... [2025-04-23 09:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 09:41:25] Production.INFO: 40.5 MB #Memory Used# [2025-04-23 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 06:42:05 [end_date_ymd] => 2025-04-23 09:42:05 [RateCDR] => 1 ) [2025-04-23 09:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 06:42:05' and `end` < '2025-04-23 09:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 09:42:18] Production.INFO: count ==1679 [2025-04-23 09:42:19] Production.ERROR: pbx CDR StartTime 2025-04-23 06:42:05 - End Time 2025-04-23 09:42:05 [2025-04-23 09:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971428', 'tblTempUsageDetail_20' ) start [2025-04-23 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971428', 'tblTempUsageDetail_20' ) end [2025-04-23 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971428', 'tblTempVendorCDR_20' ) start [2025-04-23 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971428', 'tblTempVendorCDR_20' ) end [2025-04-23 09:42:19] Production.INFO: ProcessCDR(1,14971428,1,1,2) [2025-04-23 09:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971428', 'tblTempUsageDetail_20' ) start [2025-04-23 09:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971428', 'tblTempUsageDetail_20' ) end [2025-04-23 09:42:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 09:42:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 09:42:24] Production.INFO: ==3330== Releasing lock... [2025-04-23 09:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 09:42:24] Production.INFO: 41 MB #Memory Used# [2025-04-23 09:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 06:43:06 [end_date_ymd] => 2025-04-23 09:43:06 [RateCDR] => 1 ) [2025-04-23 09:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 06:43:06' and `end` < '2025-04-23 09:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 09:43:19] Production.INFO: count ==1696 [2025-04-23 09:43:19] Production.ERROR: pbx CDR StartTime 2025-04-23 06:43:06 - End Time 2025-04-23 09:43:06 [2025-04-23 09:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971433', 'tblTempUsageDetail_20' ) start [2025-04-23 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971433', 'tblTempUsageDetail_20' ) end [2025-04-23 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971433', 'tblTempVendorCDR_20' ) start [2025-04-23 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971433', 'tblTempVendorCDR_20' ) end [2025-04-23 09:43:19] Production.INFO: ProcessCDR(1,14971433,1,1,2) [2025-04-23 09:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971433', 'tblTempUsageDetail_20' ) start [2025-04-23 09:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971433', 'tblTempUsageDetail_20' ) end [2025-04-23 09:43:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 09:43:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 09:43:25] Production.INFO: ==3405== Releasing lock... [2025-04-23 09:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 09:43:25] Production.INFO: 41.25 MB #Memory Used# [2025-04-23 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 06:44:05 [end_date_ymd] => 2025-04-23 09:44:05 [RateCDR] => 1 ) [2025-04-23 09:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 06:44:05' and `end` < '2025-04-23 09:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 09:44:18] Production.INFO: count ==1709 [2025-04-23 09:44:19] Production.ERROR: pbx CDR StartTime 2025-04-23 06:44:05 - End Time 2025-04-23 09:44:05 [2025-04-23 09:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971438', 'tblTempUsageDetail_20' ) start [2025-04-23 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971438', 'tblTempUsageDetail_20' ) end [2025-04-23 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971438', 'tblTempVendorCDR_20' ) start [2025-04-23 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971438', 'tblTempVendorCDR_20' ) end [2025-04-23 09:44:19] Production.INFO: ProcessCDR(1,14971438,1,1,2) [2025-04-23 09:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971438', 'tblTempUsageDetail_20' ) start [2025-04-23 09:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971438', 'tblTempUsageDetail_20' ) end [2025-04-23 09:44:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 09:44:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 09:44:24] Production.INFO: ==3478== Releasing lock... [2025-04-23 09:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 09:44:24] Production.INFO: 41 MB #Memory Used# [2025-04-23 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 06:45:05 [end_date_ymd] => 2025-04-23 09:45:05 [RateCDR] => 1 ) [2025-04-23 09:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 06:45:05' and `end` < '2025-04-23 09:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 09:45:18] Production.INFO: count ==1716 [2025-04-23 09:45:19] Production.ERROR: pbx CDR StartTime 2025-04-23 06:45:05 - End Time 2025-04-23 09:45:05 [2025-04-23 09:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971443', 'tblTempUsageDetail_20' ) start [2025-04-23 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971443', 'tblTempUsageDetail_20' ) end [2025-04-23 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971443', 'tblTempVendorCDR_20' ) start [2025-04-23 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971443', 'tblTempVendorCDR_20' ) end [2025-04-23 09:45:19] Production.INFO: ProcessCDR(1,14971443,1,1,2) [2025-04-23 09:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971443', 'tblTempUsageDetail_20' ) start [2025-04-23 09:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971443', 'tblTempUsageDetail_20' ) end [2025-04-23 09:45:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 09:45:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 09:45:24] Production.INFO: ==3564== Releasing lock... [2025-04-23 09:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 09:45:24] Production.INFO: 41 MB #Memory Used# [2025-04-23 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 06:46:05 [end_date_ymd] => 2025-04-23 09:46:05 [RateCDR] => 1 ) [2025-04-23 09:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 06:46:05' and `end` < '2025-04-23 09:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 09:46:18] Production.INFO: count ==1729 [2025-04-23 09:46:19] Production.ERROR: pbx CDR StartTime 2025-04-23 06:46:05 - End Time 2025-04-23 09:46:05 [2025-04-23 09:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971448', 'tblTempUsageDetail_20' ) start [2025-04-23 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971448', 'tblTempUsageDetail_20' ) end [2025-04-23 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971448', 'tblTempVendorCDR_20' ) start [2025-04-23 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971448', 'tblTempVendorCDR_20' ) end [2025-04-23 09:46:19] Production.INFO: ProcessCDR(1,14971448,1,1,2) [2025-04-23 09:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971448', 'tblTempUsageDetail_20' ) start [2025-04-23 09:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971448', 'tblTempUsageDetail_20' ) end [2025-04-23 09:46:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 09:46:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 09:46:24] Production.INFO: ==3634== Releasing lock... [2025-04-23 09:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 09:46:24] Production.INFO: 41 MB #Memory Used# [2025-04-23 09:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 06:47:06 [end_date_ymd] => 2025-04-23 09:47:06 [RateCDR] => 1 ) [2025-04-23 09:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 06:47:06' and `end` < '2025-04-23 09:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 09:47:19] Production.INFO: count ==1748 [2025-04-23 09:47:19] Production.ERROR: pbx CDR StartTime 2025-04-23 06:47:06 - End Time 2025-04-23 09:47:06 [2025-04-23 09:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971453', 'tblTempUsageDetail_20' ) start [2025-04-23 09:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971453', 'tblTempUsageDetail_20' ) end [2025-04-23 09:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971453', 'tblTempVendorCDR_20' ) start [2025-04-23 09:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971453', 'tblTempVendorCDR_20' ) end [2025-04-23 09:47:20] Production.INFO: ProcessCDR(1,14971453,1,1,2) [2025-04-23 09:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971453', 'tblTempUsageDetail_20' ) start [2025-04-23 09:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971453', 'tblTempUsageDetail_20' ) end [2025-04-23 09:47:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 09:47:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 09:47:25] Production.INFO: ==3707== Releasing lock... [2025-04-23 09:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 09:47:25] Production.INFO: 41.25 MB #Memory Used# [2025-04-23 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 06:48:05 [end_date_ymd] => 2025-04-23 09:48:05 [RateCDR] => 1 ) [2025-04-23 09:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 06:48:05' and `end` < '2025-04-23 09:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 09:48:18] Production.INFO: count ==1767 [2025-04-23 09:48:19] Production.ERROR: pbx CDR StartTime 2025-04-23 06:48:05 - End Time 2025-04-23 09:48:05 [2025-04-23 09:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971458', 'tblTempUsageDetail_20' ) start [2025-04-23 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971458', 'tblTempUsageDetail_20' ) end [2025-04-23 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971458', 'tblTempVendorCDR_20' ) start [2025-04-23 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971458', 'tblTempVendorCDR_20' ) end [2025-04-23 09:48:19] Production.INFO: ProcessCDR(1,14971458,1,1,2) [2025-04-23 09:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971458', 'tblTempUsageDetail_20' ) start [2025-04-23 09:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971458', 'tblTempUsageDetail_20' ) end [2025-04-23 09:48:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 09:48:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 09:48:24] Production.INFO: ==3777== Releasing lock... [2025-04-23 09:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 09:48:24] Production.INFO: 41.25 MB #Memory Used# [2025-04-23 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 06:49:05 [end_date_ymd] => 2025-04-23 09:49:05 [RateCDR] => 1 ) [2025-04-23 09:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 06:49:05' and `end` < '2025-04-23 09:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 09:49:18] Production.INFO: count ==1776 [2025-04-23 09:49:19] Production.ERROR: pbx CDR StartTime 2025-04-23 06:49:05 - End Time 2025-04-23 09:49:05 [2025-04-23 09:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971463', 'tblTempUsageDetail_20' ) start [2025-04-23 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971463', 'tblTempUsageDetail_20' ) end [2025-04-23 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971463', 'tblTempVendorCDR_20' ) start [2025-04-23 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971463', 'tblTempVendorCDR_20' ) end [2025-04-23 09:49:19] Production.INFO: ProcessCDR(1,14971463,1,1,2) [2025-04-23 09:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971463', 'tblTempUsageDetail_20' ) start [2025-04-23 09:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971463', 'tblTempUsageDetail_20' ) end [2025-04-23 09:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 09:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 09:49:22] Production.INFO: ==3894== Releasing lock... [2025-04-23 09:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 09:49:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-23 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 06:50:06 [end_date_ymd] => 2025-04-23 09:50:06 [RateCDR] => 1 ) [2025-04-23 09:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 06:50:06' and `end` < '2025-04-23 09:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 09:50:19] Production.INFO: count ==1805 [2025-04-23 09:50:19] Production.ERROR: pbx CDR StartTime 2025-04-23 06:50:06 - End Time 2025-04-23 09:50:06 [2025-04-23 09:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971468', 'tblTempUsageDetail_20' ) start [2025-04-23 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971468', 'tblTempUsageDetail_20' ) end [2025-04-23 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971468', 'tblTempVendorCDR_20' ) start [2025-04-23 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971468', 'tblTempVendorCDR_20' ) end [2025-04-23 09:50:19] Production.INFO: ProcessCDR(1,14971468,1,1,2) [2025-04-23 09:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971468', 'tblTempUsageDetail_20' ) start [2025-04-23 09:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971468', 'tblTempUsageDetail_20' ) end [2025-04-23 09:50:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 09:50:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 09:50:25] Production.INFO: ==3970== Releasing lock... [2025-04-23 09:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 09:50:25] Production.INFO: 41.75 MB #Memory Used# [2025-04-23 09:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 06:51:06 [end_date_ymd] => 2025-04-23 09:51:06 [RateCDR] => 1 ) [2025-04-23 09:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 06:51:06' and `end` < '2025-04-23 09:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 09:51:19] Production.INFO: count ==1902 [2025-04-23 09:51:19] Production.ERROR: pbx CDR StartTime 2025-04-23 06:51:06 - End Time 2025-04-23 09:51:06 [2025-04-23 09:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971474', 'tblTempUsageDetail_20' ) start [2025-04-23 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971474', 'tblTempUsageDetail_20' ) end [2025-04-23 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971474', 'tblTempVendorCDR_20' ) start [2025-04-23 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971474', 'tblTempVendorCDR_20' ) end [2025-04-23 09:51:19] Production.INFO: ProcessCDR(1,14971474,1,1,2) [2025-04-23 09:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971474', 'tblTempUsageDetail_20' ) start [2025-04-23 09:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971474', 'tblTempUsageDetail_20' ) end [2025-04-23 09:51:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 09:51:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 09:51:24] Production.INFO: ==4046== Releasing lock... [2025-04-23 09:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 09:51:24] Production.INFO: 42.25 MB #Memory Used# [2025-04-23 09:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 06:52:04 [end_date_ymd] => 2025-04-23 09:52:04 [RateCDR] => 1 ) [2025-04-23 09:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 06:52:04' and `end` < '2025-04-23 09:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 09:52:18] Production.INFO: count ==1926 [2025-04-23 09:52:18] Production.ERROR: pbx CDR StartTime 2025-04-23 06:52:04 - End Time 2025-04-23 09:52:04 [2025-04-23 09:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971479', 'tblTempUsageDetail_20' ) start [2025-04-23 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971479', 'tblTempUsageDetail_20' ) end [2025-04-23 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971479', 'tblTempVendorCDR_20' ) start [2025-04-23 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971479', 'tblTempVendorCDR_20' ) end [2025-04-23 09:52:18] Production.INFO: ProcessCDR(1,14971479,1,1,2) [2025-04-23 09:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971479', 'tblTempUsageDetail_20' ) start [2025-04-23 09:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971479', 'tblTempUsageDetail_20' ) end [2025-04-23 09:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 09:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 09:52:23] Production.INFO: ==4117== Releasing lock... [2025-04-23 09:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 09:52:23] Production.INFO: 42.5 MB #Memory Used# [2025-04-23 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 06:53:05 [end_date_ymd] => 2025-04-23 09:53:05 [RateCDR] => 1 ) [2025-04-23 09:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 06:53:05' and `end` < '2025-04-23 09:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 09:53:18] Production.INFO: count ==1935 [2025-04-23 09:53:19] Production.ERROR: pbx CDR StartTime 2025-04-23 06:53:05 - End Time 2025-04-23 09:53:05 [2025-04-23 09:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971484', 'tblTempUsageDetail_20' ) start [2025-04-23 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971484', 'tblTempUsageDetail_20' ) end [2025-04-23 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971484', 'tblTempVendorCDR_20' ) start [2025-04-23 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971484', 'tblTempVendorCDR_20' ) end [2025-04-23 09:53:19] Production.INFO: ProcessCDR(1,14971484,1,1,2) [2025-04-23 09:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971484', 'tblTempUsageDetail_20' ) start [2025-04-23 09:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971484', 'tblTempUsageDetail_20' ) end [2025-04-23 09:53:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 09:53:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 09:53:25] Production.INFO: ==4189== Releasing lock... [2025-04-23 09:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 09:53:25] Production.INFO: 42.5 MB #Memory Used# [2025-04-23 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 06:54:05 [end_date_ymd] => 2025-04-23 09:54:05 [RateCDR] => 1 ) [2025-04-23 09:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 06:54:05' and `end` < '2025-04-23 09:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 09:54:19] Production.INFO: count ==1949 [2025-04-23 09:54:19] Production.ERROR: pbx CDR StartTime 2025-04-23 06:54:05 - End Time 2025-04-23 09:54:05 [2025-04-23 09:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971489', 'tblTempUsageDetail_20' ) start [2025-04-23 09:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971489', 'tblTempUsageDetail_20' ) end [2025-04-23 09:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971489', 'tblTempVendorCDR_20' ) start [2025-04-23 09:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971489', 'tblTempVendorCDR_20' ) end [2025-04-23 09:54:20] Production.INFO: ProcessCDR(1,14971489,1,1,2) [2025-04-23 09:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971489', 'tblTempUsageDetail_20' ) start [2025-04-23 09:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971489', 'tblTempUsageDetail_20' ) end [2025-04-23 09:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 09:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 09:54:23] Production.INFO: ==4262== Releasing lock... [2025-04-23 09:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 09:54:23] Production.INFO: 42.75 MB #Memory Used# [2025-04-23 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 06:55:05 [end_date_ymd] => 2025-04-23 09:55:05 [RateCDR] => 1 ) [2025-04-23 09:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 06:55:05' and `end` < '2025-04-23 09:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 09:55:18] Production.INFO: count ==1957 [2025-04-23 09:55:19] Production.ERROR: pbx CDR StartTime 2025-04-23 06:55:05 - End Time 2025-04-23 09:55:05 [2025-04-23 09:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971494', 'tblTempUsageDetail_20' ) start [2025-04-23 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971494', 'tblTempUsageDetail_20' ) end [2025-04-23 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971494', 'tblTempVendorCDR_20' ) start [2025-04-23 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971494', 'tblTempVendorCDR_20' ) end [2025-04-23 09:55:19] Production.INFO: ProcessCDR(1,14971494,1,1,2) [2025-04-23 09:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971494', 'tblTempUsageDetail_20' ) start [2025-04-23 09:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971494', 'tblTempUsageDetail_20' ) end [2025-04-23 09:55:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 09:55:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 09:55:24] Production.INFO: ==4332== Releasing lock... [2025-04-23 09:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 09:55:24] Production.INFO: 42.75 MB #Memory Used# [2025-04-23 09:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 06:56:06 [end_date_ymd] => 2025-04-23 09:56:06 [RateCDR] => 1 ) [2025-04-23 09:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 06:56:06' and `end` < '2025-04-23 09:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 09:56:19] Production.INFO: count ==1972 [2025-04-23 09:56:20] Production.ERROR: pbx CDR StartTime 2025-04-23 06:56:06 - End Time 2025-04-23 09:56:06 [2025-04-23 09:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971499', 'tblTempUsageDetail_20' ) start [2025-04-23 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971499', 'tblTempUsageDetail_20' ) end [2025-04-23 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971499', 'tblTempVendorCDR_20' ) start [2025-04-23 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971499', 'tblTempVendorCDR_20' ) end [2025-04-23 09:56:20] Production.INFO: ProcessCDR(1,14971499,1,1,2) [2025-04-23 09:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971499', 'tblTempUsageDetail_20' ) start [2025-04-23 09:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971499', 'tblTempUsageDetail_20' ) end [2025-04-23 09:56:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 09:56:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 09:56:25] Production.INFO: ==4408== Releasing lock... [2025-04-23 09:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 09:56:25] Production.INFO: 43.25 MB #Memory Used# [2025-04-23 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 06:57:05 [end_date_ymd] => 2025-04-23 09:57:05 [RateCDR] => 1 ) [2025-04-23 09:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 06:57:05' and `end` < '2025-04-23 09:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 09:57:18] Production.INFO: count ==1990 [2025-04-23 09:57:19] Production.ERROR: pbx CDR StartTime 2025-04-23 06:57:05 - End Time 2025-04-23 09:57:05 [2025-04-23 09:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971504', 'tblTempUsageDetail_20' ) start [2025-04-23 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971504', 'tblTempUsageDetail_20' ) end [2025-04-23 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971504', 'tblTempVendorCDR_20' ) start [2025-04-23 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971504', 'tblTempVendorCDR_20' ) end [2025-04-23 09:57:19] Production.INFO: ProcessCDR(1,14971504,1,1,2) [2025-04-23 09:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971504', 'tblTempUsageDetail_20' ) start [2025-04-23 09:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971504', 'tblTempUsageDetail_20' ) end [2025-04-23 09:57:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 09:57:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 09:57:24] Production.INFO: ==4480== Releasing lock... [2025-04-23 09:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 09:57:24] Production.INFO: 43 MB #Memory Used# [2025-04-23 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 06:58:05 [end_date_ymd] => 2025-04-23 09:58:05 [RateCDR] => 1 ) [2025-04-23 09:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 06:58:05' and `end` < '2025-04-23 09:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 09:58:18] Production.INFO: count ==1993 [2025-04-23 09:58:19] Production.ERROR: pbx CDR StartTime 2025-04-23 06:58:05 - End Time 2025-04-23 09:58:05 [2025-04-23 09:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971509', 'tblTempUsageDetail_20' ) start [2025-04-23 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971509', 'tblTempUsageDetail_20' ) end [2025-04-23 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971509', 'tblTempVendorCDR_20' ) start [2025-04-23 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971509', 'tblTempVendorCDR_20' ) end [2025-04-23 09:58:19] Production.INFO: ProcessCDR(1,14971509,1,1,2) [2025-04-23 09:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971509', 'tblTempUsageDetail_20' ) start [2025-04-23 09:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971509', 'tblTempUsageDetail_20' ) end [2025-04-23 09:58:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 09:58:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 09:58:24] Production.INFO: ==4555== Releasing lock... [2025-04-23 09:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 09:58:24] Production.INFO: 43 MB #Memory Used# [2025-04-23 09:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 06:59:04 [end_date_ymd] => 2025-04-23 09:59:04 [RateCDR] => 1 ) [2025-04-23 09:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 06:59:04' and `end` < '2025-04-23 09:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 09:59:18] Production.INFO: count ==1997 [2025-04-23 09:59:18] Production.ERROR: pbx CDR StartTime 2025-04-23 06:59:04 - End Time 2025-04-23 09:59:04 [2025-04-23 09:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971514', 'tblTempUsageDetail_20' ) start [2025-04-23 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971514', 'tblTempUsageDetail_20' ) end [2025-04-23 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971514', 'tblTempVendorCDR_20' ) start [2025-04-23 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971514', 'tblTempVendorCDR_20' ) end [2025-04-23 09:59:18] Production.INFO: ProcessCDR(1,14971514,1,1,2) [2025-04-23 09:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 09:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 09:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971514', 'tblTempUsageDetail_20' ) start [2025-04-23 09:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971514', 'tblTempUsageDetail_20' ) end [2025-04-23 09:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 09:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 09:59:23] Production.INFO: ==4637== Releasing lock... [2025-04-23 09:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 09:59:23] Production.INFO: 43 MB #Memory Used# [2025-04-23 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 07:00:06 [end_date_ymd] => 2025-04-23 10:00:06 [RateCDR] => 1 ) [2025-04-23 10:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 07:00:06' and `end` < '2025-04-23 10:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 10:00:19] Production.INFO: count ==2046 [2025-04-23 10:00:20] Production.ERROR: pbx CDR StartTime 2025-04-23 07:00:06 - End Time 2025-04-23 10:00:06 [2025-04-23 10:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971520', 'tblTempUsageDetail_20' ) start [2025-04-23 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971520', 'tblTempUsageDetail_20' ) end [2025-04-23 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971520', 'tblTempVendorCDR_20' ) start [2025-04-23 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971520', 'tblTempVendorCDR_20' ) end [2025-04-23 10:00:20] Production.INFO: ProcessCDR(1,14971520,1,1,2) [2025-04-23 10:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971520', 'tblTempUsageDetail_20' ) start [2025-04-23 10:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971520', 'tblTempUsageDetail_20' ) end [2025-04-23 10:00:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 10:00:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 10:00:25] Production.INFO: ==4717== Releasing lock... [2025-04-23 10:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 10:00:25] Production.INFO: 43.5 MB #Memory Used# [2025-04-23 10:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 07:01:06 [end_date_ymd] => 2025-04-23 10:01:06 [RateCDR] => 1 ) [2025-04-23 10:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 07:01:06' and `end` < '2025-04-23 10:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 10:01:19] Production.INFO: count ==2133 [2025-04-23 10:01:20] Production.ERROR: pbx CDR StartTime 2025-04-23 07:01:06 - End Time 2025-04-23 10:01:06 [2025-04-23 10:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 10:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971525', 'tblTempUsageDetail_20' ) start [2025-04-23 10:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971525', 'tblTempUsageDetail_20' ) end [2025-04-23 10:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971525', 'tblTempVendorCDR_20' ) start [2025-04-23 10:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971525', 'tblTempVendorCDR_20' ) end [2025-04-23 10:01:20] Production.INFO: ProcessCDR(1,14971525,1,1,2) [2025-04-23 10:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971525', 'tblTempUsageDetail_20' ) start [2025-04-23 10:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971525', 'tblTempUsageDetail_20' ) end [2025-04-23 10:01:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 10:01:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 10:01:25] Production.INFO: ==4801== Releasing lock... [2025-04-23 10:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 10:01:25] Production.INFO: 44.25 MB #Memory Used# [2025-04-23 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 07:02:05 [end_date_ymd] => 2025-04-23 10:02:05 [RateCDR] => 1 ) [2025-04-23 10:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 07:02:05' and `end` < '2025-04-23 10:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 10:02:19] Production.INFO: count ==2155 [2025-04-23 10:02:19] Production.ERROR: pbx CDR StartTime 2025-04-23 07:02:05 - End Time 2025-04-23 10:02:05 [2025-04-23 10:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971530', 'tblTempUsageDetail_20' ) start [2025-04-23 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971530', 'tblTempUsageDetail_20' ) end [2025-04-23 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971530', 'tblTempVendorCDR_20' ) start [2025-04-23 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971530', 'tblTempVendorCDR_20' ) end [2025-04-23 10:02:19] Production.INFO: ProcessCDR(1,14971530,1,1,2) [2025-04-23 10:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971530', 'tblTempUsageDetail_20' ) start [2025-04-23 10:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971530', 'tblTempUsageDetail_20' ) end [2025-04-23 10:02:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 10:02:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 10:02:25] Production.INFO: ==4878== Releasing lock... [2025-04-23 10:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 10:02:25] Production.INFO: 44.5 MB #Memory Used# [2025-04-23 10:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 07:03:06 [end_date_ymd] => 2025-04-23 10:03:06 [RateCDR] => 1 ) [2025-04-23 10:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 07:03:06' and `end` < '2025-04-23 10:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 10:03:19] Production.INFO: count ==2164 [2025-04-23 10:03:19] Production.ERROR: pbx CDR StartTime 2025-04-23 07:03:06 - End Time 2025-04-23 10:03:06 [2025-04-23 10:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971535', 'tblTempUsageDetail_20' ) start [2025-04-23 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971535', 'tblTempUsageDetail_20' ) end [2025-04-23 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971535', 'tblTempVendorCDR_20' ) start [2025-04-23 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971535', 'tblTempVendorCDR_20' ) end [2025-04-23 10:03:20] Production.INFO: ProcessCDR(1,14971535,1,1,2) [2025-04-23 10:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971535', 'tblTempUsageDetail_20' ) start [2025-04-23 10:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971535', 'tblTempUsageDetail_20' ) end [2025-04-23 10:03:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 10:03:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 10:03:25] Production.INFO: ==4951== Releasing lock... [2025-04-23 10:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 10:03:25] Production.INFO: 44.75 MB #Memory Used# [2025-04-23 10:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 07:04:05 [end_date_ymd] => 2025-04-23 10:04:05 [RateCDR] => 1 ) [2025-04-23 10:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 07:04:05' and `end` < '2025-04-23 10:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 10:04:18] Production.INFO: count ==2193 [2025-04-23 10:04:19] Production.ERROR: pbx CDR StartTime 2025-04-23 07:04:05 - End Time 2025-04-23 10:04:05 [2025-04-23 10:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971540', 'tblTempUsageDetail_20' ) start [2025-04-23 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971540', 'tblTempUsageDetail_20' ) end [2025-04-23 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971540', 'tblTempVendorCDR_20' ) start [2025-04-23 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971540', 'tblTempVendorCDR_20' ) end [2025-04-23 10:04:19] Production.INFO: ProcessCDR(1,14971540,1,1,2) [2025-04-23 10:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971540', 'tblTempUsageDetail_20' ) start [2025-04-23 10:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971540', 'tblTempUsageDetail_20' ) end [2025-04-23 10:04:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 10:04:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 10:04:24] Production.INFO: ==5060== Releasing lock... [2025-04-23 10:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 10:04:24] Production.INFO: 44.75 MB #Memory Used# [2025-04-23 10:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 07:05:06 [end_date_ymd] => 2025-04-23 10:05:06 [RateCDR] => 1 ) [2025-04-23 10:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 07:05:06' and `end` < '2025-04-23 10:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 10:05:19] Production.INFO: count ==2207 [2025-04-23 10:05:20] Production.ERROR: pbx CDR StartTime 2025-04-23 07:05:06 - End Time 2025-04-23 10:05:06 [2025-04-23 10:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971545', 'tblTempUsageDetail_20' ) start [2025-04-23 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971545', 'tblTempUsageDetail_20' ) end [2025-04-23 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971545', 'tblTempVendorCDR_20' ) start [2025-04-23 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971545', 'tblTempVendorCDR_20' ) end [2025-04-23 10:05:20] Production.INFO: ProcessCDR(1,14971545,1,1,2) [2025-04-23 10:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971545', 'tblTempUsageDetail_20' ) start [2025-04-23 10:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971545', 'tblTempUsageDetail_20' ) end [2025-04-23 10:05:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 10:05:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 10:05:25] Production.INFO: ==5135== Releasing lock... [2025-04-23 10:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 10:05:25] Production.INFO: 44.75 MB #Memory Used# [2025-04-23 10:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 07:06:05 [end_date_ymd] => 2025-04-23 10:06:05 [RateCDR] => 1 ) [2025-04-23 10:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 07:06:05' and `end` < '2025-04-23 10:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 10:06:18] Production.INFO: count ==2214 [2025-04-23 10:06:19] Production.ERROR: pbx CDR StartTime 2025-04-23 07:06:05 - End Time 2025-04-23 10:06:05 [2025-04-23 10:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971550', 'tblTempUsageDetail_20' ) start [2025-04-23 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971550', 'tblTempUsageDetail_20' ) end [2025-04-23 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971550', 'tblTempVendorCDR_20' ) start [2025-04-23 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971550', 'tblTempVendorCDR_20' ) end [2025-04-23 10:06:19] Production.INFO: ProcessCDR(1,14971550,1,1,2) [2025-04-23 10:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971550', 'tblTempUsageDetail_20' ) start [2025-04-23 10:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971550', 'tblTempUsageDetail_20' ) end [2025-04-23 10:06:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 10:06:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 10:06:24] Production.INFO: ==5205== Releasing lock... [2025-04-23 10:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 10:06:24] Production.INFO: 44.75 MB #Memory Used# [2025-04-23 10:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 07:07:06 [end_date_ymd] => 2025-04-23 10:07:06 [RateCDR] => 1 ) [2025-04-23 10:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 07:07:06' and `end` < '2025-04-23 10:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 10:07:19] Production.INFO: count ==2239 [2025-04-23 10:07:20] Production.ERROR: pbx CDR StartTime 2025-04-23 07:07:06 - End Time 2025-04-23 10:07:06 [2025-04-23 10:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971555', 'tblTempUsageDetail_20' ) start [2025-04-23 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971555', 'tblTempUsageDetail_20' ) end [2025-04-23 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971555', 'tblTempVendorCDR_20' ) start [2025-04-23 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971555', 'tblTempVendorCDR_20' ) end [2025-04-23 10:07:20] Production.INFO: ProcessCDR(1,14971555,1,1,2) [2025-04-23 10:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971555', 'tblTempUsageDetail_20' ) start [2025-04-23 10:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971555', 'tblTempUsageDetail_20' ) end [2025-04-23 10:07:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 10:07:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 10:07:25] Production.INFO: ==5277== Releasing lock... [2025-04-23 10:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 10:07:25] Production.INFO: 45.5 MB #Memory Used# [2025-04-23 10:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 07:08:05 [end_date_ymd] => 2025-04-23 10:08:05 [RateCDR] => 1 ) [2025-04-23 10:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 07:08:05' and `end` < '2025-04-23 10:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 10:08:18] Production.INFO: count ==2254 [2025-04-23 10:08:19] Production.ERROR: pbx CDR StartTime 2025-04-23 07:08:05 - End Time 2025-04-23 10:08:05 [2025-04-23 10:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971560', 'tblTempUsageDetail_20' ) start [2025-04-23 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971560', 'tblTempUsageDetail_20' ) end [2025-04-23 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971560', 'tblTempVendorCDR_20' ) start [2025-04-23 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971560', 'tblTempVendorCDR_20' ) end [2025-04-23 10:08:19] Production.INFO: ProcessCDR(1,14971560,1,1,2) [2025-04-23 10:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971560', 'tblTempUsageDetail_20' ) start [2025-04-23 10:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971560', 'tblTempUsageDetail_20' ) end [2025-04-23 10:08:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 10:08:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 10:08:24] Production.INFO: ==5347== Releasing lock... [2025-04-23 10:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 10:08:24] Production.INFO: 45 MB #Memory Used# [2025-04-23 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 07:09:05 [end_date_ymd] => 2025-04-23 10:09:05 [RateCDR] => 1 ) [2025-04-23 10:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 07:09:05' and `end` < '2025-04-23 10:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 10:09:19] Production.INFO: count ==2324 [2025-04-23 10:09:20] Production.ERROR: pbx CDR StartTime 2025-04-23 07:09:05 - End Time 2025-04-23 10:09:05 [2025-04-23 10:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971565', 'tblTempUsageDetail_20' ) start [2025-04-23 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971565', 'tblTempUsageDetail_20' ) end [2025-04-23 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971565', 'tblTempVendorCDR_20' ) start [2025-04-23 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971565', 'tblTempVendorCDR_20' ) end [2025-04-23 10:09:20] Production.INFO: ProcessCDR(1,14971565,1,1,2) [2025-04-23 10:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971565', 'tblTempUsageDetail_20' ) start [2025-04-23 10:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971565', 'tblTempUsageDetail_20' ) end [2025-04-23 10:09:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 10:09:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 10:09:25] Production.INFO: ==5422== Releasing lock... [2025-04-23 10:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 10:09:25] Production.INFO: 45.5 MB #Memory Used# [2025-04-23 10:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 07:10:06 [end_date_ymd] => 2025-04-23 10:10:06 [RateCDR] => 1 ) [2025-04-23 10:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 07:10:06' and `end` < '2025-04-23 10:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 10:10:20] Production.INFO: count ==2372 [2025-04-23 10:10:21] Production.ERROR: pbx CDR StartTime 2025-04-23 07:10:06 - End Time 2025-04-23 10:10:06 [2025-04-23 10:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 10:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971571', 'tblTempUsageDetail_20' ) start [2025-04-23 10:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971571', 'tblTempUsageDetail_20' ) end [2025-04-23 10:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971571', 'tblTempVendorCDR_20' ) start [2025-04-23 10:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971571', 'tblTempVendorCDR_20' ) end [2025-04-23 10:10:21] Production.INFO: ProcessCDR(1,14971571,1,1,2) [2025-04-23 10:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971571', 'tblTempUsageDetail_20' ) start [2025-04-23 10:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971571', 'tblTempUsageDetail_20' ) end [2025-04-23 10:10:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 10:10:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 10:10:26] Production.INFO: ==5494== Releasing lock... [2025-04-23 10:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 10:10:26] Production.INFO: 46 MB #Memory Used# [2025-04-23 10:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 07:11:05 [end_date_ymd] => 2025-04-23 10:11:05 [RateCDR] => 1 ) [2025-04-23 10:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 07:11:05' and `end` < '2025-04-23 10:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 10:11:18] Production.INFO: count ==2486 [2025-04-23 10:11:19] Production.ERROR: pbx CDR StartTime 2025-04-23 07:11:05 - End Time 2025-04-23 10:11:05 [2025-04-23 10:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971576', 'tblTempUsageDetail_20' ) start [2025-04-23 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971576', 'tblTempUsageDetail_20' ) end [2025-04-23 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971576', 'tblTempVendorCDR_20' ) start [2025-04-23 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971576', 'tblTempVendorCDR_20' ) end [2025-04-23 10:11:19] Production.INFO: ProcessCDR(1,14971576,1,1,2) [2025-04-23 10:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971576', 'tblTempUsageDetail_20' ) start [2025-04-23 10:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971576', 'tblTempUsageDetail_20' ) end [2025-04-23 10:11:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 10:11:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 10:11:24] Production.INFO: ==5593== Releasing lock... [2025-04-23 10:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 10:11:24] Production.INFO: 47.25 MB #Memory Used# [2025-04-23 10:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 07:12:06 [end_date_ymd] => 2025-04-23 10:12:06 [RateCDR] => 1 ) [2025-04-23 10:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 07:12:06' and `end` < '2025-04-23 10:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 10:12:19] Production.INFO: count ==2569 [2025-04-23 10:12:20] Production.ERROR: pbx CDR StartTime 2025-04-23 07:12:06 - End Time 2025-04-23 10:12:06 [2025-04-23 10:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971581', 'tblTempUsageDetail_20' ) start [2025-04-23 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971581', 'tblTempUsageDetail_20' ) end [2025-04-23 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971581', 'tblTempVendorCDR_20' ) start [2025-04-23 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971581', 'tblTempVendorCDR_20' ) end [2025-04-23 10:12:20] Production.INFO: ProcessCDR(1,14971581,1,1,2) [2025-04-23 10:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971581', 'tblTempUsageDetail_20' ) start [2025-04-23 10:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971581', 'tblTempUsageDetail_20' ) end [2025-04-23 10:12:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 10:12:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 10:12:25] Production.INFO: ==5664== Releasing lock... [2025-04-23 10:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 10:12:25] Production.INFO: 47.5 MB #Memory Used# [2025-04-23 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 07:13:05 [end_date_ymd] => 2025-04-23 10:13:05 [RateCDR] => 1 ) [2025-04-23 10:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 07:13:05' and `end` < '2025-04-23 10:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 10:13:19] Production.INFO: count ==2600 [2025-04-23 10:13:19] Production.ERROR: pbx CDR StartTime 2025-04-23 07:13:05 - End Time 2025-04-23 10:13:05 [2025-04-23 10:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971586', 'tblTempUsageDetail_20' ) start [2025-04-23 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971586', 'tblTempUsageDetail_20' ) end [2025-04-23 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971586', 'tblTempVendorCDR_20' ) start [2025-04-23 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971586', 'tblTempVendorCDR_20' ) end [2025-04-23 10:13:20] Production.INFO: ProcessCDR(1,14971586,1,1,2) [2025-04-23 10:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971586', 'tblTempUsageDetail_20' ) start [2025-04-23 10:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971586', 'tblTempUsageDetail_20' ) end [2025-04-23 10:13:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 10:13:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 10:13:23] Production.INFO: ==5734== Releasing lock... [2025-04-23 10:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 10:13:23] Production.INFO: 47.75 MB #Memory Used# [2025-04-23 10:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 07:14:05 [end_date_ymd] => 2025-04-23 10:14:05 [RateCDR] => 1 ) [2025-04-23 10:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 07:14:05' and `end` < '2025-04-23 10:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 10:14:19] Production.INFO: count ==2613 [2025-04-23 10:14:20] Production.ERROR: pbx CDR StartTime 2025-04-23 07:14:05 - End Time 2025-04-23 10:14:05 [2025-04-23 10:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971591', 'tblTempUsageDetail_20' ) start [2025-04-23 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971591', 'tblTempUsageDetail_20' ) end [2025-04-23 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971591', 'tblTempVendorCDR_20' ) start [2025-04-23 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971591', 'tblTempVendorCDR_20' ) end [2025-04-23 10:14:20] Production.INFO: ProcessCDR(1,14971591,1,1,2) [2025-04-23 10:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971591', 'tblTempUsageDetail_20' ) start [2025-04-23 10:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971591', 'tblTempUsageDetail_20' ) end [2025-04-23 10:14:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 10:14:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 10:14:26] Production.INFO: ==5808== Releasing lock... [2025-04-23 10:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 10:14:26] Production.INFO: 48 MB #Memory Used# [2025-04-23 10:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 07:15:06 [end_date_ymd] => 2025-04-23 10:15:06 [RateCDR] => 1 ) [2025-04-23 10:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 07:15:06' and `end` < '2025-04-23 10:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 10:15:19] Production.INFO: count ==2625 [2025-04-23 10:15:20] Production.ERROR: pbx CDR StartTime 2025-04-23 07:15:06 - End Time 2025-04-23 10:15:06 [2025-04-23 10:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971596', 'tblTempUsageDetail_20' ) start [2025-04-23 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971596', 'tblTempUsageDetail_20' ) end [2025-04-23 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971596', 'tblTempVendorCDR_20' ) start [2025-04-23 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971596', 'tblTempVendorCDR_20' ) end [2025-04-23 10:15:20] Production.INFO: ProcessCDR(1,14971596,1,1,2) [2025-04-23 10:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971596', 'tblTempUsageDetail_20' ) start [2025-04-23 10:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971596', 'tblTempUsageDetail_20' ) end [2025-04-23 10:15:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 10:15:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 10:15:26] Production.INFO: ==5881== Releasing lock... [2025-04-23 10:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 10:15:26] Production.INFO: 47.75 MB #Memory Used# [2025-04-23 10:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 07:16:05 [end_date_ymd] => 2025-04-23 10:16:05 [RateCDR] => 1 ) [2025-04-23 10:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 07:16:05' and `end` < '2025-04-23 10:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 10:16:18] Production.INFO: count ==2648 [2025-04-23 10:16:19] Production.ERROR: pbx CDR StartTime 2025-04-23 07:16:05 - End Time 2025-04-23 10:16:05 [2025-04-23 10:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971601', 'tblTempUsageDetail_20' ) start [2025-04-23 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971601', 'tblTempUsageDetail_20' ) end [2025-04-23 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971601', 'tblTempVendorCDR_20' ) start [2025-04-23 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971601', 'tblTempVendorCDR_20' ) end [2025-04-23 10:16:19] Production.INFO: ProcessCDR(1,14971601,1,1,2) [2025-04-23 10:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971601', 'tblTempUsageDetail_20' ) start [2025-04-23 10:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971601', 'tblTempUsageDetail_20' ) end [2025-04-23 10:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 10:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 10:16:23] Production.INFO: ==5959== Releasing lock... [2025-04-23 10:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 10:16:23] Production.INFO: 48 MB #Memory Used# [2025-04-23 10:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 07:17:05 [end_date_ymd] => 2025-04-23 10:17:05 [RateCDR] => 1 ) [2025-04-23 10:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 07:17:05' and `end` < '2025-04-23 10:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 10:17:18] Production.INFO: count ==2695 [2025-04-23 10:17:19] Production.ERROR: pbx CDR StartTime 2025-04-23 07:17:05 - End Time 2025-04-23 10:17:05 [2025-04-23 10:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971606', 'tblTempUsageDetail_20' ) start [2025-04-23 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971606', 'tblTempUsageDetail_20' ) end [2025-04-23 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971606', 'tblTempVendorCDR_20' ) start [2025-04-23 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971606', 'tblTempVendorCDR_20' ) end [2025-04-23 10:17:19] Production.INFO: ProcessCDR(1,14971606,1,1,2) [2025-04-23 10:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971606', 'tblTempUsageDetail_20' ) start [2025-04-23 10:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971606', 'tblTempUsageDetail_20' ) end [2025-04-23 10:17:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 10:17:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 10:17:25] Production.INFO: ==6031== Releasing lock... [2025-04-23 10:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 10:17:25] Production.INFO: 48.25 MB #Memory Used# [2025-04-23 10:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 07:18:06 [end_date_ymd] => 2025-04-23 10:18:06 [RateCDR] => 1 ) [2025-04-23 10:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 07:18:06' and `end` < '2025-04-23 10:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 10:18:19] Production.INFO: count ==2718 [2025-04-23 10:18:20] Production.ERROR: pbx CDR StartTime 2025-04-23 07:18:06 - End Time 2025-04-23 10:18:06 [2025-04-23 10:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971611', 'tblTempUsageDetail_20' ) start [2025-04-23 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971611', 'tblTempUsageDetail_20' ) end [2025-04-23 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971611', 'tblTempVendorCDR_20' ) start [2025-04-23 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971611', 'tblTempVendorCDR_20' ) end [2025-04-23 10:18:20] Production.INFO: ProcessCDR(1,14971611,1,1,2) [2025-04-23 10:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971611', 'tblTempUsageDetail_20' ) start [2025-04-23 10:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971611', 'tblTempUsageDetail_20' ) end [2025-04-23 10:18:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 10:18:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 10:18:25] Production.INFO: ==6108== Releasing lock... [2025-04-23 10:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 10:18:25] Production.INFO: 48.5 MB #Memory Used# [2025-04-23 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 07:19:05 [end_date_ymd] => 2025-04-23 10:19:05 [RateCDR] => 1 ) [2025-04-23 10:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 07:19:05' and `end` < '2025-04-23 10:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 10:19:19] Production.INFO: count ==2765 [2025-04-23 10:19:20] Production.ERROR: pbx CDR StartTime 2025-04-23 07:19:05 - End Time 2025-04-23 10:19:05 [2025-04-23 10:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971616', 'tblTempUsageDetail_20' ) start [2025-04-23 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971616', 'tblTempUsageDetail_20' ) end [2025-04-23 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971616', 'tblTempVendorCDR_20' ) start [2025-04-23 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971616', 'tblTempVendorCDR_20' ) end [2025-04-23 10:19:20] Production.INFO: ProcessCDR(1,14971616,1,1,2) [2025-04-23 10:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971616', 'tblTempUsageDetail_20' ) start [2025-04-23 10:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971616', 'tblTempUsageDetail_20' ) end [2025-04-23 10:19:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 10:19:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 10:19:25] Production.INFO: ==6181== Releasing lock... [2025-04-23 10:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 10:19:25] Production.INFO: 49 MB #Memory Used# [2025-04-23 10:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 07:20:07 [end_date_ymd] => 2025-04-23 10:20:07 [RateCDR] => 1 ) [2025-04-23 10:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 07:20:07' and `end` < '2025-04-23 10:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 10:20:20] Production.INFO: count ==2785 [2025-04-23 10:20:21] Production.ERROR: pbx CDR StartTime 2025-04-23 07:20:07 - End Time 2025-04-23 10:20:07 [2025-04-23 10:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971622', 'tblTempUsageDetail_20' ) start [2025-04-23 10:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971622', 'tblTempUsageDetail_20' ) end [2025-04-23 10:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971622', 'tblTempVendorCDR_20' ) start [2025-04-23 10:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971622', 'tblTempVendorCDR_20' ) end [2025-04-23 10:20:22] Production.INFO: ProcessCDR(1,14971622,1,1,2) [2025-04-23 10:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971622', 'tblTempUsageDetail_20' ) start [2025-04-23 10:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971622', 'tblTempUsageDetail_20' ) end [2025-04-23 10:20:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 10:20:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 10:20:27] Production.INFO: ==6293== Releasing lock... [2025-04-23 10:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 10:20:27] Production.INFO: 49 MB #Memory Used# [2025-04-23 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 07:21:05 [end_date_ymd] => 2025-04-23 10:21:05 [RateCDR] => 1 ) [2025-04-23 10:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 07:21:05' and `end` < '2025-04-23 10:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 10:21:19] Production.INFO: count ==2901 [2025-04-23 10:21:20] Production.ERROR: pbx CDR StartTime 2025-04-23 07:21:05 - End Time 2025-04-23 10:21:05 [2025-04-23 10:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971627', 'tblTempUsageDetail_20' ) start [2025-04-23 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971627', 'tblTempUsageDetail_20' ) end [2025-04-23 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971627', 'tblTempVendorCDR_20' ) start [2025-04-23 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971627', 'tblTempVendorCDR_20' ) end [2025-04-23 10:21:20] Production.INFO: ProcessCDR(1,14971627,1,1,2) [2025-04-23 10:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971627', 'tblTempUsageDetail_20' ) start [2025-04-23 10:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971627', 'tblTempUsageDetail_20' ) end [2025-04-23 10:21:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 10:21:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 10:21:25] Production.INFO: ==6367== Releasing lock... [2025-04-23 10:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 10:21:25] Production.INFO: 49.5 MB #Memory Used# [2025-04-23 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 07:22:05 [end_date_ymd] => 2025-04-23 10:22:05 [RateCDR] => 1 ) [2025-04-23 10:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 07:22:05' and `end` < '2025-04-23 10:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 10:22:19] Production.INFO: count ==2906 [2025-04-23 10:22:20] Production.ERROR: pbx CDR StartTime 2025-04-23 07:22:05 - End Time 2025-04-23 10:22:05 [2025-04-23 10:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971632', 'tblTempUsageDetail_20' ) start [2025-04-23 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971632', 'tblTempUsageDetail_20' ) end [2025-04-23 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971632', 'tblTempVendorCDR_20' ) start [2025-04-23 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971632', 'tblTempVendorCDR_20' ) end [2025-04-23 10:22:20] Production.INFO: ProcessCDR(1,14971632,1,1,2) [2025-04-23 10:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971632', 'tblTempUsageDetail_20' ) start [2025-04-23 10:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971632', 'tblTempUsageDetail_20' ) end [2025-04-23 10:22:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 10:22:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 10:22:25] Production.INFO: ==6438== Releasing lock... [2025-04-23 10:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 10:22:25] Production.INFO: 49.5 MB #Memory Used# [2025-04-23 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 07:23:05 [end_date_ymd] => 2025-04-23 10:23:05 [RateCDR] => 1 ) [2025-04-23 10:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 07:23:05' and `end` < '2025-04-23 10:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 10:23:19] Production.INFO: count ==2916 [2025-04-23 10:23:20] Production.ERROR: pbx CDR StartTime 2025-04-23 07:23:05 - End Time 2025-04-23 10:23:05 [2025-04-23 10:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971637', 'tblTempUsageDetail_20' ) start [2025-04-23 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971637', 'tblTempUsageDetail_20' ) end [2025-04-23 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971637', 'tblTempVendorCDR_20' ) start [2025-04-23 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971637', 'tblTempVendorCDR_20' ) end [2025-04-23 10:23:20] Production.INFO: ProcessCDR(1,14971637,1,1,2) [2025-04-23 10:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971637', 'tblTempUsageDetail_20' ) start [2025-04-23 10:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971637', 'tblTempUsageDetail_20' ) end [2025-04-23 10:23:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 10:23:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 10:23:25] Production.INFO: ==6511== Releasing lock... [2025-04-23 10:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 10:23:25] Production.INFO: 49.75 MB #Memory Used# [2025-04-23 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 07:24:05 [end_date_ymd] => 2025-04-23 10:24:05 [RateCDR] => 1 ) [2025-04-23 10:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 07:24:05' and `end` < '2025-04-23 10:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 10:24:19] Production.INFO: count ==2925 [2025-04-23 10:24:20] Production.ERROR: pbx CDR StartTime 2025-04-23 07:24:05 - End Time 2025-04-23 10:24:05 [2025-04-23 10:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971642', 'tblTempUsageDetail_20' ) start [2025-04-23 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971642', 'tblTempUsageDetail_20' ) end [2025-04-23 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971642', 'tblTempVendorCDR_20' ) start [2025-04-23 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971642', 'tblTempVendorCDR_20' ) end [2025-04-23 10:24:20] Production.INFO: ProcessCDR(1,14971642,1,1,2) [2025-04-23 10:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971642', 'tblTempUsageDetail_20' ) start [2025-04-23 10:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971642', 'tblTempUsageDetail_20' ) end [2025-04-23 10:24:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 10:24:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 10:24:25] Production.INFO: ==6588== Releasing lock... [2025-04-23 10:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 10:24:25] Production.INFO: 50 MB #Memory Used# [2025-04-23 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 07:25:05 [end_date_ymd] => 2025-04-23 10:25:05 [RateCDR] => 1 ) [2025-04-23 10:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 07:25:05' and `end` < '2025-04-23 10:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 10:25:18] Production.INFO: count ==2955 [2025-04-23 10:25:20] Production.ERROR: pbx CDR StartTime 2025-04-23 07:25:05 - End Time 2025-04-23 10:25:05 [2025-04-23 10:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971647', 'tblTempUsageDetail_20' ) start [2025-04-23 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971647', 'tblTempUsageDetail_20' ) end [2025-04-23 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971647', 'tblTempVendorCDR_20' ) start [2025-04-23 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971647', 'tblTempVendorCDR_20' ) end [2025-04-23 10:25:20] Production.INFO: ProcessCDR(1,14971647,1,1,2) [2025-04-23 10:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971647', 'tblTempUsageDetail_20' ) start [2025-04-23 10:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971647', 'tblTempUsageDetail_20' ) end [2025-04-23 10:25:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 10:25:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 10:25:25] Production.INFO: ==6667== Releasing lock... [2025-04-23 10:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 10:25:25] Production.INFO: 50 MB #Memory Used# [2025-04-23 10:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 07:26:06 [end_date_ymd] => 2025-04-23 10:26:06 [RateCDR] => 1 ) [2025-04-23 10:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 07:26:06' and `end` < '2025-04-23 10:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 10:26:19] Production.INFO: count ==2972 [2025-04-23 10:26:20] Production.ERROR: pbx CDR StartTime 2025-04-23 07:26:06 - End Time 2025-04-23 10:26:06 [2025-04-23 10:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971652', 'tblTempUsageDetail_20' ) start [2025-04-23 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971652', 'tblTempUsageDetail_20' ) end [2025-04-23 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971652', 'tblTempVendorCDR_20' ) start [2025-04-23 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971652', 'tblTempVendorCDR_20' ) end [2025-04-23 10:26:20] Production.INFO: ProcessCDR(1,14971652,1,1,2) [2025-04-23 10:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971652', 'tblTempUsageDetail_20' ) start [2025-04-23 10:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971652', 'tblTempUsageDetail_20' ) end [2025-04-23 10:26:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 10:26:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 10:26:26] Production.INFO: ==6741== Releasing lock... [2025-04-23 10:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 10:26:26] Production.INFO: 50.25 MB #Memory Used# [2025-04-23 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 07:27:05 [end_date_ymd] => 2025-04-23 10:27:05 [RateCDR] => 1 ) [2025-04-23 10:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 07:27:05' and `end` < '2025-04-23 10:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 10:27:18] Production.INFO: count ==3006 [2025-04-23 10:27:19] Production.ERROR: pbx CDR StartTime 2025-04-23 07:27:05 - End Time 2025-04-23 10:27:05 [2025-04-23 10:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971657', 'tblTempUsageDetail_20' ) start [2025-04-23 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971657', 'tblTempUsageDetail_20' ) end [2025-04-23 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971657', 'tblTempVendorCDR_20' ) start [2025-04-23 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971657', 'tblTempVendorCDR_20' ) end [2025-04-23 10:27:20] Production.INFO: ProcessCDR(1,14971657,1,1,2) [2025-04-23 10:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971657', 'tblTempUsageDetail_20' ) start [2025-04-23 10:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971657', 'tblTempUsageDetail_20' ) end [2025-04-23 10:27:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 10:27:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 10:27:25] Production.INFO: ==6813== Releasing lock... [2025-04-23 10:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 10:27:25] Production.INFO: 51 MB #Memory Used# [2025-04-23 10:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 07:28:06 [end_date_ymd] => 2025-04-23 10:28:06 [RateCDR] => 1 ) [2025-04-23 10:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 07:28:06' and `end` < '2025-04-23 10:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 10:28:19] Production.INFO: count ==3030 [2025-04-23 10:28:20] Production.ERROR: pbx CDR StartTime 2025-04-23 07:28:06 - End Time 2025-04-23 10:28:06 [2025-04-23 10:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971662', 'tblTempUsageDetail_20' ) start [2025-04-23 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971662', 'tblTempUsageDetail_20' ) end [2025-04-23 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971662', 'tblTempVendorCDR_20' ) start [2025-04-23 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971662', 'tblTempVendorCDR_20' ) end [2025-04-23 10:28:20] Production.INFO: ProcessCDR(1,14971662,1,1,2) [2025-04-23 10:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971662', 'tblTempUsageDetail_20' ) start [2025-04-23 10:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971662', 'tblTempUsageDetail_20' ) end [2025-04-23 10:28:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 10:28:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 10:28:25] Production.INFO: ==6886== Releasing lock... [2025-04-23 10:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 10:28:25] Production.INFO: 50.75 MB #Memory Used# [2025-04-23 10:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 07:29:04 [end_date_ymd] => 2025-04-23 10:29:04 [RateCDR] => 1 ) [2025-04-23 10:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 07:29:04' and `end` < '2025-04-23 10:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 10:29:18] Production.INFO: count ==3041 [2025-04-23 10:29:19] Production.ERROR: pbx CDR StartTime 2025-04-23 07:29:04 - End Time 2025-04-23 10:29:04 [2025-04-23 10:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971667', 'tblTempUsageDetail_20' ) start [2025-04-23 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971667', 'tblTempUsageDetail_20' ) end [2025-04-23 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971667', 'tblTempVendorCDR_20' ) start [2025-04-23 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971667', 'tblTempVendorCDR_20' ) end [2025-04-23 10:29:20] Production.INFO: ProcessCDR(1,14971667,1,1,2) [2025-04-23 10:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971667', 'tblTempUsageDetail_20' ) start [2025-04-23 10:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971667', 'tblTempUsageDetail_20' ) end [2025-04-23 10:29:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 10:29:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 10:29:25] Production.INFO: ==6969== Releasing lock... [2025-04-23 10:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 10:29:25] Production.INFO: 50.75 MB #Memory Used# [2025-04-23 10:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 07:30:06 [end_date_ymd] => 2025-04-23 10:30:06 [RateCDR] => 1 ) [2025-04-23 10:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 07:30:06' and `end` < '2025-04-23 10:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 10:30:19] Production.INFO: count ==3102 [2025-04-23 10:30:20] Production.ERROR: pbx CDR StartTime 2025-04-23 07:30:06 - End Time 2025-04-23 10:30:06 [2025-04-23 10:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971673', 'tblTempUsageDetail_20' ) start [2025-04-23 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971673', 'tblTempUsageDetail_20' ) end [2025-04-23 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971673', 'tblTempVendorCDR_20' ) start [2025-04-23 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971673', 'tblTempVendorCDR_20' ) end [2025-04-23 10:30:21] Production.INFO: ProcessCDR(1,14971673,1,1,2) [2025-04-23 10:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971673', 'tblTempUsageDetail_20' ) start [2025-04-23 10:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971673', 'tblTempUsageDetail_20' ) end [2025-04-23 10:30:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 10:30:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 10:30:26] Production.INFO: ==7042== Releasing lock... [2025-04-23 10:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 10:30:26] Production.INFO: 51.5 MB #Memory Used# [2025-04-23 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 07:31:05 [end_date_ymd] => 2025-04-23 10:31:05 [RateCDR] => 1 ) [2025-04-23 10:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 07:31:05' and `end` < '2025-04-23 10:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 10:31:18] Production.INFO: count ==3224 [2025-04-23 10:31:19] Production.ERROR: pbx CDR StartTime 2025-04-23 07:31:05 - End Time 2025-04-23 10:31:05 [2025-04-23 10:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971678', 'tblTempUsageDetail_20' ) start [2025-04-23 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971678', 'tblTempUsageDetail_20' ) end [2025-04-23 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971678', 'tblTempVendorCDR_20' ) start [2025-04-23 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971678', 'tblTempVendorCDR_20' ) end [2025-04-23 10:31:20] Production.INFO: ProcessCDR(1,14971678,1,1,2) [2025-04-23 10:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971678', 'tblTempUsageDetail_20' ) start [2025-04-23 10:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971678', 'tblTempUsageDetail_20' ) end [2025-04-23 10:31:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 10:31:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 10:31:25] Production.INFO: ==7118== Releasing lock... [2025-04-23 10:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 10:31:25] Production.INFO: 52.25 MB #Memory Used# [2025-04-23 10:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 07:32:06 [end_date_ymd] => 2025-04-23 10:32:06 [RateCDR] => 1 ) [2025-04-23 10:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 07:32:06' and `end` < '2025-04-23 10:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 10:32:19] Production.INFO: count ==3269 [2025-04-23 10:32:20] Production.ERROR: pbx CDR StartTime 2025-04-23 07:32:06 - End Time 2025-04-23 10:32:06 [2025-04-23 10:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971683', 'tblTempUsageDetail_20' ) start [2025-04-23 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971683', 'tblTempUsageDetail_20' ) end [2025-04-23 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971683', 'tblTempVendorCDR_20' ) start [2025-04-23 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971683', 'tblTempVendorCDR_20' ) end [2025-04-23 10:32:20] Production.INFO: ProcessCDR(1,14971683,1,1,2) [2025-04-23 10:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971683', 'tblTempUsageDetail_20' ) start [2025-04-23 10:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971683', 'tblTempUsageDetail_20' ) end [2025-04-23 10:32:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 10:32:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 10:32:26] Production.INFO: ==7188== Releasing lock... [2025-04-23 10:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 10:32:26] Production.INFO: 52.5 MB #Memory Used# [2025-04-23 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 07:33:05 [end_date_ymd] => 2025-04-23 10:33:05 [RateCDR] => 1 ) [2025-04-23 10:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 07:33:05' and `end` < '2025-04-23 10:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 10:33:18] Production.INFO: count ==3314 [2025-04-23 10:33:19] Production.ERROR: pbx CDR StartTime 2025-04-23 07:33:05 - End Time 2025-04-23 10:33:05 [2025-04-23 10:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971688', 'tblTempUsageDetail_20' ) start [2025-04-23 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971688', 'tblTempUsageDetail_20' ) end [2025-04-23 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971688', 'tblTempVendorCDR_20' ) start [2025-04-23 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971688', 'tblTempVendorCDR_20' ) end [2025-04-23 10:33:20] Production.INFO: ProcessCDR(1,14971688,1,1,2) [2025-04-23 10:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971688', 'tblTempUsageDetail_20' ) start [2025-04-23 10:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971688', 'tblTempUsageDetail_20' ) end [2025-04-23 10:33:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 10:33:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 10:33:25] Production.INFO: ==7261== Releasing lock... [2025-04-23 10:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 10:33:25] Production.INFO: 53 MB #Memory Used# [2025-04-23 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 07:34:05 [end_date_ymd] => 2025-04-23 10:34:05 [RateCDR] => 1 ) [2025-04-23 10:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 07:34:05' and `end` < '2025-04-23 10:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 10:34:19] Production.INFO: count ==3337 [2025-04-23 10:34:20] Production.ERROR: pbx CDR StartTime 2025-04-23 07:34:05 - End Time 2025-04-23 10:34:05 [2025-04-23 10:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971693', 'tblTempUsageDetail_20' ) start [2025-04-23 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971693', 'tblTempUsageDetail_20' ) end [2025-04-23 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971693', 'tblTempVendorCDR_20' ) start [2025-04-23 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971693', 'tblTempVendorCDR_20' ) end [2025-04-23 10:34:20] Production.INFO: ProcessCDR(1,14971693,1,1,2) [2025-04-23 10:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971693', 'tblTempUsageDetail_20' ) start [2025-04-23 10:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971693', 'tblTempUsageDetail_20' ) end [2025-04-23 10:34:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 10:34:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 10:34:25] Production.INFO: ==7333== Releasing lock... [2025-04-23 10:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 10:34:25] Production.INFO: 53 MB #Memory Used# [2025-04-23 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 07:35:05 [end_date_ymd] => 2025-04-23 10:35:05 [RateCDR] => 1 ) [2025-04-23 10:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 07:35:05' and `end` < '2025-04-23 10:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 10:35:18] Production.INFO: count ==3360 [2025-04-23 10:35:20] Production.ERROR: pbx CDR StartTime 2025-04-23 07:35:05 - End Time 2025-04-23 10:35:05 [2025-04-23 10:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971698', 'tblTempUsageDetail_20' ) start [2025-04-23 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971698', 'tblTempUsageDetail_20' ) end [2025-04-23 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971698', 'tblTempVendorCDR_20' ) start [2025-04-23 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971698', 'tblTempVendorCDR_20' ) end [2025-04-23 10:35:20] Production.INFO: ProcessCDR(1,14971698,1,1,2) [2025-04-23 10:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971698', 'tblTempUsageDetail_20' ) start [2025-04-23 10:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971698', 'tblTempUsageDetail_20' ) end [2025-04-23 10:35:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 10:35:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 10:35:26] Production.INFO: ==7447== Releasing lock... [2025-04-23 10:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 10:35:26] Production.INFO: 53 MB #Memory Used# [2025-04-23 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 07:36:05 [end_date_ymd] => 2025-04-23 10:36:05 [RateCDR] => 1 ) [2025-04-23 10:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 07:36:05' and `end` < '2025-04-23 10:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 10:36:20] Production.INFO: count ==3375 [2025-04-23 10:36:21] Production.ERROR: pbx CDR StartTime 2025-04-23 07:36:05 - End Time 2025-04-23 10:36:05 [2025-04-23 10:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 10:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971703', 'tblTempUsageDetail_20' ) start [2025-04-23 10:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971703', 'tblTempUsageDetail_20' ) end [2025-04-23 10:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971703', 'tblTempVendorCDR_20' ) start [2025-04-23 10:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971703', 'tblTempVendorCDR_20' ) end [2025-04-23 10:36:21] Production.INFO: ProcessCDR(1,14971703,1,1,2) [2025-04-23 10:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971703', 'tblTempUsageDetail_20' ) start [2025-04-23 10:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971703', 'tblTempUsageDetail_20' ) end [2025-04-23 10:36:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 10:36:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 10:36:27] Production.INFO: ==7517== Releasing lock... [2025-04-23 10:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 10:36:27] Production.INFO: 53.75 MB #Memory Used# [2025-04-23 10:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 07:37:06 [end_date_ymd] => 2025-04-23 10:37:06 [RateCDR] => 1 ) [2025-04-23 10:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 07:37:06' and `end` < '2025-04-23 10:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 10:37:20] Production.INFO: count ==3401 [2025-04-23 10:37:21] Production.ERROR: pbx CDR StartTime 2025-04-23 07:37:06 - End Time 2025-04-23 10:37:06 [2025-04-23 10:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 10:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971708', 'tblTempUsageDetail_20' ) start [2025-04-23 10:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971708', 'tblTempUsageDetail_20' ) end [2025-04-23 10:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971708', 'tblTempVendorCDR_20' ) start [2025-04-23 10:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971708', 'tblTempVendorCDR_20' ) end [2025-04-23 10:37:21] Production.INFO: ProcessCDR(1,14971708,1,1,2) [2025-04-23 10:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971708', 'tblTempUsageDetail_20' ) start [2025-04-23 10:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971708', 'tblTempUsageDetail_20' ) end [2025-04-23 10:37:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 10:37:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 10:37:26] Production.INFO: ==7590== Releasing lock... [2025-04-23 10:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 10:37:26] Production.INFO: 54.25 MB #Memory Used# [2025-04-23 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 07:38:05 [end_date_ymd] => 2025-04-23 10:38:05 [RateCDR] => 1 ) [2025-04-23 10:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 07:38:05' and `end` < '2025-04-23 10:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 10:38:19] Production.INFO: count ==3438 [2025-04-23 10:38:20] Production.ERROR: pbx CDR StartTime 2025-04-23 07:38:05 - End Time 2025-04-23 10:38:05 [2025-04-23 10:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971713', 'tblTempUsageDetail_20' ) start [2025-04-23 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971713', 'tblTempUsageDetail_20' ) end [2025-04-23 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971713', 'tblTempVendorCDR_20' ) start [2025-04-23 10:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971713', 'tblTempVendorCDR_20' ) end [2025-04-23 10:38:21] Production.INFO: ProcessCDR(1,14971713,1,1,2) [2025-04-23 10:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971713', 'tblTempUsageDetail_20' ) start [2025-04-23 10:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971713', 'tblTempUsageDetail_20' ) end [2025-04-23 10:38:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 10:38:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 10:38:26] Production.INFO: ==7669== Releasing lock... [2025-04-23 10:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 10:38:26] Production.INFO: 54.75 MB #Memory Used# [2025-04-23 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 07:39:05 [end_date_ymd] => 2025-04-23 10:39:05 [RateCDR] => 1 ) [2025-04-23 10:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 07:39:05' and `end` < '2025-04-23 10:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 10:39:19] Production.INFO: count ==3460 [2025-04-23 10:39:20] Production.ERROR: pbx CDR StartTime 2025-04-23 07:39:05 - End Time 2025-04-23 10:39:05 [2025-04-23 10:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971718', 'tblTempUsageDetail_20' ) start [2025-04-23 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971718', 'tblTempUsageDetail_20' ) end [2025-04-23 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971718', 'tblTempVendorCDR_20' ) start [2025-04-23 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971718', 'tblTempVendorCDR_20' ) end [2025-04-23 10:39:20] Production.INFO: ProcessCDR(1,14971718,1,1,2) [2025-04-23 10:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971718', 'tblTempUsageDetail_20' ) start [2025-04-23 10:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971718', 'tblTempUsageDetail_20' ) end [2025-04-23 10:39:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 10:39:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 10:39:25] Production.INFO: ==7740== Releasing lock... [2025-04-23 10:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 10:39:25] Production.INFO: 54.5 MB #Memory Used# [2025-04-23 10:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 07:40:06 [end_date_ymd] => 2025-04-23 10:40:06 [RateCDR] => 1 ) [2025-04-23 10:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 07:40:06' and `end` < '2025-04-23 10:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 10:40:19] Production.INFO: count ==3479 [2025-04-23 10:40:21] Production.ERROR: pbx CDR StartTime 2025-04-23 07:40:06 - End Time 2025-04-23 10:40:06 [2025-04-23 10:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971724', 'tblTempUsageDetail_20' ) start [2025-04-23 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971724', 'tblTempUsageDetail_20' ) end [2025-04-23 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971724', 'tblTempVendorCDR_20' ) start [2025-04-23 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971724', 'tblTempVendorCDR_20' ) end [2025-04-23 10:40:21] Production.INFO: ProcessCDR(1,14971724,1,1,2) [2025-04-23 10:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971724', 'tblTempUsageDetail_20' ) start [2025-04-23 10:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971724', 'tblTempUsageDetail_20' ) end [2025-04-23 10:40:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 10:40:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 10:40:26] Production.INFO: ==7815== Releasing lock... [2025-04-23 10:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 10:40:26] Production.INFO: 54.75 MB #Memory Used# [2025-04-23 10:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 07:41:06 [end_date_ymd] => 2025-04-23 10:41:06 [RateCDR] => 1 ) [2025-04-23 10:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 07:41:06' and `end` < '2025-04-23 10:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 10:41:19] Production.INFO: count ==3608 [2025-04-23 10:41:21] Production.ERROR: pbx CDR StartTime 2025-04-23 07:41:06 - End Time 2025-04-23 10:41:06 [2025-04-23 10:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 10:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971729', 'tblTempUsageDetail_20' ) start [2025-04-23 10:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971729', 'tblTempUsageDetail_20' ) end [2025-04-23 10:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971729', 'tblTempVendorCDR_20' ) start [2025-04-23 10:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971729', 'tblTempVendorCDR_20' ) end [2025-04-23 10:41:21] Production.INFO: ProcessCDR(1,14971729,1,1,2) [2025-04-23 10:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971729', 'tblTempUsageDetail_20' ) start [2025-04-23 10:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971729', 'tblTempUsageDetail_20' ) end [2025-04-23 10:41:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 10:41:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 10:41:26] Production.INFO: ==7906== Releasing lock... [2025-04-23 10:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 10:41:26] Production.INFO: 55.75 MB #Memory Used# [2025-04-23 10:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 07:42:05 [end_date_ymd] => 2025-04-23 10:42:05 [RateCDR] => 1 ) [2025-04-23 10:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 07:42:05' and `end` < '2025-04-23 10:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 10:42:19] Production.INFO: count ==3633 [2025-04-23 10:42:20] Production.ERROR: pbx CDR StartTime 2025-04-23 07:42:05 - End Time 2025-04-23 10:42:05 [2025-04-23 10:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971734', 'tblTempUsageDetail_20' ) start [2025-04-23 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971734', 'tblTempUsageDetail_20' ) end [2025-04-23 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971734', 'tblTempVendorCDR_20' ) start [2025-04-23 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971734', 'tblTempVendorCDR_20' ) end [2025-04-23 10:42:20] Production.INFO: ProcessCDR(1,14971734,1,1,2) [2025-04-23 10:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971734', 'tblTempUsageDetail_20' ) start [2025-04-23 10:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971734', 'tblTempUsageDetail_20' ) end [2025-04-23 10:42:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 10:42:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 10:42:25] Production.INFO: ==7984== Releasing lock... [2025-04-23 10:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 10:42:25] Production.INFO: 56.25 MB #Memory Used# [2025-04-23 10:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 07:43:06 [end_date_ymd] => 2025-04-23 10:43:06 [RateCDR] => 1 ) [2025-04-23 10:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 07:43:06' and `end` < '2025-04-23 10:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 10:43:19] Production.INFO: count ==3646 [2025-04-23 10:43:20] Production.ERROR: pbx CDR StartTime 2025-04-23 07:43:06 - End Time 2025-04-23 10:43:06 [2025-04-23 10:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971739', 'tblTempUsageDetail_20' ) start [2025-04-23 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971739', 'tblTempUsageDetail_20' ) end [2025-04-23 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971739', 'tblTempVendorCDR_20' ) start [2025-04-23 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971739', 'tblTempVendorCDR_20' ) end [2025-04-23 10:43:20] Production.INFO: ProcessCDR(1,14971739,1,1,2) [2025-04-23 10:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971739', 'tblTempUsageDetail_20' ) start [2025-04-23 10:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971739', 'tblTempUsageDetail_20' ) end [2025-04-23 10:43:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 10:43:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 10:43:25] Production.INFO: ==8064== Releasing lock... [2025-04-23 10:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 10:43:25] Production.INFO: 56.25 MB #Memory Used# [2025-04-23 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 07:44:05 [end_date_ymd] => 2025-04-23 10:44:05 [RateCDR] => 1 ) [2025-04-23 10:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 07:44:05' and `end` < '2025-04-23 10:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 10:44:18] Production.INFO: count ==3667 [2025-04-23 10:44:19] Production.ERROR: pbx CDR StartTime 2025-04-23 07:44:05 - End Time 2025-04-23 10:44:05 [2025-04-23 10:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 10:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971744', 'tblTempUsageDetail_20' ) start [2025-04-23 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971744', 'tblTempUsageDetail_20' ) end [2025-04-23 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971744', 'tblTempVendorCDR_20' ) start [2025-04-23 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971744', 'tblTempVendorCDR_20' ) end [2025-04-23 10:44:20] Production.INFO: ProcessCDR(1,14971744,1,1,2) [2025-04-23 10:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971744', 'tblTempUsageDetail_20' ) start [2025-04-23 10:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971744', 'tblTempUsageDetail_20' ) end [2025-04-23 10:44:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 10:44:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 10:44:25] Production.INFO: ==8152== Releasing lock... [2025-04-23 10:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 10:44:25] Production.INFO: 55.75 MB #Memory Used# [2025-04-23 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 07:45:05 [end_date_ymd] => 2025-04-23 10:45:05 [RateCDR] => 1 ) [2025-04-23 10:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 07:45:05' and `end` < '2025-04-23 10:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 10:45:19] Production.INFO: count ==3665 [2025-04-23 10:45:20] Production.ERROR: pbx CDR StartTime 2025-04-23 07:45:05 - End Time 2025-04-23 10:45:05 [2025-04-23 10:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971749', 'tblTempUsageDetail_20' ) start [2025-04-23 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971749', 'tblTempUsageDetail_20' ) end [2025-04-23 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971749', 'tblTempVendorCDR_20' ) start [2025-04-23 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971749', 'tblTempVendorCDR_20' ) end [2025-04-23 10:45:20] Production.INFO: ProcessCDR(1,14971749,1,1,2) [2025-04-23 10:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971749', 'tblTempUsageDetail_20' ) start [2025-04-23 10:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971749', 'tblTempUsageDetail_20' ) end [2025-04-23 10:45:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 10:45:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 10:45:26] Production.INFO: ==8229== Releasing lock... [2025-04-23 10:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 10:45:26] Production.INFO: 55.5 MB #Memory Used# [2025-04-23 10:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 07:46:06 [end_date_ymd] => 2025-04-23 10:46:06 [RateCDR] => 1 ) [2025-04-23 10:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 07:46:06' and `end` < '2025-04-23 10:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 10:46:19] Production.INFO: count ==3676 [2025-04-23 10:46:21] Production.ERROR: pbx CDR StartTime 2025-04-23 07:46:06 - End Time 2025-04-23 10:46:06 [2025-04-23 10:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 10:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971754', 'tblTempUsageDetail_20' ) start [2025-04-23 10:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971754', 'tblTempUsageDetail_20' ) end [2025-04-23 10:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971754', 'tblTempVendorCDR_20' ) start [2025-04-23 10:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971754', 'tblTempVendorCDR_20' ) end [2025-04-23 10:46:21] Production.INFO: ProcessCDR(1,14971754,1,1,2) [2025-04-23 10:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971754', 'tblTempUsageDetail_20' ) start [2025-04-23 10:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971754', 'tblTempUsageDetail_20' ) end [2025-04-23 10:46:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 10:46:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 10:46:26] Production.INFO: ==8305== Releasing lock... [2025-04-23 10:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 10:46:26] Production.INFO: 55.5 MB #Memory Used# [2025-04-23 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 07:47:05 [end_date_ymd] => 2025-04-23 10:47:05 [RateCDR] => 1 ) [2025-04-23 10:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 07:47:05' and `end` < '2025-04-23 10:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 10:47:19] Production.INFO: count ==3720 [2025-04-23 10:47:20] Production.ERROR: pbx CDR StartTime 2025-04-23 07:47:05 - End Time 2025-04-23 10:47:05 [2025-04-23 10:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971759', 'tblTempUsageDetail_20' ) start [2025-04-23 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971759', 'tblTempUsageDetail_20' ) end [2025-04-23 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971759', 'tblTempVendorCDR_20' ) start [2025-04-23 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971759', 'tblTempVendorCDR_20' ) end [2025-04-23 10:47:20] Production.INFO: ProcessCDR(1,14971759,1,1,2) [2025-04-23 10:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971759', 'tblTempUsageDetail_20' ) start [2025-04-23 10:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971759', 'tblTempUsageDetail_20' ) end [2025-04-23 10:47:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 10:47:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 10:47:25] Production.INFO: ==8378== Releasing lock... [2025-04-23 10:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 10:47:25] Production.INFO: 56 MB #Memory Used# [2025-04-23 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 07:48:05 [end_date_ymd] => 2025-04-23 10:48:05 [RateCDR] => 1 ) [2025-04-23 10:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 07:48:05' and `end` < '2025-04-23 10:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 10:48:19] Production.INFO: count ==3745 [2025-04-23 10:48:20] Production.ERROR: pbx CDR StartTime 2025-04-23 07:48:05 - End Time 2025-04-23 10:48:05 [2025-04-23 10:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971764', 'tblTempUsageDetail_20' ) start [2025-04-23 10:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971764', 'tblTempUsageDetail_20' ) end [2025-04-23 10:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971764', 'tblTempVendorCDR_20' ) start [2025-04-23 10:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971764', 'tblTempVendorCDR_20' ) end [2025-04-23 10:48:21] Production.INFO: ProcessCDR(1,14971764,1,1,2) [2025-04-23 10:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971764', 'tblTempUsageDetail_20' ) start [2025-04-23 10:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971764', 'tblTempUsageDetail_20' ) end [2025-04-23 10:48:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 10:48:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 10:48:26] Production.INFO: ==8452== Releasing lock... [2025-04-23 10:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 10:48:26] Production.INFO: 56 MB #Memory Used# [2025-04-23 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 07:49:05 [end_date_ymd] => 2025-04-23 10:49:05 [RateCDR] => 1 ) [2025-04-23 10:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 07:49:05' and `end` < '2025-04-23 10:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 10:49:18] Production.INFO: count ==3751 [2025-04-23 10:49:19] Production.ERROR: pbx CDR StartTime 2025-04-23 07:49:05 - End Time 2025-04-23 10:49:05 [2025-04-23 10:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 10:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971769', 'tblTempUsageDetail_20' ) start [2025-04-23 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971769', 'tblTempUsageDetail_20' ) end [2025-04-23 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971769', 'tblTempVendorCDR_20' ) start [2025-04-23 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971769', 'tblTempVendorCDR_20' ) end [2025-04-23 10:49:20] Production.INFO: ProcessCDR(1,14971769,1,1,2) [2025-04-23 10:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971769', 'tblTempUsageDetail_20' ) start [2025-04-23 10:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971769', 'tblTempUsageDetail_20' ) end [2025-04-23 10:49:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 10:49:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 10:49:25] Production.INFO: ==8524== Releasing lock... [2025-04-23 10:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 10:49:25] Production.INFO: 56 MB #Memory Used# [2025-04-23 10:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 07:50:07 [end_date_ymd] => 2025-04-23 10:50:07 [RateCDR] => 1 ) [2025-04-23 10:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 07:50:07' and `end` < '2025-04-23 10:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 10:50:20] Production.INFO: count ==3780 [2025-04-23 10:50:21] Production.ERROR: pbx CDR StartTime 2025-04-23 07:50:07 - End Time 2025-04-23 10:50:07 [2025-04-23 10:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 10:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971775', 'tblTempUsageDetail_20' ) start [2025-04-23 10:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971775', 'tblTempUsageDetail_20' ) end [2025-04-23 10:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971775', 'tblTempVendorCDR_20' ) start [2025-04-23 10:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971775', 'tblTempVendorCDR_20' ) end [2025-04-23 10:50:22] Production.INFO: ProcessCDR(1,14971775,1,1,2) [2025-04-23 10:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971775', 'tblTempUsageDetail_20' ) start [2025-04-23 10:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971775', 'tblTempUsageDetail_20' ) end [2025-04-23 10:50:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 10:50:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 10:50:27] Production.INFO: ==8639== Releasing lock... [2025-04-23 10:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 10:50:27] Production.INFO: 56.5 MB #Memory Used# [2025-04-23 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 07:51:05 [end_date_ymd] => 2025-04-23 10:51:05 [RateCDR] => 1 ) [2025-04-23 10:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 07:51:05' and `end` < '2025-04-23 10:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 10:51:19] Production.INFO: count ==3906 [2025-04-23 10:51:20] Production.ERROR: pbx CDR StartTime 2025-04-23 07:51:05 - End Time 2025-04-23 10:51:05 [2025-04-23 10:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971780', 'tblTempUsageDetail_20' ) start [2025-04-23 10:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971780', 'tblTempUsageDetail_20' ) end [2025-04-23 10:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971780', 'tblTempVendorCDR_20' ) start [2025-04-23 10:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971780', 'tblTempVendorCDR_20' ) end [2025-04-23 10:51:21] Production.INFO: ProcessCDR(1,14971780,1,1,2) [2025-04-23 10:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971780', 'tblTempUsageDetail_20' ) start [2025-04-23 10:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971780', 'tblTempUsageDetail_20' ) end [2025-04-23 10:51:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 10:51:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 10:51:25] Production.INFO: ==8713== Releasing lock... [2025-04-23 10:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 10:51:25] Production.INFO: 57.5 MB #Memory Used# [2025-04-23 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 07:52:05 [end_date_ymd] => 2025-04-23 10:52:05 [RateCDR] => 1 ) [2025-04-23 10:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 07:52:05' and `end` < '2025-04-23 10:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 10:52:18] Production.INFO: count ==3951 [2025-04-23 10:52:20] Production.ERROR: pbx CDR StartTime 2025-04-23 07:52:05 - End Time 2025-04-23 10:52:05 [2025-04-23 10:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971785', 'tblTempUsageDetail_20' ) start [2025-04-23 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971785', 'tblTempUsageDetail_20' ) end [2025-04-23 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971785', 'tblTempVendorCDR_20' ) start [2025-04-23 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971785', 'tblTempVendorCDR_20' ) end [2025-04-23 10:52:20] Production.INFO: ProcessCDR(1,14971785,1,1,2) [2025-04-23 10:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971785', 'tblTempUsageDetail_20' ) start [2025-04-23 10:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971785', 'tblTempUsageDetail_20' ) end [2025-04-23 10:52:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 10:52:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 10:52:26] Production.INFO: ==8786== Releasing lock... [2025-04-23 10:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 10:52:26] Production.INFO: 57.75 MB #Memory Used# [2025-04-23 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 07:53:05 [end_date_ymd] => 2025-04-23 10:53:05 [RateCDR] => 1 ) [2025-04-23 10:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 07:53:05' and `end` < '2025-04-23 10:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 10:53:18] Production.INFO: count ==3974 [2025-04-23 10:53:20] Production.ERROR: pbx CDR StartTime 2025-04-23 07:53:05 - End Time 2025-04-23 10:53:05 [2025-04-23 10:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971790', 'tblTempUsageDetail_20' ) start [2025-04-23 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971790', 'tblTempUsageDetail_20' ) end [2025-04-23 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971790', 'tblTempVendorCDR_20' ) start [2025-04-23 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971790', 'tblTempVendorCDR_20' ) end [2025-04-23 10:53:20] Production.INFO: ProcessCDR(1,14971790,1,1,2) [2025-04-23 10:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971790', 'tblTempUsageDetail_20' ) start [2025-04-23 10:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971790', 'tblTempUsageDetail_20' ) end [2025-04-23 10:53:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 10:53:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 10:53:25] Production.INFO: ==8862== Releasing lock... [2025-04-23 10:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 10:53:25] Production.INFO: 57.75 MB #Memory Used# [2025-04-23 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 07:54:05 [end_date_ymd] => 2025-04-23 10:54:05 [RateCDR] => 1 ) [2025-04-23 10:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 07:54:05' and `end` < '2025-04-23 10:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 10:54:19] Production.INFO: count ==3976 [2025-04-23 10:54:20] Production.ERROR: pbx CDR StartTime 2025-04-23 07:54:05 - End Time 2025-04-23 10:54:05 [2025-04-23 10:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971795', 'tblTempUsageDetail_20' ) start [2025-04-23 10:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971795', 'tblTempUsageDetail_20' ) end [2025-04-23 10:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971795', 'tblTempVendorCDR_20' ) start [2025-04-23 10:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971795', 'tblTempVendorCDR_20' ) end [2025-04-23 10:54:21] Production.INFO: ProcessCDR(1,14971795,1,1,2) [2025-04-23 10:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971795', 'tblTempUsageDetail_20' ) start [2025-04-23 10:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971795', 'tblTempUsageDetail_20' ) end [2025-04-23 10:54:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 10:54:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 10:54:26] Production.INFO: ==8938== Releasing lock... [2025-04-23 10:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 10:54:26] Production.INFO: 57.75 MB #Memory Used# [2025-04-23 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 07:55:05 [end_date_ymd] => 2025-04-23 10:55:05 [RateCDR] => 1 ) [2025-04-23 10:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 07:55:05' and `end` < '2025-04-23 10:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 10:55:18] Production.INFO: count ==3988 [2025-04-23 10:55:20] Production.ERROR: pbx CDR StartTime 2025-04-23 07:55:05 - End Time 2025-04-23 10:55:05 [2025-04-23 10:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971800', 'tblTempUsageDetail_20' ) start [2025-04-23 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971800', 'tblTempUsageDetail_20' ) end [2025-04-23 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971800', 'tblTempVendorCDR_20' ) start [2025-04-23 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971800', 'tblTempVendorCDR_20' ) end [2025-04-23 10:55:20] Production.INFO: ProcessCDR(1,14971800,1,1,2) [2025-04-23 10:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971800', 'tblTempUsageDetail_20' ) start [2025-04-23 10:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971800', 'tblTempUsageDetail_20' ) end [2025-04-23 10:55:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 10:55:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 10:55:25] Production.INFO: ==9009== Releasing lock... [2025-04-23 10:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 10:55:25] Production.INFO: 57.75 MB #Memory Used# [2025-04-23 10:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 07:56:05 [end_date_ymd] => 2025-04-23 10:56:05 [RateCDR] => 1 ) [2025-04-23 10:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 07:56:05' and `end` < '2025-04-23 10:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 10:56:19] Production.INFO: count ==4005 [2025-04-23 10:56:21] Production.ERROR: pbx CDR StartTime 2025-04-23 07:56:05 - End Time 2025-04-23 10:56:05 [2025-04-23 10:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971805', 'tblTempUsageDetail_20' ) start [2025-04-23 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971805', 'tblTempUsageDetail_20' ) end [2025-04-23 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971805', 'tblTempVendorCDR_20' ) start [2025-04-23 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971805', 'tblTempVendorCDR_20' ) end [2025-04-23 10:56:21] Production.INFO: ProcessCDR(1,14971805,1,1,2) [2025-04-23 10:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971805', 'tblTempUsageDetail_20' ) start [2025-04-23 10:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971805', 'tblTempUsageDetail_20' ) end [2025-04-23 10:56:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 10:56:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 10:56:27] Production.INFO: ==9080== Releasing lock... [2025-04-23 10:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 10:56:27] Production.INFO: 58 MB #Memory Used# [2025-04-23 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 07:57:05 [end_date_ymd] => 2025-04-23 10:57:05 [RateCDR] => 1 ) [2025-04-23 10:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 07:57:05' and `end` < '2025-04-23 10:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 10:57:19] Production.INFO: count ==4008 [2025-04-23 10:57:21] Production.ERROR: pbx CDR StartTime 2025-04-23 07:57:05 - End Time 2025-04-23 10:57:05 [2025-04-23 10:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 10:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971810', 'tblTempUsageDetail_20' ) start [2025-04-23 10:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971810', 'tblTempUsageDetail_20' ) end [2025-04-23 10:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971810', 'tblTempVendorCDR_20' ) start [2025-04-23 10:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971810', 'tblTempVendorCDR_20' ) end [2025-04-23 10:57:21] Production.INFO: ProcessCDR(1,14971810,1,1,2) [2025-04-23 10:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971810', 'tblTempUsageDetail_20' ) start [2025-04-23 10:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971810', 'tblTempUsageDetail_20' ) end [2025-04-23 10:57:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 10:57:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 10:57:26] Production.INFO: ==9164== Releasing lock... [2025-04-23 10:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 10:57:26] Production.INFO: 58.25 MB #Memory Used# [2025-04-23 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 07:58:05 [end_date_ymd] => 2025-04-23 10:58:05 [RateCDR] => 1 ) [2025-04-23 10:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 07:58:05' and `end` < '2025-04-23 10:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 10:58:19] Production.INFO: count ==4012 [2025-04-23 10:58:20] Production.ERROR: pbx CDR StartTime 2025-04-23 07:58:05 - End Time 2025-04-23 10:58:05 [2025-04-23 10:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971815', 'tblTempUsageDetail_20' ) start [2025-04-23 10:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971815', 'tblTempUsageDetail_20' ) end [2025-04-23 10:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971815', 'tblTempVendorCDR_20' ) start [2025-04-23 10:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971815', 'tblTempVendorCDR_20' ) end [2025-04-23 10:58:21] Production.INFO: ProcessCDR(1,14971815,1,1,2) [2025-04-23 10:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971815', 'tblTempUsageDetail_20' ) start [2025-04-23 10:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971815', 'tblTempUsageDetail_20' ) end [2025-04-23 10:58:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 10:58:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 10:58:26] Production.INFO: ==9236== Releasing lock... [2025-04-23 10:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 10:58:26] Production.INFO: 58 MB #Memory Used# [2025-04-23 10:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 07:59:05 [end_date_ymd] => 2025-04-23 10:59:05 [RateCDR] => 1 ) [2025-04-23 10:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 07:59:05' and `end` < '2025-04-23 10:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 10:59:18] Production.INFO: count ==4029 [2025-04-23 10:59:20] Production.ERROR: pbx CDR StartTime 2025-04-23 07:59:05 - End Time 2025-04-23 10:59:05 [2025-04-23 10:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971820', 'tblTempUsageDetail_20' ) start [2025-04-23 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971820', 'tblTempUsageDetail_20' ) end [2025-04-23 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971820', 'tblTempVendorCDR_20' ) start [2025-04-23 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971820', 'tblTempVendorCDR_20' ) end [2025-04-23 10:59:20] Production.INFO: ProcessCDR(1,14971820,1,1,2) [2025-04-23 10:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 10:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 10:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971820', 'tblTempUsageDetail_20' ) start [2025-04-23 10:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971820', 'tblTempUsageDetail_20' ) end [2025-04-23 10:59:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 10:59:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 10:59:25] Production.INFO: ==9318== Releasing lock... [2025-04-23 10:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 10:59:25] Production.INFO: 58.25 MB #Memory Used# [2025-04-23 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 08:00:06 [end_date_ymd] => 2025-04-23 11:00:06 [RateCDR] => 1 ) [2025-04-23 11:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 08:00:06' and `end` < '2025-04-23 11:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 11:00:20] Production.INFO: count ==4062 [2025-04-23 11:00:21] Production.ERROR: pbx CDR StartTime 2025-04-23 08:00:06 - End Time 2025-04-23 11:00:06 [2025-04-23 11:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971826', 'tblTempUsageDetail_20' ) start [2025-04-23 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971826', 'tblTempUsageDetail_20' ) end [2025-04-23 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971826', 'tblTempVendorCDR_20' ) start [2025-04-23 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971826', 'tblTempVendorCDR_20' ) end [2025-04-23 11:00:22] Production.INFO: ProcessCDR(1,14971826,1,1,2) [2025-04-23 11:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971826', 'tblTempUsageDetail_20' ) start [2025-04-23 11:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971826', 'tblTempUsageDetail_20' ) end [2025-04-23 11:00:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 11:00:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 11:00:27] Production.INFO: ==9399== Releasing lock... [2025-04-23 11:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 11:00:27] Production.INFO: 58.5 MB #Memory Used# [2025-04-23 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 08:01:05 [end_date_ymd] => 2025-04-23 11:01:05 [RateCDR] => 1 ) [2025-04-23 11:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 08:01:05' and `end` < '2025-04-23 11:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 11:01:18] Production.INFO: count ==4139 [2025-04-23 11:01:20] Production.ERROR: pbx CDR StartTime 2025-04-23 08:01:05 - End Time 2025-04-23 11:01:05 [2025-04-23 11:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971831', 'tblTempUsageDetail_20' ) start [2025-04-23 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971831', 'tblTempUsageDetail_20' ) end [2025-04-23 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971831', 'tblTempVendorCDR_20' ) start [2025-04-23 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971831', 'tblTempVendorCDR_20' ) end [2025-04-23 11:01:20] Production.INFO: ProcessCDR(1,14971831,1,1,2) [2025-04-23 11:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971831', 'tblTempUsageDetail_20' ) start [2025-04-23 11:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971831', 'tblTempUsageDetail_20' ) end [2025-04-23 11:01:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 11:01:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 11:01:26] Production.INFO: ==9566== Releasing lock... [2025-04-23 11:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 11:01:26] Production.INFO: 59 MB #Memory Used# [2025-04-23 11:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 08:02:05 [end_date_ymd] => 2025-04-23 11:02:05 [RateCDR] => 1 ) [2025-04-23 11:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 08:02:05' and `end` < '2025-04-23 11:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 11:02:19] Production.INFO: count ==4140 [2025-04-23 11:02:21] Production.ERROR: pbx CDR StartTime 2025-04-23 08:02:05 - End Time 2025-04-23 11:02:05 [2025-04-23 11:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 11:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971836', 'tblTempUsageDetail_20' ) start [2025-04-23 11:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971836', 'tblTempUsageDetail_20' ) end [2025-04-23 11:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971836', 'tblTempVendorCDR_20' ) start [2025-04-23 11:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971836', 'tblTempVendorCDR_20' ) end [2025-04-23 11:02:21] Production.INFO: ProcessCDR(1,14971836,1,1,2) [2025-04-23 11:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971836', 'tblTempUsageDetail_20' ) start [2025-04-23 11:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971836', 'tblTempUsageDetail_20' ) end [2025-04-23 11:02:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 11:02:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 11:02:26] Production.INFO: ==9643== Releasing lock... [2025-04-23 11:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 11:02:26] Production.INFO: 59 MB #Memory Used# [2025-04-23 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 08:03:05 [end_date_ymd] => 2025-04-23 11:03:05 [RateCDR] => 1 ) [2025-04-23 11:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 08:03:05' and `end` < '2025-04-23 11:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 11:03:18] Production.INFO: count ==4153 [2025-04-23 11:03:20] Production.ERROR: pbx CDR StartTime 2025-04-23 08:03:05 - End Time 2025-04-23 11:03:05 [2025-04-23 11:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971841', 'tblTempUsageDetail_20' ) start [2025-04-23 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971841', 'tblTempUsageDetail_20' ) end [2025-04-23 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971841', 'tblTempVendorCDR_20' ) start [2025-04-23 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971841', 'tblTempVendorCDR_20' ) end [2025-04-23 11:03:20] Production.INFO: ProcessCDR(1,14971841,1,1,2) [2025-04-23 11:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971841', 'tblTempUsageDetail_20' ) start [2025-04-23 11:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971841', 'tblTempUsageDetail_20' ) end [2025-04-23 11:03:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 11:03:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 11:03:26] Production.INFO: ==9717== Releasing lock... [2025-04-23 11:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 11:03:26] Production.INFO: 59.25 MB #Memory Used# [2025-04-23 11:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 08:04:05 [end_date_ymd] => 2025-04-23 11:04:05 [RateCDR] => 1 ) [2025-04-23 11:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 08:04:05' and `end` < '2025-04-23 11:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 11:04:19] Production.INFO: count ==4164 [2025-04-23 11:04:21] Production.ERROR: pbx CDR StartTime 2025-04-23 08:04:05 - End Time 2025-04-23 11:04:05 [2025-04-23 11:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971846', 'tblTempUsageDetail_20' ) start [2025-04-23 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971846', 'tblTempUsageDetail_20' ) end [2025-04-23 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971846', 'tblTempVendorCDR_20' ) start [2025-04-23 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971846', 'tblTempVendorCDR_20' ) end [2025-04-23 11:04:21] Production.INFO: ProcessCDR(1,14971846,1,1,2) [2025-04-23 11:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971846', 'tblTempUsageDetail_20' ) start [2025-04-23 11:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971846', 'tblTempUsageDetail_20' ) end [2025-04-23 11:04:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 11:04:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 11:04:26] Production.INFO: ==9795== Releasing lock... [2025-04-23 11:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 11:04:26] Production.INFO: 59.5 MB #Memory Used# [2025-04-23 11:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 08:05:05 [end_date_ymd] => 2025-04-23 11:05:05 [RateCDR] => 1 ) [2025-04-23 11:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 08:05:05' and `end` < '2025-04-23 11:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 11:05:19] Production.INFO: count ==4185 [2025-04-23 11:05:20] Production.ERROR: pbx CDR StartTime 2025-04-23 08:05:05 - End Time 2025-04-23 11:05:05 [2025-04-23 11:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 11:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971851', 'tblTempUsageDetail_20' ) start [2025-04-23 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971851', 'tblTempUsageDetail_20' ) end [2025-04-23 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971851', 'tblTempVendorCDR_20' ) start [2025-04-23 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971851', 'tblTempVendorCDR_20' ) end [2025-04-23 11:05:21] Production.INFO: ProcessCDR(1,14971851,1,1,2) [2025-04-23 11:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971851', 'tblTempUsageDetail_20' ) start [2025-04-23 11:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971851', 'tblTempUsageDetail_20' ) end [2025-04-23 11:05:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 11:05:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 11:05:26] Production.INFO: ==9945== Releasing lock... [2025-04-23 11:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 11:05:26] Production.INFO: 59.5 MB #Memory Used# [2025-04-23 11:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 08:06:05 [end_date_ymd] => 2025-04-23 11:06:05 [RateCDR] => 1 ) [2025-04-23 11:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 08:06:05' and `end` < '2025-04-23 11:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 11:06:19] Production.INFO: count ==4199 [2025-04-23 11:06:20] Production.ERROR: pbx CDR StartTime 2025-04-23 08:06:05 - End Time 2025-04-23 11:06:05 [2025-04-23 11:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971856', 'tblTempUsageDetail_20' ) start [2025-04-23 11:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971856', 'tblTempUsageDetail_20' ) end [2025-04-23 11:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971856', 'tblTempVendorCDR_20' ) start [2025-04-23 11:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971856', 'tblTempVendorCDR_20' ) end [2025-04-23 11:06:21] Production.INFO: ProcessCDR(1,14971856,1,1,2) [2025-04-23 11:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971856', 'tblTempUsageDetail_20' ) start [2025-04-23 11:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971856', 'tblTempUsageDetail_20' ) end [2025-04-23 11:06:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 11:06:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 11:06:26] Production.INFO: ==10062== Releasing lock... [2025-04-23 11:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 11:06:26] Production.INFO: 59.5 MB #Memory Used# [2025-04-23 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 08:07:05 [end_date_ymd] => 2025-04-23 11:07:05 [RateCDR] => 1 ) [2025-04-23 11:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 08:07:05' and `end` < '2025-04-23 11:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 11:07:19] Production.INFO: count ==4253 [2025-04-23 11:07:20] Production.ERROR: pbx CDR StartTime 2025-04-23 08:07:05 - End Time 2025-04-23 11:07:05 [2025-04-23 11:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971861', 'tblTempUsageDetail_20' ) start [2025-04-23 11:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971861', 'tblTempUsageDetail_20' ) end [2025-04-23 11:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971861', 'tblTempVendorCDR_20' ) start [2025-04-23 11:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971861', 'tblTempVendorCDR_20' ) end [2025-04-23 11:07:21] Production.INFO: ProcessCDR(1,14971861,1,1,2) [2025-04-23 11:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971861', 'tblTempUsageDetail_20' ) start [2025-04-23 11:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971861', 'tblTempUsageDetail_20' ) end [2025-04-23 11:07:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 11:07:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 11:07:26] Production.INFO: ==10136== Releasing lock... [2025-04-23 11:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 11:07:26] Production.INFO: 60 MB #Memory Used# [2025-04-23 11:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 08:08:05 [end_date_ymd] => 2025-04-23 11:08:05 [RateCDR] => 1 ) [2025-04-23 11:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 08:08:05' and `end` < '2025-04-23 11:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 11:08:19] Production.INFO: count ==4266 [2025-04-23 11:08:20] Production.ERROR: pbx CDR StartTime 2025-04-23 08:08:05 - End Time 2025-04-23 11:08:05 [2025-04-23 11:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971866', 'tblTempUsageDetail_20' ) start [2025-04-23 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971866', 'tblTempUsageDetail_20' ) end [2025-04-23 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971866', 'tblTempVendorCDR_20' ) start [2025-04-23 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971866', 'tblTempVendorCDR_20' ) end [2025-04-23 11:08:21] Production.INFO: ProcessCDR(1,14971866,1,1,2) [2025-04-23 11:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971866', 'tblTempUsageDetail_20' ) start [2025-04-23 11:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971866', 'tblTempUsageDetail_20' ) end [2025-04-23 11:08:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 11:08:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 11:08:26] Production.INFO: ==10287== Releasing lock... [2025-04-23 11:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 11:08:26] Production.INFO: 60 MB #Memory Used# [2025-04-23 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 08:09:05 [end_date_ymd] => 2025-04-23 11:09:05 [RateCDR] => 1 ) [2025-04-23 11:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 08:09:05' and `end` < '2025-04-23 11:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 11:09:19] Production.INFO: count ==4272 [2025-04-23 11:09:21] Production.ERROR: pbx CDR StartTime 2025-04-23 08:09:05 - End Time 2025-04-23 11:09:05 [2025-04-23 11:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971871', 'tblTempUsageDetail_20' ) start [2025-04-23 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971871', 'tblTempUsageDetail_20' ) end [2025-04-23 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971871', 'tblTempVendorCDR_20' ) start [2025-04-23 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971871', 'tblTempVendorCDR_20' ) end [2025-04-23 11:09:21] Production.INFO: ProcessCDR(1,14971871,1,1,2) [2025-04-23 11:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971871', 'tblTempUsageDetail_20' ) start [2025-04-23 11:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971871', 'tblTempUsageDetail_20' ) end [2025-04-23 11:09:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 11:09:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 11:09:26] Production.INFO: ==10361== Releasing lock... [2025-04-23 11:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 11:09:26] Production.INFO: 60 MB #Memory Used# [2025-04-23 11:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 08:10:05 [end_date_ymd] => 2025-04-23 11:10:05 [RateCDR] => 1 ) [2025-04-23 11:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 08:10:05' and `end` < '2025-04-23 11:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 11:10:18] Production.INFO: count ==4289 [2025-04-23 11:10:20] Production.ERROR: pbx CDR StartTime 2025-04-23 08:10:05 - End Time 2025-04-23 11:10:05 [2025-04-23 11:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 11:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971877', 'tblTempUsageDetail_20' ) start [2025-04-23 11:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971877', 'tblTempUsageDetail_20' ) end [2025-04-23 11:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971877', 'tblTempVendorCDR_20' ) start [2025-04-23 11:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971877', 'tblTempVendorCDR_20' ) end [2025-04-23 11:10:20] Production.INFO: ProcessCDR(1,14971877,1,1,2) [2025-04-23 11:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971877', 'tblTempUsageDetail_20' ) start [2025-04-23 11:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971877', 'tblTempUsageDetail_20' ) end [2025-04-23 11:10:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 11:10:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 11:10:26] Production.INFO: ==10440== Releasing lock... [2025-04-23 11:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 11:10:26] Production.INFO: 60.25 MB #Memory Used# [2025-04-23 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 08:11:05 [end_date_ymd] => 2025-04-23 11:11:05 [RateCDR] => 1 ) [2025-04-23 11:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 08:11:05' and `end` < '2025-04-23 11:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 11:11:19] Production.INFO: count ==4407 [2025-04-23 11:11:21] Production.ERROR: pbx CDR StartTime 2025-04-23 08:11:05 - End Time 2025-04-23 11:11:05 [2025-04-23 11:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971882', 'tblTempUsageDetail_20' ) start [2025-04-23 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971882', 'tblTempUsageDetail_20' ) end [2025-04-23 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971882', 'tblTempVendorCDR_20' ) start [2025-04-23 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971882', 'tblTempVendorCDR_20' ) end [2025-04-23 11:11:21] Production.INFO: ProcessCDR(1,14971882,1,1,2) [2025-04-23 11:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971882', 'tblTempUsageDetail_20' ) start [2025-04-23 11:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971882', 'tblTempUsageDetail_20' ) end [2025-04-23 11:11:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 11:11:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 11:11:26] Production.INFO: ==10518== Releasing lock... [2025-04-23 11:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 11:11:26] Production.INFO: 61 MB #Memory Used# [2025-04-23 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 08:12:05 [end_date_ymd] => 2025-04-23 11:12:05 [RateCDR] => 1 ) [2025-04-23 11:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 08:12:05' and `end` < '2025-04-23 11:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 11:12:18] Production.INFO: count ==4431 [2025-04-23 11:12:20] Production.ERROR: pbx CDR StartTime 2025-04-23 08:12:05 - End Time 2025-04-23 11:12:05 [2025-04-23 11:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971887', 'tblTempUsageDetail_20' ) start [2025-04-23 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971887', 'tblTempUsageDetail_20' ) end [2025-04-23 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971887', 'tblTempVendorCDR_20' ) start [2025-04-23 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971887', 'tblTempVendorCDR_20' ) end [2025-04-23 11:12:20] Production.INFO: ProcessCDR(1,14971887,1,1,2) [2025-04-23 11:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971887', 'tblTempUsageDetail_20' ) start [2025-04-23 11:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971887', 'tblTempUsageDetail_20' ) end [2025-04-23 11:12:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 11:12:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 11:12:26] Production.INFO: ==10678== Releasing lock... [2025-04-23 11:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 11:12:26] Production.INFO: 61.25 MB #Memory Used# [2025-04-23 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 08:13:05 [end_date_ymd] => 2025-04-23 11:13:05 [RateCDR] => 1 ) [2025-04-23 11:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 08:13:05' and `end` < '2025-04-23 11:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 11:13:19] Production.INFO: count ==4430 [2025-04-23 11:13:20] Production.ERROR: pbx CDR StartTime 2025-04-23 08:13:05 - End Time 2025-04-23 11:13:05 [2025-04-23 11:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971892', 'tblTempUsageDetail_20' ) start [2025-04-23 11:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971892', 'tblTempUsageDetail_20' ) end [2025-04-23 11:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971892', 'tblTempVendorCDR_20' ) start [2025-04-23 11:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971892', 'tblTempVendorCDR_20' ) end [2025-04-23 11:13:21] Production.INFO: ProcessCDR(1,14971892,1,1,2) [2025-04-23 11:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971892', 'tblTempUsageDetail_20' ) start [2025-04-23 11:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971892', 'tblTempUsageDetail_20' ) end [2025-04-23 11:13:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 11:13:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 11:13:26] Production.INFO: ==10755== Releasing lock... [2025-04-23 11:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 11:13:26] Production.INFO: 61.25 MB #Memory Used# [2025-04-23 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 08:14:05 [end_date_ymd] => 2025-04-23 11:14:05 [RateCDR] => 1 ) [2025-04-23 11:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 08:14:05' and `end` < '2025-04-23 11:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 11:14:19] Production.INFO: count ==4447 [2025-04-23 11:14:21] Production.ERROR: pbx CDR StartTime 2025-04-23 08:14:05 - End Time 2025-04-23 11:14:05 [2025-04-23 11:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 11:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971897', 'tblTempUsageDetail_20' ) start [2025-04-23 11:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971897', 'tblTempUsageDetail_20' ) end [2025-04-23 11:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971897', 'tblTempVendorCDR_20' ) start [2025-04-23 11:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971897', 'tblTempVendorCDR_20' ) end [2025-04-23 11:14:21] Production.INFO: ProcessCDR(1,14971897,1,1,2) [2025-04-23 11:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971897', 'tblTempUsageDetail_20' ) start [2025-04-23 11:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971897', 'tblTempUsageDetail_20' ) end [2025-04-23 11:14:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 11:14:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 11:14:27] Production.INFO: ==10827== Releasing lock... [2025-04-23 11:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 11:14:27] Production.INFO: 61.25 MB #Memory Used# [2025-04-23 11:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 08:15:04 [end_date_ymd] => 2025-04-23 11:15:04 [RateCDR] => 1 ) [2025-04-23 11:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 08:15:04' and `end` < '2025-04-23 11:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 11:15:18] Production.INFO: count ==4456 [2025-04-23 11:15:20] Production.ERROR: pbx CDR StartTime 2025-04-23 08:15:04 - End Time 2025-04-23 11:15:04 [2025-04-23 11:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971902', 'tblTempUsageDetail_20' ) start [2025-04-23 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971902', 'tblTempUsageDetail_20' ) end [2025-04-23 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971902', 'tblTempVendorCDR_20' ) start [2025-04-23 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971902', 'tblTempVendorCDR_20' ) end [2025-04-23 11:15:20] Production.INFO: ProcessCDR(1,14971902,1,1,2) [2025-04-23 11:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971902', 'tblTempUsageDetail_20' ) start [2025-04-23 11:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971902', 'tblTempUsageDetail_20' ) end [2025-04-23 11:15:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 11:15:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 11:15:25] Production.INFO: ==10977== Releasing lock... [2025-04-23 11:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 11:15:25] Production.INFO: 61.5 MB #Memory Used# [2025-04-23 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 08:16:05 [end_date_ymd] => 2025-04-23 11:16:05 [RateCDR] => 1 ) [2025-04-23 11:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 08:16:05' and `end` < '2025-04-23 11:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 11:16:19] Production.INFO: count ==4467 [2025-04-23 11:16:21] Production.ERROR: pbx CDR StartTime 2025-04-23 08:16:05 - End Time 2025-04-23 11:16:05 [2025-04-23 11:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971907', 'tblTempUsageDetail_20' ) start [2025-04-23 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971907', 'tblTempUsageDetail_20' ) end [2025-04-23 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971907', 'tblTempVendorCDR_20' ) start [2025-04-23 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971907', 'tblTempVendorCDR_20' ) end [2025-04-23 11:16:21] Production.INFO: ProcessCDR(1,14971907,1,1,2) [2025-04-23 11:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971907', 'tblTempUsageDetail_20' ) start [2025-04-23 11:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971907', 'tblTempUsageDetail_20' ) end [2025-04-23 11:16:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 11:16:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 11:16:27] Production.INFO: ==11050== Releasing lock... [2025-04-23 11:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 11:16:27] Production.INFO: 61.5 MB #Memory Used# [2025-04-23 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 08:17:05 [end_date_ymd] => 2025-04-23 11:17:05 [RateCDR] => 1 ) [2025-04-23 11:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 08:17:05' and `end` < '2025-04-23 11:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 11:17:19] Production.INFO: count ==4504 [2025-04-23 11:17:21] Production.ERROR: pbx CDR StartTime 2025-04-23 08:17:05 - End Time 2025-04-23 11:17:05 [2025-04-23 11:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971912', 'tblTempUsageDetail_20' ) start [2025-04-23 11:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971912', 'tblTempUsageDetail_20' ) end [2025-04-23 11:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971912', 'tblTempVendorCDR_20' ) start [2025-04-23 11:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971912', 'tblTempVendorCDR_20' ) end [2025-04-23 11:17:22] Production.INFO: ProcessCDR(1,14971912,1,1,2) [2025-04-23 11:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971912', 'tblTempUsageDetail_20' ) start [2025-04-23 11:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971912', 'tblTempUsageDetail_20' ) end [2025-04-23 11:17:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 11:17:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 11:17:27] Production.INFO: ==11126== Releasing lock... [2025-04-23 11:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 11:17:27] Production.INFO: 61.75 MB #Memory Used# [2025-04-23 11:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 08:18:06 [end_date_ymd] => 2025-04-23 11:18:06 [RateCDR] => 1 ) [2025-04-23 11:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 08:18:06' and `end` < '2025-04-23 11:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 11:18:19] Production.INFO: count ==4512 [2025-04-23 11:18:21] Production.ERROR: pbx CDR StartTime 2025-04-23 08:18:06 - End Time 2025-04-23 11:18:06 [2025-04-23 11:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971917', 'tblTempUsageDetail_20' ) start [2025-04-23 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971917', 'tblTempUsageDetail_20' ) end [2025-04-23 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971917', 'tblTempVendorCDR_20' ) start [2025-04-23 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971917', 'tblTempVendorCDR_20' ) end [2025-04-23 11:18:21] Production.INFO: ProcessCDR(1,14971917,1,1,2) [2025-04-23 11:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971917', 'tblTempUsageDetail_20' ) start [2025-04-23 11:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971917', 'tblTempUsageDetail_20' ) end [2025-04-23 11:18:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 11:18:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 11:18:26] Production.INFO: ==11201== Releasing lock... [2025-04-23 11:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 11:18:26] Production.INFO: 61.75 MB #Memory Used# [2025-04-23 11:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 08:19:05 [end_date_ymd] => 2025-04-23 11:19:05 [RateCDR] => 1 ) [2025-04-23 11:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 08:19:05' and `end` < '2025-04-23 11:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 11:19:19] Production.INFO: count ==4535 [2025-04-23 11:19:20] Production.ERROR: pbx CDR StartTime 2025-04-23 08:19:05 - End Time 2025-04-23 11:19:05 [2025-04-23 11:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971922', 'tblTempUsageDetail_20' ) start [2025-04-23 11:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971922', 'tblTempUsageDetail_20' ) end [2025-04-23 11:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971922', 'tblTempVendorCDR_20' ) start [2025-04-23 11:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971922', 'tblTempVendorCDR_20' ) end [2025-04-23 11:19:21] Production.INFO: ProcessCDR(1,14971922,1,1,2) [2025-04-23 11:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971922', 'tblTempUsageDetail_20' ) start [2025-04-23 11:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971922', 'tblTempUsageDetail_20' ) end [2025-04-23 11:19:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 11:19:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 11:19:26] Production.INFO: ==11274== Releasing lock... [2025-04-23 11:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 11:19:26] Production.INFO: 62 MB #Memory Used# [2025-04-23 11:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 08:20:06 [end_date_ymd] => 2025-04-23 11:20:06 [RateCDR] => 1 ) [2025-04-23 11:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 08:20:06' and `end` < '2025-04-23 11:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 11:20:19] Production.INFO: count ==4545 [2025-04-23 11:20:21] Production.ERROR: pbx CDR StartTime 2025-04-23 08:20:06 - End Time 2025-04-23 11:20:06 [2025-04-23 11:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971927', 'tblTempUsageDetail_20' ) start [2025-04-23 11:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971927', 'tblTempUsageDetail_20' ) end [2025-04-23 11:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971927', 'tblTempVendorCDR_20' ) start [2025-04-23 11:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971927', 'tblTempVendorCDR_20' ) end [2025-04-23 11:20:22] Production.INFO: ProcessCDR(1,14971927,1,1,2) [2025-04-23 11:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971927', 'tblTempUsageDetail_20' ) start [2025-04-23 11:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971927', 'tblTempUsageDetail_20' ) end [2025-04-23 11:20:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 11:20:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 11:20:27] Production.INFO: ==11347== Releasing lock... [2025-04-23 11:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 11:20:27] Production.INFO: 62 MB #Memory Used# [2025-04-23 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 08:21:05 [end_date_ymd] => 2025-04-23 11:21:05 [RateCDR] => 1 ) [2025-04-23 11:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 08:21:05' and `end` < '2025-04-23 11:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 11:21:19] Production.INFO: count ==4637 [2025-04-23 11:21:21] Production.ERROR: pbx CDR StartTime 2025-04-23 08:21:05 - End Time 2025-04-23 11:21:05 [2025-04-23 11:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971933', 'tblTempUsageDetail_20' ) start [2025-04-23 11:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971933', 'tblTempUsageDetail_20' ) end [2025-04-23 11:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971933', 'tblTempVendorCDR_20' ) start [2025-04-23 11:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971933', 'tblTempVendorCDR_20' ) end [2025-04-23 11:21:22] Production.INFO: ProcessCDR(1,14971933,1,1,2) [2025-04-23 11:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971933', 'tblTempUsageDetail_20' ) start [2025-04-23 11:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971933', 'tblTempUsageDetail_20' ) end [2025-04-23 11:21:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 11:21:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 11:21:27] Production.INFO: ==11462== Releasing lock... [2025-04-23 11:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 11:21:27] Production.INFO: 62.75 MB #Memory Used# [2025-04-23 11:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 08:22:06 [end_date_ymd] => 2025-04-23 11:22:06 [RateCDR] => 1 ) [2025-04-23 11:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 08:22:06' and `end` < '2025-04-23 11:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 11:22:19] Production.INFO: count ==4654 [2025-04-23 11:22:21] Production.ERROR: pbx CDR StartTime 2025-04-23 08:22:06 - End Time 2025-04-23 11:22:06 [2025-04-23 11:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971938', 'tblTempUsageDetail_20' ) start [2025-04-23 11:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971938', 'tblTempUsageDetail_20' ) end [2025-04-23 11:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971938', 'tblTempVendorCDR_20' ) start [2025-04-23 11:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971938', 'tblTempVendorCDR_20' ) end [2025-04-23 11:22:22] Production.INFO: ProcessCDR(1,14971938,1,1,2) [2025-04-23 11:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971938', 'tblTempUsageDetail_20' ) start [2025-04-23 11:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971938', 'tblTempUsageDetail_20' ) end [2025-04-23 11:22:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 11:22:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 11:22:26] Production.INFO: ==11535== Releasing lock... [2025-04-23 11:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 11:22:26] Production.INFO: 63 MB #Memory Used# [2025-04-23 11:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 08:23:06 [end_date_ymd] => 2025-04-23 11:23:06 [RateCDR] => 1 ) [2025-04-23 11:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 08:23:06' and `end` < '2025-04-23 11:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 11:23:19] Production.INFO: count ==4665 [2025-04-23 11:23:21] Production.ERROR: pbx CDR StartTime 2025-04-23 08:23:06 - End Time 2025-04-23 11:23:06 [2025-04-23 11:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 11:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971943', 'tblTempUsageDetail_20' ) start [2025-04-23 11:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971943', 'tblTempUsageDetail_20' ) end [2025-04-23 11:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971943', 'tblTempVendorCDR_20' ) start [2025-04-23 11:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971943', 'tblTempVendorCDR_20' ) end [2025-04-23 11:23:21] Production.INFO: ProcessCDR(1,14971943,1,1,2) [2025-04-23 11:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971943', 'tblTempUsageDetail_20' ) start [2025-04-23 11:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971943', 'tblTempUsageDetail_20' ) end [2025-04-23 11:23:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 11:23:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 11:23:26] Production.INFO: ==11613== Releasing lock... [2025-04-23 11:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 11:23:26] Production.INFO: 63 MB #Memory Used# [2025-04-23 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 08:24:05 [end_date_ymd] => 2025-04-23 11:24:05 [RateCDR] => 1 ) [2025-04-23 11:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 08:24:05' and `end` < '2025-04-23 11:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 11:24:19] Production.INFO: count ==4698 [2025-04-23 11:24:21] Production.ERROR: pbx CDR StartTime 2025-04-23 08:24:05 - End Time 2025-04-23 11:24:05 [2025-04-23 11:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971948', 'tblTempUsageDetail_20' ) start [2025-04-23 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971948', 'tblTempUsageDetail_20' ) end [2025-04-23 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971948', 'tblTempVendorCDR_20' ) start [2025-04-23 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971948', 'tblTempVendorCDR_20' ) end [2025-04-23 11:24:21] Production.INFO: ProcessCDR(1,14971948,1,1,2) [2025-04-23 11:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971948', 'tblTempUsageDetail_20' ) start [2025-04-23 11:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971948', 'tblTempUsageDetail_20' ) end [2025-04-23 11:24:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 11:24:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 11:24:26] Production.INFO: ==11694== Releasing lock... [2025-04-23 11:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 11:24:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-23 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 08:25:05 [end_date_ymd] => 2025-04-23 11:25:05 [RateCDR] => 1 ) [2025-04-23 11:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 08:25:05' and `end` < '2025-04-23 11:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 11:25:19] Production.INFO: count ==4703 [2025-04-23 11:25:21] Production.ERROR: pbx CDR StartTime 2025-04-23 08:25:05 - End Time 2025-04-23 11:25:05 [2025-04-23 11:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971953', 'tblTempUsageDetail_20' ) start [2025-04-23 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971953', 'tblTempUsageDetail_20' ) end [2025-04-23 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971953', 'tblTempVendorCDR_20' ) start [2025-04-23 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971953', 'tblTempVendorCDR_20' ) end [2025-04-23 11:25:21] Production.INFO: ProcessCDR(1,14971953,1,1,2) [2025-04-23 11:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971953', 'tblTempUsageDetail_20' ) start [2025-04-23 11:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971953', 'tblTempUsageDetail_20' ) end [2025-04-23 11:25:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 11:25:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 11:25:27] Production.INFO: ==11766== Releasing lock... [2025-04-23 11:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 11:25:27] Production.INFO: 63.25 MB #Memory Used# [2025-04-23 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 08:26:05 [end_date_ymd] => 2025-04-23 11:26:05 [RateCDR] => 1 ) [2025-04-23 11:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 08:26:05' and `end` < '2025-04-23 11:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 11:26:19] Production.INFO: count ==4747 [2025-04-23 11:26:20] Production.ERROR: pbx CDR StartTime 2025-04-23 08:26:05 - End Time 2025-04-23 11:26:05 [2025-04-23 11:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971958', 'tblTempUsageDetail_20' ) start [2025-04-23 11:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971958', 'tblTempUsageDetail_20' ) end [2025-04-23 11:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971958', 'tblTempVendorCDR_20' ) start [2025-04-23 11:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971958', 'tblTempVendorCDR_20' ) end [2025-04-23 11:26:21] Production.INFO: ProcessCDR(1,14971958,1,1,2) [2025-04-23 11:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971958', 'tblTempUsageDetail_20' ) start [2025-04-23 11:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971958', 'tblTempUsageDetail_20' ) end [2025-04-23 11:26:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 11:26:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 11:26:26] Production.INFO: ==11839== Releasing lock... [2025-04-23 11:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 11:26:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-23 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 08:27:05 [end_date_ymd] => 2025-04-23 11:27:05 [RateCDR] => 1 ) [2025-04-23 11:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 08:27:05' and `end` < '2025-04-23 11:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 11:27:19] Production.INFO: count ==4753 [2025-04-23 11:27:21] Production.ERROR: pbx CDR StartTime 2025-04-23 08:27:05 - End Time 2025-04-23 11:27:05 [2025-04-23 11:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971963', 'tblTempUsageDetail_20' ) start [2025-04-23 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971963', 'tblTempUsageDetail_20' ) end [2025-04-23 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971963', 'tblTempVendorCDR_20' ) start [2025-04-23 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971963', 'tblTempVendorCDR_20' ) end [2025-04-23 11:27:21] Production.INFO: ProcessCDR(1,14971963,1,1,2) [2025-04-23 11:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971963', 'tblTempUsageDetail_20' ) start [2025-04-23 11:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971963', 'tblTempUsageDetail_20' ) end [2025-04-23 11:27:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 11:27:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 11:27:26] Production.INFO: ==11911== Releasing lock... [2025-04-23 11:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 11:27:26] Production.INFO: 64 MB #Memory Used# [2025-04-23 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 08:28:05 [end_date_ymd] => 2025-04-23 11:28:05 [RateCDR] => 1 ) [2025-04-23 11:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 08:28:05' and `end` < '2025-04-23 11:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 11:28:19] Production.INFO: count ==4772 [2025-04-23 11:28:20] Production.ERROR: pbx CDR StartTime 2025-04-23 08:28:05 - End Time 2025-04-23 11:28:05 [2025-04-23 11:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 11:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971968', 'tblTempUsageDetail_20' ) start [2025-04-23 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971968', 'tblTempUsageDetail_20' ) end [2025-04-23 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971968', 'tblTempVendorCDR_20' ) start [2025-04-23 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971968', 'tblTempVendorCDR_20' ) end [2025-04-23 11:28:21] Production.INFO: ProcessCDR(1,14971968,1,1,2) [2025-04-23 11:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971968', 'tblTempUsageDetail_20' ) start [2025-04-23 11:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971968', 'tblTempUsageDetail_20' ) end [2025-04-23 11:28:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 11:28:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 11:28:26] Production.INFO: ==11988== Releasing lock... [2025-04-23 11:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 11:28:26] Production.INFO: 63.75 MB #Memory Used# [2025-04-23 11:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 08:29:04 [end_date_ymd] => 2025-04-23 11:29:04 [RateCDR] => 1 ) [2025-04-23 11:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 08:29:04' and `end` < '2025-04-23 11:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 11:29:18] Production.INFO: count ==4788 [2025-04-23 11:29:20] Production.ERROR: pbx CDR StartTime 2025-04-23 08:29:04 - End Time 2025-04-23 11:29:04 [2025-04-23 11:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971973', 'tblTempUsageDetail_20' ) start [2025-04-23 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971973', 'tblTempUsageDetail_20' ) end [2025-04-23 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971973', 'tblTempVendorCDR_20' ) start [2025-04-23 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971973', 'tblTempVendorCDR_20' ) end [2025-04-23 11:29:21] Production.INFO: ProcessCDR(1,14971973,1,1,2) [2025-04-23 11:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971973', 'tblTempUsageDetail_20' ) start [2025-04-23 11:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971973', 'tblTempUsageDetail_20' ) end [2025-04-23 11:29:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 11:29:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 11:29:26] Production.INFO: ==12060== Releasing lock... [2025-04-23 11:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 11:29:26] Production.INFO: 64 MB #Memory Used# [2025-04-23 11:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 08:30:05 [end_date_ymd] => 2025-04-23 11:30:05 [RateCDR] => 1 ) [2025-04-23 11:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 08:30:05' and `end` < '2025-04-23 11:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 11:30:19] Production.INFO: count ==4791 [2025-04-23 11:30:21] Production.ERROR: pbx CDR StartTime 2025-04-23 08:30:05 - End Time 2025-04-23 11:30:05 [2025-04-23 11:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971979', 'tblTempUsageDetail_20' ) start [2025-04-23 11:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971979', 'tblTempUsageDetail_20' ) end [2025-04-23 11:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971979', 'tblTempVendorCDR_20' ) start [2025-04-23 11:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971979', 'tblTempVendorCDR_20' ) end [2025-04-23 11:30:22] Production.INFO: ProcessCDR(1,14971979,1,1,2) [2025-04-23 11:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971979', 'tblTempUsageDetail_20' ) start [2025-04-23 11:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971979', 'tblTempUsageDetail_20' ) end [2025-04-23 11:30:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 11:30:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 11:30:26] Production.INFO: ==12137== Releasing lock... [2025-04-23 11:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 11:30:26] Production.INFO: 64 MB #Memory Used# [2025-04-23 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 08:31:05 [end_date_ymd] => 2025-04-23 11:31:05 [RateCDR] => 1 ) [2025-04-23 11:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 08:31:05' and `end` < '2025-04-23 11:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 11:31:19] Production.INFO: count ==4864 [2025-04-23 11:31:21] Production.ERROR: pbx CDR StartTime 2025-04-23 08:31:05 - End Time 2025-04-23 11:31:05 [2025-04-23 11:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 11:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971984', 'tblTempUsageDetail_20' ) start [2025-04-23 11:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971984', 'tblTempUsageDetail_20' ) end [2025-04-23 11:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971984', 'tblTempVendorCDR_20' ) start [2025-04-23 11:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971984', 'tblTempVendorCDR_20' ) end [2025-04-23 11:31:21] Production.INFO: ProcessCDR(1,14971984,1,1,2) [2025-04-23 11:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971984', 'tblTempUsageDetail_20' ) start [2025-04-23 11:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971984', 'tblTempUsageDetail_20' ) end [2025-04-23 11:31:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 11:31:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 11:31:26] Production.INFO: ==12212== Releasing lock... [2025-04-23 11:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 11:31:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-23 11:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 08:32:06 [end_date_ymd] => 2025-04-23 11:32:06 [RateCDR] => 1 ) [2025-04-23 11:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 08:32:06' and `end` < '2025-04-23 11:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 11:32:19] Production.INFO: count ==4939 [2025-04-23 11:32:21] Production.ERROR: pbx CDR StartTime 2025-04-23 08:32:06 - End Time 2025-04-23 11:32:06 [2025-04-23 11:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971989', 'tblTempUsageDetail_20' ) start [2025-04-23 11:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971989', 'tblTempUsageDetail_20' ) end [2025-04-23 11:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971989', 'tblTempVendorCDR_20' ) start [2025-04-23 11:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971989', 'tblTempVendorCDR_20' ) end [2025-04-23 11:32:22] Production.INFO: ProcessCDR(1,14971989,1,1,2) [2025-04-23 11:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971989', 'tblTempUsageDetail_20' ) start [2025-04-23 11:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971989', 'tblTempUsageDetail_20' ) end [2025-04-23 11:32:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 11:32:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 11:32:27] Production.INFO: ==12284== Releasing lock... [2025-04-23 11:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 11:32:27] Production.INFO: 65 MB #Memory Used# [2025-04-23 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 08:33:05 [end_date_ymd] => 2025-04-23 11:33:05 [RateCDR] => 1 ) [2025-04-23 11:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 08:33:05' and `end` < '2025-04-23 11:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 11:33:19] Production.INFO: count ==4945 [2025-04-23 11:33:21] Production.ERROR: pbx CDR StartTime 2025-04-23 08:33:05 - End Time 2025-04-23 11:33:05 [2025-04-23 11:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971994', 'tblTempUsageDetail_20' ) start [2025-04-23 11:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971994', 'tblTempUsageDetail_20' ) end [2025-04-23 11:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971994', 'tblTempVendorCDR_20' ) start [2025-04-23 11:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971994', 'tblTempVendorCDR_20' ) end [2025-04-23 11:33:22] Production.INFO: ProcessCDR(1,14971994,1,1,2) [2025-04-23 11:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971994', 'tblTempUsageDetail_20' ) start [2025-04-23 11:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971994', 'tblTempUsageDetail_20' ) end [2025-04-23 11:33:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 11:33:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 11:33:27] Production.INFO: ==12357== Releasing lock... [2025-04-23 11:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 11:33:27] Production.INFO: 65 MB #Memory Used# [2025-04-23 11:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 08:34:05 [end_date_ymd] => 2025-04-23 11:34:05 [RateCDR] => 1 ) [2025-04-23 11:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 08:34:05' and `end` < '2025-04-23 11:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 11:34:19] Production.INFO: count ==4991 [2025-04-23 11:34:21] Production.ERROR: pbx CDR StartTime 2025-04-23 08:34:05 - End Time 2025-04-23 11:34:05 [2025-04-23 11:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971999', 'tblTempUsageDetail_20' ) start [2025-04-23 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14971999', 'tblTempUsageDetail_20' ) end [2025-04-23 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971999', 'tblTempVendorCDR_20' ) start [2025-04-23 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14971999', 'tblTempVendorCDR_20' ) end [2025-04-23 11:34:21] Production.INFO: ProcessCDR(1,14971999,1,1,2) [2025-04-23 11:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14971999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14971999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14971999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14971999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971999', 'tblTempUsageDetail_20' ) start [2025-04-23 11:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14971999', 'tblTempUsageDetail_20' ) end [2025-04-23 11:34:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 11:34:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 11:34:26] Production.INFO: ==12435== Releasing lock... [2025-04-23 11:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 11:34:26] Production.INFO: 65.5 MB #Memory Used# [2025-04-23 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 08:35:05 [end_date_ymd] => 2025-04-23 11:35:05 [RateCDR] => 1 ) [2025-04-23 11:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 08:35:05' and `end` < '2025-04-23 11:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 11:35:19] Production.INFO: count ==4994 [2025-04-23 11:35:21] Production.ERROR: pbx CDR StartTime 2025-04-23 08:35:05 - End Time 2025-04-23 11:35:05 [2025-04-23 11:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972004', 'tblTempUsageDetail_20' ) start [2025-04-23 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972004', 'tblTempUsageDetail_20' ) end [2025-04-23 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972004', 'tblTempVendorCDR_20' ) start [2025-04-23 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972004', 'tblTempVendorCDR_20' ) end [2025-04-23 11:35:21] Production.INFO: ProcessCDR(1,14972004,1,1,2) [2025-04-23 11:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972004', 'tblTempUsageDetail_20' ) start [2025-04-23 11:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972004', 'tblTempUsageDetail_20' ) end [2025-04-23 11:35:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 11:35:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 11:35:26] Production.INFO: ==12508== Releasing lock... [2025-04-23 11:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 11:35:26] Production.INFO: 65.5 MB #Memory Used# [2025-04-23 11:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 08:36:06 [end_date_ymd] => 2025-04-23 11:36:06 [RateCDR] => 1 ) [2025-04-23 11:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 08:36:06' and `end` < '2025-04-23 11:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 11:36:19] Production.INFO: count ==5076 [2025-04-23 11:36:21] Production.ERROR: pbx CDR StartTime 2025-04-23 08:36:06 - End Time 2025-04-23 11:36:06 [2025-04-23 11:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 11:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972009', 'tblTempUsageDetail_20' ) start [2025-04-23 11:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972009', 'tblTempUsageDetail_20' ) end [2025-04-23 11:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972009', 'tblTempVendorCDR_20' ) start [2025-04-23 11:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972009', 'tblTempVendorCDR_20' ) end [2025-04-23 11:36:22] Production.INFO: ProcessCDR(1,14972009,1,1,2) [2025-04-23 11:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972009', 'tblTempUsageDetail_20' ) start [2025-04-23 11:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972009', 'tblTempUsageDetail_20' ) end [2025-04-23 11:36:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 11:36:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 11:36:27] Production.INFO: ==12588== Releasing lock... [2025-04-23 11:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 11:36:27] Production.INFO: 66 MB #Memory Used# [2025-04-23 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 08:37:05 [end_date_ymd] => 2025-04-23 11:37:05 [RateCDR] => 1 ) [2025-04-23 11:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 08:37:05' and `end` < '2025-04-23 11:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 11:37:18] Production.INFO: count ==5110 [2025-04-23 11:37:20] Production.ERROR: pbx CDR StartTime 2025-04-23 08:37:05 - End Time 2025-04-23 11:37:05 [2025-04-23 11:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 11:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972014', 'tblTempUsageDetail_20' ) start [2025-04-23 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972014', 'tblTempUsageDetail_20' ) end [2025-04-23 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972014', 'tblTempVendorCDR_20' ) start [2025-04-23 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972014', 'tblTempVendorCDR_20' ) end [2025-04-23 11:37:21] Production.INFO: ProcessCDR(1,14972014,1,1,2) [2025-04-23 11:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972014', 'tblTempUsageDetail_20' ) start [2025-04-23 11:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972014', 'tblTempUsageDetail_20' ) end [2025-04-23 11:37:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 11:37:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 11:37:26] Production.INFO: ==12721== Releasing lock... [2025-04-23 11:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 11:37:26] Production.INFO: 66.25 MB #Memory Used# [2025-04-23 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 08:38:05 [end_date_ymd] => 2025-04-23 11:38:05 [RateCDR] => 1 ) [2025-04-23 11:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 08:38:05' and `end` < '2025-04-23 11:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 11:38:19] Production.INFO: count ==5123 [2025-04-23 11:38:21] Production.ERROR: pbx CDR StartTime 2025-04-23 08:38:05 - End Time 2025-04-23 11:38:05 [2025-04-23 11:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972019', 'tblTempUsageDetail_20' ) start [2025-04-23 11:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972019', 'tblTempUsageDetail_20' ) end [2025-04-23 11:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972019', 'tblTempVendorCDR_20' ) start [2025-04-23 11:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972019', 'tblTempVendorCDR_20' ) end [2025-04-23 11:38:22] Production.INFO: ProcessCDR(1,14972019,1,1,2) [2025-04-23 11:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972019', 'tblTempUsageDetail_20' ) start [2025-04-23 11:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972019', 'tblTempUsageDetail_20' ) end [2025-04-23 11:38:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 11:38:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 11:38:27] Production.INFO: ==12793== Releasing lock... [2025-04-23 11:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 11:38:27] Production.INFO: 66.5 MB #Memory Used# [2025-04-23 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 08:39:05 [end_date_ymd] => 2025-04-23 11:39:05 [RateCDR] => 1 ) [2025-04-23 11:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 08:39:05' and `end` < '2025-04-23 11:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 11:39:19] Production.INFO: count ==5125 [2025-04-23 11:39:21] Production.ERROR: pbx CDR StartTime 2025-04-23 08:39:05 - End Time 2025-04-23 11:39:05 [2025-04-23 11:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972024', 'tblTempUsageDetail_20' ) start [2025-04-23 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972024', 'tblTempUsageDetail_20' ) end [2025-04-23 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972024', 'tblTempVendorCDR_20' ) start [2025-04-23 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972024', 'tblTempVendorCDR_20' ) end [2025-04-23 11:39:21] Production.INFO: ProcessCDR(1,14972024,1,1,2) [2025-04-23 11:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972024', 'tblTempUsageDetail_20' ) start [2025-04-23 11:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972024', 'tblTempUsageDetail_20' ) end [2025-04-23 11:39:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 11:39:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 11:39:27] Production.INFO: ==12867== Releasing lock... [2025-04-23 11:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 11:39:27] Production.INFO: 66.5 MB #Memory Used# [2025-04-23 11:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 08:40:07 [end_date_ymd] => 2025-04-23 11:40:07 [RateCDR] => 1 ) [2025-04-23 11:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 08:40:07' and `end` < '2025-04-23 11:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 11:40:20] Production.INFO: count ==5144 [2025-04-23 11:40:22] Production.ERROR: pbx CDR StartTime 2025-04-23 08:40:07 - End Time 2025-04-23 11:40:07 [2025-04-23 11:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972030', 'tblTempUsageDetail_20' ) start [2025-04-23 11:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972030', 'tblTempUsageDetail_20' ) end [2025-04-23 11:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972030', 'tblTempVendorCDR_20' ) start [2025-04-23 11:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972030', 'tblTempVendorCDR_20' ) end [2025-04-23 11:40:23] Production.INFO: ProcessCDR(1,14972030,1,1,2) [2025-04-23 11:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972030', 'tblTempUsageDetail_20' ) start [2025-04-23 11:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972030', 'tblTempUsageDetail_20' ) end [2025-04-23 11:40:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 11:40:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 11:40:28] Production.INFO: ==12943== Releasing lock... [2025-04-23 11:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 11:40:28] Production.INFO: 66.5 MB #Memory Used# [2025-04-23 11:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 08:41:05 [end_date_ymd] => 2025-04-23 11:41:05 [RateCDR] => 1 ) [2025-04-23 11:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 08:41:05' and `end` < '2025-04-23 11:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 11:41:19] Production.INFO: count ==5213 [2025-04-23 11:41:21] Production.ERROR: pbx CDR StartTime 2025-04-23 08:41:05 - End Time 2025-04-23 11:41:05 [2025-04-23 11:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972035', 'tblTempUsageDetail_20' ) start [2025-04-23 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972035', 'tblTempUsageDetail_20' ) end [2025-04-23 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972035', 'tblTempVendorCDR_20' ) start [2025-04-23 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972035', 'tblTempVendorCDR_20' ) end [2025-04-23 11:41:21] Production.INFO: ProcessCDR(1,14972035,1,1,2) [2025-04-23 11:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972035', 'tblTempUsageDetail_20' ) start [2025-04-23 11:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972035', 'tblTempUsageDetail_20' ) end [2025-04-23 11:41:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 11:41:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 11:41:26] Production.INFO: ==13019== Releasing lock... [2025-04-23 11:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 11:41:26] Production.INFO: 67 MB #Memory Used# [2025-04-23 11:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 08:42:06 [end_date_ymd] => 2025-04-23 11:42:06 [RateCDR] => 1 ) [2025-04-23 11:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 08:42:06' and `end` < '2025-04-23 11:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 11:42:20] Production.INFO: count ==5294 [2025-04-23 11:42:22] Production.ERROR: pbx CDR StartTime 2025-04-23 08:42:06 - End Time 2025-04-23 11:42:06 [2025-04-23 11:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 11:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972040', 'tblTempUsageDetail_20' ) start [2025-04-23 11:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972040', 'tblTempUsageDetail_20' ) end [2025-04-23 11:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972040', 'tblTempVendorCDR_20' ) start [2025-04-23 11:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972040', 'tblTempVendorCDR_20' ) end [2025-04-23 11:42:22] Production.INFO: ProcessCDR(1,14972040,1,1,2) [2025-04-23 11:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972040', 'tblTempUsageDetail_20' ) start [2025-04-23 11:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972040', 'tblTempUsageDetail_20' ) end [2025-04-23 11:42:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 11:42:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 11:42:27] Production.INFO: ==13095== Releasing lock... [2025-04-23 11:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 11:42:27] Production.INFO: 67.75 MB #Memory Used# [2025-04-23 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 08:43:05 [end_date_ymd] => 2025-04-23 11:43:05 [RateCDR] => 1 ) [2025-04-23 11:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 08:43:05' and `end` < '2025-04-23 11:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 11:43:19] Production.INFO: count ==5297 [2025-04-23 11:43:21] Production.ERROR: pbx CDR StartTime 2025-04-23 08:43:05 - End Time 2025-04-23 11:43:05 [2025-04-23 11:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972045', 'tblTempUsageDetail_20' ) start [2025-04-23 11:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972045', 'tblTempUsageDetail_20' ) end [2025-04-23 11:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972045', 'tblTempVendorCDR_20' ) start [2025-04-23 11:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972045', 'tblTempVendorCDR_20' ) end [2025-04-23 11:43:22] Production.INFO: ProcessCDR(1,14972045,1,1,2) [2025-04-23 11:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972045', 'tblTempUsageDetail_20' ) start [2025-04-23 11:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972045', 'tblTempUsageDetail_20' ) end [2025-04-23 11:43:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 11:43:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 11:43:27] Production.INFO: ==13172== Releasing lock... [2025-04-23 11:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 11:43:27] Production.INFO: 67.75 MB #Memory Used# [2025-04-23 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 08:44:05 [end_date_ymd] => 2025-04-23 11:44:05 [RateCDR] => 1 ) [2025-04-23 11:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 08:44:05' and `end` < '2025-04-23 11:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 11:44:19] Production.INFO: count ==5331 [2025-04-23 11:44:21] Production.ERROR: pbx CDR StartTime 2025-04-23 08:44:05 - End Time 2025-04-23 11:44:05 [2025-04-23 11:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972050', 'tblTempUsageDetail_20' ) start [2025-04-23 11:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972050', 'tblTempUsageDetail_20' ) end [2025-04-23 11:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972050', 'tblTempVendorCDR_20' ) start [2025-04-23 11:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972050', 'tblTempVendorCDR_20' ) end [2025-04-23 11:44:22] Production.INFO: ProcessCDR(1,14972050,1,1,2) [2025-04-23 11:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972050', 'tblTempUsageDetail_20' ) start [2025-04-23 11:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972050', 'tblTempUsageDetail_20' ) end [2025-04-23 11:44:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 11:44:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 11:44:27] Production.INFO: ==13249== Releasing lock... [2025-04-23 11:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 11:44:27] Production.INFO: 68 MB #Memory Used# [2025-04-23 11:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 08:45:04 [end_date_ymd] => 2025-04-23 11:45:04 [RateCDR] => 1 ) [2025-04-23 11:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 08:45:04' and `end` < '2025-04-23 11:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 11:45:18] Production.INFO: count ==5335 [2025-04-23 11:45:20] Production.ERROR: pbx CDR StartTime 2025-04-23 08:45:04 - End Time 2025-04-23 11:45:04 [2025-04-23 11:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 11:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972055', 'tblTempUsageDetail_20' ) start [2025-04-23 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972055', 'tblTempUsageDetail_20' ) end [2025-04-23 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972055', 'tblTempVendorCDR_20' ) start [2025-04-23 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972055', 'tblTempVendorCDR_20' ) end [2025-04-23 11:45:21] Production.INFO: ProcessCDR(1,14972055,1,1,2) [2025-04-23 11:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972055', 'tblTempUsageDetail_20' ) start [2025-04-23 11:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972055', 'tblTempUsageDetail_20' ) end [2025-04-23 11:45:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 11:45:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 11:45:26] Production.INFO: ==13321== Releasing lock... [2025-04-23 11:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 11:45:26] Production.INFO: 68 MB #Memory Used# [2025-04-23 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 08:46:05 [end_date_ymd] => 2025-04-23 11:46:05 [RateCDR] => 1 ) [2025-04-23 11:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 08:46:05' and `end` < '2025-04-23 11:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 11:46:19] Production.INFO: count ==5334 [2025-04-23 11:46:21] Production.ERROR: pbx CDR StartTime 2025-04-23 08:46:05 - End Time 2025-04-23 11:46:05 [2025-04-23 11:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972060', 'tblTempUsageDetail_20' ) start [2025-04-23 11:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972060', 'tblTempUsageDetail_20' ) end [2025-04-23 11:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972060', 'tblTempVendorCDR_20' ) start [2025-04-23 11:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972060', 'tblTempVendorCDR_20' ) end [2025-04-23 11:46:22] Production.INFO: ProcessCDR(1,14972060,1,1,2) [2025-04-23 11:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972060', 'tblTempUsageDetail_20' ) start [2025-04-23 11:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972060', 'tblTempUsageDetail_20' ) end [2025-04-23 11:46:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 11:46:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 11:46:27] Production.INFO: ==13402== Releasing lock... [2025-04-23 11:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 11:46:27] Production.INFO: 68 MB #Memory Used# [2025-04-23 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 08:47:05 [end_date_ymd] => 2025-04-23 11:47:05 [RateCDR] => 1 ) [2025-04-23 11:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 08:47:05' and `end` < '2025-04-23 11:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 11:47:18] Production.INFO: count ==5350 [2025-04-23 11:47:21] Production.ERROR: pbx CDR StartTime 2025-04-23 08:47:05 - End Time 2025-04-23 11:47:05 [2025-04-23 11:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972065', 'tblTempUsageDetail_20' ) start [2025-04-23 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972065', 'tblTempUsageDetail_20' ) end [2025-04-23 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972065', 'tblTempVendorCDR_20' ) start [2025-04-23 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972065', 'tblTempVendorCDR_20' ) end [2025-04-23 11:47:21] Production.INFO: ProcessCDR(1,14972065,1,1,2) [2025-04-23 11:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972065', 'tblTempUsageDetail_20' ) start [2025-04-23 11:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972065', 'tblTempUsageDetail_20' ) end [2025-04-23 11:47:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 11:47:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 11:47:26] Production.INFO: ==13474== Releasing lock... [2025-04-23 11:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 11:47:26] Production.INFO: 68.25 MB #Memory Used# [2025-04-23 11:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 08:48:06 [end_date_ymd] => 2025-04-23 11:48:06 [RateCDR] => 1 ) [2025-04-23 11:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 08:48:06' and `end` < '2025-04-23 11:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 11:48:20] Production.INFO: count ==5370 [2025-04-23 11:48:22] Production.ERROR: pbx CDR StartTime 2025-04-23 08:48:06 - End Time 2025-04-23 11:48:06 [2025-04-23 11:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 11:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972070', 'tblTempUsageDetail_20' ) start [2025-04-23 11:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972070', 'tblTempUsageDetail_20' ) end [2025-04-23 11:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972070', 'tblTempVendorCDR_20' ) start [2025-04-23 11:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972070', 'tblTempVendorCDR_20' ) end [2025-04-23 11:48:23] Production.INFO: ProcessCDR(1,14972070,1,1,2) [2025-04-23 11:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972070', 'tblTempUsageDetail_20' ) start [2025-04-23 11:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972070', 'tblTempUsageDetail_20' ) end [2025-04-23 11:48:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 11:48:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 11:48:28] Production.INFO: ==13549== Releasing lock... [2025-04-23 11:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 11:48:28] Production.INFO: 68.25 MB #Memory Used# [2025-04-23 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 08:49:05 [end_date_ymd] => 2025-04-23 11:49:05 [RateCDR] => 1 ) [2025-04-23 11:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 08:49:05' and `end` < '2025-04-23 11:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 11:49:19] Production.INFO: count ==5387 [2025-04-23 11:49:22] Production.ERROR: pbx CDR StartTime 2025-04-23 08:49:05 - End Time 2025-04-23 11:49:05 [2025-04-23 11:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 11:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972075', 'tblTempUsageDetail_20' ) start [2025-04-23 11:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972075', 'tblTempUsageDetail_20' ) end [2025-04-23 11:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972075', 'tblTempVendorCDR_20' ) start [2025-04-23 11:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972075', 'tblTempVendorCDR_20' ) end [2025-04-23 11:49:22] Production.INFO: ProcessCDR(1,14972075,1,1,2) [2025-04-23 11:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972075', 'tblTempUsageDetail_20' ) start [2025-04-23 11:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972075', 'tblTempUsageDetail_20' ) end [2025-04-23 11:49:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 11:49:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 11:49:27] Production.INFO: ==13621== Releasing lock... [2025-04-23 11:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 11:49:27] Production.INFO: 68.5 MB #Memory Used# [2025-04-23 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 08:50:06 [end_date_ymd] => 2025-04-23 11:50:06 [RateCDR] => 1 ) [2025-04-23 11:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 08:50:06' and `end` < '2025-04-23 11:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 11:50:19] Production.INFO: count ==5394 [2025-04-23 11:50:22] Production.ERROR: pbx CDR StartTime 2025-04-23 08:50:06 - End Time 2025-04-23 11:50:06 [2025-04-23 11:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972080', 'tblTempUsageDetail_20' ) start [2025-04-23 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972080', 'tblTempUsageDetail_20' ) end [2025-04-23 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972080', 'tblTempVendorCDR_20' ) start [2025-04-23 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972080', 'tblTempVendorCDR_20' ) end [2025-04-23 11:50:22] Production.INFO: ProcessCDR(1,14972080,1,1,2) [2025-04-23 11:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972080', 'tblTempUsageDetail_20' ) start [2025-04-23 11:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972080', 'tblTempUsageDetail_20' ) end [2025-04-23 11:50:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 11:50:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 11:50:27] Production.INFO: ==13694== Releasing lock... [2025-04-23 11:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 11:50:27] Production.INFO: 68.5 MB #Memory Used# [2025-04-23 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 08:51:05 [end_date_ymd] => 2025-04-23 11:51:05 [RateCDR] => 1 ) [2025-04-23 11:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 08:51:05' and `end` < '2025-04-23 11:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 11:51:19] Production.INFO: count ==5533 [2025-04-23 11:51:21] Production.ERROR: pbx CDR StartTime 2025-04-23 08:51:05 - End Time 2025-04-23 11:51:05 [2025-04-23 11:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972086', 'tblTempUsageDetail_20' ) start [2025-04-23 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972086', 'tblTempUsageDetail_20' ) end [2025-04-23 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972086', 'tblTempVendorCDR_20' ) start [2025-04-23 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972086', 'tblTempVendorCDR_20' ) end [2025-04-23 11:51:21] Production.INFO: ProcessCDR(1,14972086,1,1,2) [2025-04-23 11:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972086', 'tblTempUsageDetail_20' ) start [2025-04-23 11:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972086', 'tblTempUsageDetail_20' ) end [2025-04-23 11:51:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 11:51:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 11:51:26] Production.INFO: ==13775== Releasing lock... [2025-04-23 11:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 11:51:26] Production.INFO: 69.5 MB #Memory Used# [2025-04-23 11:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 08:52:05 [end_date_ymd] => 2025-04-23 11:52:05 [RateCDR] => 1 ) [2025-04-23 11:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 08:52:05' and `end` < '2025-04-23 11:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 11:52:19] Production.INFO: count ==5549 [2025-04-23 11:52:21] Production.ERROR: pbx CDR StartTime 2025-04-23 08:52:05 - End Time 2025-04-23 11:52:05 [2025-04-23 11:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972091', 'tblTempUsageDetail_20' ) start [2025-04-23 11:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972091', 'tblTempUsageDetail_20' ) end [2025-04-23 11:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972091', 'tblTempVendorCDR_20' ) start [2025-04-23 11:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972091', 'tblTempVendorCDR_20' ) end [2025-04-23 11:52:22] Production.INFO: ProcessCDR(1,14972091,1,1,2) [2025-04-23 11:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972091', 'tblTempUsageDetail_20' ) start [2025-04-23 11:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972091', 'tblTempUsageDetail_20' ) end [2025-04-23 11:52:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 11:52:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 11:52:27] Production.INFO: ==13886== Releasing lock... [2025-04-23 11:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 11:52:27] Production.INFO: 69.75 MB #Memory Used# [2025-04-23 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 08:53:05 [end_date_ymd] => 2025-04-23 11:53:05 [RateCDR] => 1 ) [2025-04-23 11:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 08:53:05' and `end` < '2025-04-23 11:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 11:53:19] Production.INFO: count ==5585 [2025-04-23 11:53:21] Production.ERROR: pbx CDR StartTime 2025-04-23 08:53:05 - End Time 2025-04-23 11:53:05 [2025-04-23 11:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972096', 'tblTempUsageDetail_20' ) start [2025-04-23 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972096', 'tblTempUsageDetail_20' ) end [2025-04-23 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972096', 'tblTempVendorCDR_20' ) start [2025-04-23 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972096', 'tblTempVendorCDR_20' ) end [2025-04-23 11:53:21] Production.INFO: ProcessCDR(1,14972096,1,1,2) [2025-04-23 11:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972096', 'tblTempUsageDetail_20' ) start [2025-04-23 11:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972096', 'tblTempUsageDetail_20' ) end [2025-04-23 11:53:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 11:53:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 11:53:26] Production.INFO: ==13962== Releasing lock... [2025-04-23 11:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 11:53:26] Production.INFO: 70 MB #Memory Used# [2025-04-23 11:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 08:54:06 [end_date_ymd] => 2025-04-23 11:54:06 [RateCDR] => 1 ) [2025-04-23 11:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 08:54:06' and `end` < '2025-04-23 11:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 11:54:20] Production.INFO: count ==5586 [2025-04-23 11:54:22] Production.ERROR: pbx CDR StartTime 2025-04-23 08:54:06 - End Time 2025-04-23 11:54:06 [2025-04-23 11:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 11:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972101', 'tblTempUsageDetail_20' ) start [2025-04-23 11:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972101', 'tblTempUsageDetail_20' ) end [2025-04-23 11:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972101', 'tblTempVendorCDR_20' ) start [2025-04-23 11:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972101', 'tblTempVendorCDR_20' ) end [2025-04-23 11:54:23] Production.INFO: ProcessCDR(1,14972101,1,1,2) [2025-04-23 11:54:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:54:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972101', 'tblTempUsageDetail_20' ) start [2025-04-23 11:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972101', 'tblTempUsageDetail_20' ) end [2025-04-23 11:54:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 11:54:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 11:54:29] Production.INFO: ==14037== Releasing lock... [2025-04-23 11:54:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 11:54:29] Production.INFO: 70 MB #Memory Used# [2025-04-23 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 08:55:05 [end_date_ymd] => 2025-04-23 11:55:05 [RateCDR] => 1 ) [2025-04-23 11:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 08:55:05' and `end` < '2025-04-23 11:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 11:55:19] Production.INFO: count ==5598 [2025-04-23 11:55:21] Production.ERROR: pbx CDR StartTime 2025-04-23 08:55:05 - End Time 2025-04-23 11:55:05 [2025-04-23 11:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972106', 'tblTempUsageDetail_20' ) start [2025-04-23 11:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972106', 'tblTempUsageDetail_20' ) end [2025-04-23 11:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972106', 'tblTempVendorCDR_20' ) start [2025-04-23 11:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972106', 'tblTempVendorCDR_20' ) end [2025-04-23 11:55:22] Production.INFO: ProcessCDR(1,14972106,1,1,2) [2025-04-23 11:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972106', 'tblTempUsageDetail_20' ) start [2025-04-23 11:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972106', 'tblTempUsageDetail_20' ) end [2025-04-23 11:55:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 11:55:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 11:55:27] Production.INFO: ==14114== Releasing lock... [2025-04-23 11:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 11:55:27] Production.INFO: 70 MB #Memory Used# [2025-04-23 11:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 08:56:05 [end_date_ymd] => 2025-04-23 11:56:05 [RateCDR] => 1 ) [2025-04-23 11:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 08:56:05' and `end` < '2025-04-23 11:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 11:56:20] Production.INFO: count ==5613 [2025-04-23 11:56:22] Production.ERROR: pbx CDR StartTime 2025-04-23 08:56:05 - End Time 2025-04-23 11:56:05 [2025-04-23 11:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 11:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972111', 'tblTempUsageDetail_20' ) start [2025-04-23 11:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972111', 'tblTempUsageDetail_20' ) end [2025-04-23 11:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972111', 'tblTempVendorCDR_20' ) start [2025-04-23 11:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972111', 'tblTempVendorCDR_20' ) end [2025-04-23 11:56:23] Production.INFO: ProcessCDR(1,14972111,1,1,2) [2025-04-23 11:56:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972111', 'tblTempUsageDetail_20' ) start [2025-04-23 11:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972111', 'tblTempUsageDetail_20' ) end [2025-04-23 11:56:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 11:56:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 11:56:28] Production.INFO: ==14194== Releasing lock... [2025-04-23 11:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 11:56:28] Production.INFO: 70.25 MB #Memory Used# [2025-04-23 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 08:57:05 [end_date_ymd] => 2025-04-23 11:57:05 [RateCDR] => 1 ) [2025-04-23 11:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 08:57:05' and `end` < '2025-04-23 11:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 11:57:18] Production.INFO: count ==5632 [2025-04-23 11:57:21] Production.ERROR: pbx CDR StartTime 2025-04-23 08:57:05 - End Time 2025-04-23 11:57:05 [2025-04-23 11:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972116', 'tblTempUsageDetail_20' ) start [2025-04-23 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972116', 'tblTempUsageDetail_20' ) end [2025-04-23 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972116', 'tblTempVendorCDR_20' ) start [2025-04-23 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972116', 'tblTempVendorCDR_20' ) end [2025-04-23 11:57:21] Production.INFO: ProcessCDR(1,14972116,1,1,2) [2025-04-23 11:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972116', 'tblTempUsageDetail_20' ) start [2025-04-23 11:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972116', 'tblTempUsageDetail_20' ) end [2025-04-23 11:57:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 11:57:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 11:57:27] Production.INFO: ==14270== Releasing lock... [2025-04-23 11:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 11:57:27] Production.INFO: 70.25 MB #Memory Used# [2025-04-23 11:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 08:58:06 [end_date_ymd] => 2025-04-23 11:58:06 [RateCDR] => 1 ) [2025-04-23 11:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 08:58:06' and `end` < '2025-04-23 11:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 11:58:20] Production.INFO: count ==5660 [2025-04-23 11:58:22] Production.ERROR: pbx CDR StartTime 2025-04-23 08:58:06 - End Time 2025-04-23 11:58:06 [2025-04-23 11:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 11:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972121', 'tblTempUsageDetail_20' ) start [2025-04-23 11:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972121', 'tblTempUsageDetail_20' ) end [2025-04-23 11:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972121', 'tblTempVendorCDR_20' ) start [2025-04-23 11:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972121', 'tblTempVendorCDR_20' ) end [2025-04-23 11:58:22] Production.INFO: ProcessCDR(1,14972121,1,1,2) [2025-04-23 11:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972121', 'tblTempUsageDetail_20' ) start [2025-04-23 11:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972121', 'tblTempUsageDetail_20' ) end [2025-04-23 11:58:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 11:58:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 11:58:27] Production.INFO: ==14354== Releasing lock... [2025-04-23 11:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 11:58:27] Production.INFO: 70.5 MB #Memory Used# [2025-04-23 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 08:59:05 [end_date_ymd] => 2025-04-23 11:59:05 [RateCDR] => 1 ) [2025-04-23 11:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 08:59:05' and `end` < '2025-04-23 11:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 11:59:20] Production.INFO: count ==5688 [2025-04-23 11:59:22] Production.ERROR: pbx CDR StartTime 2025-04-23 08:59:05 - End Time 2025-04-23 11:59:05 [2025-04-23 11:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 11:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972126', 'tblTempUsageDetail_20' ) start [2025-04-23 11:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972126', 'tblTempUsageDetail_20' ) end [2025-04-23 11:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972126', 'tblTempVendorCDR_20' ) start [2025-04-23 11:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972126', 'tblTempVendorCDR_20' ) end [2025-04-23 11:59:23] Production.INFO: ProcessCDR(1,14972126,1,1,2) [2025-04-23 11:59:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 11:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:59:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 11:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972126', 'tblTempUsageDetail_20' ) start [2025-04-23 11:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972126', 'tblTempUsageDetail_20' ) end [2025-04-23 11:59:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 11:59:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 11:59:28] Production.INFO: ==14442== Releasing lock... [2025-04-23 11:59:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 11:59:28] Production.INFO: 70.75 MB #Memory Used# [2025-04-23 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 09:00:06 [end_date_ymd] => 2025-04-23 12:00:06 [RateCDR] => 1 ) [2025-04-23 12:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 09:00:06' and `end` < '2025-04-23 12:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 12:00:20] Production.INFO: count ==5697 [2025-04-23 12:00:22] Production.ERROR: pbx CDR StartTime 2025-04-23 09:00:06 - End Time 2025-04-23 12:00:06 [2025-04-23 12:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972132', 'tblTempUsageDetail_20' ) start [2025-04-23 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972132', 'tblTempUsageDetail_20' ) end [2025-04-23 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972132', 'tblTempVendorCDR_20' ) start [2025-04-23 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972132', 'tblTempVendorCDR_20' ) end [2025-04-23 12:00:23] Production.INFO: ProcessCDR(1,14972132,1,1,2) [2025-04-23 12:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972132', 'tblTempUsageDetail_20' ) start [2025-04-23 12:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972132', 'tblTempUsageDetail_20' ) end [2025-04-23 12:00:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 12:00:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 12:00:28] Production.INFO: ==14522== Releasing lock... [2025-04-23 12:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 12:00:28] Production.INFO: 70.75 MB #Memory Used# [2025-04-23 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 09:01:05 [end_date_ymd] => 2025-04-23 12:01:05 [RateCDR] => 1 ) [2025-04-23 12:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 09:01:05' and `end` < '2025-04-23 12:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 12:01:19] Production.INFO: count ==5744 [2025-04-23 12:01:21] Production.ERROR: pbx CDR StartTime 2025-04-23 09:01:05 - End Time 2025-04-23 12:01:05 [2025-04-23 12:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972137', 'tblTempUsageDetail_20' ) start [2025-04-23 12:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972137', 'tblTempUsageDetail_20' ) end [2025-04-23 12:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972137', 'tblTempVendorCDR_20' ) start [2025-04-23 12:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972137', 'tblTempVendorCDR_20' ) end [2025-04-23 12:01:22] Production.INFO: ProcessCDR(1,14972137,1,1,2) [2025-04-23 12:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972137', 'tblTempUsageDetail_20' ) start [2025-04-23 12:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972137', 'tblTempUsageDetail_20' ) end [2025-04-23 12:01:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 12:01:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 12:01:27] Production.INFO: ==14619== Releasing lock... [2025-04-23 12:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 12:01:27] Production.INFO: 71 MB #Memory Used# [2025-04-23 12:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 09:02:05 [end_date_ymd] => 2025-04-23 12:02:05 [RateCDR] => 1 ) [2025-04-23 12:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 09:02:05' and `end` < '2025-04-23 12:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 12:02:20] Production.INFO: count ==5755 [2025-04-23 12:02:22] Production.ERROR: pbx CDR StartTime 2025-04-23 09:02:05 - End Time 2025-04-23 12:02:05 [2025-04-23 12:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 12:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972142', 'tblTempUsageDetail_20' ) start [2025-04-23 12:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972142', 'tblTempUsageDetail_20' ) end [2025-04-23 12:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972142', 'tblTempVendorCDR_20' ) start [2025-04-23 12:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972142', 'tblTempVendorCDR_20' ) end [2025-04-23 12:02:23] Production.INFO: ProcessCDR(1,14972142,1,1,2) [2025-04-23 12:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972142', 'tblTempUsageDetail_20' ) start [2025-04-23 12:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972142', 'tblTempUsageDetail_20' ) end [2025-04-23 12:02:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 12:02:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 12:02:28] Production.INFO: ==14693== Releasing lock... [2025-04-23 12:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 12:02:28] Production.INFO: 71.25 MB #Memory Used# [2025-04-23 12:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 09:03:06 [end_date_ymd] => 2025-04-23 12:03:06 [RateCDR] => 1 ) [2025-04-23 12:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 09:03:06' and `end` < '2025-04-23 12:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 12:03:20] Production.INFO: count ==5808 [2025-04-23 12:03:22] Production.ERROR: pbx CDR StartTime 2025-04-23 09:03:06 - End Time 2025-04-23 12:03:06 [2025-04-23 12:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 12:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972147', 'tblTempUsageDetail_20' ) start [2025-04-23 12:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972147', 'tblTempUsageDetail_20' ) end [2025-04-23 12:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972147', 'tblTempVendorCDR_20' ) start [2025-04-23 12:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972147', 'tblTempVendorCDR_20' ) end [2025-04-23 12:03:23] Production.INFO: ProcessCDR(1,14972147,1,1,2) [2025-04-23 12:03:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972147', 'tblTempUsageDetail_20' ) start [2025-04-23 12:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972147', 'tblTempUsageDetail_20' ) end [2025-04-23 12:03:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 12:03:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 12:03:28] Production.INFO: ==14778== Releasing lock... [2025-04-23 12:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 12:03:28] Production.INFO: 71.5 MB #Memory Used# [2025-04-23 12:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 09:04:05 [end_date_ymd] => 2025-04-23 12:04:05 [RateCDR] => 1 ) [2025-04-23 12:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 09:04:05' and `end` < '2025-04-23 12:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 12:04:19] Production.INFO: count ==5808 [2025-04-23 12:04:22] Production.ERROR: pbx CDR StartTime 2025-04-23 09:04:05 - End Time 2025-04-23 12:04:05 [2025-04-23 12:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 12:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972152', 'tblTempUsageDetail_20' ) start [2025-04-23 12:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972152', 'tblTempUsageDetail_20' ) end [2025-04-23 12:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972152', 'tblTempVendorCDR_20' ) start [2025-04-23 12:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972152', 'tblTempVendorCDR_20' ) end [2025-04-23 12:04:23] Production.INFO: ProcessCDR(1,14972152,1,1,2) [2025-04-23 12:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:04:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:04:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972152', 'tblTempUsageDetail_20' ) start [2025-04-23 12:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972152', 'tblTempUsageDetail_20' ) end [2025-04-23 12:04:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 12:04:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 12:04:28] Production.INFO: ==14857== Releasing lock... [2025-04-23 12:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 12:04:28] Production.INFO: 71.5 MB #Memory Used# [2025-04-23 12:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 09:05:06 [end_date_ymd] => 2025-04-23 12:05:06 [RateCDR] => 1 ) [2025-04-23 12:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 09:05:06' and `end` < '2025-04-23 12:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 12:05:20] Production.INFO: count ==5849 [2025-04-23 12:05:22] Production.ERROR: pbx CDR StartTime 2025-04-23 09:05:06 - End Time 2025-04-23 12:05:06 [2025-04-23 12:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 12:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972157', 'tblTempUsageDetail_20' ) start [2025-04-23 12:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972157', 'tblTempUsageDetail_20' ) end [2025-04-23 12:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972157', 'tblTempVendorCDR_20' ) start [2025-04-23 12:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972157', 'tblTempVendorCDR_20' ) end [2025-04-23 12:05:22] Production.INFO: ProcessCDR(1,14972157,1,1,2) [2025-04-23 12:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972157', 'tblTempUsageDetail_20' ) start [2025-04-23 12:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972157', 'tblTempUsageDetail_20' ) end [2025-04-23 12:05:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 12:05:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 12:05:28] Production.INFO: ==14942== Releasing lock... [2025-04-23 12:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 12:05:28] Production.INFO: 72 MB #Memory Used# [2025-04-23 12:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 09:06:05 [end_date_ymd] => 2025-04-23 12:06:05 [RateCDR] => 1 ) [2025-04-23 12:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 09:06:05' and `end` < '2025-04-23 12:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 12:06:19] Production.INFO: count ==5871 [2025-04-23 12:06:21] Production.ERROR: pbx CDR StartTime 2025-04-23 09:06:05 - End Time 2025-04-23 12:06:05 [2025-04-23 12:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972162', 'tblTempUsageDetail_20' ) start [2025-04-23 12:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972162', 'tblTempUsageDetail_20' ) end [2025-04-23 12:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972162', 'tblTempVendorCDR_20' ) start [2025-04-23 12:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972162', 'tblTempVendorCDR_20' ) end [2025-04-23 12:06:22] Production.INFO: ProcessCDR(1,14972162,1,1,2) [2025-04-23 12:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972162', 'tblTempUsageDetail_20' ) start [2025-04-23 12:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972162', 'tblTempUsageDetail_20' ) end [2025-04-23 12:06:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 12:06:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 12:06:27] Production.INFO: ==15022== Releasing lock... [2025-04-23 12:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 12:06:27] Production.INFO: 72 MB #Memory Used# [2025-04-23 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 09:07:05 [end_date_ymd] => 2025-04-23 12:07:05 [RateCDR] => 1 ) [2025-04-23 12:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 09:07:05' and `end` < '2025-04-23 12:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 12:07:19] Production.INFO: count ==5870 [2025-04-23 12:07:22] Production.ERROR: pbx CDR StartTime 2025-04-23 09:07:05 - End Time 2025-04-23 12:07:05 [2025-04-23 12:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 12:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972167', 'tblTempUsageDetail_20' ) start [2025-04-23 12:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972167', 'tblTempUsageDetail_20' ) end [2025-04-23 12:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972167', 'tblTempVendorCDR_20' ) start [2025-04-23 12:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972167', 'tblTempVendorCDR_20' ) end [2025-04-23 12:07:22] Production.INFO: ProcessCDR(1,14972167,1,1,2) [2025-04-23 12:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972167', 'tblTempUsageDetail_20' ) start [2025-04-23 12:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972167', 'tblTempUsageDetail_20' ) end [2025-04-23 12:07:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 12:07:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 12:07:27] Production.INFO: ==15095== Releasing lock... [2025-04-23 12:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 12:07:27] Production.INFO: 72 MB #Memory Used# [2025-04-23 12:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 09:08:05 [end_date_ymd] => 2025-04-23 12:08:05 [RateCDR] => 1 ) [2025-04-23 12:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 09:08:05' and `end` < '2025-04-23 12:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 12:08:19] Production.INFO: count ==5870 [2025-04-23 12:08:21] Production.ERROR: pbx CDR StartTime 2025-04-23 09:08:05 - End Time 2025-04-23 12:08:05 [2025-04-23 12:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972172', 'tblTempUsageDetail_20' ) start [2025-04-23 12:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972172', 'tblTempUsageDetail_20' ) end [2025-04-23 12:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972172', 'tblTempVendorCDR_20' ) start [2025-04-23 12:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972172', 'tblTempVendorCDR_20' ) end [2025-04-23 12:08:22] Production.INFO: ProcessCDR(1,14972172,1,1,2) [2025-04-23 12:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972172', 'tblTempUsageDetail_20' ) start [2025-04-23 12:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972172', 'tblTempUsageDetail_20' ) end [2025-04-23 12:08:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 12:08:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 12:08:27] Production.INFO: ==15213== Releasing lock... [2025-04-23 12:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 12:08:27] Production.INFO: 72 MB #Memory Used# [2025-04-23 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 09:09:05 [end_date_ymd] => 2025-04-23 12:09:05 [RateCDR] => 1 ) [2025-04-23 12:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 09:09:05' and `end` < '2025-04-23 12:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 12:09:19] Production.INFO: count ==5882 [2025-04-23 12:09:21] Production.ERROR: pbx CDR StartTime 2025-04-23 09:09:05 - End Time 2025-04-23 12:09:05 [2025-04-23 12:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972177', 'tblTempUsageDetail_20' ) start [2025-04-23 12:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972177', 'tblTempUsageDetail_20' ) end [2025-04-23 12:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972177', 'tblTempVendorCDR_20' ) start [2025-04-23 12:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972177', 'tblTempVendorCDR_20' ) end [2025-04-23 12:09:22] Production.INFO: ProcessCDR(1,14972177,1,1,2) [2025-04-23 12:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972177', 'tblTempUsageDetail_20' ) start [2025-04-23 12:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972177', 'tblTempUsageDetail_20' ) end [2025-04-23 12:09:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 12:09:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 12:09:27] Production.INFO: ==15290== Releasing lock... [2025-04-23 12:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 12:09:27] Production.INFO: 72.25 MB #Memory Used# [2025-04-23 12:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 09:10:05 [end_date_ymd] => 2025-04-23 12:10:05 [RateCDR] => 1 ) [2025-04-23 12:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 09:10:05' and `end` < '2025-04-23 12:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 12:10:19] Production.INFO: count ==5896 [2025-04-23 12:10:22] Production.ERROR: pbx CDR StartTime 2025-04-23 09:10:05 - End Time 2025-04-23 12:10:05 [2025-04-23 12:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972183', 'tblTempUsageDetail_20' ) start [2025-04-23 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972183', 'tblTempUsageDetail_20' ) end [2025-04-23 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972183', 'tblTempVendorCDR_20' ) start [2025-04-23 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972183', 'tblTempVendorCDR_20' ) end [2025-04-23 12:10:22] Production.INFO: ProcessCDR(1,14972183,1,1,2) [2025-04-23 12:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972183', 'tblTempUsageDetail_20' ) start [2025-04-23 12:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972183', 'tblTempUsageDetail_20' ) end [2025-04-23 12:10:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 12:10:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 12:10:28] Production.INFO: ==15368== Releasing lock... [2025-04-23 12:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 12:10:28] Production.INFO: 72.25 MB #Memory Used# [2025-04-23 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 09:11:05 [end_date_ymd] => 2025-04-23 12:11:05 [RateCDR] => 1 ) [2025-04-23 12:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 09:11:05' and `end` < '2025-04-23 12:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 12:11:20] Production.INFO: count ==5932 [2025-04-23 12:11:22] Production.ERROR: pbx CDR StartTime 2025-04-23 09:11:05 - End Time 2025-04-23 12:11:05 [2025-04-23 12:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 12:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972188', 'tblTempUsageDetail_20' ) start [2025-04-23 12:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972188', 'tblTempUsageDetail_20' ) end [2025-04-23 12:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972188', 'tblTempVendorCDR_20' ) start [2025-04-23 12:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972188', 'tblTempVendorCDR_20' ) end [2025-04-23 12:11:23] Production.INFO: ProcessCDR(1,14972188,1,1,2) [2025-04-23 12:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972188', 'tblTempUsageDetail_20' ) start [2025-04-23 12:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972188', 'tblTempUsageDetail_20' ) end [2025-04-23 12:11:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 12:11:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 12:11:28] Production.INFO: ==15447== Releasing lock... [2025-04-23 12:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 12:11:28] Production.INFO: 72.5 MB #Memory Used# [2025-04-23 12:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 09:12:05 [end_date_ymd] => 2025-04-23 12:12:05 [RateCDR] => 1 ) [2025-04-23 12:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 09:12:05' and `end` < '2025-04-23 12:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 12:12:20] Production.INFO: count ==5933 [2025-04-23 12:12:22] Production.ERROR: pbx CDR StartTime 2025-04-23 09:12:05 - End Time 2025-04-23 12:12:05 [2025-04-23 12:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 12:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972193', 'tblTempUsageDetail_20' ) start [2025-04-23 12:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972193', 'tblTempUsageDetail_20' ) end [2025-04-23 12:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972193', 'tblTempVendorCDR_20' ) start [2025-04-23 12:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972193', 'tblTempVendorCDR_20' ) end [2025-04-23 12:12:23] Production.INFO: ProcessCDR(1,14972193,1,1,2) [2025-04-23 12:12:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972193', 'tblTempUsageDetail_20' ) start [2025-04-23 12:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972193', 'tblTempUsageDetail_20' ) end [2025-04-23 12:12:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 12:12:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 12:12:27] Production.INFO: ==15525== Releasing lock... [2025-04-23 12:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 12:12:27] Production.INFO: 72.5 MB #Memory Used# [2025-04-23 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 09:13:05 [end_date_ymd] => 2025-04-23 12:13:05 [RateCDR] => 1 ) [2025-04-23 12:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 09:13:05' and `end` < '2025-04-23 12:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 12:13:20] Production.INFO: count ==5940 [2025-04-23 12:13:22] Production.ERROR: pbx CDR StartTime 2025-04-23 09:13:05 - End Time 2025-04-23 12:13:05 [2025-04-23 12:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 12:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972198', 'tblTempUsageDetail_20' ) start [2025-04-23 12:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972198', 'tblTempUsageDetail_20' ) end [2025-04-23 12:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972198', 'tblTempVendorCDR_20' ) start [2025-04-23 12:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972198', 'tblTempVendorCDR_20' ) end [2025-04-23 12:13:23] Production.INFO: ProcessCDR(1,14972198,1,1,2) [2025-04-23 12:13:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:13:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972198', 'tblTempUsageDetail_20' ) start [2025-04-23 12:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972198', 'tblTempUsageDetail_20' ) end [2025-04-23 12:13:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 12:13:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 12:13:28] Production.INFO: ==15609== Releasing lock... [2025-04-23 12:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 12:13:28] Production.INFO: 72.5 MB #Memory Used# [2025-04-23 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 09:14:05 [end_date_ymd] => 2025-04-23 12:14:05 [RateCDR] => 1 ) [2025-04-23 12:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 09:14:05' and `end` < '2025-04-23 12:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 12:14:19] Production.INFO: count ==6016 [2025-04-23 12:14:22] Production.ERROR: pbx CDR StartTime 2025-04-23 09:14:05 - End Time 2025-04-23 12:14:05 [2025-04-23 12:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 12:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972203', 'tblTempUsageDetail_20' ) start [2025-04-23 12:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972203', 'tblTempUsageDetail_20' ) end [2025-04-23 12:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972203', 'tblTempVendorCDR_20' ) start [2025-04-23 12:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972203', 'tblTempVendorCDR_20' ) end [2025-04-23 12:14:23] Production.INFO: ProcessCDR(1,14972203,1,1,2) [2025-04-23 12:14:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972203', 'tblTempUsageDetail_20' ) start [2025-04-23 12:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972203', 'tblTempUsageDetail_20' ) end [2025-04-23 12:14:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 12:14:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 12:14:28] Production.INFO: ==15688== Releasing lock... [2025-04-23 12:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 12:14:28] Production.INFO: 73.25 MB #Memory Used# [2025-04-23 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 09:15:05 [end_date_ymd] => 2025-04-23 12:15:05 [RateCDR] => 1 ) [2025-04-23 12:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 09:15:05' and `end` < '2025-04-23 12:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 12:15:19] Production.INFO: count ==6086 [2025-04-23 12:15:22] Production.ERROR: pbx CDR StartTime 2025-04-23 09:15:05 - End Time 2025-04-23 12:15:05 [2025-04-23 12:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 12:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972208', 'tblTempUsageDetail_20' ) start [2025-04-23 12:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972208', 'tblTempUsageDetail_20' ) end [2025-04-23 12:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972208', 'tblTempVendorCDR_20' ) start [2025-04-23 12:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972208', 'tblTempVendorCDR_20' ) end [2025-04-23 12:15:23] Production.INFO: ProcessCDR(1,14972208,1,1,2) [2025-04-23 12:15:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:15:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:15:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:15:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972208', 'tblTempUsageDetail_20' ) start [2025-04-23 12:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972208', 'tblTempUsageDetail_20' ) end [2025-04-23 12:15:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 12:15:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 12:15:28] Production.INFO: ==15770== Releasing lock... [2025-04-23 12:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 12:15:28] Production.INFO: 73.75 MB #Memory Used# [2025-04-23 12:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 09:16:06 [end_date_ymd] => 2025-04-23 12:16:06 [RateCDR] => 1 ) [2025-04-23 12:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 09:16:06' and `end` < '2025-04-23 12:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 12:16:20] Production.INFO: count ==6140 [2025-04-23 12:16:23] Production.ERROR: pbx CDR StartTime 2025-04-23 09:16:06 - End Time 2025-04-23 12:16:06 [2025-04-23 12:16:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 12:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972213', 'tblTempUsageDetail_20' ) start [2025-04-23 12:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972213', 'tblTempUsageDetail_20' ) end [2025-04-23 12:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972213', 'tblTempVendorCDR_20' ) start [2025-04-23 12:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972213', 'tblTempVendorCDR_20' ) end [2025-04-23 12:16:23] Production.INFO: ProcessCDR(1,14972213,1,1,2) [2025-04-23 12:16:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:16:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:16:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:16:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972213', 'tblTempUsageDetail_20' ) start [2025-04-23 12:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972213', 'tblTempUsageDetail_20' ) end [2025-04-23 12:16:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 12:16:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 12:16:28] Production.INFO: ==15854== Releasing lock... [2025-04-23 12:16:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 12:16:28] Production.INFO: 74 MB #Memory Used# [2025-04-23 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 09:17:05 [end_date_ymd] => 2025-04-23 12:17:05 [RateCDR] => 1 ) [2025-04-23 12:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 09:17:05' and `end` < '2025-04-23 12:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 12:17:19] Production.INFO: count ==6150 [2025-04-23 12:17:21] Production.ERROR: pbx CDR StartTime 2025-04-23 09:17:05 - End Time 2025-04-23 12:17:05 [2025-04-23 12:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972218', 'tblTempUsageDetail_20' ) start [2025-04-23 12:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972218', 'tblTempUsageDetail_20' ) end [2025-04-23 12:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972218', 'tblTempVendorCDR_20' ) start [2025-04-23 12:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972218', 'tblTempVendorCDR_20' ) end [2025-04-23 12:17:22] Production.INFO: ProcessCDR(1,14972218,1,1,2) [2025-04-23 12:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972218', 'tblTempUsageDetail_20' ) start [2025-04-23 12:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972218', 'tblTempUsageDetail_20' ) end [2025-04-23 12:17:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 12:17:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 12:17:27] Production.INFO: ==15936== Releasing lock... [2025-04-23 12:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 12:17:27] Production.INFO: 74.25 MB #Memory Used# [2025-04-23 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 09:18:05 [end_date_ymd] => 2025-04-23 12:18:05 [RateCDR] => 1 ) [2025-04-23 12:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 09:18:05' and `end` < '2025-04-23 12:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 12:18:19] Production.INFO: count ==6162 [2025-04-23 12:18:22] Production.ERROR: pbx CDR StartTime 2025-04-23 09:18:05 - End Time 2025-04-23 12:18:05 [2025-04-23 12:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 12:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972223', 'tblTempUsageDetail_20' ) start [2025-04-23 12:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972223', 'tblTempUsageDetail_20' ) end [2025-04-23 12:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972223', 'tblTempVendorCDR_20' ) start [2025-04-23 12:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972223', 'tblTempVendorCDR_20' ) end [2025-04-23 12:18:22] Production.INFO: ProcessCDR(1,14972223,1,1,2) [2025-04-23 12:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972223', 'tblTempUsageDetail_20' ) start [2025-04-23 12:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972223', 'tblTempUsageDetail_20' ) end [2025-04-23 12:18:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 12:18:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 12:18:28] Production.INFO: ==16017== Releasing lock... [2025-04-23 12:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 12:18:28] Production.INFO: 74.25 MB #Memory Used# [2025-04-23 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 09:19:05 [end_date_ymd] => 2025-04-23 12:19:05 [RateCDR] => 1 ) [2025-04-23 12:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 09:19:05' and `end` < '2025-04-23 12:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 12:19:19] Production.INFO: count ==6174 [2025-04-23 12:19:22] Production.ERROR: pbx CDR StartTime 2025-04-23 09:19:05 - End Time 2025-04-23 12:19:05 [2025-04-23 12:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 12:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972228', 'tblTempUsageDetail_20' ) start [2025-04-23 12:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972228', 'tblTempUsageDetail_20' ) end [2025-04-23 12:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972228', 'tblTempVendorCDR_20' ) start [2025-04-23 12:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972228', 'tblTempVendorCDR_20' ) end [2025-04-23 12:19:22] Production.INFO: ProcessCDR(1,14972228,1,1,2) [2025-04-23 12:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972228', 'tblTempUsageDetail_20' ) start [2025-04-23 12:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972228', 'tblTempUsageDetail_20' ) end [2025-04-23 12:19:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 12:19:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 12:19:28] Production.INFO: ==16106== Releasing lock... [2025-04-23 12:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 12:19:28] Production.INFO: 74.25 MB #Memory Used# [2025-04-23 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 09:20:06 [end_date_ymd] => 2025-04-23 12:20:06 [RateCDR] => 1 ) [2025-04-23 12:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 09:20:06' and `end` < '2025-04-23 12:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 12:20:20] Production.INFO: count ==6183 [2025-04-23 12:20:23] Production.ERROR: pbx CDR StartTime 2025-04-23 09:20:06 - End Time 2025-04-23 12:20:06 [2025-04-23 12:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 12:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972234', 'tblTempUsageDetail_20' ) start [2025-04-23 12:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972234', 'tblTempUsageDetail_20' ) end [2025-04-23 12:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972234', 'tblTempVendorCDR_20' ) start [2025-04-23 12:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972234', 'tblTempVendorCDR_20' ) end [2025-04-23 12:20:23] Production.INFO: ProcessCDR(1,14972234,1,1,2) [2025-04-23 12:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972234', 'tblTempUsageDetail_20' ) start [2025-04-23 12:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972234', 'tblTempUsageDetail_20' ) end [2025-04-23 12:20:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 12:20:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 12:20:28] Production.INFO: ==16190== Releasing lock... [2025-04-23 12:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 12:20:28] Production.INFO: 74.5 MB #Memory Used# [2025-04-23 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 09:21:05 [end_date_ymd] => 2025-04-23 12:21:05 [RateCDR] => 1 ) [2025-04-23 12:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 09:21:05' and `end` < '2025-04-23 12:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 12:21:19] Production.INFO: count ==6203 [2025-04-23 12:21:22] Production.ERROR: pbx CDR StartTime 2025-04-23 09:21:05 - End Time 2025-04-23 12:21:05 [2025-04-23 12:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 12:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972239', 'tblTempUsageDetail_20' ) start [2025-04-23 12:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972239', 'tblTempUsageDetail_20' ) end [2025-04-23 12:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972239', 'tblTempVendorCDR_20' ) start [2025-04-23 12:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972239', 'tblTempVendorCDR_20' ) end [2025-04-23 12:21:23] Production.INFO: ProcessCDR(1,14972239,1,1,2) [2025-04-23 12:21:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:21:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972239', 'tblTempUsageDetail_20' ) start [2025-04-23 12:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972239', 'tblTempUsageDetail_20' ) end [2025-04-23 12:21:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 12:21:29] Production.ERROR: pbx prc_insertCDR end [2025-04-23 12:21:29] Production.INFO: ==16274== Releasing lock... [2025-04-23 12:21:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 12:21:29] Production.INFO: 74.5 MB #Memory Used# [2025-04-23 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 09:22:05 [end_date_ymd] => 2025-04-23 12:22:05 [RateCDR] => 1 ) [2025-04-23 12:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 09:22:05' and `end` < '2025-04-23 12:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 12:22:19] Production.INFO: count ==6185 [2025-04-23 12:22:22] Production.ERROR: pbx CDR StartTime 2025-04-23 09:22:05 - End Time 2025-04-23 12:22:05 [2025-04-23 12:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972244', 'tblTempUsageDetail_20' ) start [2025-04-23 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972244', 'tblTempUsageDetail_20' ) end [2025-04-23 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972244', 'tblTempVendorCDR_20' ) start [2025-04-23 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972244', 'tblTempVendorCDR_20' ) end [2025-04-23 12:22:22] Production.INFO: ProcessCDR(1,14972244,1,1,2) [2025-04-23 12:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972244', 'tblTempUsageDetail_20' ) start [2025-04-23 12:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972244', 'tblTempUsageDetail_20' ) end [2025-04-23 12:22:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 12:22:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 12:22:27] Production.INFO: ==16352== Releasing lock... [2025-04-23 12:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 12:22:27] Production.INFO: 74.5 MB #Memory Used# [2025-04-23 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 09:23:05 [end_date_ymd] => 2025-04-23 12:23:05 [RateCDR] => 1 ) [2025-04-23 12:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 09:23:05' and `end` < '2025-04-23 12:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 12:23:20] Production.INFO: count ==6171 [2025-04-23 12:23:22] Production.ERROR: pbx CDR StartTime 2025-04-23 09:23:05 - End Time 2025-04-23 12:23:05 [2025-04-23 12:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 12:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972249', 'tblTempUsageDetail_20' ) start [2025-04-23 12:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972249', 'tblTempUsageDetail_20' ) end [2025-04-23 12:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972249', 'tblTempVendorCDR_20' ) start [2025-04-23 12:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972249', 'tblTempVendorCDR_20' ) end [2025-04-23 12:23:23] Production.INFO: ProcessCDR(1,14972249,1,1,2) [2025-04-23 12:23:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:23:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:23:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:23:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972249', 'tblTempUsageDetail_20' ) start [2025-04-23 12:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972249', 'tblTempUsageDetail_20' ) end [2025-04-23 12:23:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 12:23:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 12:23:28] Production.INFO: ==16466== Releasing lock... [2025-04-23 12:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 12:23:28] Production.INFO: 74.25 MB #Memory Used# [2025-04-23 12:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 09:24:05 [end_date_ymd] => 2025-04-23 12:24:05 [RateCDR] => 1 ) [2025-04-23 12:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 09:24:05' and `end` < '2025-04-23 12:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 12:24:19] Production.INFO: count ==6211 [2025-04-23 12:24:22] Production.ERROR: pbx CDR StartTime 2025-04-23 09:24:05 - End Time 2025-04-23 12:24:05 [2025-04-23 12:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 12:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972254', 'tblTempUsageDetail_20' ) start [2025-04-23 12:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972254', 'tblTempUsageDetail_20' ) end [2025-04-23 12:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972254', 'tblTempVendorCDR_20' ) start [2025-04-23 12:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972254', 'tblTempVendorCDR_20' ) end [2025-04-23 12:24:22] Production.INFO: ProcessCDR(1,14972254,1,1,2) [2025-04-23 12:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972254', 'tblTempUsageDetail_20' ) start [2025-04-23 12:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972254', 'tblTempUsageDetail_20' ) end [2025-04-23 12:24:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 12:24:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 12:24:28] Production.INFO: ==16549== Releasing lock... [2025-04-23 12:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 12:24:28] Production.INFO: 74.75 MB #Memory Used# [2025-04-23 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 09:25:05 [end_date_ymd] => 2025-04-23 12:25:05 [RateCDR] => 1 ) [2025-04-23 12:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 09:25:05' and `end` < '2025-04-23 12:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 12:25:19] Production.INFO: count ==6269 [2025-04-23 12:25:22] Production.ERROR: pbx CDR StartTime 2025-04-23 09:25:05 - End Time 2025-04-23 12:25:05 [2025-04-23 12:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972259', 'tblTempUsageDetail_20' ) start [2025-04-23 12:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972259', 'tblTempUsageDetail_20' ) end [2025-04-23 12:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972259', 'tblTempVendorCDR_20' ) start [2025-04-23 12:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972259', 'tblTempVendorCDR_20' ) end [2025-04-23 12:25:23] Production.INFO: ProcessCDR(1,14972259,1,1,2) [2025-04-23 12:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972259', 'tblTempUsageDetail_20' ) start [2025-04-23 12:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972259', 'tblTempUsageDetail_20' ) end [2025-04-23 12:25:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 12:25:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 12:25:28] Production.INFO: ==16630== Releasing lock... [2025-04-23 12:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 12:25:28] Production.INFO: 75 MB #Memory Used# [2025-04-23 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 09:26:05 [end_date_ymd] => 2025-04-23 12:26:05 [RateCDR] => 1 ) [2025-04-23 12:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 09:26:05' and `end` < '2025-04-23 12:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 12:26:19] Production.INFO: count ==6265 [2025-04-23 12:26:22] Production.ERROR: pbx CDR StartTime 2025-04-23 09:26:05 - End Time 2025-04-23 12:26:05 [2025-04-23 12:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 12:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972264', 'tblTempUsageDetail_20' ) start [2025-04-23 12:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972264', 'tblTempUsageDetail_20' ) end [2025-04-23 12:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972264', 'tblTempVendorCDR_20' ) start [2025-04-23 12:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972264', 'tblTempVendorCDR_20' ) end [2025-04-23 12:26:22] Production.INFO: ProcessCDR(1,14972264,1,1,2) [2025-04-23 12:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972264', 'tblTempUsageDetail_20' ) start [2025-04-23 12:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972264', 'tblTempUsageDetail_20' ) end [2025-04-23 12:26:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 12:26:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 12:26:27] Production.INFO: ==16711== Releasing lock... [2025-04-23 12:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 12:26:27] Production.INFO: 75 MB #Memory Used# [2025-04-23 12:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 09:27:06 [end_date_ymd] => 2025-04-23 12:27:06 [RateCDR] => 1 ) [2025-04-23 12:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 09:27:06' and `end` < '2025-04-23 12:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 12:27:20] Production.INFO: count ==6273 [2025-04-23 12:27:22] Production.ERROR: pbx CDR StartTime 2025-04-23 09:27:06 - End Time 2025-04-23 12:27:06 [2025-04-23 12:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 12:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972269', 'tblTempUsageDetail_20' ) start [2025-04-23 12:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972269', 'tblTempUsageDetail_20' ) end [2025-04-23 12:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972269', 'tblTempVendorCDR_20' ) start [2025-04-23 12:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972269', 'tblTempVendorCDR_20' ) end [2025-04-23 12:27:23] Production.INFO: ProcessCDR(1,14972269,1,1,2) [2025-04-23 12:27:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:27:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972269', 'tblTempUsageDetail_20' ) start [2025-04-23 12:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972269', 'tblTempUsageDetail_20' ) end [2025-04-23 12:27:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 12:27:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 12:27:28] Production.INFO: ==16786== Releasing lock... [2025-04-23 12:27:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 12:27:28] Production.INFO: 75.25 MB #Memory Used# [2025-04-23 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 09:28:05 [end_date_ymd] => 2025-04-23 12:28:05 [RateCDR] => 1 ) [2025-04-23 12:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 09:28:05' and `end` < '2025-04-23 12:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 12:28:19] Production.INFO: count ==6266 [2025-04-23 12:28:22] Production.ERROR: pbx CDR StartTime 2025-04-23 09:28:05 - End Time 2025-04-23 12:28:05 [2025-04-23 12:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 12:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972274', 'tblTempUsageDetail_20' ) start [2025-04-23 12:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972274', 'tblTempUsageDetail_20' ) end [2025-04-23 12:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972274', 'tblTempVendorCDR_20' ) start [2025-04-23 12:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972274', 'tblTempVendorCDR_20' ) end [2025-04-23 12:28:23] Production.INFO: ProcessCDR(1,14972274,1,1,2) [2025-04-23 12:28:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:28:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972274', 'tblTempUsageDetail_20' ) start [2025-04-23 12:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972274', 'tblTempUsageDetail_20' ) end [2025-04-23 12:28:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 12:28:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 12:28:28] Production.INFO: ==16861== Releasing lock... [2025-04-23 12:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 12:28:28] Production.INFO: 75 MB #Memory Used# [2025-04-23 12:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 09:29:04 [end_date_ymd] => 2025-04-23 12:29:04 [RateCDR] => 1 ) [2025-04-23 12:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 09:29:04' and `end` < '2025-04-23 12:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 12:29:19] Production.INFO: count ==6269 [2025-04-23 12:29:21] Production.ERROR: pbx CDR StartTime 2025-04-23 09:29:04 - End Time 2025-04-23 12:29:04 [2025-04-23 12:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972279', 'tblTempUsageDetail_20' ) start [2025-04-23 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972279', 'tblTempUsageDetail_20' ) end [2025-04-23 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972279', 'tblTempVendorCDR_20' ) start [2025-04-23 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972279', 'tblTempVendorCDR_20' ) end [2025-04-23 12:29:22] Production.INFO: ProcessCDR(1,14972279,1,1,2) [2025-04-23 12:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972279', 'tblTempUsageDetail_20' ) start [2025-04-23 12:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972279', 'tblTempUsageDetail_20' ) end [2025-04-23 12:29:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 12:29:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 12:29:27] Production.INFO: ==16945== Releasing lock... [2025-04-23 12:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 12:29:27] Production.INFO: 75 MB #Memory Used# [2025-04-23 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 09:30:06 [end_date_ymd] => 2025-04-23 12:30:06 [RateCDR] => 1 ) [2025-04-23 12:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 09:30:06' and `end` < '2025-04-23 12:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 12:30:20] Production.INFO: count ==6454 [2025-04-23 12:30:22] Production.ERROR: pbx CDR StartTime 2025-04-23 09:30:06 - End Time 2025-04-23 12:30:06 [2025-04-23 12:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972284', 'tblTempUsageDetail_20' ) start [2025-04-23 12:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972284', 'tblTempUsageDetail_20' ) end [2025-04-23 12:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972284', 'tblTempVendorCDR_20' ) start [2025-04-23 12:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972284', 'tblTempVendorCDR_20' ) end [2025-04-23 12:30:23] Production.INFO: ProcessCDR(1,14972284,1,1,2) [2025-04-23 12:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972284', 'tblTempUsageDetail_20' ) start [2025-04-23 12:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972284', 'tblTempUsageDetail_20' ) end [2025-04-23 12:30:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 12:30:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 12:30:28] Production.INFO: ==17027== Releasing lock... [2025-04-23 12:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 12:30:28] Production.INFO: 76.5 MB #Memory Used# [2025-04-23 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 09:31:05 [end_date_ymd] => 2025-04-23 12:31:05 [RateCDR] => 1 ) [2025-04-23 12:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 09:31:05' and `end` < '2025-04-23 12:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 12:31:19] Production.INFO: count ==6463 [2025-04-23 12:31:21] Production.ERROR: pbx CDR StartTime 2025-04-23 09:31:05 - End Time 2025-04-23 12:31:05 [2025-04-23 12:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972290', 'tblTempUsageDetail_20' ) start [2025-04-23 12:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972290', 'tblTempUsageDetail_20' ) end [2025-04-23 12:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972290', 'tblTempVendorCDR_20' ) start [2025-04-23 12:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972290', 'tblTempVendorCDR_20' ) end [2025-04-23 12:31:22] Production.INFO: ProcessCDR(1,14972290,1,1,2) [2025-04-23 12:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972290', 'tblTempUsageDetail_20' ) start [2025-04-23 12:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972290', 'tblTempUsageDetail_20' ) end [2025-04-23 12:31:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 12:31:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 12:31:27] Production.INFO: ==17107== Releasing lock... [2025-04-23 12:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 12:31:27] Production.INFO: 76.5 MB #Memory Used# [2025-04-23 12:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 09:32:06 [end_date_ymd] => 2025-04-23 12:32:06 [RateCDR] => 1 ) [2025-04-23 12:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 09:32:06' and `end` < '2025-04-23 12:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 12:32:20] Production.INFO: count ==6459 [2025-04-23 12:32:23] Production.ERROR: pbx CDR StartTime 2025-04-23 09:32:06 - End Time 2025-04-23 12:32:06 [2025-04-23 12:32:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 12:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972295', 'tblTempUsageDetail_20' ) start [2025-04-23 12:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972295', 'tblTempUsageDetail_20' ) end [2025-04-23 12:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972295', 'tblTempVendorCDR_20' ) start [2025-04-23 12:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972295', 'tblTempVendorCDR_20' ) end [2025-04-23 12:32:23] Production.INFO: ProcessCDR(1,14972295,1,1,2) [2025-04-23 12:32:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:32:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:32:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972295', 'tblTempUsageDetail_20' ) start [2025-04-23 12:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972295', 'tblTempUsageDetail_20' ) end [2025-04-23 12:32:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 12:32:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 12:32:28] Production.INFO: ==17189== Releasing lock... [2025-04-23 12:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 12:32:28] Production.INFO: 76.5 MB #Memory Used# [2025-04-23 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 09:33:05 [end_date_ymd] => 2025-04-23 12:33:05 [RateCDR] => 1 ) [2025-04-23 12:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 09:33:05' and `end` < '2025-04-23 12:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 12:33:19] Production.INFO: count ==6463 [2025-04-23 12:33:22] Production.ERROR: pbx CDR StartTime 2025-04-23 09:33:05 - End Time 2025-04-23 12:33:05 [2025-04-23 12:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 12:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972300', 'tblTempUsageDetail_20' ) start [2025-04-23 12:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972300', 'tblTempUsageDetail_20' ) end [2025-04-23 12:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972300', 'tblTempVendorCDR_20' ) start [2025-04-23 12:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972300', 'tblTempVendorCDR_20' ) end [2025-04-23 12:33:23] Production.INFO: ProcessCDR(1,14972300,1,1,2) [2025-04-23 12:33:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:33:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972300', 'tblTempUsageDetail_20' ) start [2025-04-23 12:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972300', 'tblTempUsageDetail_20' ) end [2025-04-23 12:33:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 12:33:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 12:33:28] Production.INFO: ==17268== Releasing lock... [2025-04-23 12:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 12:33:28] Production.INFO: 76.5 MB #Memory Used# [2025-04-23 12:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 09:34:05 [end_date_ymd] => 2025-04-23 12:34:05 [RateCDR] => 1 ) [2025-04-23 12:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 09:34:05' and `end` < '2025-04-23 12:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 12:34:20] Production.INFO: count ==6510 [2025-04-23 12:34:23] Production.ERROR: pbx CDR StartTime 2025-04-23 09:34:05 - End Time 2025-04-23 12:34:05 [2025-04-23 12:34:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 12:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972305', 'tblTempUsageDetail_20' ) start [2025-04-23 12:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972305', 'tblTempUsageDetail_20' ) end [2025-04-23 12:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972305', 'tblTempVendorCDR_20' ) start [2025-04-23 12:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972305', 'tblTempVendorCDR_20' ) end [2025-04-23 12:34:23] Production.INFO: ProcessCDR(1,14972305,1,1,2) [2025-04-23 12:34:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:34:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:34:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:34:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972305', 'tblTempUsageDetail_20' ) start [2025-04-23 12:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972305', 'tblTempUsageDetail_20' ) end [2025-04-23 12:34:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 12:34:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 12:34:28] Production.INFO: ==17345== Releasing lock... [2025-04-23 12:34:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 12:34:28] Production.INFO: 77 MB #Memory Used# [2025-04-23 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 09:35:05 [end_date_ymd] => 2025-04-23 12:35:05 [RateCDR] => 1 ) [2025-04-23 12:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 09:35:05' and `end` < '2025-04-23 12:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 12:35:19] Production.INFO: count ==6497 [2025-04-23 12:35:22] Production.ERROR: pbx CDR StartTime 2025-04-23 09:35:05 - End Time 2025-04-23 12:35:05 [2025-04-23 12:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 12:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972310', 'tblTempUsageDetail_20' ) start [2025-04-23 12:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972310', 'tblTempUsageDetail_20' ) end [2025-04-23 12:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972310', 'tblTempVendorCDR_20' ) start [2025-04-23 12:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972310', 'tblTempVendorCDR_20' ) end [2025-04-23 12:35:22] Production.INFO: ProcessCDR(1,14972310,1,1,2) [2025-04-23 12:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972310', 'tblTempUsageDetail_20' ) start [2025-04-23 12:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972310', 'tblTempUsageDetail_20' ) end [2025-04-23 12:35:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 12:35:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 12:35:27] Production.INFO: ==17418== Releasing lock... [2025-04-23 12:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 12:35:27] Production.INFO: 76.75 MB #Memory Used# [2025-04-23 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 09:36:05 [end_date_ymd] => 2025-04-23 12:36:05 [RateCDR] => 1 ) [2025-04-23 12:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 09:36:05' and `end` < '2025-04-23 12:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 12:36:20] Production.INFO: count ==6493 [2025-04-23 12:36:22] Production.ERROR: pbx CDR StartTime 2025-04-23 09:36:05 - End Time 2025-04-23 12:36:05 [2025-04-23 12:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 12:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972315', 'tblTempUsageDetail_20' ) start [2025-04-23 12:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972315', 'tblTempUsageDetail_20' ) end [2025-04-23 12:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972315', 'tblTempVendorCDR_20' ) start [2025-04-23 12:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972315', 'tblTempVendorCDR_20' ) end [2025-04-23 12:36:23] Production.INFO: ProcessCDR(1,14972315,1,1,2) [2025-04-23 12:36:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:36:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972315', 'tblTempUsageDetail_20' ) start [2025-04-23 12:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972315', 'tblTempUsageDetail_20' ) end [2025-04-23 12:36:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 12:36:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 12:36:28] Production.INFO: ==17495== Releasing lock... [2025-04-23 12:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 12:36:28] Production.INFO: 76.75 MB #Memory Used# [2025-04-23 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 09:37:05 [end_date_ymd] => 2025-04-23 12:37:05 [RateCDR] => 1 ) [2025-04-23 12:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 09:37:05' and `end` < '2025-04-23 12:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 12:37:19] Production.INFO: count ==6562 [2025-04-23 12:37:22] Production.ERROR: pbx CDR StartTime 2025-04-23 09:37:05 - End Time 2025-04-23 12:37:05 [2025-04-23 12:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 12:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972320', 'tblTempUsageDetail_20' ) start [2025-04-23 12:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972320', 'tblTempUsageDetail_20' ) end [2025-04-23 12:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972320', 'tblTempVendorCDR_20' ) start [2025-04-23 12:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972320', 'tblTempVendorCDR_20' ) end [2025-04-23 12:37:23] Production.INFO: ProcessCDR(1,14972320,1,1,2) [2025-04-23 12:37:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:37:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972320', 'tblTempUsageDetail_20' ) start [2025-04-23 12:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972320', 'tblTempUsageDetail_20' ) end [2025-04-23 12:37:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 12:37:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 12:37:28] Production.INFO: ==17566== Releasing lock... [2025-04-23 12:37:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 12:37:28] Production.INFO: 77.25 MB #Memory Used# [2025-04-23 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 09:38:05 [end_date_ymd] => 2025-04-23 12:38:05 [RateCDR] => 1 ) [2025-04-23 12:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 09:38:05' and `end` < '2025-04-23 12:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 12:38:19] Production.INFO: count ==6573 [2025-04-23 12:38:22] Production.ERROR: pbx CDR StartTime 2025-04-23 09:38:05 - End Time 2025-04-23 12:38:05 [2025-04-23 12:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 12:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972325', 'tblTempUsageDetail_20' ) start [2025-04-23 12:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972325', 'tblTempUsageDetail_20' ) end [2025-04-23 12:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972325', 'tblTempVendorCDR_20' ) start [2025-04-23 12:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972325', 'tblTempVendorCDR_20' ) end [2025-04-23 12:38:22] Production.INFO: ProcessCDR(1,14972325,1,1,2) [2025-04-23 12:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972325', 'tblTempUsageDetail_20' ) start [2025-04-23 12:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972325', 'tblTempUsageDetail_20' ) end [2025-04-23 12:38:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 12:38:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 12:38:26] Production.INFO: ==17675== Releasing lock... [2025-04-23 12:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 12:38:26] Production.INFO: 77.25 MB #Memory Used# [2025-04-23 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 09:39:05 [end_date_ymd] => 2025-04-23 12:39:05 [RateCDR] => 1 ) [2025-04-23 12:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 09:39:05' and `end` < '2025-04-23 12:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 12:39:19] Production.INFO: count ==6572 [2025-04-23 12:39:22] Production.ERROR: pbx CDR StartTime 2025-04-23 09:39:05 - End Time 2025-04-23 12:39:05 [2025-04-23 12:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 12:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972330', 'tblTempUsageDetail_20' ) start [2025-04-23 12:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972330', 'tblTempUsageDetail_20' ) end [2025-04-23 12:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972330', 'tblTempVendorCDR_20' ) start [2025-04-23 12:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972330', 'tblTempVendorCDR_20' ) end [2025-04-23 12:39:22] Production.INFO: ProcessCDR(1,14972330,1,1,2) [2025-04-23 12:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972330', 'tblTempUsageDetail_20' ) start [2025-04-23 12:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972330', 'tblTempUsageDetail_20' ) end [2025-04-23 12:39:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 12:39:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 12:39:28] Production.INFO: ==17747== Releasing lock... [2025-04-23 12:39:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 12:39:28] Production.INFO: 77.25 MB #Memory Used# [2025-04-23 12:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 09:40:05 [end_date_ymd] => 2025-04-23 12:40:05 [RateCDR] => 1 ) [2025-04-23 12:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 09:40:05' and `end` < '2025-04-23 12:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 12:40:20] Production.INFO: count ==6593 [2025-04-23 12:40:23] Production.ERROR: pbx CDR StartTime 2025-04-23 09:40:05 - End Time 2025-04-23 12:40:05 [2025-04-23 12:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 12:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972336', 'tblTempUsageDetail_20' ) start [2025-04-23 12:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972336', 'tblTempUsageDetail_20' ) end [2025-04-23 12:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972336', 'tblTempVendorCDR_20' ) start [2025-04-23 12:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972336', 'tblTempVendorCDR_20' ) end [2025-04-23 12:40:23] Production.INFO: ProcessCDR(1,14972336,1,1,2) [2025-04-23 12:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972336', 'tblTempUsageDetail_20' ) start [2025-04-23 12:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972336', 'tblTempUsageDetail_20' ) end [2025-04-23 12:40:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 12:40:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 12:40:28] Production.INFO: ==17819== Releasing lock... [2025-04-23 12:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 12:40:28] Production.INFO: 77.5 MB #Memory Used# [2025-04-23 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 09:41:05 [end_date_ymd] => 2025-04-23 12:41:05 [RateCDR] => 1 ) [2025-04-23 12:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 09:41:05' and `end` < '2025-04-23 12:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 12:41:20] Production.INFO: count ==6602 [2025-04-23 12:41:22] Production.ERROR: pbx CDR StartTime 2025-04-23 09:41:05 - End Time 2025-04-23 12:41:05 [2025-04-23 12:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 12:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972341', 'tblTempUsageDetail_20' ) start [2025-04-23 12:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972341', 'tblTempUsageDetail_20' ) end [2025-04-23 12:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972341', 'tblTempVendorCDR_20' ) start [2025-04-23 12:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972341', 'tblTempVendorCDR_20' ) end [2025-04-23 12:41:23] Production.INFO: ProcessCDR(1,14972341,1,1,2) [2025-04-23 12:41:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:41:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972341', 'tblTempUsageDetail_20' ) start [2025-04-23 12:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972341', 'tblTempUsageDetail_20' ) end [2025-04-23 12:41:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 12:41:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 12:41:28] Production.INFO: ==17894== Releasing lock... [2025-04-23 12:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 12:41:28] Production.INFO: 77.5 MB #Memory Used# [2025-04-23 12:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 09:42:04 [end_date_ymd] => 2025-04-23 12:42:04 [RateCDR] => 1 ) [2025-04-23 12:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 09:42:04' and `end` < '2025-04-23 12:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 12:42:19] Production.INFO: count ==6620 [2025-04-23 12:42:21] Production.ERROR: pbx CDR StartTime 2025-04-23 09:42:04 - End Time 2025-04-23 12:42:04 [2025-04-23 12:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972346', 'tblTempUsageDetail_20' ) start [2025-04-23 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972346', 'tblTempUsageDetail_20' ) end [2025-04-23 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972346', 'tblTempVendorCDR_20' ) start [2025-04-23 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972346', 'tblTempVendorCDR_20' ) end [2025-04-23 12:42:22] Production.INFO: ProcessCDR(1,14972346,1,1,2) [2025-04-23 12:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972346', 'tblTempUsageDetail_20' ) start [2025-04-23 12:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972346', 'tblTempUsageDetail_20' ) end [2025-04-23 12:42:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 12:42:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 12:42:27] Production.INFO: ==17975== Releasing lock... [2025-04-23 12:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 12:42:27] Production.INFO: 77.75 MB #Memory Used# [2025-04-23 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 09:43:05 [end_date_ymd] => 2025-04-23 12:43:05 [RateCDR] => 1 ) [2025-04-23 12:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 09:43:05' and `end` < '2025-04-23 12:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 12:43:20] Production.INFO: count ==6653 [2025-04-23 12:43:22] Production.ERROR: pbx CDR StartTime 2025-04-23 09:43:05 - End Time 2025-04-23 12:43:05 [2025-04-23 12:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 12:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972351', 'tblTempUsageDetail_20' ) start [2025-04-23 12:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972351', 'tblTempUsageDetail_20' ) end [2025-04-23 12:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972351', 'tblTempVendorCDR_20' ) start [2025-04-23 12:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972351', 'tblTempVendorCDR_20' ) end [2025-04-23 12:43:23] Production.INFO: ProcessCDR(1,14972351,1,1,2) [2025-04-23 12:43:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:43:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:43:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:43:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972351', 'tblTempUsageDetail_20' ) start [2025-04-23 12:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972351', 'tblTempUsageDetail_20' ) end [2025-04-23 12:43:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 12:43:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 12:43:28] Production.INFO: ==18057== Releasing lock... [2025-04-23 12:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 12:43:28] Production.INFO: 78 MB #Memory Used# [2025-04-23 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 09:44:05 [end_date_ymd] => 2025-04-23 12:44:05 [RateCDR] => 1 ) [2025-04-23 12:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 09:44:05' and `end` < '2025-04-23 12:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 12:44:19] Production.INFO: count ==6704 [2025-04-23 12:44:22] Production.ERROR: pbx CDR StartTime 2025-04-23 09:44:05 - End Time 2025-04-23 12:44:05 [2025-04-23 12:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972356', 'tblTempUsageDetail_20' ) start [2025-04-23 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972356', 'tblTempUsageDetail_20' ) end [2025-04-23 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972356', 'tblTempVendorCDR_20' ) start [2025-04-23 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972356', 'tblTempVendorCDR_20' ) end [2025-04-23 12:44:22] Production.INFO: ProcessCDR(1,14972356,1,1,2) [2025-04-23 12:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972356', 'tblTempUsageDetail_20' ) start [2025-04-23 12:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972356', 'tblTempUsageDetail_20' ) end [2025-04-23 12:44:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 12:44:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 12:44:27] Production.INFO: ==18133== Releasing lock... [2025-04-23 12:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 12:44:27] Production.INFO: 78.25 MB #Memory Used# [2025-04-23 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 09:45:05 [end_date_ymd] => 2025-04-23 12:45:05 [RateCDR] => 1 ) [2025-04-23 12:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 09:45:05' and `end` < '2025-04-23 12:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 12:45:19] Production.INFO: count ==6712 [2025-04-23 12:45:22] Production.ERROR: pbx CDR StartTime 2025-04-23 09:45:05 - End Time 2025-04-23 12:45:05 [2025-04-23 12:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 12:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972361', 'tblTempUsageDetail_20' ) start [2025-04-23 12:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972361', 'tblTempUsageDetail_20' ) end [2025-04-23 12:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972361', 'tblTempVendorCDR_20' ) start [2025-04-23 12:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972361', 'tblTempVendorCDR_20' ) end [2025-04-23 12:45:23] Production.INFO: ProcessCDR(1,14972361,1,1,2) [2025-04-23 12:45:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:45:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972361', 'tblTempUsageDetail_20' ) start [2025-04-23 12:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972361', 'tblTempUsageDetail_20' ) end [2025-04-23 12:45:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 12:45:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 12:45:28] Production.INFO: ==18211== Releasing lock... [2025-04-23 12:45:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 12:45:28] Production.INFO: 78.5 MB #Memory Used# [2025-04-23 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 09:46:05 [end_date_ymd] => 2025-04-23 12:46:05 [RateCDR] => 1 ) [2025-04-23 12:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 09:46:05' and `end` < '2025-04-23 12:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 12:46:19] Production.INFO: count ==6706 [2025-04-23 12:46:22] Production.ERROR: pbx CDR StartTime 2025-04-23 09:46:05 - End Time 2025-04-23 12:46:05 [2025-04-23 12:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 12:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972366', 'tblTempUsageDetail_20' ) start [2025-04-23 12:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972366', 'tblTempUsageDetail_20' ) end [2025-04-23 12:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972366', 'tblTempVendorCDR_20' ) start [2025-04-23 12:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972366', 'tblTempVendorCDR_20' ) end [2025-04-23 12:46:23] Production.INFO: ProcessCDR(1,14972366,1,1,2) [2025-04-23 12:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972366', 'tblTempUsageDetail_20' ) start [2025-04-23 12:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972366', 'tblTempUsageDetail_20' ) end [2025-04-23 12:46:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 12:46:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 12:46:28] Production.INFO: ==18290== Releasing lock... [2025-04-23 12:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 12:46:28] Production.INFO: 78.25 MB #Memory Used# [2025-04-23 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 09:47:05 [end_date_ymd] => 2025-04-23 12:47:05 [RateCDR] => 1 ) [2025-04-23 12:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 09:47:05' and `end` < '2025-04-23 12:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 12:47:19] Production.INFO: count ==6692 [2025-04-23 12:47:21] Production.ERROR: pbx CDR StartTime 2025-04-23 09:47:05 - End Time 2025-04-23 12:47:05 [2025-04-23 12:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972371', 'tblTempUsageDetail_20' ) start [2025-04-23 12:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972371', 'tblTempUsageDetail_20' ) end [2025-04-23 12:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972371', 'tblTempVendorCDR_20' ) start [2025-04-23 12:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972371', 'tblTempVendorCDR_20' ) end [2025-04-23 12:47:22] Production.INFO: ProcessCDR(1,14972371,1,1,2) [2025-04-23 12:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972371', 'tblTempUsageDetail_20' ) start [2025-04-23 12:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972371', 'tblTempUsageDetail_20' ) end [2025-04-23 12:47:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 12:47:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 12:47:27] Production.INFO: ==18364== Releasing lock... [2025-04-23 12:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 12:47:27] Production.INFO: 78.25 MB #Memory Used# [2025-04-23 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 09:48:05 [end_date_ymd] => 2025-04-23 12:48:05 [RateCDR] => 1 ) [2025-04-23 12:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 09:48:05' and `end` < '2025-04-23 12:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 12:48:19] Production.INFO: count ==6684 [2025-04-23 12:48:22] Production.ERROR: pbx CDR StartTime 2025-04-23 09:48:05 - End Time 2025-04-23 12:48:05 [2025-04-23 12:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 12:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972376', 'tblTempUsageDetail_20' ) start [2025-04-23 12:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972376', 'tblTempUsageDetail_20' ) end [2025-04-23 12:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972376', 'tblTempVendorCDR_20' ) start [2025-04-23 12:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972376', 'tblTempVendorCDR_20' ) end [2025-04-23 12:48:23] Production.INFO: ProcessCDR(1,14972376,1,1,2) [2025-04-23 12:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972376', 'tblTempUsageDetail_20' ) start [2025-04-23 12:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972376', 'tblTempUsageDetail_20' ) end [2025-04-23 12:48:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 12:48:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 12:48:28] Production.INFO: ==18441== Releasing lock... [2025-04-23 12:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 12:48:28] Production.INFO: 78.25 MB #Memory Used# [2025-04-23 12:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 09:49:04 [end_date_ymd] => 2025-04-23 12:49:04 [RateCDR] => 1 ) [2025-04-23 12:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 09:49:04' and `end` < '2025-04-23 12:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 12:49:19] Production.INFO: count ==6687 [2025-04-23 12:49:22] Production.ERROR: pbx CDR StartTime 2025-04-23 09:49:04 - End Time 2025-04-23 12:49:04 [2025-04-23 12:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972381', 'tblTempUsageDetail_20' ) start [2025-04-23 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972381', 'tblTempUsageDetail_20' ) end [2025-04-23 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972381', 'tblTempVendorCDR_20' ) start [2025-04-23 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972381', 'tblTempVendorCDR_20' ) end [2025-04-23 12:49:22] Production.INFO: ProcessCDR(1,14972381,1,1,2) [2025-04-23 12:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972381', 'tblTempUsageDetail_20' ) start [2025-04-23 12:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972381', 'tblTempUsageDetail_20' ) end [2025-04-23 12:49:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 12:49:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 12:49:27] Production.INFO: ==18513== Releasing lock... [2025-04-23 12:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 12:49:27] Production.INFO: 78.25 MB #Memory Used# [2025-04-23 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 09:50:06 [end_date_ymd] => 2025-04-23 12:50:06 [RateCDR] => 1 ) [2025-04-23 12:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 09:50:06' and `end` < '2025-04-23 12:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 12:50:20] Production.INFO: count ==6702 [2025-04-23 12:50:23] Production.ERROR: pbx CDR StartTime 2025-04-23 09:50:06 - End Time 2025-04-23 12:50:06 [2025-04-23 12:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 12:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972387', 'tblTempUsageDetail_20' ) start [2025-04-23 12:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972387', 'tblTempUsageDetail_20' ) end [2025-04-23 12:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972387', 'tblTempVendorCDR_20' ) start [2025-04-23 12:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972387', 'tblTempVendorCDR_20' ) end [2025-04-23 12:50:23] Production.INFO: ProcessCDR(1,14972387,1,1,2) [2025-04-23 12:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:50:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:50:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972387', 'tblTempUsageDetail_20' ) start [2025-04-23 12:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972387', 'tblTempUsageDetail_20' ) end [2025-04-23 12:50:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 12:50:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 12:50:28] Production.INFO: ==18587== Releasing lock... [2025-04-23 12:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 12:50:28] Production.INFO: 78.25 MB #Memory Used# [2025-04-23 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 09:51:05 [end_date_ymd] => 2025-04-23 12:51:05 [RateCDR] => 1 ) [2025-04-23 12:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 09:51:05' and `end` < '2025-04-23 12:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 12:51:19] Production.INFO: count ==6732 [2025-04-23 12:51:22] Production.ERROR: pbx CDR StartTime 2025-04-23 09:51:05 - End Time 2025-04-23 12:51:05 [2025-04-23 12:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972392', 'tblTempUsageDetail_20' ) start [2025-04-23 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972392', 'tblTempUsageDetail_20' ) end [2025-04-23 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972392', 'tblTempVendorCDR_20' ) start [2025-04-23 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972392', 'tblTempVendorCDR_20' ) end [2025-04-23 12:51:22] Production.INFO: ProcessCDR(1,14972392,1,1,2) [2025-04-23 12:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972392', 'tblTempUsageDetail_20' ) start [2025-04-23 12:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972392', 'tblTempUsageDetail_20' ) end [2025-04-23 12:51:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 12:51:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 12:51:27] Production.INFO: ==18663== Releasing lock... [2025-04-23 12:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 12:51:27] Production.INFO: 78.5 MB #Memory Used# [2025-04-23 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 09:52:05 [end_date_ymd] => 2025-04-23 12:52:05 [RateCDR] => 1 ) [2025-04-23 12:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 09:52:05' and `end` < '2025-04-23 12:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 12:52:20] Production.INFO: count ==6740 [2025-04-23 12:52:23] Production.ERROR: pbx CDR StartTime 2025-04-23 09:52:05 - End Time 2025-04-23 12:52:05 [2025-04-23 12:52:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 12:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972397', 'tblTempUsageDetail_20' ) start [2025-04-23 12:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972397', 'tblTempUsageDetail_20' ) end [2025-04-23 12:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972397', 'tblTempVendorCDR_20' ) start [2025-04-23 12:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972397', 'tblTempVendorCDR_20' ) end [2025-04-23 12:52:24] Production.INFO: ProcessCDR(1,14972397,1,1,2) [2025-04-23 12:52:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:52:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:52:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:52:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972397', 'tblTempUsageDetail_20' ) start [2025-04-23 12:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972397', 'tblTempUsageDetail_20' ) end [2025-04-23 12:52:29] Production.ERROR: pbx prc_insertCDR start [2025-04-23 12:52:29] Production.ERROR: pbx prc_insertCDR end [2025-04-23 12:52:29] Production.INFO: ==18734== Releasing lock... [2025-04-23 12:52:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 12:52:29] Production.INFO: 78.5 MB #Memory Used# [2025-04-23 12:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 09:53:06 [end_date_ymd] => 2025-04-23 12:53:06 [RateCDR] => 1 ) [2025-04-23 12:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 09:53:06' and `end` < '2025-04-23 12:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 12:53:20] Production.INFO: count ==6741 [2025-04-23 12:53:23] Production.ERROR: pbx CDR StartTime 2025-04-23 09:53:06 - End Time 2025-04-23 12:53:06 [2025-04-23 12:53:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 12:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972402', 'tblTempUsageDetail_20' ) start [2025-04-23 12:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972402', 'tblTempUsageDetail_20' ) end [2025-04-23 12:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972402', 'tblTempVendorCDR_20' ) start [2025-04-23 12:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972402', 'tblTempVendorCDR_20' ) end [2025-04-23 12:53:23] Production.INFO: ProcessCDR(1,14972402,1,1,2) [2025-04-23 12:53:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:53:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:53:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:53:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972402', 'tblTempUsageDetail_20' ) start [2025-04-23 12:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972402', 'tblTempUsageDetail_20' ) end [2025-04-23 12:53:29] Production.ERROR: pbx prc_insertCDR start [2025-04-23 12:53:29] Production.ERROR: pbx prc_insertCDR end [2025-04-23 12:53:29] Production.INFO: ==18810== Releasing lock... [2025-04-23 12:53:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 12:53:29] Production.INFO: 78.5 MB #Memory Used# [2025-04-23 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 09:54:05 [end_date_ymd] => 2025-04-23 12:54:05 [RateCDR] => 1 ) [2025-04-23 12:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 09:54:05' and `end` < '2025-04-23 12:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 12:54:19] Production.INFO: count ==6754 [2025-04-23 12:54:22] Production.ERROR: pbx CDR StartTime 2025-04-23 09:54:05 - End Time 2025-04-23 12:54:05 [2025-04-23 12:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 12:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972407', 'tblTempUsageDetail_20' ) start [2025-04-23 12:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972407', 'tblTempUsageDetail_20' ) end [2025-04-23 12:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972407', 'tblTempVendorCDR_20' ) start [2025-04-23 12:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972407', 'tblTempVendorCDR_20' ) end [2025-04-23 12:54:23] Production.INFO: ProcessCDR(1,14972407,1,1,2) [2025-04-23 12:54:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:54:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:54:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:54:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972407', 'tblTempUsageDetail_20' ) start [2025-04-23 12:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972407', 'tblTempUsageDetail_20' ) end [2025-04-23 12:54:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 12:54:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 12:54:28] Production.INFO: ==18918== Releasing lock... [2025-04-23 12:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 12:54:28] Production.INFO: 78.75 MB #Memory Used# [2025-04-23 12:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 09:55:06 [end_date_ymd] => 2025-04-23 12:55:06 [RateCDR] => 1 ) [2025-04-23 12:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 09:55:06' and `end` < '2025-04-23 12:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 12:55:20] Production.INFO: count ==6790 [2025-04-23 12:55:22] Production.ERROR: pbx CDR StartTime 2025-04-23 09:55:06 - End Time 2025-04-23 12:55:06 [2025-04-23 12:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972412', 'tblTempUsageDetail_20' ) start [2025-04-23 12:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972412', 'tblTempUsageDetail_20' ) end [2025-04-23 12:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972412', 'tblTempVendorCDR_20' ) start [2025-04-23 12:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972412', 'tblTempVendorCDR_20' ) end [2025-04-23 12:55:23] Production.INFO: ProcessCDR(1,14972412,1,1,2) [2025-04-23 12:55:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:55:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:55:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:55:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972412', 'tblTempUsageDetail_20' ) start [2025-04-23 12:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972412', 'tblTempUsageDetail_20' ) end [2025-04-23 12:55:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 12:55:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 12:55:28] Production.INFO: ==18992== Releasing lock... [2025-04-23 12:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 12:55:28] Production.INFO: 79 MB #Memory Used# [2025-04-23 12:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 09:56:05 [end_date_ymd] => 2025-04-23 12:56:05 [RateCDR] => 1 ) [2025-04-23 12:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 09:56:05' and `end` < '2025-04-23 12:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 12:56:19] Production.INFO: count ==6791 [2025-04-23 12:56:22] Production.ERROR: pbx CDR StartTime 2025-04-23 09:56:05 - End Time 2025-04-23 12:56:05 [2025-04-23 12:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972417', 'tblTempUsageDetail_20' ) start [2025-04-23 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972417', 'tblTempUsageDetail_20' ) end [2025-04-23 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972417', 'tblTempVendorCDR_20' ) start [2025-04-23 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972417', 'tblTempVendorCDR_20' ) end [2025-04-23 12:56:22] Production.INFO: ProcessCDR(1,14972417,1,1,2) [2025-04-23 12:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972417', 'tblTempUsageDetail_20' ) start [2025-04-23 12:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972417', 'tblTempUsageDetail_20' ) end [2025-04-23 12:56:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 12:56:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 12:56:27] Production.INFO: ==19064== Releasing lock... [2025-04-23 12:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 12:56:27] Production.INFO: 79 MB #Memory Used# [2025-04-23 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 09:57:05 [end_date_ymd] => 2025-04-23 12:57:05 [RateCDR] => 1 ) [2025-04-23 12:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 09:57:05' and `end` < '2025-04-23 12:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 12:57:19] Production.INFO: count ==6795 [2025-04-23 12:57:22] Production.ERROR: pbx CDR StartTime 2025-04-23 09:57:05 - End Time 2025-04-23 12:57:05 [2025-04-23 12:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 12:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972422', 'tblTempUsageDetail_20' ) start [2025-04-23 12:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972422', 'tblTempUsageDetail_20' ) end [2025-04-23 12:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972422', 'tblTempVendorCDR_20' ) start [2025-04-23 12:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972422', 'tblTempVendorCDR_20' ) end [2025-04-23 12:57:22] Production.INFO: ProcessCDR(1,14972422,1,1,2) [2025-04-23 12:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972422', 'tblTempUsageDetail_20' ) start [2025-04-23 12:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972422', 'tblTempUsageDetail_20' ) end [2025-04-23 12:57:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 12:57:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 12:57:27] Production.INFO: ==19136== Releasing lock... [2025-04-23 12:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 12:57:27] Production.INFO: 79 MB #Memory Used# [2025-04-23 12:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 09:58:06 [end_date_ymd] => 2025-04-23 12:58:06 [RateCDR] => 1 ) [2025-04-23 12:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 09:58:06' and `end` < '2025-04-23 12:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 12:58:20] Production.INFO: count ==6803 [2025-04-23 12:58:23] Production.ERROR: pbx CDR StartTime 2025-04-23 09:58:06 - End Time 2025-04-23 12:58:06 [2025-04-23 12:58:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 12:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972427', 'tblTempUsageDetail_20' ) start [2025-04-23 12:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972427', 'tblTempUsageDetail_20' ) end [2025-04-23 12:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972427', 'tblTempVendorCDR_20' ) start [2025-04-23 12:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972427', 'tblTempVendorCDR_20' ) end [2025-04-23 12:58:24] Production.INFO: ProcessCDR(1,14972427,1,1,2) [2025-04-23 12:58:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:58:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:58:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:58:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972427', 'tblTempUsageDetail_20' ) start [2025-04-23 12:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972427', 'tblTempUsageDetail_20' ) end [2025-04-23 12:58:29] Production.ERROR: pbx prc_insertCDR start [2025-04-23 12:58:29] Production.ERROR: pbx prc_insertCDR end [2025-04-23 12:58:29] Production.INFO: ==19211== Releasing lock... [2025-04-23 12:58:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 12:58:29] Production.INFO: 79 MB #Memory Used# [2025-04-23 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 09:59:05 [end_date_ymd] => 2025-04-23 12:59:05 [RateCDR] => 1 ) [2025-04-23 12:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 09:59:05' and `end` < '2025-04-23 12:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 12:59:19] Production.INFO: count ==6828 [2025-04-23 12:59:22] Production.ERROR: pbx CDR StartTime 2025-04-23 09:59:05 - End Time 2025-04-23 12:59:05 [2025-04-23 12:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 12:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972432', 'tblTempUsageDetail_20' ) start [2025-04-23 12:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972432', 'tblTempUsageDetail_20' ) end [2025-04-23 12:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972432', 'tblTempVendorCDR_20' ) start [2025-04-23 12:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972432', 'tblTempVendorCDR_20' ) end [2025-04-23 12:59:23] Production.INFO: ProcessCDR(1,14972432,1,1,2) [2025-04-23 12:59:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 12:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 12:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972432', 'tblTempUsageDetail_20' ) start [2025-04-23 12:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972432', 'tblTempUsageDetail_20' ) end [2025-04-23 12:59:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 12:59:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 12:59:27] Production.INFO: ==19290== Releasing lock... [2025-04-23 12:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 12:59:27] Production.INFO: 79.25 MB #Memory Used# [2025-04-23 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 10:00:06 [end_date_ymd] => 2025-04-23 13:00:06 [RateCDR] => 1 ) [2025-04-23 13:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 10:00:06' and `end` < '2025-04-23 13:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 13:00:20] Production.INFO: count ==6821 [2025-04-23 13:00:23] Production.ERROR: pbx CDR StartTime 2025-04-23 10:00:06 - End Time 2025-04-23 13:00:06 [2025-04-23 13:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972438', 'tblTempUsageDetail_20' ) start [2025-04-23 13:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972438', 'tblTempUsageDetail_20' ) end [2025-04-23 13:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972438', 'tblTempVendorCDR_20' ) start [2025-04-23 13:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972438', 'tblTempVendorCDR_20' ) end [2025-04-23 13:00:24] Production.INFO: ProcessCDR(1,14972438,1,1,2) [2025-04-23 13:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972438', 'tblTempUsageDetail_20' ) start [2025-04-23 13:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972438', 'tblTempUsageDetail_20' ) end [2025-04-23 13:00:29] Production.ERROR: pbx prc_insertCDR start [2025-04-23 13:00:29] Production.ERROR: pbx prc_insertCDR end [2025-04-23 13:00:29] Production.INFO: ==19363== Releasing lock... [2025-04-23 13:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 13:00:29] Production.INFO: 79.25 MB #Memory Used# [2025-04-23 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 10:01:05 [end_date_ymd] => 2025-04-23 13:01:05 [RateCDR] => 1 ) [2025-04-23 13:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 10:01:05' and `end` < '2025-04-23 13:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 13:01:20] Production.INFO: count ==6878 [2025-04-23 13:01:23] Production.ERROR: pbx CDR StartTime 2025-04-23 10:01:05 - End Time 2025-04-23 13:01:05 [2025-04-23 13:01:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 13:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972443', 'tblTempUsageDetail_20' ) start [2025-04-23 13:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972443', 'tblTempUsageDetail_20' ) end [2025-04-23 13:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972443', 'tblTempVendorCDR_20' ) start [2025-04-23 13:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972443', 'tblTempVendorCDR_20' ) end [2025-04-23 13:01:23] Production.INFO: ProcessCDR(1,14972443,1,1,2) [2025-04-23 13:01:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:01:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:01:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:01:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972443', 'tblTempUsageDetail_20' ) start [2025-04-23 13:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972443', 'tblTempUsageDetail_20' ) end [2025-04-23 13:01:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 13:01:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 13:01:28] Production.INFO: ==19455== Releasing lock... [2025-04-23 13:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 13:01:28] Production.INFO: 79.75 MB #Memory Used# [2025-04-23 13:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 10:02:06 [end_date_ymd] => 2025-04-23 13:02:06 [RateCDR] => 1 ) [2025-04-23 13:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 10:02:06' and `end` < '2025-04-23 13:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 13:02:20] Production.INFO: count ==6903 [2025-04-23 13:02:22] Production.ERROR: pbx CDR StartTime 2025-04-23 10:02:06 - End Time 2025-04-23 13:02:06 [2025-04-23 13:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 13:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972448', 'tblTempUsageDetail_20' ) start [2025-04-23 13:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972448', 'tblTempUsageDetail_20' ) end [2025-04-23 13:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972448', 'tblTempVendorCDR_20' ) start [2025-04-23 13:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972448', 'tblTempVendorCDR_20' ) end [2025-04-23 13:02:23] Production.INFO: ProcessCDR(1,14972448,1,1,2) [2025-04-23 13:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972448', 'tblTempUsageDetail_20' ) start [2025-04-23 13:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972448', 'tblTempUsageDetail_20' ) end [2025-04-23 13:02:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 13:02:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 13:02:28] Production.INFO: ==19530== Releasing lock... [2025-04-23 13:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 13:02:28] Production.INFO: 79.75 MB #Memory Used# [2025-04-23 13:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 10:03:05 [end_date_ymd] => 2025-04-23 13:03:05 [RateCDR] => 1 ) [2025-04-23 13:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 10:03:05' and `end` < '2025-04-23 13:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 13:03:19] Production.INFO: count ==6900 [2025-04-23 13:03:22] Production.ERROR: pbx CDR StartTime 2025-04-23 10:03:05 - End Time 2025-04-23 13:03:05 [2025-04-23 13:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972453', 'tblTempUsageDetail_20' ) start [2025-04-23 13:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972453', 'tblTempUsageDetail_20' ) end [2025-04-23 13:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972453', 'tblTempVendorCDR_20' ) start [2025-04-23 13:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972453', 'tblTempVendorCDR_20' ) end [2025-04-23 13:03:23] Production.INFO: ProcessCDR(1,14972453,1,1,2) [2025-04-23 13:03:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:03:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:03:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:03:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972453', 'tblTempUsageDetail_20' ) start [2025-04-23 13:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972453', 'tblTempUsageDetail_20' ) end [2025-04-23 13:03:29] Production.ERROR: pbx prc_insertCDR start [2025-04-23 13:03:29] Production.ERROR: pbx prc_insertCDR end [2025-04-23 13:03:29] Production.INFO: ==19603== Releasing lock... [2025-04-23 13:03:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 13:03:29] Production.INFO: 79.75 MB #Memory Used# [2025-04-23 13:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 10:04:05 [end_date_ymd] => 2025-04-23 13:04:05 [RateCDR] => 1 ) [2025-04-23 13:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 10:04:05' and `end` < '2025-04-23 13:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 13:04:19] Production.INFO: count ==6906 [2025-04-23 13:04:22] Production.ERROR: pbx CDR StartTime 2025-04-23 10:04:05 - End Time 2025-04-23 13:04:05 [2025-04-23 13:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972458', 'tblTempUsageDetail_20' ) start [2025-04-23 13:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972458', 'tblTempUsageDetail_20' ) end [2025-04-23 13:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972458', 'tblTempVendorCDR_20' ) start [2025-04-23 13:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972458', 'tblTempVendorCDR_20' ) end [2025-04-23 13:04:23] Production.INFO: ProcessCDR(1,14972458,1,1,2) [2025-04-23 13:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972458', 'tblTempUsageDetail_20' ) start [2025-04-23 13:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972458', 'tblTempUsageDetail_20' ) end [2025-04-23 13:04:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 13:04:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 13:04:28] Production.INFO: ==19680== Releasing lock... [2025-04-23 13:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 13:04:28] Production.INFO: 79.75 MB #Memory Used# [2025-04-23 13:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 10:05:05 [end_date_ymd] => 2025-04-23 13:05:05 [RateCDR] => 1 ) [2025-04-23 13:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 10:05:05' and `end` < '2025-04-23 13:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 13:05:19] Production.INFO: count ==6908 [2025-04-23 13:05:22] Production.ERROR: pbx CDR StartTime 2025-04-23 10:05:05 - End Time 2025-04-23 13:05:05 [2025-04-23 13:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 13:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972463', 'tblTempUsageDetail_20' ) start [2025-04-23 13:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972463', 'tblTempUsageDetail_20' ) end [2025-04-23 13:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972463', 'tblTempVendorCDR_20' ) start [2025-04-23 13:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972463', 'tblTempVendorCDR_20' ) end [2025-04-23 13:05:22] Production.INFO: ProcessCDR(1,14972463,1,1,2) [2025-04-23 13:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972463', 'tblTempUsageDetail_20' ) start [2025-04-23 13:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972463', 'tblTempUsageDetail_20' ) end [2025-04-23 13:05:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 13:05:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 13:05:27] Production.INFO: ==19753== Releasing lock... [2025-04-23 13:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 13:05:27] Production.INFO: 79.75 MB #Memory Used# [2025-04-23 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 10:06:05 [end_date_ymd] => 2025-04-23 13:06:05 [RateCDR] => 1 ) [2025-04-23 13:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 10:06:05' and `end` < '2025-04-23 13:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 13:06:19] Production.INFO: count ==6904 [2025-04-23 13:06:22] Production.ERROR: pbx CDR StartTime 2025-04-23 10:06:05 - End Time 2025-04-23 13:06:05 [2025-04-23 13:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 13:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972468', 'tblTempUsageDetail_20' ) start [2025-04-23 13:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972468', 'tblTempUsageDetail_20' ) end [2025-04-23 13:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972468', 'tblTempVendorCDR_20' ) start [2025-04-23 13:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972468', 'tblTempVendorCDR_20' ) end [2025-04-23 13:06:23] Production.INFO: ProcessCDR(1,14972468,1,1,2) [2025-04-23 13:06:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972468', 'tblTempUsageDetail_20' ) start [2025-04-23 13:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972468', 'tblTempUsageDetail_20' ) end [2025-04-23 13:06:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 13:06:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 13:06:28] Production.INFO: ==19826== Releasing lock... [2025-04-23 13:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 13:06:28] Production.INFO: 79.75 MB #Memory Used# [2025-04-23 13:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 10:07:05 [end_date_ymd] => 2025-04-23 13:07:05 [RateCDR] => 1 ) [2025-04-23 13:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 10:07:05' and `end` < '2025-04-23 13:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 13:07:19] Production.INFO: count ==6894 [2025-04-23 13:07:22] Production.ERROR: pbx CDR StartTime 2025-04-23 10:07:05 - End Time 2025-04-23 13:07:05 [2025-04-23 13:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 13:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972473', 'tblTempUsageDetail_20' ) start [2025-04-23 13:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972473', 'tblTempUsageDetail_20' ) end [2025-04-23 13:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972473', 'tblTempVendorCDR_20' ) start [2025-04-23 13:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972473', 'tblTempVendorCDR_20' ) end [2025-04-23 13:07:23] Production.INFO: ProcessCDR(1,14972473,1,1,2) [2025-04-23 13:07:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972473', 'tblTempUsageDetail_20' ) start [2025-04-23 13:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972473', 'tblTempUsageDetail_20' ) end [2025-04-23 13:07:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 13:07:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 13:07:27] Production.INFO: ==19898== Releasing lock... [2025-04-23 13:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 13:07:27] Production.INFO: 79.75 MB #Memory Used# [2025-04-23 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 10:08:05 [end_date_ymd] => 2025-04-23 13:08:05 [RateCDR] => 1 ) [2025-04-23 13:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 10:08:05' and `end` < '2025-04-23 13:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 13:08:19] Production.INFO: count ==6850 [2025-04-23 13:08:22] Production.ERROR: pbx CDR StartTime 2025-04-23 10:08:05 - End Time 2025-04-23 13:08:05 [2025-04-23 13:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972478', 'tblTempUsageDetail_20' ) start [2025-04-23 13:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972478', 'tblTempUsageDetail_20' ) end [2025-04-23 13:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972478', 'tblTempVendorCDR_20' ) start [2025-04-23 13:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972478', 'tblTempVendorCDR_20' ) end [2025-04-23 13:08:23] Production.INFO: ProcessCDR(1,14972478,1,1,2) [2025-04-23 13:08:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972478', 'tblTempUsageDetail_20' ) start [2025-04-23 13:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972478', 'tblTempUsageDetail_20' ) end [2025-04-23 13:08:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 13:08:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 13:08:28] Production.INFO: ==19971== Releasing lock... [2025-04-23 13:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 13:08:28] Production.INFO: 79.5 MB #Memory Used# [2025-04-23 13:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 10:09:05 [end_date_ymd] => 2025-04-23 13:09:05 [RateCDR] => 1 ) [2025-04-23 13:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 10:09:05' and `end` < '2025-04-23 13:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 13:09:19] Production.INFO: count ==6821 [2025-04-23 13:09:22] Production.ERROR: pbx CDR StartTime 2025-04-23 10:09:05 - End Time 2025-04-23 13:09:05 [2025-04-23 13:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 13:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972483', 'tblTempUsageDetail_20' ) start [2025-04-23 13:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972483', 'tblTempUsageDetail_20' ) end [2025-04-23 13:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972483', 'tblTempVendorCDR_20' ) start [2025-04-23 13:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972483', 'tblTempVendorCDR_20' ) end [2025-04-23 13:09:23] Production.INFO: ProcessCDR(1,14972483,1,1,2) [2025-04-23 13:09:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:09:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:09:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:09:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972483', 'tblTempUsageDetail_20' ) start [2025-04-23 13:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972483', 'tblTempUsageDetail_20' ) end [2025-04-23 13:09:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 13:09:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 13:09:28] Production.INFO: ==20088== Releasing lock... [2025-04-23 13:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 13:09:28] Production.INFO: 79.25 MB #Memory Used# [2025-04-23 13:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 10:10:05 [end_date_ymd] => 2025-04-23 13:10:05 [RateCDR] => 1 ) [2025-04-23 13:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 10:10:05' and `end` < '2025-04-23 13:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 13:10:20] Production.INFO: count ==6773 [2025-04-23 13:10:22] Production.ERROR: pbx CDR StartTime 2025-04-23 10:10:05 - End Time 2025-04-23 13:10:05 [2025-04-23 13:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972489', 'tblTempUsageDetail_20' ) start [2025-04-23 13:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972489', 'tblTempUsageDetail_20' ) end [2025-04-23 13:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972489', 'tblTempVendorCDR_20' ) start [2025-04-23 13:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972489', 'tblTempVendorCDR_20' ) end [2025-04-23 13:10:23] Production.INFO: ProcessCDR(1,14972489,1,1,2) [2025-04-23 13:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972489', 'tblTempUsageDetail_20' ) start [2025-04-23 13:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972489', 'tblTempUsageDetail_20' ) end [2025-04-23 13:10:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 13:10:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 13:10:28] Production.INFO: ==20158== Releasing lock... [2025-04-23 13:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 13:10:28] Production.INFO: 78.75 MB #Memory Used# [2025-04-23 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 10:11:05 [end_date_ymd] => 2025-04-23 13:11:05 [RateCDR] => 1 ) [2025-04-23 13:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 10:11:05' and `end` < '2025-04-23 13:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 13:11:19] Production.INFO: count ==6770 [2025-04-23 13:11:22] Production.ERROR: pbx CDR StartTime 2025-04-23 10:11:05 - End Time 2025-04-23 13:11:05 [2025-04-23 13:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 13:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972494', 'tblTempUsageDetail_20' ) start [2025-04-23 13:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972494', 'tblTempUsageDetail_20' ) end [2025-04-23 13:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972494', 'tblTempVendorCDR_20' ) start [2025-04-23 13:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972494', 'tblTempVendorCDR_20' ) end [2025-04-23 13:11:23] Production.INFO: ProcessCDR(1,14972494,1,1,2) [2025-04-23 13:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972494', 'tblTempUsageDetail_20' ) start [2025-04-23 13:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972494', 'tblTempUsageDetail_20' ) end [2025-04-23 13:11:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 13:11:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 13:11:28] Production.INFO: ==20237== Releasing lock... [2025-04-23 13:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 13:11:28] Production.INFO: 78.75 MB #Memory Used# [2025-04-23 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 10:12:05 [end_date_ymd] => 2025-04-23 13:12:05 [RateCDR] => 1 ) [2025-04-23 13:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 10:12:05' and `end` < '2025-04-23 13:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 13:12:19] Production.INFO: count ==6774 [2025-04-23 13:12:22] Production.ERROR: pbx CDR StartTime 2025-04-23 10:12:05 - End Time 2025-04-23 13:12:05 [2025-04-23 13:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972499', 'tblTempUsageDetail_20' ) start [2025-04-23 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972499', 'tblTempUsageDetail_20' ) end [2025-04-23 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972499', 'tblTempVendorCDR_20' ) start [2025-04-23 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972499', 'tblTempVendorCDR_20' ) end [2025-04-23 13:12:22] Production.INFO: ProcessCDR(1,14972499,1,1,2) [2025-04-23 13:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972499', 'tblTempUsageDetail_20' ) start [2025-04-23 13:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972499', 'tblTempUsageDetail_20' ) end [2025-04-23 13:12:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 13:12:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 13:12:27] Production.INFO: ==20309== Releasing lock... [2025-04-23 13:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 13:12:27] Production.INFO: 78.75 MB #Memory Used# [2025-04-23 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 10:13:05 [end_date_ymd] => 2025-04-23 13:13:05 [RateCDR] => 1 ) [2025-04-23 13:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 10:13:05' and `end` < '2025-04-23 13:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 13:13:19] Production.INFO: count ==6766 [2025-04-23 13:13:22] Production.ERROR: pbx CDR StartTime 2025-04-23 10:13:05 - End Time 2025-04-23 13:13:05 [2025-04-23 13:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972504', 'tblTempUsageDetail_20' ) start [2025-04-23 13:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972504', 'tblTempUsageDetail_20' ) end [2025-04-23 13:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972504', 'tblTempVendorCDR_20' ) start [2025-04-23 13:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972504', 'tblTempVendorCDR_20' ) end [2025-04-23 13:13:23] Production.INFO: ProcessCDR(1,14972504,1,1,2) [2025-04-23 13:13:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972504', 'tblTempUsageDetail_20' ) start [2025-04-23 13:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972504', 'tblTempUsageDetail_20' ) end [2025-04-23 13:13:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 13:13:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 13:13:26] Production.INFO: ==20388== Releasing lock... [2025-04-23 13:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 13:13:26] Production.INFO: 78.75 MB #Memory Used# [2025-04-23 13:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 10:14:06 [end_date_ymd] => 2025-04-23 13:14:06 [RateCDR] => 1 ) [2025-04-23 13:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 10:14:06' and `end` < '2025-04-23 13:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 13:14:20] Production.INFO: count ==6798 [2025-04-23 13:14:23] Production.ERROR: pbx CDR StartTime 2025-04-23 10:14:06 - End Time 2025-04-23 13:14:06 [2025-04-23 13:14:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 13:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972509', 'tblTempUsageDetail_20' ) start [2025-04-23 13:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972509', 'tblTempUsageDetail_20' ) end [2025-04-23 13:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972509', 'tblTempVendorCDR_20' ) start [2025-04-23 13:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972509', 'tblTempVendorCDR_20' ) end [2025-04-23 13:14:23] Production.INFO: ProcessCDR(1,14972509,1,1,2) [2025-04-23 13:14:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:14:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:14:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:14:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972509', 'tblTempUsageDetail_20' ) start [2025-04-23 13:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972509', 'tblTempUsageDetail_20' ) end [2025-04-23 13:14:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 13:14:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 13:14:28] Production.INFO: ==20461== Releasing lock... [2025-04-23 13:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 13:14:28] Production.INFO: 79 MB #Memory Used# [2025-04-23 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 10:15:05 [end_date_ymd] => 2025-04-23 13:15:05 [RateCDR] => 1 ) [2025-04-23 13:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 10:15:05' and `end` < '2025-04-23 13:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 13:15:19] Production.INFO: count ==6763 [2025-04-23 13:15:22] Production.ERROR: pbx CDR StartTime 2025-04-23 10:15:05 - End Time 2025-04-23 13:15:05 [2025-04-23 13:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 13:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972514', 'tblTempUsageDetail_20' ) start [2025-04-23 13:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972514', 'tblTempUsageDetail_20' ) end [2025-04-23 13:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972514', 'tblTempVendorCDR_20' ) start [2025-04-23 13:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972514', 'tblTempVendorCDR_20' ) end [2025-04-23 13:15:22] Production.INFO: ProcessCDR(1,14972514,1,1,2) [2025-04-23 13:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:15:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972514', 'tblTempUsageDetail_20' ) start [2025-04-23 13:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972514', 'tblTempUsageDetail_20' ) end [2025-04-23 13:15:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 13:15:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 13:15:28] Production.INFO: ==20531== Releasing lock... [2025-04-23 13:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 13:15:28] Production.INFO: 78.75 MB #Memory Used# [2025-04-23 13:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 10:16:05 [end_date_ymd] => 2025-04-23 13:16:05 [RateCDR] => 1 ) [2025-04-23 13:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 10:16:05' and `end` < '2025-04-23 13:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 13:16:19] Production.INFO: count ==6767 [2025-04-23 13:16:22] Production.ERROR: pbx CDR StartTime 2025-04-23 10:16:05 - End Time 2025-04-23 13:16:05 [2025-04-23 13:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 13:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972519', 'tblTempUsageDetail_20' ) start [2025-04-23 13:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972519', 'tblTempUsageDetail_20' ) end [2025-04-23 13:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972519', 'tblTempVendorCDR_20' ) start [2025-04-23 13:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972519', 'tblTempVendorCDR_20' ) end [2025-04-23 13:16:23] Production.INFO: ProcessCDR(1,14972519,1,1,2) [2025-04-23 13:16:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:16:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972519', 'tblTempUsageDetail_20' ) start [2025-04-23 13:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972519', 'tblTempUsageDetail_20' ) end [2025-04-23 13:16:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 13:16:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 13:16:28] Production.INFO: ==20607== Releasing lock... [2025-04-23 13:16:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 13:16:28] Production.INFO: 78.75 MB #Memory Used# [2025-04-23 13:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 10:17:04 [end_date_ymd] => 2025-04-23 13:17:04 [RateCDR] => 1 ) [2025-04-23 13:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 10:17:04' and `end` < '2025-04-23 13:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 13:17:18] Production.INFO: count ==6761 [2025-04-23 13:17:21] Production.ERROR: pbx CDR StartTime 2025-04-23 10:17:04 - End Time 2025-04-23 13:17:04 [2025-04-23 13:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972524', 'tblTempUsageDetail_20' ) start [2025-04-23 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972524', 'tblTempUsageDetail_20' ) end [2025-04-23 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972524', 'tblTempVendorCDR_20' ) start [2025-04-23 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972524', 'tblTempVendorCDR_20' ) end [2025-04-23 13:17:22] Production.INFO: ProcessCDR(1,14972524,1,1,2) [2025-04-23 13:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972524', 'tblTempUsageDetail_20' ) start [2025-04-23 13:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972524', 'tblTempUsageDetail_20' ) end [2025-04-23 13:17:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 13:17:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 13:17:27] Production.INFO: ==20678== Releasing lock... [2025-04-23 13:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 13:17:27] Production.INFO: 78.75 MB #Memory Used# [2025-04-23 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 10:18:05 [end_date_ymd] => 2025-04-23 13:18:05 [RateCDR] => 1 ) [2025-04-23 13:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 10:18:05' and `end` < '2025-04-23 13:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 13:18:19] Production.INFO: count ==6752 [2025-04-23 13:18:22] Production.ERROR: pbx CDR StartTime 2025-04-23 10:18:05 - End Time 2025-04-23 13:18:05 [2025-04-23 13:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972529', 'tblTempUsageDetail_20' ) start [2025-04-23 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972529', 'tblTempUsageDetail_20' ) end [2025-04-23 13:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972529', 'tblTempVendorCDR_20' ) start [2025-04-23 13:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972529', 'tblTempVendorCDR_20' ) end [2025-04-23 13:18:23] Production.INFO: ProcessCDR(1,14972529,1,1,2) [2025-04-23 13:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972529', 'tblTempUsageDetail_20' ) start [2025-04-23 13:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972529', 'tblTempUsageDetail_20' ) end [2025-04-23 13:18:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 13:18:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 13:18:26] Production.INFO: ==20764== Releasing lock... [2025-04-23 13:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 13:18:26] Production.INFO: 78.75 MB #Memory Used# [2025-04-23 13:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 10:19:05 [end_date_ymd] => 2025-04-23 13:19:05 [RateCDR] => 1 ) [2025-04-23 13:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 10:19:05' and `end` < '2025-04-23 13:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 13:19:19] Production.INFO: count ==6742 [2025-04-23 13:19:22] Production.ERROR: pbx CDR StartTime 2025-04-23 10:19:05 - End Time 2025-04-23 13:19:05 [2025-04-23 13:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972534', 'tblTempUsageDetail_20' ) start [2025-04-23 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972534', 'tblTempUsageDetail_20' ) end [2025-04-23 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972534', 'tblTempVendorCDR_20' ) start [2025-04-23 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972534', 'tblTempVendorCDR_20' ) end [2025-04-23 13:19:22] Production.INFO: ProcessCDR(1,14972534,1,1,2) [2025-04-23 13:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972534', 'tblTempUsageDetail_20' ) start [2025-04-23 13:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972534', 'tblTempUsageDetail_20' ) end [2025-04-23 13:19:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 13:19:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 13:19:27] Production.INFO: ==20834== Releasing lock... [2025-04-23 13:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 13:19:27] Production.INFO: 78.5 MB #Memory Used# [2025-04-23 13:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 10:20:06 [end_date_ymd] => 2025-04-23 13:20:06 [RateCDR] => 1 ) [2025-04-23 13:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 10:20:06' and `end` < '2025-04-23 13:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 13:20:20] Production.INFO: count ==6768 [2025-04-23 13:20:23] Production.ERROR: pbx CDR StartTime 2025-04-23 10:20:06 - End Time 2025-04-23 13:20:06 [2025-04-23 13:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 13:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972540', 'tblTempUsageDetail_20' ) start [2025-04-23 13:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972540', 'tblTempUsageDetail_20' ) end [2025-04-23 13:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972540', 'tblTempVendorCDR_20' ) start [2025-04-23 13:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972540', 'tblTempVendorCDR_20' ) end [2025-04-23 13:20:24] Production.INFO: ProcessCDR(1,14972540,1,1,2) [2025-04-23 13:20:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972540', 'tblTempUsageDetail_20' ) start [2025-04-23 13:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972540', 'tblTempUsageDetail_20' ) end [2025-04-23 13:20:29] Production.ERROR: pbx prc_insertCDR start [2025-04-23 13:20:29] Production.ERROR: pbx prc_insertCDR end [2025-04-23 13:20:29] Production.INFO: ==20909== Releasing lock... [2025-04-23 13:20:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 13:20:29] Production.INFO: 78.75 MB #Memory Used# [2025-04-23 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 10:21:05 [end_date_ymd] => 2025-04-23 13:21:05 [RateCDR] => 1 ) [2025-04-23 13:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 10:21:05' and `end` < '2025-04-23 13:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 13:21:19] Production.INFO: count ==6787 [2025-04-23 13:21:22] Production.ERROR: pbx CDR StartTime 2025-04-23 10:21:05 - End Time 2025-04-23 13:21:05 [2025-04-23 13:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972545', 'tblTempUsageDetail_20' ) start [2025-04-23 13:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972545', 'tblTempUsageDetail_20' ) end [2025-04-23 13:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972545', 'tblTempVendorCDR_20' ) start [2025-04-23 13:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972545', 'tblTempVendorCDR_20' ) end [2025-04-23 13:21:23] Production.INFO: ProcessCDR(1,14972545,1,1,2) [2025-04-23 13:21:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972545', 'tblTempUsageDetail_20' ) start [2025-04-23 13:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972545', 'tblTempUsageDetail_20' ) end [2025-04-23 13:21:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 13:21:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 13:21:28] Production.INFO: ==20982== Releasing lock... [2025-04-23 13:21:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 13:21:28] Production.INFO: 79 MB #Memory Used# [2025-04-23 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 10:22:05 [end_date_ymd] => 2025-04-23 13:22:05 [RateCDR] => 1 ) [2025-04-23 13:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 10:22:05' and `end` < '2025-04-23 13:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 13:22:19] Production.INFO: count ==6789 [2025-04-23 13:22:22] Production.ERROR: pbx CDR StartTime 2025-04-23 10:22:05 - End Time 2025-04-23 13:22:05 [2025-04-23 13:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 13:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972550', 'tblTempUsageDetail_20' ) start [2025-04-23 13:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972550', 'tblTempUsageDetail_20' ) end [2025-04-23 13:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972550', 'tblTempVendorCDR_20' ) start [2025-04-23 13:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972550', 'tblTempVendorCDR_20' ) end [2025-04-23 13:22:23] Production.INFO: ProcessCDR(1,14972550,1,1,2) [2025-04-23 13:22:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972550', 'tblTempUsageDetail_20' ) start [2025-04-23 13:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972550', 'tblTempUsageDetail_20' ) end [2025-04-23 13:22:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 13:22:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 13:22:27] Production.INFO: ==21058== Releasing lock... [2025-04-23 13:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 13:22:27] Production.INFO: 79 MB #Memory Used# [2025-04-23 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 10:23:05 [end_date_ymd] => 2025-04-23 13:23:05 [RateCDR] => 1 ) [2025-04-23 13:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 10:23:05' and `end` < '2025-04-23 13:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 13:23:19] Production.INFO: count ==6801 [2025-04-23 13:23:22] Production.ERROR: pbx CDR StartTime 2025-04-23 10:23:05 - End Time 2025-04-23 13:23:05 [2025-04-23 13:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972555', 'tblTempUsageDetail_20' ) start [2025-04-23 13:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972555', 'tblTempUsageDetail_20' ) end [2025-04-23 13:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972555', 'tblTempVendorCDR_20' ) start [2025-04-23 13:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972555', 'tblTempVendorCDR_20' ) end [2025-04-23 13:23:23] Production.INFO: ProcessCDR(1,14972555,1,1,2) [2025-04-23 13:23:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972555', 'tblTempUsageDetail_20' ) start [2025-04-23 13:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972555', 'tblTempUsageDetail_20' ) end [2025-04-23 13:23:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 13:23:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 13:23:27] Production.INFO: ==21132== Releasing lock... [2025-04-23 13:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 13:23:27] Production.INFO: 79 MB #Memory Used# [2025-04-23 13:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 10:24:05 [end_date_ymd] => 2025-04-23 13:24:05 [RateCDR] => 1 ) [2025-04-23 13:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 10:24:05' and `end` < '2025-04-23 13:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 13:24:18] Production.INFO: count ==6796 [2025-04-23 13:24:21] Production.ERROR: pbx CDR StartTime 2025-04-23 10:24:05 - End Time 2025-04-23 13:24:05 [2025-04-23 13:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972560', 'tblTempUsageDetail_20' ) start [2025-04-23 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972560', 'tblTempUsageDetail_20' ) end [2025-04-23 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972560', 'tblTempVendorCDR_20' ) start [2025-04-23 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972560', 'tblTempVendorCDR_20' ) end [2025-04-23 13:24:22] Production.INFO: ProcessCDR(1,14972560,1,1,2) [2025-04-23 13:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972560', 'tblTempUsageDetail_20' ) start [2025-04-23 13:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972560', 'tblTempUsageDetail_20' ) end [2025-04-23 13:24:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 13:24:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 13:24:26] Production.INFO: ==21205== Releasing lock... [2025-04-23 13:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 13:24:26] Production.INFO: 79 MB #Memory Used# [2025-04-23 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 10:25:05 [end_date_ymd] => 2025-04-23 13:25:05 [RateCDR] => 1 ) [2025-04-23 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-04-23 10:25:05' and `end` < '2025-04-23 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-04-23 13:25:19] Production.INFO: count ==6775 [2025-04-23 13:25:22] Production.ERROR: pbx CDR StartTime 2025-04-23 10:25:05 - End Time 2025-04-23 13:25:05 [2025-04-23 13:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972565', 'tblTempUsageDetail_20' ) start [2025-04-23 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972565', 'tblTempUsageDetail_20' ) end [2025-04-23 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972565', 'tblTempVendorCDR_20' ) start [2025-04-23 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972565', 'tblTempVendorCDR_20' ) end [2025-04-23 13:25:23] Production.INFO: ProcessCDR(1,14972565,1,1,2) [2025-04-23 13:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972565', 'tblTempUsageDetail_20' ) start [2025-04-23 13:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972565', 'tblTempUsageDetail_20' ) end [2025-04-23 13:25:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 13:25:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 13:25:27] Production.INFO: ==21319== Releasing lock... [2025-04-23 13:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 13:25:27] Production.INFO: 78.75 MB #Memory Used# [2025-04-23 13:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 10:26:06 [end_date_ymd] => 2025-04-23 13:26:06 [RateCDR] => 1 ) [2025-04-23 13:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 10:26:06' and `end` < '2025-04-23 13:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 13:26:19] Production.INFO: count ==6766 [2025-04-23 13:26:22] Production.ERROR: pbx CDR StartTime 2025-04-23 10:26:06 - End Time 2025-04-23 13:26:06 [2025-04-23 13:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 13:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972570', 'tblTempUsageDetail_20' ) start [2025-04-23 13:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972570', 'tblTempUsageDetail_20' ) end [2025-04-23 13:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972570', 'tblTempVendorCDR_20' ) start [2025-04-23 13:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972570', 'tblTempVendorCDR_20' ) end [2025-04-23 13:26:23] Production.INFO: ProcessCDR(1,14972570,1,1,2) [2025-04-23 13:26:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:26:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:26:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:26:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972570', 'tblTempUsageDetail_20' ) start [2025-04-23 13:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972570', 'tblTempUsageDetail_20' ) end [2025-04-23 13:26:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 13:26:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 13:26:28] Production.INFO: ==21396== Releasing lock... [2025-04-23 13:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 13:26:28] Production.INFO: 78.75 MB #Memory Used# [2025-04-23 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 10:27:05 [end_date_ymd] => 2025-04-23 13:27:05 [RateCDR] => 1 ) [2025-04-23 13:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 10:27:05' and `end` < '2025-04-23 13:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 13:27:19] Production.INFO: count ==6785 [2025-04-23 13:27:22] Production.ERROR: pbx CDR StartTime 2025-04-23 10:27:05 - End Time 2025-04-23 13:27:05 [2025-04-23 13:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972575', 'tblTempUsageDetail_20' ) start [2025-04-23 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972575', 'tblTempUsageDetail_20' ) end [2025-04-23 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972575', 'tblTempVendorCDR_20' ) start [2025-04-23 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972575', 'tblTempVendorCDR_20' ) end [2025-04-23 13:27:22] Production.INFO: ProcessCDR(1,14972575,1,1,2) [2025-04-23 13:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972575', 'tblTempUsageDetail_20' ) start [2025-04-23 13:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972575', 'tblTempUsageDetail_20' ) end [2025-04-23 13:27:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 13:27:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 13:27:27] Production.INFO: ==21471== Releasing lock... [2025-04-23 13:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 13:27:27] Production.INFO: 79 MB #Memory Used# [2025-04-23 13:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 10:28:06 [end_date_ymd] => 2025-04-23 13:28:06 [RateCDR] => 1 ) [2025-04-23 13:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 10:28:06' and `end` < '2025-04-23 13:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 13:28:19] Production.INFO: count ==6809 [2025-04-23 13:28:22] Production.ERROR: pbx CDR StartTime 2025-04-23 10:28:06 - End Time 2025-04-23 13:28:06 [2025-04-23 13:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972580', 'tblTempUsageDetail_20' ) start [2025-04-23 13:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972580', 'tblTempUsageDetail_20' ) end [2025-04-23 13:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972580', 'tblTempVendorCDR_20' ) start [2025-04-23 13:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972580', 'tblTempVendorCDR_20' ) end [2025-04-23 13:28:23] Production.INFO: ProcessCDR(1,14972580,1,1,2) [2025-04-23 13:28:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:28:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972580', 'tblTempUsageDetail_20' ) start [2025-04-23 13:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972580', 'tblTempUsageDetail_20' ) end [2025-04-23 13:28:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 13:28:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 13:28:28] Production.INFO: ==21541== Releasing lock... [2025-04-23 13:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 13:28:28] Production.INFO: 79 MB #Memory Used# [2025-04-23 13:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 10:29:05 [end_date_ymd] => 2025-04-23 13:29:05 [RateCDR] => 1 ) [2025-04-23 13:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 10:29:05' and `end` < '2025-04-23 13:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 13:29:19] Production.INFO: count ==6801 [2025-04-23 13:29:22] Production.ERROR: pbx CDR StartTime 2025-04-23 10:29:05 - End Time 2025-04-23 13:29:05 [2025-04-23 13:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972585', 'tblTempUsageDetail_20' ) start [2025-04-23 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972585', 'tblTempUsageDetail_20' ) end [2025-04-23 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972585', 'tblTempVendorCDR_20' ) start [2025-04-23 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972585', 'tblTempVendorCDR_20' ) end [2025-04-23 13:29:22] Production.INFO: ProcessCDR(1,14972585,1,1,2) [2025-04-23 13:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972585', 'tblTempUsageDetail_20' ) start [2025-04-23 13:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972585', 'tblTempUsageDetail_20' ) end [2025-04-23 13:29:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 13:29:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 13:29:27] Production.INFO: ==21614== Releasing lock... [2025-04-23 13:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 13:29:27] Production.INFO: 79 MB #Memory Used# [2025-04-23 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 10:30:06 [end_date_ymd] => 2025-04-23 13:30:06 [RateCDR] => 1 ) [2025-04-23 13:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 10:30:06' and `end` < '2025-04-23 13:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 13:30:20] Production.INFO: count ==6808 [2025-04-23 13:30:23] Production.ERROR: pbx CDR StartTime 2025-04-23 10:30:06 - End Time 2025-04-23 13:30:06 [2025-04-23 13:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 13:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972591', 'tblTempUsageDetail_20' ) start [2025-04-23 13:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972591', 'tblTempUsageDetail_20' ) end [2025-04-23 13:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972591', 'tblTempVendorCDR_20' ) start [2025-04-23 13:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972591', 'tblTempVendorCDR_20' ) end [2025-04-23 13:30:24] Production.INFO: ProcessCDR(1,14972591,1,1,2) [2025-04-23 13:30:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972591', 'tblTempUsageDetail_20' ) start [2025-04-23 13:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972591', 'tblTempUsageDetail_20' ) end [2025-04-23 13:30:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 13:30:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 13:30:28] Production.INFO: ==21690== Releasing lock... [2025-04-23 13:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 13:30:28] Production.INFO: 79 MB #Memory Used# [2025-04-23 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 10:31:05 [end_date_ymd] => 2025-04-23 13:31:05 [RateCDR] => 1 ) [2025-04-23 13:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 10:31:05' and `end` < '2025-04-23 13:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 13:31:19] Production.INFO: count ==6790 [2025-04-23 13:31:22] Production.ERROR: pbx CDR StartTime 2025-04-23 10:31:05 - End Time 2025-04-23 13:31:05 [2025-04-23 13:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 13:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972596', 'tblTempUsageDetail_20' ) start [2025-04-23 13:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972596', 'tblTempUsageDetail_20' ) end [2025-04-23 13:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972596', 'tblTempVendorCDR_20' ) start [2025-04-23 13:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972596', 'tblTempVendorCDR_20' ) end [2025-04-23 13:31:22] Production.INFO: ProcessCDR(1,14972596,1,1,2) [2025-04-23 13:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972596', 'tblTempUsageDetail_20' ) start [2025-04-23 13:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972596', 'tblTempUsageDetail_20' ) end [2025-04-23 13:31:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 13:31:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 13:31:27] Production.INFO: ==21771== Releasing lock... [2025-04-23 13:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 13:31:27] Production.INFO: 79 MB #Memory Used# [2025-04-23 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 10:32:05 [end_date_ymd] => 2025-04-23 13:32:05 [RateCDR] => 1 ) [2025-04-23 13:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 10:32:05' and `end` < '2025-04-23 13:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 13:32:19] Production.INFO: count ==6725 [2025-04-23 13:32:22] Production.ERROR: pbx CDR StartTime 2025-04-23 10:32:05 - End Time 2025-04-23 13:32:05 [2025-04-23 13:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972601', 'tblTempUsageDetail_20' ) start [2025-04-23 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972601', 'tblTempUsageDetail_20' ) end [2025-04-23 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972601', 'tblTempVendorCDR_20' ) start [2025-04-23 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972601', 'tblTempVendorCDR_20' ) end [2025-04-23 13:32:22] Production.INFO: ProcessCDR(1,14972601,1,1,2) [2025-04-23 13:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972601', 'tblTempUsageDetail_20' ) start [2025-04-23 13:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972601', 'tblTempUsageDetail_20' ) end [2025-04-23 13:32:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 13:32:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 13:32:27] Production.INFO: ==21846== Releasing lock... [2025-04-23 13:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 13:32:27] Production.INFO: 78.5 MB #Memory Used# [2025-04-23 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 10:33:05 [end_date_ymd] => 2025-04-23 13:33:05 [RateCDR] => 1 ) [2025-04-23 13:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 10:33:05' and `end` < '2025-04-23 13:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 13:33:19] Production.INFO: count ==6739 [2025-04-23 13:33:22] Production.ERROR: pbx CDR StartTime 2025-04-23 10:33:05 - End Time 2025-04-23 13:33:05 [2025-04-23 13:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972606', 'tblTempUsageDetail_20' ) start [2025-04-23 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972606', 'tblTempUsageDetail_20' ) end [2025-04-23 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972606', 'tblTempVendorCDR_20' ) start [2025-04-23 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972606', 'tblTempVendorCDR_20' ) end [2025-04-23 13:33:22] Production.INFO: ProcessCDR(1,14972606,1,1,2) [2025-04-23 13:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972606', 'tblTempUsageDetail_20' ) start [2025-04-23 13:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972606', 'tblTempUsageDetail_20' ) end [2025-04-23 13:33:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 13:33:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 13:33:27] Production.INFO: ==21918== Releasing lock... [2025-04-23 13:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 13:33:27] Production.INFO: 78.5 MB #Memory Used# [2025-04-23 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 10:34:05 [end_date_ymd] => 2025-04-23 13:34:05 [RateCDR] => 1 ) [2025-04-23 13:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 10:34:05' and `end` < '2025-04-23 13:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 13:34:19] Production.INFO: count ==6749 [2025-04-23 13:34:22] Production.ERROR: pbx CDR StartTime 2025-04-23 10:34:05 - End Time 2025-04-23 13:34:05 [2025-04-23 13:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972611', 'tblTempUsageDetail_20' ) start [2025-04-23 13:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972611', 'tblTempUsageDetail_20' ) end [2025-04-23 13:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972611', 'tblTempVendorCDR_20' ) start [2025-04-23 13:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972611', 'tblTempVendorCDR_20' ) end [2025-04-23 13:34:23] Production.INFO: ProcessCDR(1,14972611,1,1,2) [2025-04-23 13:34:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:34:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972611', 'tblTempUsageDetail_20' ) start [2025-04-23 13:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972611', 'tblTempUsageDetail_20' ) end [2025-04-23 13:34:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 13:34:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 13:34:28] Production.INFO: ==21989== Releasing lock... [2025-04-23 13:34:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 13:34:28] Production.INFO: 78.75 MB #Memory Used# [2025-04-23 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 10:35:05 [end_date_ymd] => 2025-04-23 13:35:05 [RateCDR] => 1 ) [2025-04-23 13:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 10:35:05' and `end` < '2025-04-23 13:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 13:35:19] Production.INFO: count ==6735 [2025-04-23 13:35:22] Production.ERROR: pbx CDR StartTime 2025-04-23 10:35:05 - End Time 2025-04-23 13:35:05 [2025-04-23 13:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 13:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972616', 'tblTempUsageDetail_20' ) start [2025-04-23 13:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972616', 'tblTempUsageDetail_20' ) end [2025-04-23 13:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972616', 'tblTempVendorCDR_20' ) start [2025-04-23 13:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972616', 'tblTempVendorCDR_20' ) end [2025-04-23 13:35:22] Production.INFO: ProcessCDR(1,14972616,1,1,2) [2025-04-23 13:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972616', 'tblTempUsageDetail_20' ) start [2025-04-23 13:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972616', 'tblTempUsageDetail_20' ) end [2025-04-23 13:35:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 13:35:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 13:35:27] Production.INFO: ==22062== Releasing lock... [2025-04-23 13:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 13:35:27] Production.INFO: 78.5 MB #Memory Used# [2025-04-23 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 10:36:05 [end_date_ymd] => 2025-04-23 13:36:05 [RateCDR] => 1 ) [2025-04-23 13:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 10:36:05' and `end` < '2025-04-23 13:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 13:36:19] Production.INFO: count ==6723 [2025-04-23 13:36:21] Production.ERROR: pbx CDR StartTime 2025-04-23 10:36:05 - End Time 2025-04-23 13:36:05 [2025-04-23 13:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972621', 'tblTempUsageDetail_20' ) start [2025-04-23 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972621', 'tblTempUsageDetail_20' ) end [2025-04-23 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972621', 'tblTempVendorCDR_20' ) start [2025-04-23 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972621', 'tblTempVendorCDR_20' ) end [2025-04-23 13:36:22] Production.INFO: ProcessCDR(1,14972621,1,1,2) [2025-04-23 13:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972621', 'tblTempUsageDetail_20' ) start [2025-04-23 13:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972621', 'tblTempUsageDetail_20' ) end [2025-04-23 13:36:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 13:36:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 13:36:27] Production.INFO: ==22137== Releasing lock... [2025-04-23 13:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 13:36:27] Production.INFO: 78.5 MB #Memory Used# [2025-04-23 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 10:37:05 [end_date_ymd] => 2025-04-23 13:37:05 [RateCDR] => 1 ) [2025-04-23 13:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 10:37:05' and `end` < '2025-04-23 13:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 13:37:19] Production.INFO: count ==6725 [2025-04-23 13:37:22] Production.ERROR: pbx CDR StartTime 2025-04-23 10:37:05 - End Time 2025-04-23 13:37:05 [2025-04-23 13:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972626', 'tblTempUsageDetail_20' ) start [2025-04-23 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972626', 'tblTempUsageDetail_20' ) end [2025-04-23 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972626', 'tblTempVendorCDR_20' ) start [2025-04-23 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972626', 'tblTempVendorCDR_20' ) end [2025-04-23 13:37:22] Production.INFO: ProcessCDR(1,14972626,1,1,2) [2025-04-23 13:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972626', 'tblTempUsageDetail_20' ) start [2025-04-23 13:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972626', 'tblTempUsageDetail_20' ) end [2025-04-23 13:37:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 13:37:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 13:37:27] Production.INFO: ==22209== Releasing lock... [2025-04-23 13:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 13:37:27] Production.INFO: 78.5 MB #Memory Used# [2025-04-23 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 10:38:05 [end_date_ymd] => 2025-04-23 13:38:05 [RateCDR] => 1 ) [2025-04-23 13:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 10:38:05' and `end` < '2025-04-23 13:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 13:38:19] Production.INFO: count ==6698 [2025-04-23 13:38:22] Production.ERROR: pbx CDR StartTime 2025-04-23 10:38:05 - End Time 2025-04-23 13:38:05 [2025-04-23 13:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 13:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972631', 'tblTempUsageDetail_20' ) start [2025-04-23 13:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972631', 'tblTempUsageDetail_20' ) end [2025-04-23 13:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972631', 'tblTempVendorCDR_20' ) start [2025-04-23 13:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972631', 'tblTempVendorCDR_20' ) end [2025-04-23 13:38:23] Production.INFO: ProcessCDR(1,14972631,1,1,2) [2025-04-23 13:38:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972631', 'tblTempUsageDetail_20' ) start [2025-04-23 13:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972631', 'tblTempUsageDetail_20' ) end [2025-04-23 13:38:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 13:38:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 13:38:27] Production.INFO: ==22279== Releasing lock... [2025-04-23 13:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 13:38:27] Production.INFO: 78.25 MB #Memory Used# [2025-04-23 13:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 10:39:04 [end_date_ymd] => 2025-04-23 13:39:04 [RateCDR] => 1 ) [2025-04-23 13:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 10:39:04' and `end` < '2025-04-23 13:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 13:39:18] Production.INFO: count ==6704 [2025-04-23 13:39:21] Production.ERROR: pbx CDR StartTime 2025-04-23 10:39:04 - End Time 2025-04-23 13:39:04 [2025-04-23 13:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972636', 'tblTempUsageDetail_20' ) start [2025-04-23 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972636', 'tblTempUsageDetail_20' ) end [2025-04-23 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972636', 'tblTempVendorCDR_20' ) start [2025-04-23 13:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972636', 'tblTempVendorCDR_20' ) end [2025-04-23 13:39:22] Production.INFO: ProcessCDR(1,14972636,1,1,2) [2025-04-23 13:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972636', 'tblTempUsageDetail_20' ) start [2025-04-23 13:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972636', 'tblTempUsageDetail_20' ) end [2025-04-23 13:39:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 13:39:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 13:39:26] Production.INFO: ==22350== Releasing lock... [2025-04-23 13:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 13:39:26] Production.INFO: 78.25 MB #Memory Used# [2025-04-23 13:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 10:40:06 [end_date_ymd] => 2025-04-23 13:40:06 [RateCDR] => 1 ) [2025-04-23 13:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 10:40:06' and `end` < '2025-04-23 13:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 13:40:20] Production.INFO: count ==6724 [2025-04-23 13:40:23] Production.ERROR: pbx CDR StartTime 2025-04-23 10:40:06 - End Time 2025-04-23 13:40:06 [2025-04-23 13:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972642', 'tblTempUsageDetail_20' ) start [2025-04-23 13:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972642', 'tblTempUsageDetail_20' ) end [2025-04-23 13:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972642', 'tblTempVendorCDR_20' ) start [2025-04-23 13:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972642', 'tblTempVendorCDR_20' ) end [2025-04-23 13:40:24] Production.INFO: ProcessCDR(1,14972642,1,1,2) [2025-04-23 13:40:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972642', 'tblTempUsageDetail_20' ) start [2025-04-23 13:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972642', 'tblTempUsageDetail_20' ) end [2025-04-23 13:40:29] Production.ERROR: pbx prc_insertCDR start [2025-04-23 13:40:29] Production.ERROR: pbx prc_insertCDR end [2025-04-23 13:40:29] Production.INFO: ==22472== Releasing lock... [2025-04-23 13:40:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 13:40:29] Production.INFO: 78.5 MB #Memory Used# [2025-04-23 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 10:41:05 [end_date_ymd] => 2025-04-23 13:41:05 [RateCDR] => 1 ) [2025-04-23 13:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 10:41:05' and `end` < '2025-04-23 13:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 13:41:18] Production.INFO: count ==6701 [2025-04-23 13:41:21] Production.ERROR: pbx CDR StartTime 2025-04-23 10:41:05 - End Time 2025-04-23 13:41:05 [2025-04-23 13:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972647', 'tblTempUsageDetail_20' ) start [2025-04-23 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972647', 'tblTempUsageDetail_20' ) end [2025-04-23 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972647', 'tblTempVendorCDR_20' ) start [2025-04-23 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972647', 'tblTempVendorCDR_20' ) end [2025-04-23 13:41:22] Production.INFO: ProcessCDR(1,14972647,1,1,2) [2025-04-23 13:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972647', 'tblTempUsageDetail_20' ) start [2025-04-23 13:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972647', 'tblTempUsageDetail_20' ) end [2025-04-23 13:41:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 13:41:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 13:41:27] Production.INFO: ==22554== Releasing lock... [2025-04-23 13:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 13:41:27] Production.INFO: 78.25 MB #Memory Used# [2025-04-23 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 10:42:05 [end_date_ymd] => 2025-04-23 13:42:05 [RateCDR] => 1 ) [2025-04-23 13:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 10:42:05' and `end` < '2025-04-23 13:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 13:42:19] Production.INFO: count ==6695 [2025-04-23 13:42:22] Production.ERROR: pbx CDR StartTime 2025-04-23 10:42:05 - End Time 2025-04-23 13:42:05 [2025-04-23 13:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972652', 'tblTempUsageDetail_20' ) start [2025-04-23 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972652', 'tblTempUsageDetail_20' ) end [2025-04-23 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972652', 'tblTempVendorCDR_20' ) start [2025-04-23 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972652', 'tblTempVendorCDR_20' ) end [2025-04-23 13:42:22] Production.INFO: ProcessCDR(1,14972652,1,1,2) [2025-04-23 13:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972652', 'tblTempUsageDetail_20' ) start [2025-04-23 13:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972652', 'tblTempUsageDetail_20' ) end [2025-04-23 13:42:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 13:42:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 13:42:27] Production.INFO: ==22628== Releasing lock... [2025-04-23 13:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 13:42:27] Production.INFO: 78.25 MB #Memory Used# [2025-04-23 13:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 10:43:06 [end_date_ymd] => 2025-04-23 13:43:06 [RateCDR] => 1 ) [2025-04-23 13:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 10:43:06' and `end` < '2025-04-23 13:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 13:43:20] Production.INFO: count ==6707 [2025-04-23 13:43:22] Production.ERROR: pbx CDR StartTime 2025-04-23 10:43:06 - End Time 2025-04-23 13:43:06 [2025-04-23 13:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972657', 'tblTempUsageDetail_20' ) start [2025-04-23 13:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972657', 'tblTempUsageDetail_20' ) end [2025-04-23 13:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972657', 'tblTempVendorCDR_20' ) start [2025-04-23 13:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972657', 'tblTempVendorCDR_20' ) end [2025-04-23 13:43:23] Production.INFO: ProcessCDR(1,14972657,1,1,2) [2025-04-23 13:43:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972657', 'tblTempUsageDetail_20' ) start [2025-04-23 13:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972657', 'tblTempUsageDetail_20' ) end [2025-04-23 13:43:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 13:43:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 13:43:28] Production.INFO: ==22700== Releasing lock... [2025-04-23 13:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 13:43:28] Production.INFO: 78.25 MB #Memory Used# [2025-04-23 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 10:44:05 [end_date_ymd] => 2025-04-23 13:44:05 [RateCDR] => 1 ) [2025-04-23 13:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 10:44:05' and `end` < '2025-04-23 13:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 13:44:19] Production.INFO: count ==6710 [2025-04-23 13:44:22] Production.ERROR: pbx CDR StartTime 2025-04-23 10:44:05 - End Time 2025-04-23 13:44:05 [2025-04-23 13:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 13:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972662', 'tblTempUsageDetail_20' ) start [2025-04-23 13:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972662', 'tblTempUsageDetail_20' ) end [2025-04-23 13:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972662', 'tblTempVendorCDR_20' ) start [2025-04-23 13:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972662', 'tblTempVendorCDR_20' ) end [2025-04-23 13:44:23] Production.INFO: ProcessCDR(1,14972662,1,1,2) [2025-04-23 13:44:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972662', 'tblTempUsageDetail_20' ) start [2025-04-23 13:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972662', 'tblTempUsageDetail_20' ) end [2025-04-23 13:44:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 13:44:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 13:44:27] Production.INFO: ==22772== Releasing lock... [2025-04-23 13:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 13:44:27] Production.INFO: 78.5 MB #Memory Used# [2025-04-23 13:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 10:45:05 [end_date_ymd] => 2025-04-23 13:45:05 [RateCDR] => 1 ) [2025-04-23 13:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 10:45:05' and `end` < '2025-04-23 13:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 13:45:19] Production.INFO: count ==6714 [2025-04-23 13:45:22] Production.ERROR: pbx CDR StartTime 2025-04-23 10:45:05 - End Time 2025-04-23 13:45:05 [2025-04-23 13:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972667', 'tblTempUsageDetail_20' ) start [2025-04-23 13:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972667', 'tblTempUsageDetail_20' ) end [2025-04-23 13:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972667', 'tblTempVendorCDR_20' ) start [2025-04-23 13:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972667', 'tblTempVendorCDR_20' ) end [2025-04-23 13:45:23] Production.INFO: ProcessCDR(1,14972667,1,1,2) [2025-04-23 13:45:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:45:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972667', 'tblTempUsageDetail_20' ) start [2025-04-23 13:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972667', 'tblTempUsageDetail_20' ) end [2025-04-23 13:45:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 13:45:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 13:45:28] Production.INFO: ==22846== Releasing lock... [2025-04-23 13:45:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 13:45:28] Production.INFO: 78.5 MB #Memory Used# [2025-04-23 13:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 10:46:05 [end_date_ymd] => 2025-04-23 13:46:05 [RateCDR] => 1 ) [2025-04-23 13:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 10:46:05' and `end` < '2025-04-23 13:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 13:46:19] Production.INFO: count ==6720 [2025-04-23 13:46:21] Production.ERROR: pbx CDR StartTime 2025-04-23 10:46:05 - End Time 2025-04-23 13:46:05 [2025-04-23 13:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972672', 'tblTempUsageDetail_20' ) start [2025-04-23 13:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972672', 'tblTempUsageDetail_20' ) end [2025-04-23 13:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972672', 'tblTempVendorCDR_20' ) start [2025-04-23 13:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972672', 'tblTempVendorCDR_20' ) end [2025-04-23 13:46:22] Production.INFO: ProcessCDR(1,14972672,1,1,2) [2025-04-23 13:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972672', 'tblTempUsageDetail_20' ) start [2025-04-23 13:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972672', 'tblTempUsageDetail_20' ) end [2025-04-23 13:46:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 13:46:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 13:46:27] Production.INFO: ==22920== Releasing lock... [2025-04-23 13:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 13:46:27] Production.INFO: 78.5 MB #Memory Used# [2025-04-23 13:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 10:47:06 [end_date_ymd] => 2025-04-23 13:47:06 [RateCDR] => 1 ) [2025-04-23 13:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 10:47:06' and `end` < '2025-04-23 13:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 13:47:20] Production.INFO: count ==6711 [2025-04-23 13:47:23] Production.ERROR: pbx CDR StartTime 2025-04-23 10:47:06 - End Time 2025-04-23 13:47:06 [2025-04-23 13:47:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 13:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972677', 'tblTempUsageDetail_20' ) start [2025-04-23 13:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972677', 'tblTempUsageDetail_20' ) end [2025-04-23 13:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972677', 'tblTempVendorCDR_20' ) start [2025-04-23 13:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972677', 'tblTempVendorCDR_20' ) end [2025-04-23 13:47:23] Production.INFO: ProcessCDR(1,14972677,1,1,2) [2025-04-23 13:47:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:47:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:47:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:47:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972677', 'tblTempUsageDetail_20' ) start [2025-04-23 13:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972677', 'tblTempUsageDetail_20' ) end [2025-04-23 13:47:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 13:47:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 13:47:28] Production.INFO: ==22991== Releasing lock... [2025-04-23 13:47:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 13:47:28] Production.INFO: 78.5 MB #Memory Used# [2025-04-23 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 10:48:05 [end_date_ymd] => 2025-04-23 13:48:05 [RateCDR] => 1 ) [2025-04-23 13:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 10:48:05' and `end` < '2025-04-23 13:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 13:48:19] Production.INFO: count ==6686 [2025-04-23 13:48:21] Production.ERROR: pbx CDR StartTime 2025-04-23 10:48:05 - End Time 2025-04-23 13:48:05 [2025-04-23 13:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972682', 'tblTempUsageDetail_20' ) start [2025-04-23 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972682', 'tblTempUsageDetail_20' ) end [2025-04-23 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972682', 'tblTempVendorCDR_20' ) start [2025-04-23 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972682', 'tblTempVendorCDR_20' ) end [2025-04-23 13:48:22] Production.INFO: ProcessCDR(1,14972682,1,1,2) [2025-04-23 13:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972682', 'tblTempUsageDetail_20' ) start [2025-04-23 13:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972682', 'tblTempUsageDetail_20' ) end [2025-04-23 13:48:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 13:48:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 13:48:27] Production.INFO: ==23066== Releasing lock... [2025-04-23 13:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 13:48:27] Production.INFO: 78.25 MB #Memory Used# [2025-04-23 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 10:49:05 [end_date_ymd] => 2025-04-23 13:49:05 [RateCDR] => 1 ) [2025-04-23 13:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 10:49:05' and `end` < '2025-04-23 13:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 13:49:19] Production.INFO: count ==6674 [2025-04-23 13:49:22] Production.ERROR: pbx CDR StartTime 2025-04-23 10:49:05 - End Time 2025-04-23 13:49:05 [2025-04-23 13:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 13:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972687', 'tblTempUsageDetail_20' ) start [2025-04-23 13:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972687', 'tblTempUsageDetail_20' ) end [2025-04-23 13:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972687', 'tblTempVendorCDR_20' ) start [2025-04-23 13:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972687', 'tblTempVendorCDR_20' ) end [2025-04-23 13:49:22] Production.INFO: ProcessCDR(1,14972687,1,1,2) [2025-04-23 13:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972687', 'tblTempUsageDetail_20' ) start [2025-04-23 13:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972687', 'tblTempUsageDetail_20' ) end [2025-04-23 13:49:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 13:49:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 13:49:27] Production.INFO: ==23142== Releasing lock... [2025-04-23 13:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 13:49:27] Production.INFO: 78 MB #Memory Used# [2025-04-23 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 10:50:06 [end_date_ymd] => 2025-04-23 13:50:06 [RateCDR] => 1 ) [2025-04-23 13:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 10:50:06' and `end` < '2025-04-23 13:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 13:50:20] Production.INFO: count ==6673 [2025-04-23 13:50:23] Production.ERROR: pbx CDR StartTime 2025-04-23 10:50:06 - End Time 2025-04-23 13:50:06 [2025-04-23 13:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 13:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972693', 'tblTempUsageDetail_20' ) start [2025-04-23 13:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972693', 'tblTempUsageDetail_20' ) end [2025-04-23 13:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972693', 'tblTempVendorCDR_20' ) start [2025-04-23 13:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972693', 'tblTempVendorCDR_20' ) end [2025-04-23 13:50:23] Production.INFO: ProcessCDR(1,14972693,1,1,2) [2025-04-23 13:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:50:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:50:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972693', 'tblTempUsageDetail_20' ) start [2025-04-23 13:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972693', 'tblTempUsageDetail_20' ) end [2025-04-23 13:50:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 13:50:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 13:50:28] Production.INFO: ==23217== Releasing lock... [2025-04-23 13:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 13:50:28] Production.INFO: 78 MB #Memory Used# [2025-04-23 13:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 10:51:06 [end_date_ymd] => 2025-04-23 13:51:06 [RateCDR] => 1 ) [2025-04-23 13:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 10:51:06' and `end` < '2025-04-23 13:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 13:51:20] Production.INFO: count ==6664 [2025-04-23 13:51:23] Production.ERROR: pbx CDR StartTime 2025-04-23 10:51:06 - End Time 2025-04-23 13:51:06 [2025-04-23 13:51:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 13:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972698', 'tblTempUsageDetail_20' ) start [2025-04-23 13:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972698', 'tblTempUsageDetail_20' ) end [2025-04-23 13:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972698', 'tblTempVendorCDR_20' ) start [2025-04-23 13:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972698', 'tblTempVendorCDR_20' ) end [2025-04-23 13:51:23] Production.INFO: ProcessCDR(1,14972698,1,1,2) [2025-04-23 13:51:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:51:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:51:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972698', 'tblTempUsageDetail_20' ) start [2025-04-23 13:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972698', 'tblTempUsageDetail_20' ) end [2025-04-23 13:51:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 13:51:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 13:51:28] Production.INFO: ==23292== Releasing lock... [2025-04-23 13:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 13:51:28] Production.INFO: 78 MB #Memory Used# [2025-04-23 13:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 10:52:06 [end_date_ymd] => 2025-04-23 13:52:06 [RateCDR] => 1 ) [2025-04-23 13:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 10:52:06' and `end` < '2025-04-23 13:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 13:52:20] Production.INFO: count ==6664 [2025-04-23 13:52:23] Production.ERROR: pbx CDR StartTime 2025-04-23 10:52:06 - End Time 2025-04-23 13:52:06 [2025-04-23 13:52:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 13:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972703', 'tblTempUsageDetail_20' ) start [2025-04-23 13:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972703', 'tblTempUsageDetail_20' ) end [2025-04-23 13:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972703', 'tblTempVendorCDR_20' ) start [2025-04-23 13:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972703', 'tblTempVendorCDR_20' ) end [2025-04-23 13:52:23] Production.INFO: ProcessCDR(1,14972703,1,1,2) [2025-04-23 13:52:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:52:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:52:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:52:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972703', 'tblTempUsageDetail_20' ) start [2025-04-23 13:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972703', 'tblTempUsageDetail_20' ) end [2025-04-23 13:52:29] Production.ERROR: pbx prc_insertCDR start [2025-04-23 13:52:29] Production.ERROR: pbx prc_insertCDR end [2025-04-23 13:52:29] Production.INFO: ==23364== Releasing lock... [2025-04-23 13:52:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 13:52:29] Production.INFO: 78 MB #Memory Used# [2025-04-23 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 10:53:05 [end_date_ymd] => 2025-04-23 13:53:05 [RateCDR] => 1 ) [2025-04-23 13:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 10:53:05' and `end` < '2025-04-23 13:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 13:53:19] Production.INFO: count ==6665 [2025-04-23 13:53:22] Production.ERROR: pbx CDR StartTime 2025-04-23 10:53:05 - End Time 2025-04-23 13:53:05 [2025-04-23 13:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 13:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972708', 'tblTempUsageDetail_20' ) start [2025-04-23 13:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972708', 'tblTempUsageDetail_20' ) end [2025-04-23 13:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972708', 'tblTempVendorCDR_20' ) start [2025-04-23 13:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972708', 'tblTempVendorCDR_20' ) end [2025-04-23 13:53:22] Production.INFO: ProcessCDR(1,14972708,1,1,2) [2025-04-23 13:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:53:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:53:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972708', 'tblTempUsageDetail_20' ) start [2025-04-23 13:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972708', 'tblTempUsageDetail_20' ) end [2025-04-23 13:53:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 13:53:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 13:53:27] Production.INFO: ==23434== Releasing lock... [2025-04-23 13:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 13:53:27] Production.INFO: 78 MB #Memory Used# [2025-04-23 13:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 10:54:06 [end_date_ymd] => 2025-04-23 13:54:06 [RateCDR] => 1 ) [2025-04-23 13:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 10:54:06' and `end` < '2025-04-23 13:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 13:54:20] Production.INFO: count ==6664 [2025-04-23 13:54:23] Production.ERROR: pbx CDR StartTime 2025-04-23 10:54:06 - End Time 2025-04-23 13:54:06 [2025-04-23 13:54:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 13:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972713', 'tblTempUsageDetail_20' ) start [2025-04-23 13:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972713', 'tblTempUsageDetail_20' ) end [2025-04-23 13:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972713', 'tblTempVendorCDR_20' ) start [2025-04-23 13:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972713', 'tblTempVendorCDR_20' ) end [2025-04-23 13:54:23] Production.INFO: ProcessCDR(1,14972713,1,1,2) [2025-04-23 13:54:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:54:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:54:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:54:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972713', 'tblTempUsageDetail_20' ) start [2025-04-23 13:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972713', 'tblTempUsageDetail_20' ) end [2025-04-23 13:54:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 13:54:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 13:54:28] Production.INFO: ==23513== Releasing lock... [2025-04-23 13:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 13:54:28] Production.INFO: 78 MB #Memory Used# [2025-04-23 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 10:55:05 [end_date_ymd] => 2025-04-23 13:55:05 [RateCDR] => 1 ) [2025-04-23 13:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 10:55:05' and `end` < '2025-04-23 13:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 13:55:20] Production.INFO: count ==6652 [2025-04-23 13:55:22] Production.ERROR: pbx CDR StartTime 2025-04-23 10:55:05 - End Time 2025-04-23 13:55:05 [2025-04-23 13:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 13:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972718', 'tblTempUsageDetail_20' ) start [2025-04-23 13:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972718', 'tblTempUsageDetail_20' ) end [2025-04-23 13:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972718', 'tblTempVendorCDR_20' ) start [2025-04-23 13:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972718', 'tblTempVendorCDR_20' ) end [2025-04-23 13:55:23] Production.INFO: ProcessCDR(1,14972718,1,1,2) [2025-04-23 13:55:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:55:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:55:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:55:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972718', 'tblTempUsageDetail_20' ) start [2025-04-23 13:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972718', 'tblTempUsageDetail_20' ) end [2025-04-23 13:55:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 13:55:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 13:55:28] Production.INFO: ==23589== Releasing lock... [2025-04-23 13:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 13:55:28] Production.INFO: 78 MB #Memory Used# [2025-04-23 13:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 10:56:06 [end_date_ymd] => 2025-04-23 13:56:06 [RateCDR] => 1 ) [2025-04-23 13:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 10:56:06' and `end` < '2025-04-23 13:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 13:56:20] Production.INFO: count ==6661 [2025-04-23 13:56:23] Production.ERROR: pbx CDR StartTime 2025-04-23 10:56:06 - End Time 2025-04-23 13:56:06 [2025-04-23 13:56:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 13:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972723', 'tblTempUsageDetail_20' ) start [2025-04-23 13:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972723', 'tblTempUsageDetail_20' ) end [2025-04-23 13:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972723', 'tblTempVendorCDR_20' ) start [2025-04-23 13:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972723', 'tblTempVendorCDR_20' ) end [2025-04-23 13:56:24] Production.INFO: ProcessCDR(1,14972723,1,1,2) [2025-04-23 13:56:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:56:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:56:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:56:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:56:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972723', 'tblTempUsageDetail_20' ) start [2025-04-23 13:56:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972723', 'tblTempUsageDetail_20' ) end [2025-04-23 13:56:29] Production.ERROR: pbx prc_insertCDR start [2025-04-23 13:56:29] Production.ERROR: pbx prc_insertCDR end [2025-04-23 13:56:29] Production.INFO: ==23702== Releasing lock... [2025-04-23 13:56:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 13:56:29] Production.INFO: 78 MB #Memory Used# [2025-04-23 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 10:57:05 [end_date_ymd] => 2025-04-23 13:57:05 [RateCDR] => 1 ) [2025-04-23 13:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 10:57:05' and `end` < '2025-04-23 13:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 13:57:19] Production.INFO: count ==6665 [2025-04-23 13:57:22] Production.ERROR: pbx CDR StartTime 2025-04-23 10:57:05 - End Time 2025-04-23 13:57:05 [2025-04-23 13:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972728', 'tblTempUsageDetail_20' ) start [2025-04-23 13:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972728', 'tblTempUsageDetail_20' ) end [2025-04-23 13:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972728', 'tblTempVendorCDR_20' ) start [2025-04-23 13:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972728', 'tblTempVendorCDR_20' ) end [2025-04-23 13:57:23] Production.INFO: ProcessCDR(1,14972728,1,1,2) [2025-04-23 13:57:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972728', 'tblTempUsageDetail_20' ) start [2025-04-23 13:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972728', 'tblTempUsageDetail_20' ) end [2025-04-23 13:57:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 13:57:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 13:57:28] Production.INFO: ==23776== Releasing lock... [2025-04-23 13:57:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 13:57:28] Production.INFO: 78 MB #Memory Used# [2025-04-23 13:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 10:58:04 [end_date_ymd] => 2025-04-23 13:58:04 [RateCDR] => 1 ) [2025-04-23 13:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 10:58:04' and `end` < '2025-04-23 13:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 13:58:19] Production.INFO: count ==6674 [2025-04-23 13:58:21] Production.ERROR: pbx CDR StartTime 2025-04-23 10:58:04 - End Time 2025-04-23 13:58:04 [2025-04-23 13:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972733', 'tblTempUsageDetail_20' ) start [2025-04-23 13:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972733', 'tblTempUsageDetail_20' ) end [2025-04-23 13:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972733', 'tblTempVendorCDR_20' ) start [2025-04-23 13:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972733', 'tblTempVendorCDR_20' ) end [2025-04-23 13:58:22] Production.INFO: ProcessCDR(1,14972733,1,1,2) [2025-04-23 13:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972733', 'tblTempUsageDetail_20' ) start [2025-04-23 13:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972733', 'tblTempUsageDetail_20' ) end [2025-04-23 13:58:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 13:58:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 13:58:27] Production.INFO: ==23846== Releasing lock... [2025-04-23 13:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 13:58:27] Production.INFO: 78 MB #Memory Used# [2025-04-23 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 10:59:05 [end_date_ymd] => 2025-04-23 13:59:05 [RateCDR] => 1 ) [2025-04-23 13:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 10:59:05' and `end` < '2025-04-23 13:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 13:59:19] Production.INFO: count ==6678 [2025-04-23 13:59:22] Production.ERROR: pbx CDR StartTime 2025-04-23 10:59:05 - End Time 2025-04-23 13:59:05 [2025-04-23 13:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972738', 'tblTempUsageDetail_20' ) start [2025-04-23 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972738', 'tblTempUsageDetail_20' ) end [2025-04-23 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972738', 'tblTempVendorCDR_20' ) start [2025-04-23 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972738', 'tblTempVendorCDR_20' ) end [2025-04-23 13:59:22] Production.INFO: ProcessCDR(1,14972738,1,1,2) [2025-04-23 13:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 13:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 13:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972738', 'tblTempUsageDetail_20' ) start [2025-04-23 13:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972738', 'tblTempUsageDetail_20' ) end [2025-04-23 13:59:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 13:59:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 13:59:27] Production.INFO: ==23921== Releasing lock... [2025-04-23 13:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 13:59:27] Production.INFO: 78.25 MB #Memory Used# [2025-04-23 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 11:00:06 [end_date_ymd] => 2025-04-23 14:00:06 [RateCDR] => 1 ) [2025-04-23 14:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 11:00:06' and `end` < '2025-04-23 14:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 14:00:20] Production.INFO: count ==6676 [2025-04-23 14:00:23] Production.ERROR: pbx CDR StartTime 2025-04-23 11:00:06 - End Time 2025-04-23 14:00:06 [2025-04-23 14:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972744', 'tblTempUsageDetail_20' ) start [2025-04-23 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972744', 'tblTempUsageDetail_20' ) end [2025-04-23 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972744', 'tblTempVendorCDR_20' ) start [2025-04-23 14:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972744', 'tblTempVendorCDR_20' ) end [2025-04-23 14:00:24] Production.INFO: ProcessCDR(1,14972744,1,1,2) [2025-04-23 14:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972744', 'tblTempUsageDetail_20' ) start [2025-04-23 14:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972744', 'tblTempUsageDetail_20' ) end [2025-04-23 14:00:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 14:00:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 14:00:28] Production.INFO: ==23994== Releasing lock... [2025-04-23 14:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 14:00:28] Production.INFO: 78.25 MB #Memory Used# [2025-04-23 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 11:01:05 [end_date_ymd] => 2025-04-23 14:01:05 [RateCDR] => 1 ) [2025-04-23 14:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 11:01:05' and `end` < '2025-04-23 14:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 14:01:19] Production.INFO: count ==6701 [2025-04-23 14:01:22] Production.ERROR: pbx CDR StartTime 2025-04-23 11:01:05 - End Time 2025-04-23 14:01:05 [2025-04-23 14:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972749', 'tblTempUsageDetail_20' ) start [2025-04-23 14:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972749', 'tblTempUsageDetail_20' ) end [2025-04-23 14:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972749', 'tblTempVendorCDR_20' ) start [2025-04-23 14:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972749', 'tblTempVendorCDR_20' ) end [2025-04-23 14:01:23] Production.INFO: ProcessCDR(1,14972749,1,1,2) [2025-04-23 14:01:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:01:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972749', 'tblTempUsageDetail_20' ) start [2025-04-23 14:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972749', 'tblTempUsageDetail_20' ) end [2025-04-23 14:01:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 14:01:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 14:01:28] Production.INFO: ==24081== Releasing lock... [2025-04-23 14:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 14:01:28] Production.INFO: 78.25 MB #Memory Used# [2025-04-23 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 11:02:05 [end_date_ymd] => 2025-04-23 14:02:05 [RateCDR] => 1 ) [2025-04-23 14:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 11:02:05' and `end` < '2025-04-23 14:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 14:02:20] Production.INFO: count ==6707 [2025-04-23 14:02:22] Production.ERROR: pbx CDR StartTime 2025-04-23 11:02:05 - End Time 2025-04-23 14:02:05 [2025-04-23 14:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972754', 'tblTempUsageDetail_20' ) start [2025-04-23 14:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972754', 'tblTempUsageDetail_20' ) end [2025-04-23 14:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972754', 'tblTempVendorCDR_20' ) start [2025-04-23 14:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972754', 'tblTempVendorCDR_20' ) end [2025-04-23 14:02:23] Production.INFO: ProcessCDR(1,14972754,1,1,2) [2025-04-23 14:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972754', 'tblTempUsageDetail_20' ) start [2025-04-23 14:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972754', 'tblTempUsageDetail_20' ) end [2025-04-23 14:02:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 14:02:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 14:02:28] Production.INFO: ==24153== Releasing lock... [2025-04-23 14:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 14:02:28] Production.INFO: 78.25 MB #Memory Used# [2025-04-23 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 11:03:05 [end_date_ymd] => 2025-04-23 14:03:05 [RateCDR] => 1 ) [2025-04-23 14:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 11:03:05' and `end` < '2025-04-23 14:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 14:03:19] Production.INFO: count ==6704 [2025-04-23 14:03:22] Production.ERROR: pbx CDR StartTime 2025-04-23 11:03:05 - End Time 2025-04-23 14:03:05 [2025-04-23 14:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972759', 'tblTempUsageDetail_20' ) start [2025-04-23 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972759', 'tblTempUsageDetail_20' ) end [2025-04-23 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972759', 'tblTempVendorCDR_20' ) start [2025-04-23 14:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972759', 'tblTempVendorCDR_20' ) end [2025-04-23 14:03:23] Production.INFO: ProcessCDR(1,14972759,1,1,2) [2025-04-23 14:03:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972759', 'tblTempUsageDetail_20' ) start [2025-04-23 14:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972759', 'tblTempUsageDetail_20' ) end [2025-04-23 14:03:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 14:03:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 14:03:28] Production.INFO: ==24224== Releasing lock... [2025-04-23 14:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 14:03:28] Production.INFO: 78.25 MB #Memory Used# [2025-04-23 14:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 11:04:05 [end_date_ymd] => 2025-04-23 14:04:05 [RateCDR] => 1 ) [2025-04-23 14:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 11:04:05' and `end` < '2025-04-23 14:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 14:04:19] Production.INFO: count ==6702 [2025-04-23 14:04:22] Production.ERROR: pbx CDR StartTime 2025-04-23 11:04:05 - End Time 2025-04-23 14:04:05 [2025-04-23 14:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 14:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972764', 'tblTempUsageDetail_20' ) start [2025-04-23 14:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972764', 'tblTempUsageDetail_20' ) end [2025-04-23 14:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972764', 'tblTempVendorCDR_20' ) start [2025-04-23 14:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972764', 'tblTempVendorCDR_20' ) end [2025-04-23 14:04:23] Production.INFO: ProcessCDR(1,14972764,1,1,2) [2025-04-23 14:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972764', 'tblTempUsageDetail_20' ) start [2025-04-23 14:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972764', 'tblTempUsageDetail_20' ) end [2025-04-23 14:04:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 14:04:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 14:04:28] Production.INFO: ==24297== Releasing lock... [2025-04-23 14:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 14:04:28] Production.INFO: 78.25 MB #Memory Used# [2025-04-23 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 11:05:05 [end_date_ymd] => 2025-04-23 14:05:05 [RateCDR] => 1 ) [2025-04-23 14:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 11:05:05' and `end` < '2025-04-23 14:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 14:05:19] Production.INFO: count ==6695 [2025-04-23 14:05:22] Production.ERROR: pbx CDR StartTime 2025-04-23 11:05:05 - End Time 2025-04-23 14:05:05 [2025-04-23 14:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972769', 'tblTempUsageDetail_20' ) start [2025-04-23 14:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972769', 'tblTempUsageDetail_20' ) end [2025-04-23 14:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972769', 'tblTempVendorCDR_20' ) start [2025-04-23 14:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972769', 'tblTempVendorCDR_20' ) end [2025-04-23 14:05:23] Production.INFO: ProcessCDR(1,14972769,1,1,2) [2025-04-23 14:05:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:05:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972769', 'tblTempUsageDetail_20' ) start [2025-04-23 14:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972769', 'tblTempUsageDetail_20' ) end [2025-04-23 14:05:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 14:05:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 14:05:28] Production.INFO: ==24369== Releasing lock... [2025-04-23 14:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 14:05:28] Production.INFO: 78.25 MB #Memory Used# [2025-04-23 14:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 11:06:05 [end_date_ymd] => 2025-04-23 14:06:05 [RateCDR] => 1 ) [2025-04-23 14:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 11:06:05' and `end` < '2025-04-23 14:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 14:06:20] Production.INFO: count ==6708 [2025-04-23 14:06:23] Production.ERROR: pbx CDR StartTime 2025-04-23 11:06:05 - End Time 2025-04-23 14:06:05 [2025-04-23 14:06:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 14:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972774', 'tblTempUsageDetail_20' ) start [2025-04-23 14:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972774', 'tblTempUsageDetail_20' ) end [2025-04-23 14:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972774', 'tblTempVendorCDR_20' ) start [2025-04-23 14:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972774', 'tblTempVendorCDR_20' ) end [2025-04-23 14:06:23] Production.INFO: ProcessCDR(1,14972774,1,1,2) [2025-04-23 14:06:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:06:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:06:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972774', 'tblTempUsageDetail_20' ) start [2025-04-23 14:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972774', 'tblTempUsageDetail_20' ) end [2025-04-23 14:06:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 14:06:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 14:06:28] Production.INFO: ==24441== Releasing lock... [2025-04-23 14:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 14:06:28] Production.INFO: 78.25 MB #Memory Used# [2025-04-23 14:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 11:07:06 [end_date_ymd] => 2025-04-23 14:07:06 [RateCDR] => 1 ) [2025-04-23 14:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 11:07:06' and `end` < '2025-04-23 14:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 14:07:20] Production.INFO: count ==6685 [2025-04-23 14:07:23] Production.ERROR: pbx CDR StartTime 2025-04-23 11:07:06 - End Time 2025-04-23 14:07:06 [2025-04-23 14:07:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 14:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972779', 'tblTempUsageDetail_20' ) start [2025-04-23 14:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972779', 'tblTempUsageDetail_20' ) end [2025-04-23 14:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972779', 'tblTempVendorCDR_20' ) start [2025-04-23 14:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972779', 'tblTempVendorCDR_20' ) end [2025-04-23 14:07:23] Production.INFO: ProcessCDR(1,14972779,1,1,2) [2025-04-23 14:07:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:07:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:07:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972779', 'tblTempUsageDetail_20' ) start [2025-04-23 14:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972779', 'tblTempUsageDetail_20' ) end [2025-04-23 14:07:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 14:07:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 14:07:28] Production.INFO: ==24520== Releasing lock... [2025-04-23 14:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 14:07:28] Production.INFO: 78.25 MB #Memory Used# [2025-04-23 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 11:08:05 [end_date_ymd] => 2025-04-23 14:08:05 [RateCDR] => 1 ) [2025-04-23 14:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 11:08:05' and `end` < '2025-04-23 14:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 14:08:19] Production.INFO: count ==6693 [2025-04-23 14:08:22] Production.ERROR: pbx CDR StartTime 2025-04-23 11:08:05 - End Time 2025-04-23 14:08:05 [2025-04-23 14:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 14:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972784', 'tblTempUsageDetail_20' ) start [2025-04-23 14:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972784', 'tblTempUsageDetail_20' ) end [2025-04-23 14:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972784', 'tblTempVendorCDR_20' ) start [2025-04-23 14:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972784', 'tblTempVendorCDR_20' ) end [2025-04-23 14:08:23] Production.INFO: ProcessCDR(1,14972784,1,1,2) [2025-04-23 14:08:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972784', 'tblTempUsageDetail_20' ) start [2025-04-23 14:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972784', 'tblTempUsageDetail_20' ) end [2025-04-23 14:08:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 14:08:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 14:08:28] Production.INFO: ==24595== Releasing lock... [2025-04-23 14:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 14:08:28] Production.INFO: 78.25 MB #Memory Used# [2025-04-23 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 11:09:05 [end_date_ymd] => 2025-04-23 14:09:05 [RateCDR] => 1 ) [2025-04-23 14:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 11:09:05' and `end` < '2025-04-23 14:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 14:09:19] Production.INFO: count ==6678 [2025-04-23 14:09:22] Production.ERROR: pbx CDR StartTime 2025-04-23 11:09:05 - End Time 2025-04-23 14:09:05 [2025-04-23 14:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 14:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972789', 'tblTempUsageDetail_20' ) start [2025-04-23 14:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972789', 'tblTempUsageDetail_20' ) end [2025-04-23 14:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972789', 'tblTempVendorCDR_20' ) start [2025-04-23 14:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972789', 'tblTempVendorCDR_20' ) end [2025-04-23 14:09:23] Production.INFO: ProcessCDR(1,14972789,1,1,2) [2025-04-23 14:09:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972789', 'tblTempUsageDetail_20' ) start [2025-04-23 14:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972789', 'tblTempUsageDetail_20' ) end [2025-04-23 14:09:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 14:09:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 14:09:28] Production.INFO: ==24670== Releasing lock... [2025-04-23 14:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 14:09:28] Production.INFO: 78.25 MB #Memory Used# [2025-04-23 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 11:10:05 [end_date_ymd] => 2025-04-23 14:10:05 [RateCDR] => 1 ) [2025-04-23 14:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 11:10:05' and `end` < '2025-04-23 14:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 14:10:20] Production.INFO: count ==6670 [2025-04-23 14:10:22] Production.ERROR: pbx CDR StartTime 2025-04-23 11:10:05 - End Time 2025-04-23 14:10:05 [2025-04-23 14:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 14:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972795', 'tblTempUsageDetail_20' ) start [2025-04-23 14:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972795', 'tblTempUsageDetail_20' ) end [2025-04-23 14:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972795', 'tblTempVendorCDR_20' ) start [2025-04-23 14:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972795', 'tblTempVendorCDR_20' ) end [2025-04-23 14:10:23] Production.INFO: ProcessCDR(1,14972795,1,1,2) [2025-04-23 14:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972795', 'tblTempUsageDetail_20' ) start [2025-04-23 14:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972795', 'tblTempUsageDetail_20' ) end [2025-04-23 14:10:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 14:10:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 14:10:28] Production.INFO: ==24743== Releasing lock... [2025-04-23 14:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 14:10:28] Production.INFO: 78 MB #Memory Used# [2025-04-23 14:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 11:11:06 [end_date_ymd] => 2025-04-23 14:11:06 [RateCDR] => 1 ) [2025-04-23 14:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 11:11:06' and `end` < '2025-04-23 14:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 14:11:20] Production.INFO: count ==6651 [2025-04-23 14:11:22] Production.ERROR: pbx CDR StartTime 2025-04-23 11:11:06 - End Time 2025-04-23 14:11:06 [2025-04-23 14:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 14:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972800', 'tblTempUsageDetail_20' ) start [2025-04-23 14:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972800', 'tblTempUsageDetail_20' ) end [2025-04-23 14:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972800', 'tblTempVendorCDR_20' ) start [2025-04-23 14:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972800', 'tblTempVendorCDR_20' ) end [2025-04-23 14:11:23] Production.INFO: ProcessCDR(1,14972800,1,1,2) [2025-04-23 14:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972800', 'tblTempUsageDetail_20' ) start [2025-04-23 14:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972800', 'tblTempUsageDetail_20' ) end [2025-04-23 14:11:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 14:11:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 14:11:28] Production.INFO: ==24854== Releasing lock... [2025-04-23 14:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 14:11:28] Production.INFO: 78 MB #Memory Used# [2025-04-23 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 11:12:05 [end_date_ymd] => 2025-04-23 14:12:05 [RateCDR] => 1 ) [2025-04-23 14:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 11:12:05' and `end` < '2025-04-23 14:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 14:12:19] Production.INFO: count ==6660 [2025-04-23 14:12:22] Production.ERROR: pbx CDR StartTime 2025-04-23 11:12:05 - End Time 2025-04-23 14:12:05 [2025-04-23 14:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972805', 'tblTempUsageDetail_20' ) start [2025-04-23 14:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972805', 'tblTempUsageDetail_20' ) end [2025-04-23 14:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972805', 'tblTempVendorCDR_20' ) start [2025-04-23 14:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972805', 'tblTempVendorCDR_20' ) end [2025-04-23 14:12:23] Production.INFO: ProcessCDR(1,14972805,1,1,2) [2025-04-23 14:12:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:12:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:12:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:12:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972805', 'tblTempUsageDetail_20' ) start [2025-04-23 14:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972805', 'tblTempUsageDetail_20' ) end [2025-04-23 14:12:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 14:12:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 14:12:28] Production.INFO: ==24927== Releasing lock... [2025-04-23 14:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 14:12:28] Production.INFO: 78 MB #Memory Used# [2025-04-23 14:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 11:13:05 [end_date_ymd] => 2025-04-23 14:13:05 [RateCDR] => 1 ) [2025-04-23 14:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 11:13:05' and `end` < '2025-04-23 14:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 14:13:20] Production.INFO: count ==6666 [2025-04-23 14:13:23] Production.ERROR: pbx CDR StartTime 2025-04-23 11:13:05 - End Time 2025-04-23 14:13:05 [2025-04-23 14:13:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 14:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972810', 'tblTempUsageDetail_20' ) start [2025-04-23 14:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972810', 'tblTempUsageDetail_20' ) end [2025-04-23 14:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972810', 'tblTempVendorCDR_20' ) start [2025-04-23 14:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972810', 'tblTempVendorCDR_20' ) end [2025-04-23 14:13:23] Production.INFO: ProcessCDR(1,14972810,1,1,2) [2025-04-23 14:13:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:13:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:13:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:13:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:13:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972810', 'tblTempUsageDetail_20' ) start [2025-04-23 14:13:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972810', 'tblTempUsageDetail_20' ) end [2025-04-23 14:13:29] Production.ERROR: pbx prc_insertCDR start [2025-04-23 14:13:29] Production.ERROR: pbx prc_insertCDR end [2025-04-23 14:13:29] Production.INFO: ==25002== Releasing lock... [2025-04-23 14:13:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 14:13:29] Production.INFO: 78 MB #Memory Used# [2025-04-23 14:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 11:14:04 [end_date_ymd] => 2025-04-23 14:14:04 [RateCDR] => 1 ) [2025-04-23 14:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 11:14:04' and `end` < '2025-04-23 14:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 14:14:19] Production.INFO: count ==6649 [2025-04-23 14:14:21] Production.ERROR: pbx CDR StartTime 2025-04-23 11:14:04 - End Time 2025-04-23 14:14:04 [2025-04-23 14:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972815', 'tblTempUsageDetail_20' ) start [2025-04-23 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972815', 'tblTempUsageDetail_20' ) end [2025-04-23 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972815', 'tblTempVendorCDR_20' ) start [2025-04-23 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972815', 'tblTempVendorCDR_20' ) end [2025-04-23 14:14:22] Production.INFO: ProcessCDR(1,14972815,1,1,2) [2025-04-23 14:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972815', 'tblTempUsageDetail_20' ) start [2025-04-23 14:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972815', 'tblTempUsageDetail_20' ) end [2025-04-23 14:14:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 14:14:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 14:14:27] Production.INFO: ==25072== Releasing lock... [2025-04-23 14:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 14:14:27] Production.INFO: 78 MB #Memory Used# [2025-04-23 14:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 11:15:05 [end_date_ymd] => 2025-04-23 14:15:05 [RateCDR] => 1 ) [2025-04-23 14:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 11:15:05' and `end` < '2025-04-23 14:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 14:15:20] Production.INFO: count ==6647 [2025-04-23 14:15:22] Production.ERROR: pbx CDR StartTime 2025-04-23 11:15:05 - End Time 2025-04-23 14:15:05 [2025-04-23 14:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972820', 'tblTempUsageDetail_20' ) start [2025-04-23 14:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972820', 'tblTempUsageDetail_20' ) end [2025-04-23 14:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972820', 'tblTempVendorCDR_20' ) start [2025-04-23 14:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972820', 'tblTempVendorCDR_20' ) end [2025-04-23 14:15:23] Production.INFO: ProcessCDR(1,14972820,1,1,2) [2025-04-23 14:15:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:15:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972820', 'tblTempUsageDetail_20' ) start [2025-04-23 14:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972820', 'tblTempUsageDetail_20' ) end [2025-04-23 14:15:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 14:15:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 14:15:28] Production.INFO: ==25143== Releasing lock... [2025-04-23 14:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 14:15:28] Production.INFO: 78 MB #Memory Used# [2025-04-23 14:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 11:16:06 [end_date_ymd] => 2025-04-23 14:16:06 [RateCDR] => 1 ) [2025-04-23 14:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 11:16:06' and `end` < '2025-04-23 14:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 14:16:20] Production.INFO: count ==6653 [2025-04-23 14:16:23] Production.ERROR: pbx CDR StartTime 2025-04-23 11:16:06 - End Time 2025-04-23 14:16:06 [2025-04-23 14:16:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 14:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972825', 'tblTempUsageDetail_20' ) start [2025-04-23 14:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972825', 'tblTempUsageDetail_20' ) end [2025-04-23 14:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972825', 'tblTempVendorCDR_20' ) start [2025-04-23 14:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972825', 'tblTempVendorCDR_20' ) end [2025-04-23 14:16:23] Production.INFO: ProcessCDR(1,14972825,1,1,2) [2025-04-23 14:16:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:16:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:16:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:16:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972825', 'tblTempUsageDetail_20' ) start [2025-04-23 14:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972825', 'tblTempUsageDetail_20' ) end [2025-04-23 14:16:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 14:16:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 14:16:28] Production.INFO: ==25217== Releasing lock... [2025-04-23 14:16:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 14:16:28] Production.INFO: 78 MB #Memory Used# [2025-04-23 14:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 11:17:05 [end_date_ymd] => 2025-04-23 14:17:05 [RateCDR] => 1 ) [2025-04-23 14:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 11:17:05' and `end` < '2025-04-23 14:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 14:17:19] Production.INFO: count ==6655 [2025-04-23 14:17:22] Production.ERROR: pbx CDR StartTime 2025-04-23 11:17:05 - End Time 2025-04-23 14:17:05 [2025-04-23 14:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 14:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972830', 'tblTempUsageDetail_20' ) start [2025-04-23 14:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972830', 'tblTempUsageDetail_20' ) end [2025-04-23 14:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972830', 'tblTempVendorCDR_20' ) start [2025-04-23 14:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972830', 'tblTempVendorCDR_20' ) end [2025-04-23 14:17:22] Production.INFO: ProcessCDR(1,14972830,1,1,2) [2025-04-23 14:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972830', 'tblTempUsageDetail_20' ) start [2025-04-23 14:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972830', 'tblTempUsageDetail_20' ) end [2025-04-23 14:17:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 14:17:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 14:17:27] Production.INFO: ==25297== Releasing lock... [2025-04-23 14:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 14:17:27] Production.INFO: 78 MB #Memory Used# [2025-04-23 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 11:18:05 [end_date_ymd] => 2025-04-23 14:18:05 [RateCDR] => 1 ) [2025-04-23 14:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 11:18:05' and `end` < '2025-04-23 14:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 14:18:19] Production.INFO: count ==6660 [2025-04-23 14:18:22] Production.ERROR: pbx CDR StartTime 2025-04-23 11:18:05 - End Time 2025-04-23 14:18:05 [2025-04-23 14:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 14:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972835', 'tblTempUsageDetail_20' ) start [2025-04-23 14:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972835', 'tblTempUsageDetail_20' ) end [2025-04-23 14:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972835', 'tblTempVendorCDR_20' ) start [2025-04-23 14:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972835', 'tblTempVendorCDR_20' ) end [2025-04-23 14:18:23] Production.INFO: ProcessCDR(1,14972835,1,1,2) [2025-04-23 14:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972835', 'tblTempUsageDetail_20' ) start [2025-04-23 14:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972835', 'tblTempUsageDetail_20' ) end [2025-04-23 14:18:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 14:18:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 14:18:28] Production.INFO: ==25373== Releasing lock... [2025-04-23 14:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 14:18:28] Production.INFO: 78 MB #Memory Used# [2025-04-23 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 11:19:05 [end_date_ymd] => 2025-04-23 14:19:05 [RateCDR] => 1 ) [2025-04-23 14:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 11:19:05' and `end` < '2025-04-23 14:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 14:19:20] Production.INFO: count ==6661 [2025-04-23 14:19:23] Production.ERROR: pbx CDR StartTime 2025-04-23 11:19:05 - End Time 2025-04-23 14:19:05 [2025-04-23 14:19:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 14:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972840', 'tblTempUsageDetail_20' ) start [2025-04-23 14:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972840', 'tblTempUsageDetail_20' ) end [2025-04-23 14:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972840', 'tblTempVendorCDR_20' ) start [2025-04-23 14:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972840', 'tblTempVendorCDR_20' ) end [2025-04-23 14:19:23] Production.INFO: ProcessCDR(1,14972840,1,1,2) [2025-04-23 14:19:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:19:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:19:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:19:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972840', 'tblTempUsageDetail_20' ) start [2025-04-23 14:19:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972840', 'tblTempUsageDetail_20' ) end [2025-04-23 14:19:29] Production.ERROR: pbx prc_insertCDR start [2025-04-23 14:19:29] Production.ERROR: pbx prc_insertCDR end [2025-04-23 14:19:29] Production.INFO: ==25444== Releasing lock... [2025-04-23 14:19:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 14:19:29] Production.INFO: 78 MB #Memory Used# [2025-04-23 14:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 11:20:06 [end_date_ymd] => 2025-04-23 14:20:06 [RateCDR] => 1 ) [2025-04-23 14:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 11:20:06' and `end` < '2025-04-23 14:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 14:20:20] Production.INFO: count ==6674 [2025-04-23 14:20:23] Production.ERROR: pbx CDR StartTime 2025-04-23 11:20:06 - End Time 2025-04-23 14:20:06 [2025-04-23 14:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 14:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972846', 'tblTempUsageDetail_20' ) start [2025-04-23 14:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972846', 'tblTempUsageDetail_20' ) end [2025-04-23 14:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972846', 'tblTempVendorCDR_20' ) start [2025-04-23 14:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972846', 'tblTempVendorCDR_20' ) end [2025-04-23 14:20:24] Production.INFO: ProcessCDR(1,14972846,1,1,2) [2025-04-23 14:20:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:20:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972846', 'tblTempUsageDetail_20' ) start [2025-04-23 14:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972846', 'tblTempUsageDetail_20' ) end [2025-04-23 14:20:29] Production.ERROR: pbx prc_insertCDR start [2025-04-23 14:20:29] Production.ERROR: pbx prc_insertCDR end [2025-04-23 14:20:29] Production.INFO: ==25518== Releasing lock... [2025-04-23 14:20:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 14:20:29] Production.INFO: 78 MB #Memory Used# [2025-04-23 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 11:21:05 [end_date_ymd] => 2025-04-23 14:21:05 [RateCDR] => 1 ) [2025-04-23 14:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 11:21:05' and `end` < '2025-04-23 14:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 14:21:19] Production.INFO: count ==6664 [2025-04-23 14:21:22] Production.ERROR: pbx CDR StartTime 2025-04-23 11:21:05 - End Time 2025-04-23 14:21:05 [2025-04-23 14:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 14:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972851', 'tblTempUsageDetail_20' ) start [2025-04-23 14:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972851', 'tblTempUsageDetail_20' ) end [2025-04-23 14:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972851', 'tblTempVendorCDR_20' ) start [2025-04-23 14:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972851', 'tblTempVendorCDR_20' ) end [2025-04-23 14:21:23] Production.INFO: ProcessCDR(1,14972851,1,1,2) [2025-04-23 14:21:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:21:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:21:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:21:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972851', 'tblTempUsageDetail_20' ) start [2025-04-23 14:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972851', 'tblTempUsageDetail_20' ) end [2025-04-23 14:21:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 14:21:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 14:21:28] Production.INFO: ==25599== Releasing lock... [2025-04-23 14:21:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 14:21:28] Production.INFO: 78 MB #Memory Used# [2025-04-23 14:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 11:22:06 [end_date_ymd] => 2025-04-23 14:22:06 [RateCDR] => 1 ) [2025-04-23 14:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 11:22:06' and `end` < '2025-04-23 14:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 14:22:20] Production.INFO: count ==6669 [2025-04-23 14:22:23] Production.ERROR: pbx CDR StartTime 2025-04-23 11:22:06 - End Time 2025-04-23 14:22:06 [2025-04-23 14:22:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 14:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972856', 'tblTempUsageDetail_20' ) start [2025-04-23 14:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972856', 'tblTempUsageDetail_20' ) end [2025-04-23 14:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972856', 'tblTempVendorCDR_20' ) start [2025-04-23 14:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972856', 'tblTempVendorCDR_20' ) end [2025-04-23 14:22:23] Production.INFO: ProcessCDR(1,14972856,1,1,2) [2025-04-23 14:22:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:22:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:22:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:22:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972856', 'tblTempUsageDetail_20' ) start [2025-04-23 14:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972856', 'tblTempUsageDetail_20' ) end [2025-04-23 14:22:29] Production.ERROR: pbx prc_insertCDR start [2025-04-23 14:22:29] Production.ERROR: pbx prc_insertCDR end [2025-04-23 14:22:29] Production.INFO: ==25671== Releasing lock... [2025-04-23 14:22:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 14:22:29] Production.INFO: 78 MB #Memory Used# [2025-04-23 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 11:23:05 [end_date_ymd] => 2025-04-23 14:23:05 [RateCDR] => 1 ) [2025-04-23 14:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 11:23:05' and `end` < '2025-04-23 14:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 14:23:19] Production.INFO: count ==6628 [2025-04-23 14:23:22] Production.ERROR: pbx CDR StartTime 2025-04-23 11:23:05 - End Time 2025-04-23 14:23:05 [2025-04-23 14:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972861', 'tblTempUsageDetail_20' ) start [2025-04-23 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972861', 'tblTempUsageDetail_20' ) end [2025-04-23 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972861', 'tblTempVendorCDR_20' ) start [2025-04-23 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972861', 'tblTempVendorCDR_20' ) end [2025-04-23 14:23:22] Production.INFO: ProcessCDR(1,14972861,1,1,2) [2025-04-23 14:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972861', 'tblTempUsageDetail_20' ) start [2025-04-23 14:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972861', 'tblTempUsageDetail_20' ) end [2025-04-23 14:23:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 14:23:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 14:23:27] Production.INFO: ==25743== Releasing lock... [2025-04-23 14:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 14:23:27] Production.INFO: 77.75 MB #Memory Used# [2025-04-23 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 11:24:05 [end_date_ymd] => 2025-04-23 14:24:05 [RateCDR] => 1 ) [2025-04-23 14:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 11:24:05' and `end` < '2025-04-23 14:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 14:24:20] Production.INFO: count ==6637 [2025-04-23 14:24:22] Production.ERROR: pbx CDR StartTime 2025-04-23 11:24:05 - End Time 2025-04-23 14:24:05 [2025-04-23 14:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972866', 'tblTempUsageDetail_20' ) start [2025-04-23 14:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972866', 'tblTempUsageDetail_20' ) end [2025-04-23 14:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972866', 'tblTempVendorCDR_20' ) start [2025-04-23 14:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972866', 'tblTempVendorCDR_20' ) end [2025-04-23 14:24:23] Production.INFO: ProcessCDR(1,14972866,1,1,2) [2025-04-23 14:24:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:24:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972866', 'tblTempUsageDetail_20' ) start [2025-04-23 14:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972866', 'tblTempUsageDetail_20' ) end [2025-04-23 14:24:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 14:24:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 14:24:28] Production.INFO: ==25820== Releasing lock... [2025-04-23 14:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 14:24:28] Production.INFO: 77.75 MB #Memory Used# [2025-04-23 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 11:25:05 [end_date_ymd] => 2025-04-23 14:25:05 [RateCDR] => 1 ) [2025-04-23 14:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 11:25:05' and `end` < '2025-04-23 14:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 14:25:19] Production.INFO: count ==6631 [2025-04-23 14:25:21] Production.ERROR: pbx CDR StartTime 2025-04-23 11:25:05 - End Time 2025-04-23 14:25:05 [2025-04-23 14:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972871', 'tblTempUsageDetail_20' ) start [2025-04-23 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972871', 'tblTempUsageDetail_20' ) end [2025-04-23 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972871', 'tblTempVendorCDR_20' ) start [2025-04-23 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972871', 'tblTempVendorCDR_20' ) end [2025-04-23 14:25:22] Production.INFO: ProcessCDR(1,14972871,1,1,2) [2025-04-23 14:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972871', 'tblTempUsageDetail_20' ) start [2025-04-23 14:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972871', 'tblTempUsageDetail_20' ) end [2025-04-23 14:25:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 14:25:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 14:25:27] Production.INFO: ==25894== Releasing lock... [2025-04-23 14:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 14:25:27] Production.INFO: 77.75 MB #Memory Used# [2025-04-23 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 11:26:05 [end_date_ymd] => 2025-04-23 14:26:05 [RateCDR] => 1 ) [2025-04-23 14:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 11:26:05' and `end` < '2025-04-23 14:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 14:26:19] Production.INFO: count ==6632 [2025-04-23 14:26:22] Production.ERROR: pbx CDR StartTime 2025-04-23 11:26:05 - End Time 2025-04-23 14:26:05 [2025-04-23 14:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972876', 'tblTempUsageDetail_20' ) start [2025-04-23 14:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972876', 'tblTempUsageDetail_20' ) end [2025-04-23 14:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972876', 'tblTempVendorCDR_20' ) start [2025-04-23 14:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972876', 'tblTempVendorCDR_20' ) end [2025-04-23 14:26:23] Production.INFO: ProcessCDR(1,14972876,1,1,2) [2025-04-23 14:26:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972876', 'tblTempUsageDetail_20' ) start [2025-04-23 14:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972876', 'tblTempUsageDetail_20' ) end [2025-04-23 14:26:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 14:26:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 14:26:27] Production.INFO: ==25964== Releasing lock... [2025-04-23 14:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 14:26:27] Production.INFO: 77.75 MB #Memory Used# [2025-04-23 14:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 11:27:06 [end_date_ymd] => 2025-04-23 14:27:06 [RateCDR] => 1 ) [2025-04-23 14:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 11:27:06' and `end` < '2025-04-23 14:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 14:27:20] Production.INFO: count ==6646 [2025-04-23 14:27:22] Production.ERROR: pbx CDR StartTime 2025-04-23 11:27:06 - End Time 2025-04-23 14:27:06 [2025-04-23 14:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 14:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972881', 'tblTempUsageDetail_20' ) start [2025-04-23 14:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972881', 'tblTempUsageDetail_20' ) end [2025-04-23 14:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972881', 'tblTempVendorCDR_20' ) start [2025-04-23 14:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972881', 'tblTempVendorCDR_20' ) end [2025-04-23 14:27:23] Production.INFO: ProcessCDR(1,14972881,1,1,2) [2025-04-23 14:27:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:27:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972881', 'tblTempUsageDetail_20' ) start [2025-04-23 14:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972881', 'tblTempUsageDetail_20' ) end [2025-04-23 14:27:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 14:27:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 14:27:28] Production.INFO: ==26078== Releasing lock... [2025-04-23 14:27:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 14:27:28] Production.INFO: 78 MB #Memory Used# [2025-04-23 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 11:28:05 [end_date_ymd] => 2025-04-23 14:28:05 [RateCDR] => 1 ) [2025-04-23 14:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 11:28:05' and `end` < '2025-04-23 14:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 14:28:19] Production.INFO: count ==6644 [2025-04-23 14:28:22] Production.ERROR: pbx CDR StartTime 2025-04-23 11:28:05 - End Time 2025-04-23 14:28:05 [2025-04-23 14:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 14:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972886', 'tblTempUsageDetail_20' ) start [2025-04-23 14:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972886', 'tblTempUsageDetail_20' ) end [2025-04-23 14:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972886', 'tblTempVendorCDR_20' ) start [2025-04-23 14:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972886', 'tblTempVendorCDR_20' ) end [2025-04-23 14:28:23] Production.INFO: ProcessCDR(1,14972886,1,1,2) [2025-04-23 14:28:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972886', 'tblTempUsageDetail_20' ) start [2025-04-23 14:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972886', 'tblTempUsageDetail_20' ) end [2025-04-23 14:28:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 14:28:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 14:28:28] Production.INFO: ==26149== Releasing lock... [2025-04-23 14:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 14:28:28] Production.INFO: 78 MB #Memory Used# [2025-04-23 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 11:29:05 [end_date_ymd] => 2025-04-23 14:29:05 [RateCDR] => 1 ) [2025-04-23 14:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 11:29:05' and `end` < '2025-04-23 14:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 14:29:19] Production.INFO: count ==6636 [2025-04-23 14:29:22] Production.ERROR: pbx CDR StartTime 2025-04-23 11:29:05 - End Time 2025-04-23 14:29:05 [2025-04-23 14:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972891', 'tblTempUsageDetail_20' ) start [2025-04-23 14:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972891', 'tblTempUsageDetail_20' ) end [2025-04-23 14:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972891', 'tblTempVendorCDR_20' ) start [2025-04-23 14:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972891', 'tblTempVendorCDR_20' ) end [2025-04-23 14:29:23] Production.INFO: ProcessCDR(1,14972891,1,1,2) [2025-04-23 14:29:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972891', 'tblTempUsageDetail_20' ) start [2025-04-23 14:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972891', 'tblTempUsageDetail_20' ) end [2025-04-23 14:29:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 14:29:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 14:29:28] Production.INFO: ==26222== Releasing lock... [2025-04-23 14:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 14:29:28] Production.INFO: 77.75 MB #Memory Used# [2025-04-23 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 11:30:06 [end_date_ymd] => 2025-04-23 14:30:06 [RateCDR] => 1 ) [2025-04-23 14:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 11:30:06' and `end` < '2025-04-23 14:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 14:30:20] Production.INFO: count ==6626 [2025-04-23 14:30:23] Production.ERROR: pbx CDR StartTime 2025-04-23 11:30:06 - End Time 2025-04-23 14:30:06 [2025-04-23 14:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 14:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972897', 'tblTempUsageDetail_20' ) start [2025-04-23 14:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972897', 'tblTempUsageDetail_20' ) end [2025-04-23 14:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972897', 'tblTempVendorCDR_20' ) start [2025-04-23 14:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972897', 'tblTempVendorCDR_20' ) end [2025-04-23 14:30:24] Production.INFO: ProcessCDR(1,14972897,1,1,2) [2025-04-23 14:30:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:30:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972897', 'tblTempUsageDetail_20' ) start [2025-04-23 14:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972897', 'tblTempUsageDetail_20' ) end [2025-04-23 14:30:29] Production.ERROR: pbx prc_insertCDR start [2025-04-23 14:30:29] Production.ERROR: pbx prc_insertCDR end [2025-04-23 14:30:29] Production.INFO: ==26297== Releasing lock... [2025-04-23 14:30:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 14:30:29] Production.INFO: 77.75 MB #Memory Used# [2025-04-23 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 11:31:05 [end_date_ymd] => 2025-04-23 14:31:05 [RateCDR] => 1 ) [2025-04-23 14:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 11:31:05' and `end` < '2025-04-23 14:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 14:31:19] Production.INFO: count ==6587 [2025-04-23 14:31:22] Production.ERROR: pbx CDR StartTime 2025-04-23 11:31:05 - End Time 2025-04-23 14:31:05 [2025-04-23 14:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 14:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972902', 'tblTempUsageDetail_20' ) start [2025-04-23 14:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972902', 'tblTempUsageDetail_20' ) end [2025-04-23 14:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972902', 'tblTempVendorCDR_20' ) start [2025-04-23 14:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972902', 'tblTempVendorCDR_20' ) end [2025-04-23 14:31:23] Production.INFO: ProcessCDR(1,14972902,1,1,2) [2025-04-23 14:31:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:31:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972902', 'tblTempUsageDetail_20' ) start [2025-04-23 14:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972902', 'tblTempUsageDetail_20' ) end [2025-04-23 14:31:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 14:31:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 14:31:28] Production.INFO: ==26371== Releasing lock... [2025-04-23 14:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 14:31:28] Production.INFO: 77.5 MB #Memory Used# [2025-04-23 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 11:32:05 [end_date_ymd] => 2025-04-23 14:32:05 [RateCDR] => 1 ) [2025-04-23 14:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 11:32:05' and `end` < '2025-04-23 14:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 14:32:19] Production.INFO: count ==6579 [2025-04-23 14:32:22] Production.ERROR: pbx CDR StartTime 2025-04-23 11:32:05 - End Time 2025-04-23 14:32:05 [2025-04-23 14:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 14:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972907', 'tblTempUsageDetail_20' ) start [2025-04-23 14:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972907', 'tblTempUsageDetail_20' ) end [2025-04-23 14:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972907', 'tblTempVendorCDR_20' ) start [2025-04-23 14:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972907', 'tblTempVendorCDR_20' ) end [2025-04-23 14:32:22] Production.INFO: ProcessCDR(1,14972907,1,1,2) [2025-04-23 14:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972907', 'tblTempUsageDetail_20' ) start [2025-04-23 14:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972907', 'tblTempUsageDetail_20' ) end [2025-04-23 14:32:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 14:32:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 14:32:27] Production.INFO: ==26443== Releasing lock... [2025-04-23 14:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 14:32:27] Production.INFO: 77.5 MB #Memory Used# [2025-04-23 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 11:33:05 [end_date_ymd] => 2025-04-23 14:33:05 [RateCDR] => 1 ) [2025-04-23 14:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 11:33:05' and `end` < '2025-04-23 14:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 14:33:19] Production.INFO: count ==6572 [2025-04-23 14:33:22] Production.ERROR: pbx CDR StartTime 2025-04-23 11:33:05 - End Time 2025-04-23 14:33:05 [2025-04-23 14:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 14:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972912', 'tblTempUsageDetail_20' ) start [2025-04-23 14:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972912', 'tblTempUsageDetail_20' ) end [2025-04-23 14:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972912', 'tblTempVendorCDR_20' ) start [2025-04-23 14:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972912', 'tblTempVendorCDR_20' ) end [2025-04-23 14:33:23] Production.INFO: ProcessCDR(1,14972912,1,1,2) [2025-04-23 14:33:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:33:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:33:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972912', 'tblTempUsageDetail_20' ) start [2025-04-23 14:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972912', 'tblTempUsageDetail_20' ) end [2025-04-23 14:33:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 14:33:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 14:33:28] Production.INFO: ==26516== Releasing lock... [2025-04-23 14:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 14:33:28] Production.INFO: 77.25 MB #Memory Used# [2025-04-23 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 11:34:05 [end_date_ymd] => 2025-04-23 14:34:05 [RateCDR] => 1 ) [2025-04-23 14:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 11:34:05' and `end` < '2025-04-23 14:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 14:34:19] Production.INFO: count ==6572 [2025-04-23 14:34:21] Production.ERROR: pbx CDR StartTime 2025-04-23 11:34:05 - End Time 2025-04-23 14:34:05 [2025-04-23 14:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972917', 'tblTempUsageDetail_20' ) start [2025-04-23 14:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972917', 'tblTempUsageDetail_20' ) end [2025-04-23 14:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972917', 'tblTempVendorCDR_20' ) start [2025-04-23 14:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972917', 'tblTempVendorCDR_20' ) end [2025-04-23 14:34:22] Production.INFO: ProcessCDR(1,14972917,1,1,2) [2025-04-23 14:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972917', 'tblTempUsageDetail_20' ) start [2025-04-23 14:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972917', 'tblTempUsageDetail_20' ) end [2025-04-23 14:34:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 14:34:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 14:34:27] Production.INFO: ==26596== Releasing lock... [2025-04-23 14:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 14:34:27] Production.INFO: 77.25 MB #Memory Used# [2025-04-23 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 11:35:05 [end_date_ymd] => 2025-04-23 14:35:05 [RateCDR] => 1 ) [2025-04-23 14:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 11:35:05' and `end` < '2025-04-23 14:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 14:35:19] Production.INFO: count ==6553 [2025-04-23 14:35:22] Production.ERROR: pbx CDR StartTime 2025-04-23 11:35:05 - End Time 2025-04-23 14:35:05 [2025-04-23 14:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972922', 'tblTempUsageDetail_20' ) start [2025-04-23 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972922', 'tblTempUsageDetail_20' ) end [2025-04-23 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972922', 'tblTempVendorCDR_20' ) start [2025-04-23 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972922', 'tblTempVendorCDR_20' ) end [2025-04-23 14:35:22] Production.INFO: ProcessCDR(1,14972922,1,1,2) [2025-04-23 14:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972922', 'tblTempUsageDetail_20' ) start [2025-04-23 14:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972922', 'tblTempUsageDetail_20' ) end [2025-04-23 14:35:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 14:35:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 14:35:28] Production.INFO: ==26667== Releasing lock... [2025-04-23 14:35:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 14:35:28] Production.INFO: 77.25 MB #Memory Used# [2025-04-23 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 11:36:05 [end_date_ymd] => 2025-04-23 14:36:05 [RateCDR] => 1 ) [2025-04-23 14:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 11:36:05' and `end` < '2025-04-23 14:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 14:36:19] Production.INFO: count ==6548 [2025-04-23 14:36:22] Production.ERROR: pbx CDR StartTime 2025-04-23 11:36:05 - End Time 2025-04-23 14:36:05 [2025-04-23 14:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972927', 'tblTempUsageDetail_20' ) start [2025-04-23 14:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972927', 'tblTempUsageDetail_20' ) end [2025-04-23 14:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972927', 'tblTempVendorCDR_20' ) start [2025-04-23 14:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972927', 'tblTempVendorCDR_20' ) end [2025-04-23 14:36:23] Production.INFO: ProcessCDR(1,14972927,1,1,2) [2025-04-23 14:36:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972927', 'tblTempUsageDetail_20' ) start [2025-04-23 14:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972927', 'tblTempUsageDetail_20' ) end [2025-04-23 14:36:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 14:36:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 14:36:28] Production.INFO: ==26740== Releasing lock... [2025-04-23 14:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 14:36:28] Production.INFO: 77.25 MB #Memory Used# [2025-04-23 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 11:37:05 [end_date_ymd] => 2025-04-23 14:37:05 [RateCDR] => 1 ) [2025-04-23 14:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 11:37:05' and `end` < '2025-04-23 14:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 14:37:19] Production.INFO: count ==6544 [2025-04-23 14:37:22] Production.ERROR: pbx CDR StartTime 2025-04-23 11:37:05 - End Time 2025-04-23 14:37:05 [2025-04-23 14:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 14:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972932', 'tblTempUsageDetail_20' ) start [2025-04-23 14:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972932', 'tblTempUsageDetail_20' ) end [2025-04-23 14:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972932', 'tblTempVendorCDR_20' ) start [2025-04-23 14:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972932', 'tblTempVendorCDR_20' ) end [2025-04-23 14:37:22] Production.INFO: ProcessCDR(1,14972932,1,1,2) [2025-04-23 14:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972932', 'tblTempUsageDetail_20' ) start [2025-04-23 14:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972932', 'tblTempUsageDetail_20' ) end [2025-04-23 14:37:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 14:37:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 14:37:28] Production.INFO: ==26814== Releasing lock... [2025-04-23 14:37:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 14:37:28] Production.INFO: 77.25 MB #Memory Used# [2025-04-23 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 11:38:05 [end_date_ymd] => 2025-04-23 14:38:05 [RateCDR] => 1 ) [2025-04-23 14:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 11:38:05' and `end` < '2025-04-23 14:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 14:38:19] Production.INFO: count ==6540 [2025-04-23 14:38:22] Production.ERROR: pbx CDR StartTime 2025-04-23 11:38:05 - End Time 2025-04-23 14:38:05 [2025-04-23 14:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972937', 'tblTempUsageDetail_20' ) start [2025-04-23 14:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972937', 'tblTempUsageDetail_20' ) end [2025-04-23 14:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972937', 'tblTempVendorCDR_20' ) start [2025-04-23 14:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972937', 'tblTempVendorCDR_20' ) end [2025-04-23 14:38:23] Production.INFO: ProcessCDR(1,14972937,1,1,2) [2025-04-23 14:38:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972937', 'tblTempUsageDetail_20' ) start [2025-04-23 14:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972937', 'tblTempUsageDetail_20' ) end [2025-04-23 14:38:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 14:38:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 14:38:27] Production.INFO: ==26891== Releasing lock... [2025-04-23 14:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 14:38:27] Production.INFO: 77 MB #Memory Used# [2025-04-23 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 11:39:05 [end_date_ymd] => 2025-04-23 14:39:05 [RateCDR] => 1 ) [2025-04-23 14:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 11:39:05' and `end` < '2025-04-23 14:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 14:39:19] Production.INFO: count ==6547 [2025-04-23 14:39:22] Production.ERROR: pbx CDR StartTime 2025-04-23 11:39:05 - End Time 2025-04-23 14:39:05 [2025-04-23 14:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 14:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972942', 'tblTempUsageDetail_20' ) start [2025-04-23 14:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972942', 'tblTempUsageDetail_20' ) end [2025-04-23 14:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972942', 'tblTempVendorCDR_20' ) start [2025-04-23 14:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972942', 'tblTempVendorCDR_20' ) end [2025-04-23 14:39:22] Production.INFO: ProcessCDR(1,14972942,1,1,2) [2025-04-23 14:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972942', 'tblTempUsageDetail_20' ) start [2025-04-23 14:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972942', 'tblTempUsageDetail_20' ) end [2025-04-23 14:39:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 14:39:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 14:39:27] Production.INFO: ==26971== Releasing lock... [2025-04-23 14:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 14:39:27] Production.INFO: 77.25 MB #Memory Used# [2025-04-23 14:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 11:40:06 [end_date_ymd] => 2025-04-23 14:40:06 [RateCDR] => 1 ) [2025-04-23 14:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 11:40:06' and `end` < '2025-04-23 14:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 14:40:20] Production.INFO: count ==6565 [2025-04-23 14:40:23] Production.ERROR: pbx CDR StartTime 2025-04-23 11:40:06 - End Time 2025-04-23 14:40:06 [2025-04-23 14:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 14:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972948', 'tblTempUsageDetail_20' ) start [2025-04-23 14:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972948', 'tblTempUsageDetail_20' ) end [2025-04-23 14:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972948', 'tblTempVendorCDR_20' ) start [2025-04-23 14:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972948', 'tblTempVendorCDR_20' ) end [2025-04-23 14:40:24] Production.INFO: ProcessCDR(1,14972948,1,1,2) [2025-04-23 14:40:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:40:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972948', 'tblTempUsageDetail_20' ) start [2025-04-23 14:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972948', 'tblTempUsageDetail_20' ) end [2025-04-23 14:40:29] Production.ERROR: pbx prc_insertCDR start [2025-04-23 14:40:29] Production.ERROR: pbx prc_insertCDR end [2025-04-23 14:40:29] Production.INFO: ==27052== Releasing lock... [2025-04-23 14:40:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 14:40:29] Production.INFO: 77.25 MB #Memory Used# [2025-04-23 14:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 11:41:06 [end_date_ymd] => 2025-04-23 14:41:06 [RateCDR] => 1 ) [2025-04-23 14:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 11:41:06' and `end` < '2025-04-23 14:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 14:41:20] Production.INFO: count ==6525 [2025-04-23 14:41:22] Production.ERROR: pbx CDR StartTime 2025-04-23 11:41:06 - End Time 2025-04-23 14:41:06 [2025-04-23 14:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 14:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972953', 'tblTempUsageDetail_20' ) start [2025-04-23 14:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972953', 'tblTempUsageDetail_20' ) end [2025-04-23 14:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972953', 'tblTempVendorCDR_20' ) start [2025-04-23 14:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972953', 'tblTempVendorCDR_20' ) end [2025-04-23 14:41:23] Production.INFO: ProcessCDR(1,14972953,1,1,2) [2025-04-23 14:41:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:41:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:41:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:41:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972953', 'tblTempUsageDetail_20' ) start [2025-04-23 14:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972953', 'tblTempUsageDetail_20' ) end [2025-04-23 14:41:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 14:41:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 14:41:28] Production.INFO: ==27128== Releasing lock... [2025-04-23 14:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 14:41:28] Production.INFO: 77 MB #Memory Used# [2025-04-23 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 11:42:05 [end_date_ymd] => 2025-04-23 14:42:05 [RateCDR] => 1 ) [2025-04-23 14:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 11:42:05' and `end` < '2025-04-23 14:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 14:42:19] Production.INFO: count ==6509 [2025-04-23 14:42:21] Production.ERROR: pbx CDR StartTime 2025-04-23 11:42:05 - End Time 2025-04-23 14:42:05 [2025-04-23 14:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972958', 'tblTempUsageDetail_20' ) start [2025-04-23 14:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972958', 'tblTempUsageDetail_20' ) end [2025-04-23 14:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972958', 'tblTempVendorCDR_20' ) start [2025-04-23 14:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972958', 'tblTempVendorCDR_20' ) end [2025-04-23 14:42:22] Production.INFO: ProcessCDR(1,14972958,1,1,2) [2025-04-23 14:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972958', 'tblTempUsageDetail_20' ) start [2025-04-23 14:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972958', 'tblTempUsageDetail_20' ) end [2025-04-23 14:42:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 14:42:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 14:42:27] Production.INFO: ==27243== Releasing lock... [2025-04-23 14:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 14:42:27] Production.INFO: 77 MB #Memory Used# [2025-04-23 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 11:43:05 [end_date_ymd] => 2025-04-23 14:43:05 [RateCDR] => 1 ) [2025-04-23 14:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 11:43:05' and `end` < '2025-04-23 14:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 14:43:19] Production.INFO: count ==6500 [2025-04-23 14:43:22] Production.ERROR: pbx CDR StartTime 2025-04-23 11:43:05 - End Time 2025-04-23 14:43:05 [2025-04-23 14:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 14:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972963', 'tblTempUsageDetail_20' ) start [2025-04-23 14:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972963', 'tblTempUsageDetail_20' ) end [2025-04-23 14:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972963', 'tblTempVendorCDR_20' ) start [2025-04-23 14:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972963', 'tblTempVendorCDR_20' ) end [2025-04-23 14:43:22] Production.INFO: ProcessCDR(1,14972963,1,1,2) [2025-04-23 14:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972963', 'tblTempUsageDetail_20' ) start [2025-04-23 14:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972963', 'tblTempUsageDetail_20' ) end [2025-04-23 14:43:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 14:43:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 14:43:27] Production.INFO: ==27315== Releasing lock... [2025-04-23 14:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 14:43:27] Production.INFO: 76.75 MB #Memory Used# [2025-04-23 14:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 11:44:04 [end_date_ymd] => 2025-04-23 14:44:04 [RateCDR] => 1 ) [2025-04-23 14:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 11:44:04' and `end` < '2025-04-23 14:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 14:44:18] Production.INFO: count ==6488 [2025-04-23 14:44:21] Production.ERROR: pbx CDR StartTime 2025-04-23 11:44:04 - End Time 2025-04-23 14:44:04 [2025-04-23 14:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972966', 'tblTempUsageDetail_20' ) start [2025-04-23 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972966', 'tblTempUsageDetail_20' ) end [2025-04-23 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972966', 'tblTempVendorCDR_20' ) start [2025-04-23 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972966', 'tblTempVendorCDR_20' ) end [2025-04-23 14:44:22] Production.INFO: ProcessCDR(1,14972966,1,1,2) [2025-04-23 14:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972966', 'tblTempUsageDetail_20' ) start [2025-04-23 14:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972966', 'tblTempUsageDetail_20' ) end [2025-04-23 14:44:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 14:44:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 14:44:27] Production.INFO: ==27392== Releasing lock... [2025-04-23 14:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 14:44:27] Production.INFO: 76.75 MB #Memory Used# [2025-04-23 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 11:45:05 [end_date_ymd] => 2025-04-23 14:45:05 [RateCDR] => 1 ) [2025-04-23 14:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 11:45:05' and `end` < '2025-04-23 14:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 14:45:20] Production.INFO: count ==6478 [2025-04-23 14:45:22] Production.ERROR: pbx CDR StartTime 2025-04-23 11:45:05 - End Time 2025-04-23 14:45:05 [2025-04-23 14:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972973', 'tblTempUsageDetail_20' ) start [2025-04-23 14:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972973', 'tblTempUsageDetail_20' ) end [2025-04-23 14:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972973', 'tblTempVendorCDR_20' ) start [2025-04-23 14:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972973', 'tblTempVendorCDR_20' ) end [2025-04-23 14:45:23] Production.INFO: ProcessCDR(1,14972973,1,1,2) [2025-04-23 14:45:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:45:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:45:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:45:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972973', 'tblTempUsageDetail_20' ) start [2025-04-23 14:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972973', 'tblTempUsageDetail_20' ) end [2025-04-23 14:45:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 14:45:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 14:45:28] Production.INFO: ==27462== Releasing lock... [2025-04-23 14:45:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 14:45:28] Production.INFO: 76.75 MB #Memory Used# [2025-04-23 14:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 11:46:05 [end_date_ymd] => 2025-04-23 14:46:05 [RateCDR] => 1 ) [2025-04-23 14:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 11:46:05' and `end` < '2025-04-23 14:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 14:46:20] Production.INFO: count ==6498 [2025-04-23 14:46:23] Production.ERROR: pbx CDR StartTime 2025-04-23 11:46:05 - End Time 2025-04-23 14:46:05 [2025-04-23 14:46:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 14:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972978', 'tblTempUsageDetail_20' ) start [2025-04-23 14:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972978', 'tblTempUsageDetail_20' ) end [2025-04-23 14:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972978', 'tblTempVendorCDR_20' ) start [2025-04-23 14:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972978', 'tblTempVendorCDR_20' ) end [2025-04-23 14:46:23] Production.INFO: ProcessCDR(1,14972978,1,1,2) [2025-04-23 14:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:46:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:46:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972978', 'tblTempUsageDetail_20' ) start [2025-04-23 14:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972978', 'tblTempUsageDetail_20' ) end [2025-04-23 14:46:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 14:46:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 14:46:28] Production.INFO: ==27537== Releasing lock... [2025-04-23 14:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 14:46:28] Production.INFO: 76.75 MB #Memory Used# [2025-04-23 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 11:47:05 [end_date_ymd] => 2025-04-23 14:47:05 [RateCDR] => 1 ) [2025-04-23 14:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 11:47:05' and `end` < '2025-04-23 14:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 14:47:20] Production.INFO: count ==6499 [2025-04-23 14:47:22] Production.ERROR: pbx CDR StartTime 2025-04-23 11:47:05 - End Time 2025-04-23 14:47:05 [2025-04-23 14:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 14:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972983', 'tblTempUsageDetail_20' ) start [2025-04-23 14:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972983', 'tblTempUsageDetail_20' ) end [2025-04-23 14:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972983', 'tblTempVendorCDR_20' ) start [2025-04-23 14:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972983', 'tblTempVendorCDR_20' ) end [2025-04-23 14:47:23] Production.INFO: ProcessCDR(1,14972983,1,1,2) [2025-04-23 14:47:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:47:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972983', 'tblTempUsageDetail_20' ) start [2025-04-23 14:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972983', 'tblTempUsageDetail_20' ) end [2025-04-23 14:47:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 14:47:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 14:47:28] Production.INFO: ==27611== Releasing lock... [2025-04-23 14:47:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 14:47:28] Production.INFO: 76.75 MB #Memory Used# [2025-04-23 14:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 11:48:06 [end_date_ymd] => 2025-04-23 14:48:06 [RateCDR] => 1 ) [2025-04-23 14:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 11:48:06' and `end` < '2025-04-23 14:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 14:48:20] Production.INFO: count ==6511 [2025-04-23 14:48:23] Production.ERROR: pbx CDR StartTime 2025-04-23 11:48:06 - End Time 2025-04-23 14:48:06 [2025-04-23 14:48:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 14:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972988', 'tblTempUsageDetail_20' ) start [2025-04-23 14:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972988', 'tblTempUsageDetail_20' ) end [2025-04-23 14:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972988', 'tblTempVendorCDR_20' ) start [2025-04-23 14:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972988', 'tblTempVendorCDR_20' ) end [2025-04-23 14:48:24] Production.INFO: ProcessCDR(1,14972988,1,1,2) [2025-04-23 14:48:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:48:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:48:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:48:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972988', 'tblTempUsageDetail_20' ) start [2025-04-23 14:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972988', 'tblTempUsageDetail_20' ) end [2025-04-23 14:48:29] Production.ERROR: pbx prc_insertCDR start [2025-04-23 14:48:29] Production.ERROR: pbx prc_insertCDR end [2025-04-23 14:48:29] Production.INFO: ==27689== Releasing lock... [2025-04-23 14:48:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 14:48:29] Production.INFO: 77 MB #Memory Used# [2025-04-23 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 11:49:05 [end_date_ymd] => 2025-04-23 14:49:05 [RateCDR] => 1 ) [2025-04-23 14:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 11:49:05' and `end` < '2025-04-23 14:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 14:49:19] Production.INFO: count ==6511 [2025-04-23 14:49:22] Production.ERROR: pbx CDR StartTime 2025-04-23 11:49:05 - End Time 2025-04-23 14:49:05 [2025-04-23 14:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 14:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972993', 'tblTempUsageDetail_20' ) start [2025-04-23 14:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972993', 'tblTempUsageDetail_20' ) end [2025-04-23 14:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972993', 'tblTempVendorCDR_20' ) start [2025-04-23 14:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972993', 'tblTempVendorCDR_20' ) end [2025-04-23 14:49:22] Production.INFO: ProcessCDR(1,14972993,1,1,2) [2025-04-23 14:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972993', 'tblTempUsageDetail_20' ) start [2025-04-23 14:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972993', 'tblTempUsageDetail_20' ) end [2025-04-23 14:49:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 14:49:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 14:49:27] Production.INFO: ==27760== Releasing lock... [2025-04-23 14:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 14:49:27] Production.INFO: 77 MB #Memory Used# [2025-04-23 14:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 11:50:05 [end_date_ymd] => 2025-04-23 14:50:05 [RateCDR] => 1 ) [2025-04-23 14:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 11:50:05' and `end` < '2025-04-23 14:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 14:50:20] Production.INFO: count ==6515 [2025-04-23 14:50:22] Production.ERROR: pbx CDR StartTime 2025-04-23 11:50:05 - End Time 2025-04-23 14:50:05 [2025-04-23 14:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972998', 'tblTempUsageDetail_20' ) start [2025-04-23 14:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14972998', 'tblTempUsageDetail_20' ) end [2025-04-23 14:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972998', 'tblTempVendorCDR_20' ) start [2025-04-23 14:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14972998', 'tblTempVendorCDR_20' ) end [2025-04-23 14:50:23] Production.INFO: ProcessCDR(1,14972998,1,1,2) [2025-04-23 14:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14972998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:50:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14972998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:50:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14972998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14972998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972998', 'tblTempUsageDetail_20' ) start [2025-04-23 14:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14972998', 'tblTempUsageDetail_20' ) end [2025-04-23 14:50:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 14:50:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 14:50:28] Production.INFO: ==27841== Releasing lock... [2025-04-23 14:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 14:50:28] Production.INFO: 77 MB #Memory Used# [2025-04-23 14:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 11:51:04 [end_date_ymd] => 2025-04-23 14:51:04 [RateCDR] => 1 ) [2025-04-23 14:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 11:51:04' and `end` < '2025-04-23 14:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 14:51:18] Production.INFO: count ==6512 [2025-04-23 14:51:21] Production.ERROR: pbx CDR StartTime 2025-04-23 11:51:04 - End Time 2025-04-23 14:51:04 [2025-04-23 14:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973004', 'tblTempUsageDetail_20' ) start [2025-04-23 14:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973004', 'tblTempUsageDetail_20' ) end [2025-04-23 14:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973004', 'tblTempVendorCDR_20' ) start [2025-04-23 14:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973004', 'tblTempVendorCDR_20' ) end [2025-04-23 14:51:22] Production.INFO: ProcessCDR(1,14973004,1,1,2) [2025-04-23 14:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973004', 'tblTempUsageDetail_20' ) start [2025-04-23 14:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973004', 'tblTempUsageDetail_20' ) end [2025-04-23 14:51:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 14:51:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 14:51:26] Production.INFO: ==27919== Releasing lock... [2025-04-23 14:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 14:51:26] Production.INFO: 77 MB #Memory Used# [2025-04-23 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 11:52:05 [end_date_ymd] => 2025-04-23 14:52:05 [RateCDR] => 1 ) [2025-04-23 14:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 11:52:05' and `end` < '2025-04-23 14:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 14:52:19] Production.INFO: count ==6560 [2025-04-23 14:52:22] Production.ERROR: pbx CDR StartTime 2025-04-23 11:52:05 - End Time 2025-04-23 14:52:05 [2025-04-23 14:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 14:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973009', 'tblTempUsageDetail_20' ) start [2025-04-23 14:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973009', 'tblTempUsageDetail_20' ) end [2025-04-23 14:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973009', 'tblTempVendorCDR_20' ) start [2025-04-23 14:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973009', 'tblTempVendorCDR_20' ) end [2025-04-23 14:52:23] Production.INFO: ProcessCDR(1,14973009,1,1,2) [2025-04-23 14:52:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973009', 'tblTempUsageDetail_20' ) start [2025-04-23 14:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973009', 'tblTempUsageDetail_20' ) end [2025-04-23 14:52:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 14:52:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 14:52:28] Production.INFO: ==27995== Releasing lock... [2025-04-23 14:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 14:52:28] Production.INFO: 77.25 MB #Memory Used# [2025-04-23 14:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 11:53:05 [end_date_ymd] => 2025-04-23 14:53:05 [RateCDR] => 1 ) [2025-04-23 14:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 11:53:05' and `end` < '2025-04-23 14:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 14:53:19] Production.INFO: count ==6546 [2025-04-23 14:53:21] Production.ERROR: pbx CDR StartTime 2025-04-23 11:53:05 - End Time 2025-04-23 14:53:05 [2025-04-23 14:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973014', 'tblTempUsageDetail_20' ) start [2025-04-23 14:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973014', 'tblTempUsageDetail_20' ) end [2025-04-23 14:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973014', 'tblTempVendorCDR_20' ) start [2025-04-23 14:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973014', 'tblTempVendorCDR_20' ) end [2025-04-23 14:53:22] Production.INFO: ProcessCDR(1,14973014,1,1,2) [2025-04-23 14:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973014', 'tblTempUsageDetail_20' ) start [2025-04-23 14:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973014', 'tblTempUsageDetail_20' ) end [2025-04-23 14:53:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 14:53:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 14:53:27] Production.INFO: ==28069== Releasing lock... [2025-04-23 14:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 14:53:27] Production.INFO: 77.25 MB #Memory Used# [2025-04-23 14:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 11:54:06 [end_date_ymd] => 2025-04-23 14:54:06 [RateCDR] => 1 ) [2025-04-23 14:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 11:54:06' and `end` < '2025-04-23 14:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 14:54:20] Production.INFO: count ==6552 [2025-04-23 14:54:23] Production.ERROR: pbx CDR StartTime 2025-04-23 11:54:06 - End Time 2025-04-23 14:54:06 [2025-04-23 14:54:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 14:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973019', 'tblTempUsageDetail_20' ) start [2025-04-23 14:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973019', 'tblTempUsageDetail_20' ) end [2025-04-23 14:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973019', 'tblTempVendorCDR_20' ) start [2025-04-23 14:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973019', 'tblTempVendorCDR_20' ) end [2025-04-23 14:54:24] Production.INFO: ProcessCDR(1,14973019,1,1,2) [2025-04-23 14:54:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:54:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:54:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:54:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973019', 'tblTempUsageDetail_20' ) start [2025-04-23 14:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973019', 'tblTempUsageDetail_20' ) end [2025-04-23 14:54:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 14:54:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 14:54:28] Production.INFO: ==28146== Releasing lock... [2025-04-23 14:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 14:54:28] Production.INFO: 77.25 MB #Memory Used# [2025-04-23 14:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 11:55:06 [end_date_ymd] => 2025-04-23 14:55:06 [RateCDR] => 1 ) [2025-04-23 14:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 11:55:06' and `end` < '2025-04-23 14:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 14:55:20] Production.INFO: count ==6552 [2025-04-23 14:55:22] Production.ERROR: pbx CDR StartTime 2025-04-23 11:55:06 - End Time 2025-04-23 14:55:06 [2025-04-23 14:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 14:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973024', 'tblTempUsageDetail_20' ) start [2025-04-23 14:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973024', 'tblTempUsageDetail_20' ) end [2025-04-23 14:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973024', 'tblTempVendorCDR_20' ) start [2025-04-23 14:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973024', 'tblTempVendorCDR_20' ) end [2025-04-23 14:55:23] Production.INFO: ProcessCDR(1,14973024,1,1,2) [2025-04-23 14:55:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:55:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:55:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:55:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973024', 'tblTempUsageDetail_20' ) start [2025-04-23 14:55:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973024', 'tblTempUsageDetail_20' ) end [2025-04-23 14:55:29] Production.ERROR: pbx prc_insertCDR start [2025-04-23 14:55:29] Production.ERROR: pbx prc_insertCDR end [2025-04-23 14:55:29] Production.INFO: ==28224== Releasing lock... [2025-04-23 14:55:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 14:55:29] Production.INFO: 77.25 MB #Memory Used# [2025-04-23 14:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 11:56:05 [end_date_ymd] => 2025-04-23 14:56:05 [RateCDR] => 1 ) [2025-04-23 14:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 11:56:05' and `end` < '2025-04-23 14:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 14:56:19] Production.INFO: count ==6553 [2025-04-23 14:56:22] Production.ERROR: pbx CDR StartTime 2025-04-23 11:56:05 - End Time 2025-04-23 14:56:05 [2025-04-23 14:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973029', 'tblTempUsageDetail_20' ) start [2025-04-23 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973029', 'tblTempUsageDetail_20' ) end [2025-04-23 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973029', 'tblTempVendorCDR_20' ) start [2025-04-23 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973029', 'tblTempVendorCDR_20' ) end [2025-04-23 14:56:22] Production.INFO: ProcessCDR(1,14973029,1,1,2) [2025-04-23 14:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973029', 'tblTempUsageDetail_20' ) start [2025-04-23 14:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973029', 'tblTempUsageDetail_20' ) end [2025-04-23 14:56:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 14:56:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 14:56:27] Production.INFO: ==28296== Releasing lock... [2025-04-23 14:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 14:56:27] Production.INFO: 77.25 MB #Memory Used# [2025-04-23 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 11:57:05 [end_date_ymd] => 2025-04-23 14:57:05 [RateCDR] => 1 ) [2025-04-23 14:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 11:57:05' and `end` < '2025-04-23 14:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 14:57:19] Production.INFO: count ==6518 [2025-04-23 14:57:22] Production.ERROR: pbx CDR StartTime 2025-04-23 11:57:05 - End Time 2025-04-23 14:57:05 [2025-04-23 14:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 14:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973034', 'tblTempUsageDetail_20' ) start [2025-04-23 14:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973034', 'tblTempUsageDetail_20' ) end [2025-04-23 14:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973034', 'tblTempVendorCDR_20' ) start [2025-04-23 14:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973034', 'tblTempVendorCDR_20' ) end [2025-04-23 14:57:22] Production.INFO: ProcessCDR(1,14973034,1,1,2) [2025-04-23 14:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973034', 'tblTempUsageDetail_20' ) start [2025-04-23 14:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973034', 'tblTempUsageDetail_20' ) end [2025-04-23 14:57:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 14:57:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 14:57:27] Production.INFO: ==28411== Releasing lock... [2025-04-23 14:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 14:57:27] Production.INFO: 77 MB #Memory Used# [2025-04-23 14:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 11:58:05 [end_date_ymd] => 2025-04-23 14:58:05 [RateCDR] => 1 ) [2025-04-23 14:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 11:58:05' and `end` < '2025-04-23 14:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 14:58:18] Production.INFO: count ==6520 [2025-04-23 14:58:21] Production.ERROR: pbx CDR StartTime 2025-04-23 11:58:05 - End Time 2025-04-23 14:58:05 [2025-04-23 14:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973039', 'tblTempUsageDetail_20' ) start [2025-04-23 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973039', 'tblTempUsageDetail_20' ) end [2025-04-23 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973039', 'tblTempVendorCDR_20' ) start [2025-04-23 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973039', 'tblTempVendorCDR_20' ) end [2025-04-23 14:58:22] Production.INFO: ProcessCDR(1,14973039,1,1,2) [2025-04-23 14:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973039', 'tblTempUsageDetail_20' ) start [2025-04-23 14:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973039', 'tblTempUsageDetail_20' ) end [2025-04-23 14:58:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 14:58:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 14:58:27] Production.INFO: ==28483== Releasing lock... [2025-04-23 14:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 14:58:27] Production.INFO: 77 MB #Memory Used# [2025-04-23 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 11:59:05 [end_date_ymd] => 2025-04-23 14:59:05 [RateCDR] => 1 ) [2025-04-23 14:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 11:59:05' and `end` < '2025-04-23 14:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 14:59:19] Production.INFO: count ==6514 [2025-04-23 14:59:22] Production.ERROR: pbx CDR StartTime 2025-04-23 11:59:05 - End Time 2025-04-23 14:59:05 [2025-04-23 14:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973044', 'tblTempUsageDetail_20' ) start [2025-04-23 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973044', 'tblTempUsageDetail_20' ) end [2025-04-23 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973044', 'tblTempVendorCDR_20' ) start [2025-04-23 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973044', 'tblTempVendorCDR_20' ) end [2025-04-23 14:59:22] Production.INFO: ProcessCDR(1,14973044,1,1,2) [2025-04-23 14:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 14:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 14:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973044', 'tblTempUsageDetail_20' ) start [2025-04-23 14:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973044', 'tblTempUsageDetail_20' ) end [2025-04-23 14:59:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 14:59:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 14:59:27] Production.INFO: ==28561== Releasing lock... [2025-04-23 14:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 14:59:27] Production.INFO: 77 MB #Memory Used# [2025-04-23 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 12:00:06 [end_date_ymd] => 2025-04-23 15:00:06 [RateCDR] => 1 ) [2025-04-23 15:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 12:00:06' and `end` < '2025-04-23 15:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 15:00:20] Production.INFO: count ==6503 [2025-04-23 15:00:23] Production.ERROR: pbx CDR StartTime 2025-04-23 12:00:06 - End Time 2025-04-23 15:00:06 [2025-04-23 15:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973050', 'tblTempUsageDetail_20' ) start [2025-04-23 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973050', 'tblTempUsageDetail_20' ) end [2025-04-23 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973050', 'tblTempVendorCDR_20' ) start [2025-04-23 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973050', 'tblTempVendorCDR_20' ) end [2025-04-23 15:00:23] Production.INFO: ProcessCDR(1,14973050,1,1,2) [2025-04-23 15:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973050', 'tblTempUsageDetail_20' ) start [2025-04-23 15:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973050', 'tblTempUsageDetail_20' ) end [2025-04-23 15:00:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 15:00:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 15:00:28] Production.INFO: ==28642== Releasing lock... [2025-04-23 15:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 15:00:28] Production.INFO: 76.75 MB #Memory Used# [2025-04-23 15:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 12:01:05 [end_date_ymd] => 2025-04-23 15:01:05 [RateCDR] => 1 ) [2025-04-23 15:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 12:01:05' and `end` < '2025-04-23 15:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 15:01:19] Production.INFO: count ==6506 [2025-04-23 15:01:21] Production.ERROR: pbx CDR StartTime 2025-04-23 12:01:05 - End Time 2025-04-23 15:01:05 [2025-04-23 15:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973055', 'tblTempUsageDetail_20' ) start [2025-04-23 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973055', 'tblTempUsageDetail_20' ) end [2025-04-23 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973055', 'tblTempVendorCDR_20' ) start [2025-04-23 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973055', 'tblTempVendorCDR_20' ) end [2025-04-23 15:01:22] Production.INFO: ProcessCDR(1,14973055,1,1,2) [2025-04-23 15:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973055', 'tblTempUsageDetail_20' ) start [2025-04-23 15:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973055', 'tblTempUsageDetail_20' ) end [2025-04-23 15:01:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 15:01:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 15:01:27] Production.INFO: ==28813== Releasing lock... [2025-04-23 15:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 15:01:27] Production.INFO: 76.75 MB #Memory Used# [2025-04-23 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 12:02:05 [end_date_ymd] => 2025-04-23 15:02:05 [RateCDR] => 1 ) [2025-04-23 15:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 12:02:05' and `end` < '2025-04-23 15:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 15:02:19] Production.INFO: count ==6485 [2025-04-23 15:02:22] Production.ERROR: pbx CDR StartTime 2025-04-23 12:02:05 - End Time 2025-04-23 15:02:05 [2025-04-23 15:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973060', 'tblTempUsageDetail_20' ) start [2025-04-23 15:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973060', 'tblTempUsageDetail_20' ) end [2025-04-23 15:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973060', 'tblTempVendorCDR_20' ) start [2025-04-23 15:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973060', 'tblTempVendorCDR_20' ) end [2025-04-23 15:02:23] Production.INFO: ProcessCDR(1,14973060,1,1,2) [2025-04-23 15:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973060', 'tblTempUsageDetail_20' ) start [2025-04-23 15:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973060', 'tblTempUsageDetail_20' ) end [2025-04-23 15:02:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 15:02:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 15:02:28] Production.INFO: ==28892== Releasing lock... [2025-04-23 15:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 15:02:28] Production.INFO: 76.75 MB #Memory Used# [2025-04-23 15:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 12:03:05 [end_date_ymd] => 2025-04-23 15:03:05 [RateCDR] => 1 ) [2025-04-23 15:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 12:03:05' and `end` < '2025-04-23 15:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 15:03:19] Production.INFO: count ==6446 [2025-04-23 15:03:22] Production.ERROR: pbx CDR StartTime 2025-04-23 12:03:05 - End Time 2025-04-23 15:03:05 [2025-04-23 15:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973065', 'tblTempUsageDetail_20' ) start [2025-04-23 15:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973065', 'tblTempUsageDetail_20' ) end [2025-04-23 15:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973065', 'tblTempVendorCDR_20' ) start [2025-04-23 15:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973065', 'tblTempVendorCDR_20' ) end [2025-04-23 15:03:23] Production.INFO: ProcessCDR(1,14973065,1,1,2) [2025-04-23 15:03:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973065', 'tblTempUsageDetail_20' ) start [2025-04-23 15:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973065', 'tblTempUsageDetail_20' ) end [2025-04-23 15:03:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 15:03:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 15:03:28] Production.INFO: ==28965== Releasing lock... [2025-04-23 15:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 15:03:28] Production.INFO: 76.5 MB #Memory Used# [2025-04-23 15:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 12:04:06 [end_date_ymd] => 2025-04-23 15:04:06 [RateCDR] => 1 ) [2025-04-23 15:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 12:04:06' and `end` < '2025-04-23 15:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 15:04:20] Production.INFO: count ==6448 [2025-04-23 15:04:23] Production.ERROR: pbx CDR StartTime 2025-04-23 12:04:06 - End Time 2025-04-23 15:04:06 [2025-04-23 15:04:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 15:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973070', 'tblTempUsageDetail_20' ) start [2025-04-23 15:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973070', 'tblTempUsageDetail_20' ) end [2025-04-23 15:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973070', 'tblTempVendorCDR_20' ) start [2025-04-23 15:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973070', 'tblTempVendorCDR_20' ) end [2025-04-23 15:04:24] Production.INFO: ProcessCDR(1,14973070,1,1,2) [2025-04-23 15:04:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:04:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:04:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973070', 'tblTempUsageDetail_20' ) start [2025-04-23 15:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973070', 'tblTempUsageDetail_20' ) end [2025-04-23 15:04:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 15:04:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 15:04:28] Production.INFO: ==29040== Releasing lock... [2025-04-23 15:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 15:04:28] Production.INFO: 76.5 MB #Memory Used# [2025-04-23 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 12:05:05 [end_date_ymd] => 2025-04-23 15:05:05 [RateCDR] => 1 ) [2025-04-23 15:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 12:05:05' and `end` < '2025-04-23 15:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 15:05:19] Production.INFO: count ==6436 [2025-04-23 15:05:21] Production.ERROR: pbx CDR StartTime 2025-04-23 12:05:05 - End Time 2025-04-23 15:05:05 [2025-04-23 15:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973075', 'tblTempUsageDetail_20' ) start [2025-04-23 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973075', 'tblTempUsageDetail_20' ) end [2025-04-23 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973075', 'tblTempVendorCDR_20' ) start [2025-04-23 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973075', 'tblTempVendorCDR_20' ) end [2025-04-23 15:05:22] Production.INFO: ProcessCDR(1,14973075,1,1,2) [2025-04-23 15:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973075', 'tblTempUsageDetail_20' ) start [2025-04-23 15:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973075', 'tblTempUsageDetail_20' ) end [2025-04-23 15:05:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 15:05:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 15:05:27] Production.INFO: ==29191== Releasing lock... [2025-04-23 15:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 15:05:27] Production.INFO: 76.25 MB #Memory Used# [2025-04-23 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 12:06:05 [end_date_ymd] => 2025-04-23 15:06:05 [RateCDR] => 1 ) [2025-04-23 15:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 12:06:05' and `end` < '2025-04-23 15:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 15:06:19] Production.INFO: count ==6454 [2025-04-23 15:06:22] Production.ERROR: pbx CDR StartTime 2025-04-23 12:06:05 - End Time 2025-04-23 15:06:05 [2025-04-23 15:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973080', 'tblTempUsageDetail_20' ) start [2025-04-23 15:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973080', 'tblTempUsageDetail_20' ) end [2025-04-23 15:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973080', 'tblTempVendorCDR_20' ) start [2025-04-23 15:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973080', 'tblTempVendorCDR_20' ) end [2025-04-23 15:06:23] Production.INFO: ProcessCDR(1,14973080,1,1,2) [2025-04-23 15:06:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973080', 'tblTempUsageDetail_20' ) start [2025-04-23 15:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973080', 'tblTempUsageDetail_20' ) end [2025-04-23 15:06:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 15:06:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 15:06:28] Production.INFO: ==29267== Releasing lock... [2025-04-23 15:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 15:06:28] Production.INFO: 76.5 MB #Memory Used# [2025-04-23 15:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 12:07:04 [end_date_ymd] => 2025-04-23 15:07:04 [RateCDR] => 1 ) [2025-04-23 15:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 12:07:04' and `end` < '2025-04-23 15:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 15:07:19] Production.INFO: count ==6463 [2025-04-23 15:07:21] Production.ERROR: pbx CDR StartTime 2025-04-23 12:07:04 - End Time 2025-04-23 15:07:04 [2025-04-23 15:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973085', 'tblTempUsageDetail_20' ) start [2025-04-23 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973085', 'tblTempUsageDetail_20' ) end [2025-04-23 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973085', 'tblTempVendorCDR_20' ) start [2025-04-23 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973085', 'tblTempVendorCDR_20' ) end [2025-04-23 15:07:22] Production.INFO: ProcessCDR(1,14973085,1,1,2) [2025-04-23 15:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973085', 'tblTempUsageDetail_20' ) start [2025-04-23 15:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973085', 'tblTempUsageDetail_20' ) end [2025-04-23 15:07:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 15:07:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 15:07:27] Production.INFO: ==29339== Releasing lock... [2025-04-23 15:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 15:07:27] Production.INFO: 76.5 MB #Memory Used# [2025-04-23 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 12:08:05 [end_date_ymd] => 2025-04-23 15:08:05 [RateCDR] => 1 ) [2025-04-23 15:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 12:08:05' and `end` < '2025-04-23 15:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 15:08:19] Production.INFO: count ==6463 [2025-04-23 15:08:22] Production.ERROR: pbx CDR StartTime 2025-04-23 12:08:05 - End Time 2025-04-23 15:08:05 [2025-04-23 15:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 15:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973090', 'tblTempUsageDetail_20' ) start [2025-04-23 15:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973090', 'tblTempUsageDetail_20' ) end [2025-04-23 15:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973090', 'tblTempVendorCDR_20' ) start [2025-04-23 15:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973090', 'tblTempVendorCDR_20' ) end [2025-04-23 15:08:22] Production.INFO: ProcessCDR(1,14973090,1,1,2) [2025-04-23 15:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973090', 'tblTempUsageDetail_20' ) start [2025-04-23 15:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973090', 'tblTempUsageDetail_20' ) end [2025-04-23 15:08:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 15:08:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 15:08:27] Production.INFO: ==29491== Releasing lock... [2025-04-23 15:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 15:08:27] Production.INFO: 76.5 MB #Memory Used# [2025-04-23 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 12:09:05 [end_date_ymd] => 2025-04-23 15:09:05 [RateCDR] => 1 ) [2025-04-23 15:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 12:09:05' and `end` < '2025-04-23 15:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 15:09:19] Production.INFO: count ==6447 [2025-04-23 15:09:21] Production.ERROR: pbx CDR StartTime 2025-04-23 12:09:05 - End Time 2025-04-23 15:09:05 [2025-04-23 15:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973095', 'tblTempUsageDetail_20' ) start [2025-04-23 15:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973095', 'tblTempUsageDetail_20' ) end [2025-04-23 15:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973095', 'tblTempVendorCDR_20' ) start [2025-04-23 15:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973095', 'tblTempVendorCDR_20' ) end [2025-04-23 15:09:22] Production.INFO: ProcessCDR(1,14973095,1,1,2) [2025-04-23 15:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973095', 'tblTempUsageDetail_20' ) start [2025-04-23 15:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973095', 'tblTempUsageDetail_20' ) end [2025-04-23 15:09:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 15:09:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 15:09:27] Production.INFO: ==29568== Releasing lock... [2025-04-23 15:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 15:09:27] Production.INFO: 76.5 MB #Memory Used# [2025-04-23 15:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 12:10:06 [end_date_ymd] => 2025-04-23 15:10:06 [RateCDR] => 1 ) [2025-04-23 15:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 12:10:06' and `end` < '2025-04-23 15:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 15:10:20] Production.INFO: count ==6446 [2025-04-23 15:10:22] Production.ERROR: pbx CDR StartTime 2025-04-23 12:10:06 - End Time 2025-04-23 15:10:06 [2025-04-23 15:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973101', 'tblTempUsageDetail_20' ) start [2025-04-23 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973101', 'tblTempUsageDetail_20' ) end [2025-04-23 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973101', 'tblTempVendorCDR_20' ) start [2025-04-23 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973101', 'tblTempVendorCDR_20' ) end [2025-04-23 15:10:23] Production.INFO: ProcessCDR(1,14973101,1,1,2) [2025-04-23 15:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973101', 'tblTempUsageDetail_20' ) start [2025-04-23 15:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973101', 'tblTempUsageDetail_20' ) end [2025-04-23 15:10:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 15:10:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 15:10:28] Production.INFO: ==29649== Releasing lock... [2025-04-23 15:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 15:10:28] Production.INFO: 76.5 MB #Memory Used# [2025-04-23 15:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 12:11:04 [end_date_ymd] => 2025-04-23 15:11:04 [RateCDR] => 1 ) [2025-04-23 15:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 12:11:04' and `end` < '2025-04-23 15:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 15:11:18] Production.INFO: count ==6459 [2025-04-23 15:11:21] Production.ERROR: pbx CDR StartTime 2025-04-23 12:11:04 - End Time 2025-04-23 15:11:04 [2025-04-23 15:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973106', 'tblTempUsageDetail_20' ) start [2025-04-23 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973106', 'tblTempUsageDetail_20' ) end [2025-04-23 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973106', 'tblTempVendorCDR_20' ) start [2025-04-23 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973106', 'tblTempVendorCDR_20' ) end [2025-04-23 15:11:22] Production.INFO: ProcessCDR(1,14973106,1,1,2) [2025-04-23 15:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973106', 'tblTempUsageDetail_20' ) start [2025-04-23 15:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973106', 'tblTempUsageDetail_20' ) end [2025-04-23 15:11:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 15:11:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 15:11:27] Production.INFO: ==29723== Releasing lock... [2025-04-23 15:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 15:11:27] Production.INFO: 76.5 MB #Memory Used# [2025-04-23 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 12:12:05 [end_date_ymd] => 2025-04-23 15:12:05 [RateCDR] => 1 ) [2025-04-23 15:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 12:12:05' and `end` < '2025-04-23 15:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 15:12:19] Production.INFO: count ==6470 [2025-04-23 15:12:22] Production.ERROR: pbx CDR StartTime 2025-04-23 12:12:05 - End Time 2025-04-23 15:12:05 [2025-04-23 15:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973111', 'tblTempUsageDetail_20' ) start [2025-04-23 15:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973111', 'tblTempUsageDetail_20' ) end [2025-04-23 15:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973111', 'tblTempVendorCDR_20' ) start [2025-04-23 15:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973111', 'tblTempVendorCDR_20' ) end [2025-04-23 15:12:23] Production.INFO: ProcessCDR(1,14973111,1,1,2) [2025-04-23 15:12:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973111', 'tblTempUsageDetail_20' ) start [2025-04-23 15:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973111', 'tblTempUsageDetail_20' ) end [2025-04-23 15:12:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 15:12:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 15:12:28] Production.INFO: ==29878== Releasing lock... [2025-04-23 15:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 15:12:28] Production.INFO: 76.5 MB #Memory Used# [2025-04-23 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 12:13:05 [end_date_ymd] => 2025-04-23 15:13:05 [RateCDR] => 1 ) [2025-04-23 15:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 12:13:05' and `end` < '2025-04-23 15:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 15:13:19] Production.INFO: count ==6396 [2025-04-23 15:13:22] Production.ERROR: pbx CDR StartTime 2025-04-23 12:13:05 - End Time 2025-04-23 15:13:05 [2025-04-23 15:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 15:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973116', 'tblTempUsageDetail_20' ) start [2025-04-23 15:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973116', 'tblTempUsageDetail_20' ) end [2025-04-23 15:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973116', 'tblTempVendorCDR_20' ) start [2025-04-23 15:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973116', 'tblTempVendorCDR_20' ) end [2025-04-23 15:13:22] Production.INFO: ProcessCDR(1,14973116,1,1,2) [2025-04-23 15:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973116', 'tblTempUsageDetail_20' ) start [2025-04-23 15:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973116', 'tblTempUsageDetail_20' ) end [2025-04-23 15:13:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 15:13:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 15:13:27] Production.INFO: ==29996== Releasing lock... [2025-04-23 15:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 15:13:27] Production.INFO: 76 MB #Memory Used# [2025-04-23 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 12:14:05 [end_date_ymd] => 2025-04-23 15:14:05 [RateCDR] => 1 ) [2025-04-23 15:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 12:14:05' and `end` < '2025-04-23 15:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 15:14:19] Production.INFO: count ==6330 [2025-04-23 15:14:21] Production.ERROR: pbx CDR StartTime 2025-04-23 12:14:05 - End Time 2025-04-23 15:14:05 [2025-04-23 15:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973121', 'tblTempUsageDetail_20' ) start [2025-04-23 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973121', 'tblTempUsageDetail_20' ) end [2025-04-23 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973121', 'tblTempVendorCDR_20' ) start [2025-04-23 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973121', 'tblTempVendorCDR_20' ) end [2025-04-23 15:14:22] Production.INFO: ProcessCDR(1,14973121,1,1,2) [2025-04-23 15:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973121', 'tblTempUsageDetail_20' ) start [2025-04-23 15:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973121', 'tblTempUsageDetail_20' ) end [2025-04-23 15:14:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 15:14:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 15:14:27] Production.INFO: ==30069== Releasing lock... [2025-04-23 15:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 15:14:27] Production.INFO: 75.5 MB #Memory Used# [2025-04-23 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 12:15:05 [end_date_ymd] => 2025-04-23 15:15:05 [RateCDR] => 1 ) [2025-04-23 15:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 12:15:05' and `end` < '2025-04-23 15:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 15:15:19] Production.INFO: count ==6321 [2025-04-23 15:15:22] Production.ERROR: pbx CDR StartTime 2025-04-23 12:15:05 - End Time 2025-04-23 15:15:05 [2025-04-23 15:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 15:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973126', 'tblTempUsageDetail_20' ) start [2025-04-23 15:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973126', 'tblTempUsageDetail_20' ) end [2025-04-23 15:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973126', 'tblTempVendorCDR_20' ) start [2025-04-23 15:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973126', 'tblTempVendorCDR_20' ) end [2025-04-23 15:15:23] Production.INFO: ProcessCDR(1,14973126,1,1,2) [2025-04-23 15:15:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:15:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973126', 'tblTempUsageDetail_20' ) start [2025-04-23 15:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973126', 'tblTempUsageDetail_20' ) end [2025-04-23 15:15:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 15:15:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 15:15:28] Production.INFO: ==30224== Releasing lock... [2025-04-23 15:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 15:15:28] Production.INFO: 75.5 MB #Memory Used# [2025-04-23 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 12:16:05 [end_date_ymd] => 2025-04-23 15:16:05 [RateCDR] => 1 ) [2025-04-23 15:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 12:16:05' and `end` < '2025-04-23 15:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 15:16:19] Production.INFO: count ==6282 [2025-04-23 15:16:22] Production.ERROR: pbx CDR StartTime 2025-04-23 12:16:05 - End Time 2025-04-23 15:16:05 [2025-04-23 15:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973131', 'tblTempUsageDetail_20' ) start [2025-04-23 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973131', 'tblTempUsageDetail_20' ) end [2025-04-23 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973131', 'tblTempVendorCDR_20' ) start [2025-04-23 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973131', 'tblTempVendorCDR_20' ) end [2025-04-23 15:16:22] Production.INFO: ProcessCDR(1,14973131,1,1,2) [2025-04-23 15:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973131', 'tblTempUsageDetail_20' ) start [2025-04-23 15:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973131', 'tblTempUsageDetail_20' ) end [2025-04-23 15:16:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 15:16:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 15:16:27] Production.INFO: ==30297== Releasing lock... [2025-04-23 15:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 15:16:27] Production.INFO: 75.25 MB #Memory Used# [2025-04-23 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 12:17:05 [end_date_ymd] => 2025-04-23 15:17:05 [RateCDR] => 1 ) [2025-04-23 15:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 12:17:05' and `end` < '2025-04-23 15:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 15:17:19] Production.INFO: count ==6266 [2025-04-23 15:17:21] Production.ERROR: pbx CDR StartTime 2025-04-23 12:17:05 - End Time 2025-04-23 15:17:05 [2025-04-23 15:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973136', 'tblTempUsageDetail_20' ) start [2025-04-23 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973136', 'tblTempUsageDetail_20' ) end [2025-04-23 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973136', 'tblTempVendorCDR_20' ) start [2025-04-23 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973136', 'tblTempVendorCDR_20' ) end [2025-04-23 15:17:22] Production.INFO: ProcessCDR(1,14973136,1,1,2) [2025-04-23 15:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973136', 'tblTempUsageDetail_20' ) start [2025-04-23 15:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973136', 'tblTempUsageDetail_20' ) end [2025-04-23 15:17:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 15:17:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 15:17:27] Production.INFO: ==30369== Releasing lock... [2025-04-23 15:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 15:17:27] Production.INFO: 75 MB #Memory Used# [2025-04-23 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 12:18:05 [end_date_ymd] => 2025-04-23 15:18:05 [RateCDR] => 1 ) [2025-04-23 15:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 12:18:05' and `end` < '2025-04-23 15:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 15:18:19] Production.INFO: count ==6255 [2025-04-23 15:18:22] Production.ERROR: pbx CDR StartTime 2025-04-23 12:18:05 - End Time 2025-04-23 15:18:05 [2025-04-23 15:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 15:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973141', 'tblTempUsageDetail_20' ) start [2025-04-23 15:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973141', 'tblTempUsageDetail_20' ) end [2025-04-23 15:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973141', 'tblTempVendorCDR_20' ) start [2025-04-23 15:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973141', 'tblTempVendorCDR_20' ) end [2025-04-23 15:18:23] Production.INFO: ProcessCDR(1,14973141,1,1,2) [2025-04-23 15:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973141', 'tblTempUsageDetail_20' ) start [2025-04-23 15:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973141', 'tblTempUsageDetail_20' ) end [2025-04-23 15:18:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 15:18:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 15:18:27] Production.INFO: ==30441== Releasing lock... [2025-04-23 15:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 15:18:27] Production.INFO: 75 MB #Memory Used# [2025-04-23 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 12:19:05 [end_date_ymd] => 2025-04-23 15:19:05 [RateCDR] => 1 ) [2025-04-23 15:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 12:19:05' and `end` < '2025-04-23 15:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 15:19:19] Production.INFO: count ==6229 [2025-04-23 15:19:21] Production.ERROR: pbx CDR StartTime 2025-04-23 12:19:05 - End Time 2025-04-23 15:19:05 [2025-04-23 15:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973146', 'tblTempUsageDetail_20' ) start [2025-04-23 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973146', 'tblTempUsageDetail_20' ) end [2025-04-23 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973146', 'tblTempVendorCDR_20' ) start [2025-04-23 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973146', 'tblTempVendorCDR_20' ) end [2025-04-23 15:19:22] Production.INFO: ProcessCDR(1,14973146,1,1,2) [2025-04-23 15:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973146', 'tblTempUsageDetail_20' ) start [2025-04-23 15:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973146', 'tblTempUsageDetail_20' ) end [2025-04-23 15:19:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 15:19:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 15:19:27] Production.INFO: ==30514== Releasing lock... [2025-04-23 15:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 15:19:27] Production.INFO: 74.75 MB #Memory Used# [2025-04-23 15:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 12:20:06 [end_date_ymd] => 2025-04-23 15:20:06 [RateCDR] => 1 ) [2025-04-23 15:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 12:20:06' and `end` < '2025-04-23 15:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 15:20:21] Production.INFO: count ==6217 [2025-04-23 15:20:23] Production.ERROR: pbx CDR StartTime 2025-04-23 12:20:06 - End Time 2025-04-23 15:20:06 [2025-04-23 15:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 15:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973152', 'tblTempUsageDetail_20' ) start [2025-04-23 15:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973152', 'tblTempUsageDetail_20' ) end [2025-04-23 15:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973152', 'tblTempVendorCDR_20' ) start [2025-04-23 15:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973152', 'tblTempVendorCDR_20' ) end [2025-04-23 15:20:24] Production.INFO: ProcessCDR(1,14973152,1,1,2) [2025-04-23 15:20:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:20:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:20:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:20:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973152', 'tblTempUsageDetail_20' ) start [2025-04-23 15:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973152', 'tblTempUsageDetail_20' ) end [2025-04-23 15:20:29] Production.ERROR: pbx prc_insertCDR start [2025-04-23 15:20:29] Production.ERROR: pbx prc_insertCDR end [2025-04-23 15:20:29] Production.INFO: ==30592== Releasing lock... [2025-04-23 15:20:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 15:20:29] Production.INFO: 74.75 MB #Memory Used# [2025-04-23 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 12:21:05 [end_date_ymd] => 2025-04-23 15:21:05 [RateCDR] => 1 ) [2025-04-23 15:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 12:21:05' and `end` < '2025-04-23 15:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 15:21:19] Production.INFO: count ==6197 [2025-04-23 15:21:22] Production.ERROR: pbx CDR StartTime 2025-04-23 12:21:05 - End Time 2025-04-23 15:21:05 [2025-04-23 15:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 15:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973157', 'tblTempUsageDetail_20' ) start [2025-04-23 15:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973157', 'tblTempUsageDetail_20' ) end [2025-04-23 15:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973157', 'tblTempVendorCDR_20' ) start [2025-04-23 15:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973157', 'tblTempVendorCDR_20' ) end [2025-04-23 15:21:22] Production.INFO: ProcessCDR(1,14973157,1,1,2) [2025-04-23 15:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973157', 'tblTempUsageDetail_20' ) start [2025-04-23 15:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973157', 'tblTempUsageDetail_20' ) end [2025-04-23 15:21:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 15:21:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 15:21:28] Production.INFO: ==30665== Releasing lock... [2025-04-23 15:21:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 15:21:28] Production.INFO: 74.5 MB #Memory Used# [2025-04-23 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 12:22:05 [end_date_ymd] => 2025-04-23 15:22:05 [RateCDR] => 1 ) [2025-04-23 15:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 12:22:05' and `end` < '2025-04-23 15:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 15:22:19] Production.INFO: count ==6205 [2025-04-23 15:22:21] Production.ERROR: pbx CDR StartTime 2025-04-23 12:22:05 - End Time 2025-04-23 15:22:05 [2025-04-23 15:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973162', 'tblTempUsageDetail_20' ) start [2025-04-23 15:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973162', 'tblTempUsageDetail_20' ) end [2025-04-23 15:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973162', 'tblTempVendorCDR_20' ) start [2025-04-23 15:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973162', 'tblTempVendorCDR_20' ) end [2025-04-23 15:22:22] Production.INFO: ProcessCDR(1,14973162,1,1,2) [2025-04-23 15:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973162', 'tblTempUsageDetail_20' ) start [2025-04-23 15:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973162', 'tblTempUsageDetail_20' ) end [2025-04-23 15:22:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 15:22:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 15:22:27] Production.INFO: ==30745== Releasing lock... [2025-04-23 15:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 15:22:27] Production.INFO: 74.5 MB #Memory Used# [2025-04-23 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 12:23:05 [end_date_ymd] => 2025-04-23 15:23:05 [RateCDR] => 1 ) [2025-04-23 15:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 12:23:05' and `end` < '2025-04-23 15:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 15:23:19] Production.INFO: count ==6186 [2025-04-23 15:23:21] Production.ERROR: pbx CDR StartTime 2025-04-23 12:23:05 - End Time 2025-04-23 15:23:05 [2025-04-23 15:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973167', 'tblTempUsageDetail_20' ) start [2025-04-23 15:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973167', 'tblTempUsageDetail_20' ) end [2025-04-23 15:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973167', 'tblTempVendorCDR_20' ) start [2025-04-23 15:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973167', 'tblTempVendorCDR_20' ) end [2025-04-23 15:23:22] Production.INFO: ProcessCDR(1,14973167,1,1,2) [2025-04-23 15:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973167', 'tblTempUsageDetail_20' ) start [2025-04-23 15:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973167', 'tblTempUsageDetail_20' ) end [2025-04-23 15:23:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 15:23:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 15:23:27] Production.INFO: ==30816== Releasing lock... [2025-04-23 15:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 15:23:27] Production.INFO: 74.5 MB #Memory Used# [2025-04-23 15:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 12:24:05 [end_date_ymd] => 2025-04-23 15:24:05 [RateCDR] => 1 ) [2025-04-23 15:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 12:24:05' and `end` < '2025-04-23 15:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 15:24:19] Production.INFO: count ==6117 [2025-04-23 15:24:22] Production.ERROR: pbx CDR StartTime 2025-04-23 12:24:05 - End Time 2025-04-23 15:24:05 [2025-04-23 15:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 15:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973172', 'tblTempUsageDetail_20' ) start [2025-04-23 15:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973172', 'tblTempUsageDetail_20' ) end [2025-04-23 15:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973172', 'tblTempVendorCDR_20' ) start [2025-04-23 15:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973172', 'tblTempVendorCDR_20' ) end [2025-04-23 15:24:22] Production.INFO: ProcessCDR(1,14973172,1,1,2) [2025-04-23 15:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973172', 'tblTempUsageDetail_20' ) start [2025-04-23 15:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973172', 'tblTempUsageDetail_20' ) end [2025-04-23 15:24:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 15:24:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 15:24:27] Production.INFO: ==30895== Releasing lock... [2025-04-23 15:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 15:24:27] Production.INFO: 74 MB #Memory Used# [2025-04-23 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 12:25:05 [end_date_ymd] => 2025-04-23 15:25:05 [RateCDR] => 1 ) [2025-04-23 15:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 12:25:05' and `end` < '2025-04-23 15:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 15:25:19] Production.INFO: count ==6123 [2025-04-23 15:25:21] Production.ERROR: pbx CDR StartTime 2025-04-23 12:25:05 - End Time 2025-04-23 15:25:05 [2025-04-23 15:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973177', 'tblTempUsageDetail_20' ) start [2025-04-23 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973177', 'tblTempUsageDetail_20' ) end [2025-04-23 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973177', 'tblTempVendorCDR_20' ) start [2025-04-23 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973177', 'tblTempVendorCDR_20' ) end [2025-04-23 15:25:22] Production.INFO: ProcessCDR(1,14973177,1,1,2) [2025-04-23 15:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973177', 'tblTempUsageDetail_20' ) start [2025-04-23 15:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973177', 'tblTempUsageDetail_20' ) end [2025-04-23 15:25:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 15:25:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 15:25:27] Production.INFO: ==30969== Releasing lock... [2025-04-23 15:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 15:25:27] Production.INFO: 74 MB #Memory Used# [2025-04-23 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 12:26:05 [end_date_ymd] => 2025-04-23 15:26:05 [RateCDR] => 1 ) [2025-04-23 15:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 12:26:05' and `end` < '2025-04-23 15:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 15:26:19] Production.INFO: count ==6127 [2025-04-23 15:26:22] Production.ERROR: pbx CDR StartTime 2025-04-23 12:26:05 - End Time 2025-04-23 15:26:05 [2025-04-23 15:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 15:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973182', 'tblTempUsageDetail_20' ) start [2025-04-23 15:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973182', 'tblTempUsageDetail_20' ) end [2025-04-23 15:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973182', 'tblTempVendorCDR_20' ) start [2025-04-23 15:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973182', 'tblTempVendorCDR_20' ) end [2025-04-23 15:26:23] Production.INFO: ProcessCDR(1,14973182,1,1,2) [2025-04-23 15:26:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:26:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973182', 'tblTempUsageDetail_20' ) start [2025-04-23 15:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973182', 'tblTempUsageDetail_20' ) end [2025-04-23 15:26:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 15:26:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 15:26:28] Production.INFO: ==31044== Releasing lock... [2025-04-23 15:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 15:26:28] Production.INFO: 74 MB #Memory Used# [2025-04-23 15:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 12:27:06 [end_date_ymd] => 2025-04-23 15:27:06 [RateCDR] => 1 ) [2025-04-23 15:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 12:27:06' and `end` < '2025-04-23 15:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 15:27:20] Production.INFO: count ==6128 [2025-04-23 15:27:23] Production.ERROR: pbx CDR StartTime 2025-04-23 12:27:06 - End Time 2025-04-23 15:27:06 [2025-04-23 15:27:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 15:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973187', 'tblTempUsageDetail_20' ) start [2025-04-23 15:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973187', 'tblTempUsageDetail_20' ) end [2025-04-23 15:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973187', 'tblTempVendorCDR_20' ) start [2025-04-23 15:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973187', 'tblTempVendorCDR_20' ) end [2025-04-23 15:27:23] Production.INFO: ProcessCDR(1,14973187,1,1,2) [2025-04-23 15:27:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:27:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:27:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:27:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973187', 'tblTempUsageDetail_20' ) start [2025-04-23 15:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973187', 'tblTempUsageDetail_20' ) end [2025-04-23 15:27:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 15:27:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 15:27:28] Production.INFO: ==31116== Releasing lock... [2025-04-23 15:27:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 15:27:28] Production.INFO: 74 MB #Memory Used# [2025-04-23 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 12:28:05 [end_date_ymd] => 2025-04-23 15:28:05 [RateCDR] => 1 ) [2025-04-23 15:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 12:28:05' and `end` < '2025-04-23 15:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 15:28:19] Production.INFO: count ==6118 [2025-04-23 15:28:22] Production.ERROR: pbx CDR StartTime 2025-04-23 12:28:05 - End Time 2025-04-23 15:28:05 [2025-04-23 15:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973192', 'tblTempUsageDetail_20' ) start [2025-04-23 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973192', 'tblTempUsageDetail_20' ) end [2025-04-23 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973192', 'tblTempVendorCDR_20' ) start [2025-04-23 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973192', 'tblTempVendorCDR_20' ) end [2025-04-23 15:28:22] Production.INFO: ProcessCDR(1,14973192,1,1,2) [2025-04-23 15:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973192', 'tblTempUsageDetail_20' ) start [2025-04-23 15:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973192', 'tblTempUsageDetail_20' ) end [2025-04-23 15:28:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 15:28:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 15:28:27] Production.INFO: ==31229== Releasing lock... [2025-04-23 15:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 15:28:27] Production.INFO: 74 MB #Memory Used# [2025-04-23 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 12:29:05 [end_date_ymd] => 2025-04-23 15:29:05 [RateCDR] => 1 ) [2025-04-23 15:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 12:29:05' and `end` < '2025-04-23 15:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 15:29:20] Production.INFO: count ==6093 [2025-04-23 15:29:22] Production.ERROR: pbx CDR StartTime 2025-04-23 12:29:05 - End Time 2025-04-23 15:29:05 [2025-04-23 15:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 15:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973197', 'tblTempUsageDetail_20' ) start [2025-04-23 15:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973197', 'tblTempUsageDetail_20' ) end [2025-04-23 15:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973197', 'tblTempVendorCDR_20' ) start [2025-04-23 15:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973197', 'tblTempVendorCDR_20' ) end [2025-04-23 15:29:23] Production.INFO: ProcessCDR(1,14973197,1,1,2) [2025-04-23 15:29:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:29:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:29:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:29:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973197', 'tblTempUsageDetail_20' ) start [2025-04-23 15:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973197', 'tblTempUsageDetail_20' ) end [2025-04-23 15:29:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 15:29:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 15:29:28] Production.INFO: ==31307== Releasing lock... [2025-04-23 15:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 15:29:28] Production.INFO: 73.75 MB #Memory Used# [2025-04-23 15:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 12:30:05 [end_date_ymd] => 2025-04-23 15:30:05 [RateCDR] => 1 ) [2025-04-23 15:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 12:30:05' and `end` < '2025-04-23 15:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 15:30:20] Production.INFO: count ==6086 [2025-04-23 15:30:22] Production.ERROR: pbx CDR StartTime 2025-04-23 12:30:05 - End Time 2025-04-23 15:30:05 [2025-04-23 15:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973203', 'tblTempUsageDetail_20' ) start [2025-04-23 15:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973203', 'tblTempUsageDetail_20' ) end [2025-04-23 15:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973203', 'tblTempVendorCDR_20' ) start [2025-04-23 15:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973203', 'tblTempVendorCDR_20' ) end [2025-04-23 15:30:23] Production.INFO: ProcessCDR(1,14973203,1,1,2) [2025-04-23 15:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973203', 'tblTempUsageDetail_20' ) start [2025-04-23 15:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973203', 'tblTempUsageDetail_20' ) end [2025-04-23 15:30:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 15:30:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 15:30:28] Production.INFO: ==31382== Releasing lock... [2025-04-23 15:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 15:30:28] Production.INFO: 73.75 MB #Memory Used# [2025-04-23 15:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 12:31:05 [end_date_ymd] => 2025-04-23 15:31:05 [RateCDR] => 1 ) [2025-04-23 15:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 12:31:05' and `end` < '2025-04-23 15:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 15:31:19] Production.INFO: count ==6102 [2025-04-23 15:31:22] Production.ERROR: pbx CDR StartTime 2025-04-23 12:31:05 - End Time 2025-04-23 15:31:05 [2025-04-23 15:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 15:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973208', 'tblTempUsageDetail_20' ) start [2025-04-23 15:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973208', 'tblTempUsageDetail_20' ) end [2025-04-23 15:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973208', 'tblTempVendorCDR_20' ) start [2025-04-23 15:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973208', 'tblTempVendorCDR_20' ) end [2025-04-23 15:31:23] Production.INFO: ProcessCDR(1,14973208,1,1,2) [2025-04-23 15:31:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:31:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973208', 'tblTempUsageDetail_20' ) start [2025-04-23 15:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973208', 'tblTempUsageDetail_20' ) end [2025-04-23 15:31:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 15:31:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 15:31:28] Production.INFO: ==31461== Releasing lock... [2025-04-23 15:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 15:31:28] Production.INFO: 73.75 MB #Memory Used# [2025-04-23 15:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 12:32:05 [end_date_ymd] => 2025-04-23 15:32:05 [RateCDR] => 1 ) [2025-04-23 15:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 12:32:05' and `end` < '2025-04-23 15:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 15:32:19] Production.INFO: count ==6097 [2025-04-23 15:32:22] Production.ERROR: pbx CDR StartTime 2025-04-23 12:32:05 - End Time 2025-04-23 15:32:05 [2025-04-23 15:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973213', 'tblTempUsageDetail_20' ) start [2025-04-23 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973213', 'tblTempUsageDetail_20' ) end [2025-04-23 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973213', 'tblTempVendorCDR_20' ) start [2025-04-23 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973213', 'tblTempVendorCDR_20' ) end [2025-04-23 15:32:22] Production.INFO: ProcessCDR(1,14973213,1,1,2) [2025-04-23 15:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973213', 'tblTempUsageDetail_20' ) start [2025-04-23 15:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973213', 'tblTempUsageDetail_20' ) end [2025-04-23 15:32:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 15:32:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 15:32:27] Production.INFO: ==31535== Releasing lock... [2025-04-23 15:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 15:32:27] Production.INFO: 73.75 MB #Memory Used# [2025-04-23 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 12:33:05 [end_date_ymd] => 2025-04-23 15:33:05 [RateCDR] => 1 ) [2025-04-23 15:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 12:33:05' and `end` < '2025-04-23 15:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 15:33:19] Production.INFO: count ==6099 [2025-04-23 15:33:22] Production.ERROR: pbx CDR StartTime 2025-04-23 12:33:05 - End Time 2025-04-23 15:33:05 [2025-04-23 15:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 15:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973218', 'tblTempUsageDetail_20' ) start [2025-04-23 15:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973218', 'tblTempUsageDetail_20' ) end [2025-04-23 15:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973218', 'tblTempVendorCDR_20' ) start [2025-04-23 15:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973218', 'tblTempVendorCDR_20' ) end [2025-04-23 15:33:22] Production.INFO: ProcessCDR(1,14973218,1,1,2) [2025-04-23 15:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973218', 'tblTempUsageDetail_20' ) start [2025-04-23 15:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973218', 'tblTempUsageDetail_20' ) end [2025-04-23 15:33:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 15:33:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 15:33:27] Production.INFO: ==31611== Releasing lock... [2025-04-23 15:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 15:33:27] Production.INFO: 73.75 MB #Memory Used# [2025-04-23 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 12:34:05 [end_date_ymd] => 2025-04-23 15:34:05 [RateCDR] => 1 ) [2025-04-23 15:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 12:34:05' and `end` < '2025-04-23 15:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 15:34:19] Production.INFO: count ==6099 [2025-04-23 15:34:22] Production.ERROR: pbx CDR StartTime 2025-04-23 12:34:05 - End Time 2025-04-23 15:34:05 [2025-04-23 15:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973223', 'tblTempUsageDetail_20' ) start [2025-04-23 15:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973223', 'tblTempUsageDetail_20' ) end [2025-04-23 15:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973223', 'tblTempVendorCDR_20' ) start [2025-04-23 15:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973223', 'tblTempVendorCDR_20' ) end [2025-04-23 15:34:23] Production.INFO: ProcessCDR(1,14973223,1,1,2) [2025-04-23 15:34:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:34:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973223', 'tblTempUsageDetail_20' ) start [2025-04-23 15:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973223', 'tblTempUsageDetail_20' ) end [2025-04-23 15:34:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 15:34:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 15:34:28] Production.INFO: ==31684== Releasing lock... [2025-04-23 15:34:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 15:34:28] Production.INFO: 73.75 MB #Memory Used# [2025-04-23 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 12:35:05 [end_date_ymd] => 2025-04-23 15:35:05 [RateCDR] => 1 ) [2025-04-23 15:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 12:35:05' and `end` < '2025-04-23 15:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 15:35:19] Production.INFO: count ==6108 [2025-04-23 15:35:21] Production.ERROR: pbx CDR StartTime 2025-04-23 12:35:05 - End Time 2025-04-23 15:35:05 [2025-04-23 15:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 15:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973228', 'tblTempUsageDetail_20' ) start [2025-04-23 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973228', 'tblTempUsageDetail_20' ) end [2025-04-23 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973228', 'tblTempVendorCDR_20' ) start [2025-04-23 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973228', 'tblTempVendorCDR_20' ) end [2025-04-23 15:35:22] Production.INFO: ProcessCDR(1,14973228,1,1,2) [2025-04-23 15:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973228', 'tblTempUsageDetail_20' ) start [2025-04-23 15:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973228', 'tblTempUsageDetail_20' ) end [2025-04-23 15:35:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 15:35:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 15:35:27] Production.INFO: ==31771== Releasing lock... [2025-04-23 15:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 15:35:27] Production.INFO: 73.75 MB #Memory Used# [2025-04-23 15:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 12:36:06 [end_date_ymd] => 2025-04-23 15:36:06 [RateCDR] => 1 ) [2025-04-23 15:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 12:36:06' and `end` < '2025-04-23 15:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 15:36:20] Production.INFO: count ==6084 [2025-04-23 15:36:22] Production.ERROR: pbx CDR StartTime 2025-04-23 12:36:06 - End Time 2025-04-23 15:36:06 [2025-04-23 15:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 15:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973233', 'tblTempUsageDetail_20' ) start [2025-04-23 15:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973233', 'tblTempUsageDetail_20' ) end [2025-04-23 15:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973233', 'tblTempVendorCDR_20' ) start [2025-04-23 15:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973233', 'tblTempVendorCDR_20' ) end [2025-04-23 15:36:23] Production.INFO: ProcessCDR(1,14973233,1,1,2) [2025-04-23 15:36:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:36:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:36:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:36:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973233', 'tblTempUsageDetail_20' ) start [2025-04-23 15:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973233', 'tblTempUsageDetail_20' ) end [2025-04-23 15:36:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 15:36:29] Production.ERROR: pbx prc_insertCDR end [2025-04-23 15:36:29] Production.INFO: ==31848== Releasing lock... [2025-04-23 15:36:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 15:36:29] Production.INFO: 73.75 MB #Memory Used# [2025-04-23 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 12:37:05 [end_date_ymd] => 2025-04-23 15:37:05 [RateCDR] => 1 ) [2025-04-23 15:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 12:37:05' and `end` < '2025-04-23 15:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 15:37:19] Production.INFO: count ==6059 [2025-04-23 15:37:21] Production.ERROR: pbx CDR StartTime 2025-04-23 12:37:05 - End Time 2025-04-23 15:37:05 [2025-04-23 15:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973238', 'tblTempUsageDetail_20' ) start [2025-04-23 15:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973238', 'tblTempUsageDetail_20' ) end [2025-04-23 15:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973238', 'tblTempVendorCDR_20' ) start [2025-04-23 15:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973238', 'tblTempVendorCDR_20' ) end [2025-04-23 15:37:22] Production.INFO: ProcessCDR(1,14973238,1,1,2) [2025-04-23 15:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973238', 'tblTempUsageDetail_20' ) start [2025-04-23 15:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973238', 'tblTempUsageDetail_20' ) end [2025-04-23 15:37:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 15:37:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 15:37:27] Production.INFO: ==31930== Releasing lock... [2025-04-23 15:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 15:37:27] Production.INFO: 73.5 MB #Memory Used# [2025-04-23 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 12:38:05 [end_date_ymd] => 2025-04-23 15:38:05 [RateCDR] => 1 ) [2025-04-23 15:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 12:38:05' and `end` < '2025-04-23 15:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 15:38:19] Production.INFO: count ==6046 [2025-04-23 15:38:21] Production.ERROR: pbx CDR StartTime 2025-04-23 12:38:05 - End Time 2025-04-23 15:38:05 [2025-04-23 15:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973243', 'tblTempUsageDetail_20' ) start [2025-04-23 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973243', 'tblTempUsageDetail_20' ) end [2025-04-23 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973243', 'tblTempVendorCDR_20' ) start [2025-04-23 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973243', 'tblTempVendorCDR_20' ) end [2025-04-23 15:38:22] Production.INFO: ProcessCDR(1,14973243,1,1,2) [2025-04-23 15:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973243', 'tblTempUsageDetail_20' ) start [2025-04-23 15:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973243', 'tblTempUsageDetail_20' ) end [2025-04-23 15:38:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 15:38:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 15:38:27] Production.INFO: ==32005== Releasing lock... [2025-04-23 15:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 15:38:27] Production.INFO: 73.5 MB #Memory Used# [2025-04-23 15:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 12:39:04 [end_date_ymd] => 2025-04-23 15:39:04 [RateCDR] => 1 ) [2025-04-23 15:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 12:39:04' and `end` < '2025-04-23 15:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 15:39:19] Production.INFO: count ==6020 [2025-04-23 15:39:21] Production.ERROR: pbx CDR StartTime 2025-04-23 12:39:04 - End Time 2025-04-23 15:39:04 [2025-04-23 15:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973248', 'tblTempUsageDetail_20' ) start [2025-04-23 15:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973248', 'tblTempUsageDetail_20' ) end [2025-04-23 15:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973248', 'tblTempVendorCDR_20' ) start [2025-04-23 15:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973248', 'tblTempVendorCDR_20' ) end [2025-04-23 15:39:22] Production.INFO: ProcessCDR(1,14973248,1,1,2) [2025-04-23 15:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973248', 'tblTempUsageDetail_20' ) start [2025-04-23 15:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973248', 'tblTempUsageDetail_20' ) end [2025-04-23 15:39:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 15:39:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 15:39:25] Production.INFO: ==32078== Releasing lock... [2025-04-23 15:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 15:39:25] Production.INFO: 73.25 MB #Memory Used# [2025-04-23 15:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 12:40:06 [end_date_ymd] => 2025-04-23 15:40:06 [RateCDR] => 1 ) [2025-04-23 15:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 12:40:06' and `end` < '2025-04-23 15:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 15:40:20] Production.INFO: count ==5995 [2025-04-23 15:40:23] Production.ERROR: pbx CDR StartTime 2025-04-23 12:40:06 - End Time 2025-04-23 15:40:06 [2025-04-23 15:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 15:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973254', 'tblTempUsageDetail_20' ) start [2025-04-23 15:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973254', 'tblTempUsageDetail_20' ) end [2025-04-23 15:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973254', 'tblTempVendorCDR_20' ) start [2025-04-23 15:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973254', 'tblTempVendorCDR_20' ) end [2025-04-23 15:40:23] Production.INFO: ProcessCDR(1,14973254,1,1,2) [2025-04-23 15:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973254', 'tblTempUsageDetail_20' ) start [2025-04-23 15:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973254', 'tblTempUsageDetail_20' ) end [2025-04-23 15:40:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 15:40:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 15:40:28] Production.INFO: ==32165== Releasing lock... [2025-04-23 15:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 15:40:28] Production.INFO: 73 MB #Memory Used# [2025-04-23 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 12:41:05 [end_date_ymd] => 2025-04-23 15:41:05 [RateCDR] => 1 ) [2025-04-23 15:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 12:41:05' and `end` < '2025-04-23 15:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 15:41:19] Production.INFO: count ==5966 [2025-04-23 15:41:21] Production.ERROR: pbx CDR StartTime 2025-04-23 12:41:05 - End Time 2025-04-23 15:41:05 [2025-04-23 15:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973259', 'tblTempUsageDetail_20' ) start [2025-04-23 15:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973259', 'tblTempUsageDetail_20' ) end [2025-04-23 15:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973259', 'tblTempVendorCDR_20' ) start [2025-04-23 15:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973259', 'tblTempVendorCDR_20' ) end [2025-04-23 15:41:22] Production.INFO: ProcessCDR(1,14973259,1,1,2) [2025-04-23 15:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973259', 'tblTempUsageDetail_20' ) start [2025-04-23 15:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973259', 'tblTempUsageDetail_20' ) end [2025-04-23 15:41:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 15:41:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 15:41:27] Production.INFO: ==32238== Releasing lock... [2025-04-23 15:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 15:41:27] Production.INFO: 72.75 MB #Memory Used# [2025-04-23 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 12:42:05 [end_date_ymd] => 2025-04-23 15:42:05 [RateCDR] => 1 ) [2025-04-23 15:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 12:42:05' and `end` < '2025-04-23 15:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 15:42:20] Production.INFO: count ==5939 [2025-04-23 15:42:22] Production.ERROR: pbx CDR StartTime 2025-04-23 12:42:05 - End Time 2025-04-23 15:42:05 [2025-04-23 15:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973264', 'tblTempUsageDetail_20' ) start [2025-04-23 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973264', 'tblTempUsageDetail_20' ) end [2025-04-23 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973264', 'tblTempVendorCDR_20' ) start [2025-04-23 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973264', 'tblTempVendorCDR_20' ) end [2025-04-23 15:42:22] Production.INFO: ProcessCDR(1,14973264,1,1,2) [2025-04-23 15:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973264', 'tblTempUsageDetail_20' ) start [2025-04-23 15:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973264', 'tblTempUsageDetail_20' ) end [2025-04-23 15:42:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 15:42:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 15:42:27] Production.INFO: ==32313== Releasing lock... [2025-04-23 15:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 15:42:27] Production.INFO: 72.5 MB #Memory Used# [2025-04-23 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 12:43:05 [end_date_ymd] => 2025-04-23 15:43:05 [RateCDR] => 1 ) [2025-04-23 15:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 12:43:05' and `end` < '2025-04-23 15:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 15:43:20] Production.INFO: count ==5942 [2025-04-23 15:43:22] Production.ERROR: pbx CDR StartTime 2025-04-23 12:43:05 - End Time 2025-04-23 15:43:05 [2025-04-23 15:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 15:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973269', 'tblTempUsageDetail_20' ) start [2025-04-23 15:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973269', 'tblTempUsageDetail_20' ) end [2025-04-23 15:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973269', 'tblTempVendorCDR_20' ) start [2025-04-23 15:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973269', 'tblTempVendorCDR_20' ) end [2025-04-23 15:43:23] Production.INFO: ProcessCDR(1,14973269,1,1,2) [2025-04-23 15:43:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:43:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973269', 'tblTempUsageDetail_20' ) start [2025-04-23 15:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973269', 'tblTempUsageDetail_20' ) end [2025-04-23 15:43:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 15:43:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 15:43:28] Production.INFO: ==32398== Releasing lock... [2025-04-23 15:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 15:43:28] Production.INFO: 72.5 MB #Memory Used# [2025-04-23 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 12:44:05 [end_date_ymd] => 2025-04-23 15:44:05 [RateCDR] => 1 ) [2025-04-23 15:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 12:44:05' and `end` < '2025-04-23 15:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 15:44:19] Production.INFO: count ==5918 [2025-04-23 15:44:21] Production.ERROR: pbx CDR StartTime 2025-04-23 12:44:05 - End Time 2025-04-23 15:44:05 [2025-04-23 15:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973274', 'tblTempUsageDetail_20' ) start [2025-04-23 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973274', 'tblTempUsageDetail_20' ) end [2025-04-23 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973274', 'tblTempVendorCDR_20' ) start [2025-04-23 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973274', 'tblTempVendorCDR_20' ) end [2025-04-23 15:44:22] Production.INFO: ProcessCDR(1,14973274,1,1,2) [2025-04-23 15:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973274', 'tblTempUsageDetail_20' ) start [2025-04-23 15:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973274', 'tblTempUsageDetail_20' ) end [2025-04-23 15:44:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 15:44:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 15:44:27] Production.INFO: ==32515== Releasing lock... [2025-04-23 15:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 15:44:27] Production.INFO: 72.5 MB #Memory Used# [2025-04-23 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 12:45:05 [end_date_ymd] => 2025-04-23 15:45:05 [RateCDR] => 1 ) [2025-04-23 15:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 12:45:05' and `end` < '2025-04-23 15:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 15:45:19] Production.INFO: count ==5898 [2025-04-23 15:45:21] Production.ERROR: pbx CDR StartTime 2025-04-23 12:45:05 - End Time 2025-04-23 15:45:05 [2025-04-23 15:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973279', 'tblTempUsageDetail_20' ) start [2025-04-23 15:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973279', 'tblTempUsageDetail_20' ) end [2025-04-23 15:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973279', 'tblTempVendorCDR_20' ) start [2025-04-23 15:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973279', 'tblTempVendorCDR_20' ) end [2025-04-23 15:45:22] Production.INFO: ProcessCDR(1,14973279,1,1,2) [2025-04-23 15:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973279', 'tblTempUsageDetail_20' ) start [2025-04-23 15:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973279', 'tblTempUsageDetail_20' ) end [2025-04-23 15:45:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 15:45:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 15:45:27] Production.INFO: ==32586== Releasing lock... [2025-04-23 15:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 15:45:27] Production.INFO: 72.25 MB #Memory Used# [2025-04-23 15:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 12:46:05 [end_date_ymd] => 2025-04-23 15:46:05 [RateCDR] => 1 ) [2025-04-23 15:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 12:46:05' and `end` < '2025-04-23 15:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 15:46:18] Production.INFO: count ==5899 [2025-04-23 15:46:21] Production.ERROR: pbx CDR StartTime 2025-04-23 12:46:05 - End Time 2025-04-23 15:46:05 [2025-04-23 15:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 15:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973284', 'tblTempUsageDetail_20' ) start [2025-04-23 15:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973284', 'tblTempUsageDetail_20' ) end [2025-04-23 15:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973284', 'tblTempVendorCDR_20' ) start [2025-04-23 15:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973284', 'tblTempVendorCDR_20' ) end [2025-04-23 15:46:21] Production.INFO: ProcessCDR(1,14973284,1,1,2) [2025-04-23 15:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973284', 'tblTempUsageDetail_20' ) start [2025-04-23 15:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973284', 'tblTempUsageDetail_20' ) end [2025-04-23 15:46:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 15:46:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 15:46:26] Production.INFO: ==32662== Releasing lock... [2025-04-23 15:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 15:46:26] Production.INFO: 72.25 MB #Memory Used# [2025-04-23 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 12:47:05 [end_date_ymd] => 2025-04-23 15:47:05 [RateCDR] => 1 ) [2025-04-23 15:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 12:47:05' and `end` < '2025-04-23 15:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 15:47:19] Production.INFO: count ==5933 [2025-04-23 15:47:22] Production.ERROR: pbx CDR StartTime 2025-04-23 12:47:05 - End Time 2025-04-23 15:47:05 [2025-04-23 15:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 15:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973289', 'tblTempUsageDetail_20' ) start [2025-04-23 15:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973289', 'tblTempUsageDetail_20' ) end [2025-04-23 15:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973289', 'tblTempVendorCDR_20' ) start [2025-04-23 15:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973289', 'tblTempVendorCDR_20' ) end [2025-04-23 15:47:22] Production.INFO: ProcessCDR(1,14973289,1,1,2) [2025-04-23 15:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973289', 'tblTempUsageDetail_20' ) start [2025-04-23 15:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973289', 'tblTempUsageDetail_20' ) end [2025-04-23 15:47:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 15:47:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 15:47:27] Production.INFO: ==32736== Releasing lock... [2025-04-23 15:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 15:47:27] Production.INFO: 72.5 MB #Memory Used# [2025-04-23 15:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 12:48:04 [end_date_ymd] => 2025-04-23 15:48:04 [RateCDR] => 1 ) [2025-04-23 15:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 12:48:04' and `end` < '2025-04-23 15:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 15:48:19] Production.INFO: count ==5936 [2025-04-23 15:48:21] Production.ERROR: pbx CDR StartTime 2025-04-23 12:48:04 - End Time 2025-04-23 15:48:04 [2025-04-23 15:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973294', 'tblTempUsageDetail_20' ) start [2025-04-23 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973294', 'tblTempUsageDetail_20' ) end [2025-04-23 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973294', 'tblTempVendorCDR_20' ) start [2025-04-23 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973294', 'tblTempVendorCDR_20' ) end [2025-04-23 15:48:21] Production.INFO: ProcessCDR(1,14973294,1,1,2) [2025-04-23 15:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973294', 'tblTempUsageDetail_20' ) start [2025-04-23 15:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973294', 'tblTempUsageDetail_20' ) end [2025-04-23 15:48:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 15:48:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 15:48:27] Production.INFO: ==363== Releasing lock... [2025-04-23 15:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 15:48:27] Production.INFO: 72.5 MB #Memory Used# [2025-04-23 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 12:49:05 [end_date_ymd] => 2025-04-23 15:49:05 [RateCDR] => 1 ) [2025-04-23 15:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 12:49:05' and `end` < '2025-04-23 15:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 15:49:19] Production.INFO: count ==5954 [2025-04-23 15:49:21] Production.ERROR: pbx CDR StartTime 2025-04-23 12:49:05 - End Time 2025-04-23 15:49:05 [2025-04-23 15:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973299', 'tblTempUsageDetail_20' ) start [2025-04-23 15:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973299', 'tblTempUsageDetail_20' ) end [2025-04-23 15:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973299', 'tblTempVendorCDR_20' ) start [2025-04-23 15:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973299', 'tblTempVendorCDR_20' ) end [2025-04-23 15:49:22] Production.INFO: ProcessCDR(1,14973299,1,1,2) [2025-04-23 15:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973299', 'tblTempUsageDetail_20' ) start [2025-04-23 15:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973299', 'tblTempUsageDetail_20' ) end [2025-04-23 15:49:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 15:49:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 15:49:27] Production.INFO: ==446== Releasing lock... [2025-04-23 15:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 15:49:27] Production.INFO: 72.75 MB #Memory Used# [2025-04-23 15:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 12:50:06 [end_date_ymd] => 2025-04-23 15:50:06 [RateCDR] => 1 ) [2025-04-23 15:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 12:50:06' and `end` < '2025-04-23 15:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 15:50:20] Production.INFO: count ==5964 [2025-04-23 15:50:22] Production.ERROR: pbx CDR StartTime 2025-04-23 12:50:06 - End Time 2025-04-23 15:50:06 [2025-04-23 15:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973304', 'tblTempUsageDetail_20' ) start [2025-04-23 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973304', 'tblTempUsageDetail_20' ) end [2025-04-23 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973304', 'tblTempVendorCDR_20' ) start [2025-04-23 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973304', 'tblTempVendorCDR_20' ) end [2025-04-23 15:50:22] Production.INFO: ProcessCDR(1,14973304,1,1,2) [2025-04-23 15:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973304', 'tblTempUsageDetail_20' ) start [2025-04-23 15:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973304', 'tblTempUsageDetail_20' ) end [2025-04-23 15:50:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 15:50:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 15:50:27] Production.INFO: ==525== Releasing lock... [2025-04-23 15:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 15:50:27] Production.INFO: 72.75 MB #Memory Used# [2025-04-23 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 12:51:05 [end_date_ymd] => 2025-04-23 15:51:05 [RateCDR] => 1 ) [2025-04-23 15:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 12:51:05' and `end` < '2025-04-23 15:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 15:51:19] Production.INFO: count ==5955 [2025-04-23 15:51:21] Production.ERROR: pbx CDR StartTime 2025-04-23 12:51:05 - End Time 2025-04-23 15:51:05 [2025-04-23 15:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973310', 'tblTempUsageDetail_20' ) start [2025-04-23 15:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973310', 'tblTempUsageDetail_20' ) end [2025-04-23 15:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973310', 'tblTempVendorCDR_20' ) start [2025-04-23 15:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973310', 'tblTempVendorCDR_20' ) end [2025-04-23 15:51:22] Production.INFO: ProcessCDR(1,14973310,1,1,2) [2025-04-23 15:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973310', 'tblTempUsageDetail_20' ) start [2025-04-23 15:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973310', 'tblTempUsageDetail_20' ) end [2025-04-23 15:51:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 15:51:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 15:51:27] Production.INFO: ==602== Releasing lock... [2025-04-23 15:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 15:51:27] Production.INFO: 72.75 MB #Memory Used# [2025-04-23 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 12:52:05 [end_date_ymd] => 2025-04-23 15:52:05 [RateCDR] => 1 ) [2025-04-23 15:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 12:52:05' and `end` < '2025-04-23 15:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 15:52:19] Production.INFO: count ==5957 [2025-04-23 15:52:21] Production.ERROR: pbx CDR StartTime 2025-04-23 12:52:05 - End Time 2025-04-23 15:52:05 [2025-04-23 15:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973315', 'tblTempUsageDetail_20' ) start [2025-04-23 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973315', 'tblTempUsageDetail_20' ) end [2025-04-23 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973315', 'tblTempVendorCDR_20' ) start [2025-04-23 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973315', 'tblTempVendorCDR_20' ) end [2025-04-23 15:52:22] Production.INFO: ProcessCDR(1,14973315,1,1,2) [2025-04-23 15:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973315', 'tblTempUsageDetail_20' ) start [2025-04-23 15:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973315', 'tblTempUsageDetail_20' ) end [2025-04-23 15:52:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 15:52:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 15:52:27] Production.INFO: ==701== Releasing lock... [2025-04-23 15:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 15:52:27] Production.INFO: 72.75 MB #Memory Used# [2025-04-23 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 12:53:05 [end_date_ymd] => 2025-04-23 15:53:05 [RateCDR] => 1 ) [2025-04-23 15:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 12:53:05' and `end` < '2025-04-23 15:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 15:53:19] Production.INFO: count ==5955 [2025-04-23 15:53:22] Production.ERROR: pbx CDR StartTime 2025-04-23 12:53:05 - End Time 2025-04-23 15:53:05 [2025-04-23 15:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 15:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973320', 'tblTempUsageDetail_20' ) start [2025-04-23 15:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973320', 'tblTempUsageDetail_20' ) end [2025-04-23 15:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973320', 'tblTempVendorCDR_20' ) start [2025-04-23 15:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973320', 'tblTempVendorCDR_20' ) end [2025-04-23 15:53:23] Production.INFO: ProcessCDR(1,14973320,1,1,2) [2025-04-23 15:53:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:53:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:53:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973320', 'tblTempUsageDetail_20' ) start [2025-04-23 15:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973320', 'tblTempUsageDetail_20' ) end [2025-04-23 15:53:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 15:53:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 15:53:28] Production.INFO: ==785== Releasing lock... [2025-04-23 15:53:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 15:53:28] Production.INFO: 72.75 MB #Memory Used# [2025-04-23 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 12:54:05 [end_date_ymd] => 2025-04-23 15:54:05 [RateCDR] => 1 ) [2025-04-23 15:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 12:54:05' and `end` < '2025-04-23 15:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 15:54:19] Production.INFO: count ==5943 [2025-04-23 15:54:21] Production.ERROR: pbx CDR StartTime 2025-04-23 12:54:05 - End Time 2025-04-23 15:54:05 [2025-04-23 15:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 15:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973325', 'tblTempUsageDetail_20' ) start [2025-04-23 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973325', 'tblTempUsageDetail_20' ) end [2025-04-23 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973325', 'tblTempVendorCDR_20' ) start [2025-04-23 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973325', 'tblTempVendorCDR_20' ) end [2025-04-23 15:54:22] Production.INFO: ProcessCDR(1,14973325,1,1,2) [2025-04-23 15:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973325', 'tblTempUsageDetail_20' ) start [2025-04-23 15:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973325', 'tblTempUsageDetail_20' ) end [2025-04-23 15:54:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 15:54:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 15:54:27] Production.INFO: ==858== Releasing lock... [2025-04-23 15:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 15:54:27] Production.INFO: 72.75 MB #Memory Used# [2025-04-23 15:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 12:55:06 [end_date_ymd] => 2025-04-23 15:55:06 [RateCDR] => 1 ) [2025-04-23 15:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 12:55:06' and `end` < '2025-04-23 15:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 15:55:20] Production.INFO: count ==5950 [2025-04-23 15:55:23] Production.ERROR: pbx CDR StartTime 2025-04-23 12:55:06 - End Time 2025-04-23 15:55:06 [2025-04-23 15:55:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 15:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973330', 'tblTempUsageDetail_20' ) start [2025-04-23 15:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973330', 'tblTempUsageDetail_20' ) end [2025-04-23 15:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973330', 'tblTempVendorCDR_20' ) start [2025-04-23 15:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973330', 'tblTempVendorCDR_20' ) end [2025-04-23 15:55:23] Production.INFO: ProcessCDR(1,14973330,1,1,2) [2025-04-23 15:55:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:55:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:55:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:55:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:55:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973330', 'tblTempUsageDetail_20' ) start [2025-04-23 15:55:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973330', 'tblTempUsageDetail_20' ) end [2025-04-23 15:55:29] Production.ERROR: pbx prc_insertCDR start [2025-04-23 15:55:29] Production.ERROR: pbx prc_insertCDR end [2025-04-23 15:55:29] Production.INFO: ==932== Releasing lock... [2025-04-23 15:55:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 15:55:29] Production.INFO: 72.75 MB #Memory Used# [2025-04-23 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 12:56:05 [end_date_ymd] => 2025-04-23 15:56:05 [RateCDR] => 1 ) [2025-04-23 15:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 12:56:05' and `end` < '2025-04-23 15:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 15:56:20] Production.INFO: count ==5948 [2025-04-23 15:56:22] Production.ERROR: pbx CDR StartTime 2025-04-23 12:56:05 - End Time 2025-04-23 15:56:05 [2025-04-23 15:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973335', 'tblTempUsageDetail_20' ) start [2025-04-23 15:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973335', 'tblTempUsageDetail_20' ) end [2025-04-23 15:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973335', 'tblTempVendorCDR_20' ) start [2025-04-23 15:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973335', 'tblTempVendorCDR_20' ) end [2025-04-23 15:56:23] Production.INFO: ProcessCDR(1,14973335,1,1,2) [2025-04-23 15:56:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973335', 'tblTempUsageDetail_20' ) start [2025-04-23 15:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973335', 'tblTempUsageDetail_20' ) end [2025-04-23 15:56:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 15:56:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 15:56:27] Production.INFO: ==1015== Releasing lock... [2025-04-23 15:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 15:56:27] Production.INFO: 72.75 MB #Memory Used# [2025-04-23 15:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 12:57:06 [end_date_ymd] => 2025-04-23 15:57:06 [RateCDR] => 1 ) [2025-04-23 15:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 12:57:06' and `end` < '2025-04-23 15:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 15:57:20] Production.INFO: count ==5965 [2025-04-23 15:57:22] Production.ERROR: pbx CDR StartTime 2025-04-23 12:57:06 - End Time 2025-04-23 15:57:06 [2025-04-23 15:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 15:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973340', 'tblTempUsageDetail_20' ) start [2025-04-23 15:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973340', 'tblTempUsageDetail_20' ) end [2025-04-23 15:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973340', 'tblTempVendorCDR_20' ) start [2025-04-23 15:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973340', 'tblTempVendorCDR_20' ) end [2025-04-23 15:57:23] Production.INFO: ProcessCDR(1,14973340,1,1,2) [2025-04-23 15:57:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:57:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:57:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:57:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973340', 'tblTempUsageDetail_20' ) start [2025-04-23 15:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973340', 'tblTempUsageDetail_20' ) end [2025-04-23 15:57:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 15:57:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 15:57:28] Production.INFO: ==1093== Releasing lock... [2025-04-23 15:57:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 15:57:28] Production.INFO: 72.75 MB #Memory Used# [2025-04-23 15:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 12:58:05 [end_date_ymd] => 2025-04-23 15:58:05 [RateCDR] => 1 ) [2025-04-23 15:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 12:58:05' and `end` < '2025-04-23 15:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 15:58:19] Production.INFO: count ==5992 [2025-04-23 15:58:21] Production.ERROR: pbx CDR StartTime 2025-04-23 12:58:05 - End Time 2025-04-23 15:58:05 [2025-04-23 15:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 15:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973345', 'tblTempUsageDetail_20' ) start [2025-04-23 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973345', 'tblTempUsageDetail_20' ) end [2025-04-23 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973345', 'tblTempVendorCDR_20' ) start [2025-04-23 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973345', 'tblTempVendorCDR_20' ) end [2025-04-23 15:58:22] Production.INFO: ProcessCDR(1,14973345,1,1,2) [2025-04-23 15:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973345', 'tblTempUsageDetail_20' ) start [2025-04-23 15:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973345', 'tblTempUsageDetail_20' ) end [2025-04-23 15:58:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 15:58:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 15:58:27] Production.INFO: ==1177== Releasing lock... [2025-04-23 15:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 15:58:27] Production.INFO: 73 MB #Memory Used# [2025-04-23 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 12:59:05 [end_date_ymd] => 2025-04-23 15:59:05 [RateCDR] => 1 ) [2025-04-23 15:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 12:59:05' and `end` < '2025-04-23 15:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 15:59:19] Production.INFO: count ==5985 [2025-04-23 15:59:22] Production.ERROR: pbx CDR StartTime 2025-04-23 12:59:05 - End Time 2025-04-23 15:59:05 [2025-04-23 15:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 15:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973350', 'tblTempUsageDetail_20' ) start [2025-04-23 15:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973350', 'tblTempUsageDetail_20' ) end [2025-04-23 15:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973350', 'tblTempVendorCDR_20' ) start [2025-04-23 15:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973350', 'tblTempVendorCDR_20' ) end [2025-04-23 15:59:23] Production.INFO: ProcessCDR(1,14973350,1,1,2) [2025-04-23 15:59:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 15:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 15:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973350', 'tblTempUsageDetail_20' ) start [2025-04-23 15:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973350', 'tblTempUsageDetail_20' ) end [2025-04-23 15:59:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 15:59:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 15:59:27] Production.INFO: ==1298== Releasing lock... [2025-04-23 15:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 15:59:27] Production.INFO: 73 MB #Memory Used# [2025-04-23 16:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 13:00:05 [end_date_ymd] => 2025-04-23 16:00:05 [RateCDR] => 1 ) [2025-04-23 16:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 13:00:05' and `end` < '2025-04-23 16:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 16:00:19] Production.INFO: count ==5979 [2025-04-23 16:00:21] Production.ERROR: pbx CDR StartTime 2025-04-23 13:00:05 - End Time 2025-04-23 16:00:05 [2025-04-23 16:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 16:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973356', 'tblTempUsageDetail_20' ) start [2025-04-23 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973356', 'tblTempUsageDetail_20' ) end [2025-04-23 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973356', 'tblTempVendorCDR_20' ) start [2025-04-23 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973356', 'tblTempVendorCDR_20' ) end [2025-04-23 16:00:22] Production.INFO: ProcessCDR(1,14973356,1,1,2) [2025-04-23 16:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973356', 'tblTempUsageDetail_20' ) start [2025-04-23 16:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973356', 'tblTempUsageDetail_20' ) end [2025-04-23 16:00:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 16:00:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 16:00:27] Production.INFO: ==1371== Releasing lock... [2025-04-23 16:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 16:00:27] Production.INFO: 73 MB #Memory Used# [2025-04-23 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 13:01:05 [end_date_ymd] => 2025-04-23 16:01:05 [RateCDR] => 1 ) [2025-04-23 16:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 13:01:05' and `end` < '2025-04-23 16:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 16:01:19] Production.INFO: count ==5963 [2025-04-23 16:01:21] Production.ERROR: pbx CDR StartTime 2025-04-23 13:01:05 - End Time 2025-04-23 16:01:05 [2025-04-23 16:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973361', 'tblTempUsageDetail_20' ) start [2025-04-23 16:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973361', 'tblTempUsageDetail_20' ) end [2025-04-23 16:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973361', 'tblTempVendorCDR_20' ) start [2025-04-23 16:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973361', 'tblTempVendorCDR_20' ) end [2025-04-23 16:01:22] Production.INFO: ProcessCDR(1,14973361,1,1,2) [2025-04-23 16:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973361', 'tblTempUsageDetail_20' ) start [2025-04-23 16:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973361', 'tblTempUsageDetail_20' ) end [2025-04-23 16:01:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 16:01:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 16:01:26] Production.INFO: ==1462== Releasing lock... [2025-04-23 16:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 16:01:26] Production.INFO: 72.75 MB #Memory Used# [2025-04-23 16:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 13:02:05 [end_date_ymd] => 2025-04-23 16:02:05 [RateCDR] => 1 ) [2025-04-23 16:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 13:02:05' and `end` < '2025-04-23 16:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 16:02:19] Production.INFO: count ==5950 [2025-04-23 16:02:22] Production.ERROR: pbx CDR StartTime 2025-04-23 13:02:05 - End Time 2025-04-23 16:02:05 [2025-04-23 16:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 16:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973366', 'tblTempUsageDetail_20' ) start [2025-04-23 16:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973366', 'tblTempUsageDetail_20' ) end [2025-04-23 16:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973366', 'tblTempVendorCDR_20' ) start [2025-04-23 16:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973366', 'tblTempVendorCDR_20' ) end [2025-04-23 16:02:22] Production.INFO: ProcessCDR(1,14973366,1,1,2) [2025-04-23 16:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973366', 'tblTempUsageDetail_20' ) start [2025-04-23 16:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973366', 'tblTempUsageDetail_20' ) end [2025-04-23 16:02:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 16:02:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 16:02:27] Production.INFO: ==1577== Releasing lock... [2025-04-23 16:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 16:02:27] Production.INFO: 72.75 MB #Memory Used# [2025-04-23 16:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 13:03:04 [end_date_ymd] => 2025-04-23 16:03:04 [RateCDR] => 1 ) [2025-04-23 16:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 13:03:04' and `end` < '2025-04-23 16:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 16:03:19] Production.INFO: count ==5954 [2025-04-23 16:03:22] Production.ERROR: pbx CDR StartTime 2025-04-23 13:03:04 - End Time 2025-04-23 16:03:04 [2025-04-23 16:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 16:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973371', 'tblTempUsageDetail_20' ) start [2025-04-23 16:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973371', 'tblTempUsageDetail_20' ) end [2025-04-23 16:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973371', 'tblTempVendorCDR_20' ) start [2025-04-23 16:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973371', 'tblTempVendorCDR_20' ) end [2025-04-23 16:03:23] Production.INFO: ProcessCDR(1,14973371,1,1,2) [2025-04-23 16:03:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973371', 'tblTempUsageDetail_20' ) start [2025-04-23 16:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973371', 'tblTempUsageDetail_20' ) end [2025-04-23 16:03:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 16:03:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 16:03:28] Production.INFO: ==1649== Releasing lock... [2025-04-23 16:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 16:03:28] Production.INFO: 72.75 MB #Memory Used# [2025-04-23 16:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 13:04:05 [end_date_ymd] => 2025-04-23 16:04:05 [RateCDR] => 1 ) [2025-04-23 16:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 13:04:05' and `end` < '2025-04-23 16:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 16:04:20] Production.INFO: count ==5953 [2025-04-23 16:04:22] Production.ERROR: pbx CDR StartTime 2025-04-23 13:04:05 - End Time 2025-04-23 16:04:05 [2025-04-23 16:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 16:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973376', 'tblTempUsageDetail_20' ) start [2025-04-23 16:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973376', 'tblTempUsageDetail_20' ) end [2025-04-23 16:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973376', 'tblTempVendorCDR_20' ) start [2025-04-23 16:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973376', 'tblTempVendorCDR_20' ) end [2025-04-23 16:04:23] Production.INFO: ProcessCDR(1,14973376,1,1,2) [2025-04-23 16:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973376', 'tblTempUsageDetail_20' ) start [2025-04-23 16:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973376', 'tblTempUsageDetail_20' ) end [2025-04-23 16:04:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 16:04:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 16:04:28] Production.INFO: ==1723== Releasing lock... [2025-04-23 16:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 16:04:28] Production.INFO: 72.75 MB #Memory Used# [2025-04-23 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 13:05:05 [end_date_ymd] => 2025-04-23 16:05:05 [RateCDR] => 1 ) [2025-04-23 16:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 13:05:05' and `end` < '2025-04-23 16:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 16:05:19] Production.INFO: count ==5977 [2025-04-23 16:05:22] Production.ERROR: pbx CDR StartTime 2025-04-23 13:05:05 - End Time 2025-04-23 16:05:05 [2025-04-23 16:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973381', 'tblTempUsageDetail_20' ) start [2025-04-23 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973381', 'tblTempUsageDetail_20' ) end [2025-04-23 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973381', 'tblTempVendorCDR_20' ) start [2025-04-23 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973381', 'tblTempVendorCDR_20' ) end [2025-04-23 16:05:22] Production.INFO: ProcessCDR(1,14973381,1,1,2) [2025-04-23 16:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973381', 'tblTempUsageDetail_20' ) start [2025-04-23 16:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973381', 'tblTempUsageDetail_20' ) end [2025-04-23 16:05:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 16:05:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 16:05:27] Production.INFO: ==1798== Releasing lock... [2025-04-23 16:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 16:05:27] Production.INFO: 73 MB #Memory Used# [2025-04-23 16:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 13:06:05 [end_date_ymd] => 2025-04-23 16:06:05 [RateCDR] => 1 ) [2025-04-23 16:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 13:06:05' and `end` < '2025-04-23 16:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 16:06:19] Production.INFO: count ==5986 [2025-04-23 16:06:21] Production.ERROR: pbx CDR StartTime 2025-04-23 13:06:05 - End Time 2025-04-23 16:06:05 [2025-04-23 16:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973386', 'tblTempUsageDetail_20' ) start [2025-04-23 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973386', 'tblTempUsageDetail_20' ) end [2025-04-23 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973386', 'tblTempVendorCDR_20' ) start [2025-04-23 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973386', 'tblTempVendorCDR_20' ) end [2025-04-23 16:06:22] Production.INFO: ProcessCDR(1,14973386,1,1,2) [2025-04-23 16:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973386', 'tblTempUsageDetail_20' ) start [2025-04-23 16:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973386', 'tblTempUsageDetail_20' ) end [2025-04-23 16:06:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 16:06:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 16:06:27] Production.INFO: ==1880== Releasing lock... [2025-04-23 16:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 16:06:27] Production.INFO: 73 MB #Memory Used# [2025-04-23 16:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 13:07:05 [end_date_ymd] => 2025-04-23 16:07:05 [RateCDR] => 1 ) [2025-04-23 16:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 13:07:05' and `end` < '2025-04-23 16:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 16:07:19] Production.INFO: count ==5994 [2025-04-23 16:07:21] Production.ERROR: pbx CDR StartTime 2025-04-23 13:07:05 - End Time 2025-04-23 16:07:05 [2025-04-23 16:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 16:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973391', 'tblTempUsageDetail_20' ) start [2025-04-23 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973391', 'tblTempUsageDetail_20' ) end [2025-04-23 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973391', 'tblTempVendorCDR_20' ) start [2025-04-23 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973391', 'tblTempVendorCDR_20' ) end [2025-04-23 16:07:22] Production.INFO: ProcessCDR(1,14973391,1,1,2) [2025-04-23 16:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973391', 'tblTempUsageDetail_20' ) start [2025-04-23 16:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973391', 'tblTempUsageDetail_20' ) end [2025-04-23 16:07:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 16:07:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 16:07:26] Production.INFO: ==1958== Releasing lock... [2025-04-23 16:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 16:07:26] Production.INFO: 73 MB #Memory Used# [2025-04-23 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 13:08:05 [end_date_ymd] => 2025-04-23 16:08:05 [RateCDR] => 1 ) [2025-04-23 16:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 13:08:05' and `end` < '2025-04-23 16:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 16:08:19] Production.INFO: count ==6025 [2025-04-23 16:08:21] Production.ERROR: pbx CDR StartTime 2025-04-23 13:08:05 - End Time 2025-04-23 16:08:05 [2025-04-23 16:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973396', 'tblTempUsageDetail_20' ) start [2025-04-23 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973396', 'tblTempUsageDetail_20' ) end [2025-04-23 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973396', 'tblTempVendorCDR_20' ) start [2025-04-23 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973396', 'tblTempVendorCDR_20' ) end [2025-04-23 16:08:22] Production.INFO: ProcessCDR(1,14973396,1,1,2) [2025-04-23 16:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973396', 'tblTempUsageDetail_20' ) start [2025-04-23 16:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973396', 'tblTempUsageDetail_20' ) end [2025-04-23 16:08:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 16:08:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 16:08:27] Production.INFO: ==2031== Releasing lock... [2025-04-23 16:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 16:08:27] Production.INFO: 73.25 MB #Memory Used# [2025-04-23 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 13:09:05 [end_date_ymd] => 2025-04-23 16:09:05 [RateCDR] => 1 ) [2025-04-23 16:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 13:09:05' and `end` < '2025-04-23 16:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 16:09:19] Production.INFO: count ==6017 [2025-04-23 16:09:22] Production.ERROR: pbx CDR StartTime 2025-04-23 13:09:05 - End Time 2025-04-23 16:09:05 [2025-04-23 16:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 16:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973401', 'tblTempUsageDetail_20' ) start [2025-04-23 16:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973401', 'tblTempUsageDetail_20' ) end [2025-04-23 16:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973401', 'tblTempVendorCDR_20' ) start [2025-04-23 16:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973401', 'tblTempVendorCDR_20' ) end [2025-04-23 16:09:22] Production.INFO: ProcessCDR(1,14973401,1,1,2) [2025-04-23 16:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973401', 'tblTempUsageDetail_20' ) start [2025-04-23 16:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973401', 'tblTempUsageDetail_20' ) end [2025-04-23 16:09:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 16:09:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 16:09:27] Production.INFO: ==2106== Releasing lock... [2025-04-23 16:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 16:09:27] Production.INFO: 73.25 MB #Memory Used# [2025-04-23 16:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 13:10:06 [end_date_ymd] => 2025-04-23 16:10:06 [RateCDR] => 1 ) [2025-04-23 16:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 13:10:06' and `end` < '2025-04-23 16:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 16:10:20] Production.INFO: count ==6022 [2025-04-23 16:10:22] Production.ERROR: pbx CDR StartTime 2025-04-23 13:10:06 - End Time 2025-04-23 16:10:06 [2025-04-23 16:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973407', 'tblTempUsageDetail_20' ) start [2025-04-23 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973407', 'tblTempUsageDetail_20' ) end [2025-04-23 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973407', 'tblTempVendorCDR_20' ) start [2025-04-23 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973407', 'tblTempVendorCDR_20' ) end [2025-04-23 16:10:23] Production.INFO: ProcessCDR(1,14973407,1,1,2) [2025-04-23 16:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973407', 'tblTempUsageDetail_20' ) start [2025-04-23 16:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973407', 'tblTempUsageDetail_20' ) end [2025-04-23 16:10:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 16:10:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 16:10:28] Production.INFO: ==2190== Releasing lock... [2025-04-23 16:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 16:10:28] Production.INFO: 73.25 MB #Memory Used# [2025-04-23 16:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 13:11:05 [end_date_ymd] => 2025-04-23 16:11:05 [RateCDR] => 1 ) [2025-04-23 16:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 13:11:05' and `end` < '2025-04-23 16:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 16:11:20] Production.INFO: count ==6003 [2025-04-23 16:11:22] Production.ERROR: pbx CDR StartTime 2025-04-23 13:11:05 - End Time 2025-04-23 16:11:05 [2025-04-23 16:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 16:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973412', 'tblTempUsageDetail_20' ) start [2025-04-23 16:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973412', 'tblTempUsageDetail_20' ) end [2025-04-23 16:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973412', 'tblTempVendorCDR_20' ) start [2025-04-23 16:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973412', 'tblTempVendorCDR_20' ) end [2025-04-23 16:11:23] Production.INFO: ProcessCDR(1,14973412,1,1,2) [2025-04-23 16:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973412', 'tblTempUsageDetail_20' ) start [2025-04-23 16:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973412', 'tblTempUsageDetail_20' ) end [2025-04-23 16:11:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 16:11:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 16:11:28] Production.INFO: ==2276== Releasing lock... [2025-04-23 16:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 16:11:28] Production.INFO: 73 MB #Memory Used# [2025-04-23 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 13:12:05 [end_date_ymd] => 2025-04-23 16:12:05 [RateCDR] => 1 ) [2025-04-23 16:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 13:12:05' and `end` < '2025-04-23 16:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 16:12:19] Production.INFO: count ==5979 [2025-04-23 16:12:21] Production.ERROR: pbx CDR StartTime 2025-04-23 13:12:05 - End Time 2025-04-23 16:12:05 [2025-04-23 16:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973417', 'tblTempUsageDetail_20' ) start [2025-04-23 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973417', 'tblTempUsageDetail_20' ) end [2025-04-23 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973417', 'tblTempVendorCDR_20' ) start [2025-04-23 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973417', 'tblTempVendorCDR_20' ) end [2025-04-23 16:12:22] Production.INFO: ProcessCDR(1,14973417,1,1,2) [2025-04-23 16:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973417', 'tblTempUsageDetail_20' ) start [2025-04-23 16:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973417', 'tblTempUsageDetail_20' ) end [2025-04-23 16:12:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 16:12:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 16:12:27] Production.INFO: ==2347== Releasing lock... [2025-04-23 16:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 16:12:27] Production.INFO: 73 MB #Memory Used# [2025-04-23 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 13:13:05 [end_date_ymd] => 2025-04-23 16:13:05 [RateCDR] => 1 ) [2025-04-23 16:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 13:13:05' and `end` < '2025-04-23 16:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 16:13:19] Production.INFO: count ==6002 [2025-04-23 16:13:21] Production.ERROR: pbx CDR StartTime 2025-04-23 13:13:05 - End Time 2025-04-23 16:13:05 [2025-04-23 16:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973422', 'tblTempUsageDetail_20' ) start [2025-04-23 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973422', 'tblTempUsageDetail_20' ) end [2025-04-23 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973422', 'tblTempVendorCDR_20' ) start [2025-04-23 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973422', 'tblTempVendorCDR_20' ) end [2025-04-23 16:13:22] Production.INFO: ProcessCDR(1,14973422,1,1,2) [2025-04-23 16:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973422', 'tblTempUsageDetail_20' ) start [2025-04-23 16:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973422', 'tblTempUsageDetail_20' ) end [2025-04-23 16:13:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 16:13:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 16:13:27] Production.INFO: ==2423== Releasing lock... [2025-04-23 16:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 16:13:27] Production.INFO: 73 MB #Memory Used# [2025-04-23 16:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 13:14:06 [end_date_ymd] => 2025-04-23 16:14:06 [RateCDR] => 1 ) [2025-04-23 16:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 13:14:06' and `end` < '2025-04-23 16:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 16:14:20] Production.INFO: count ==5982 [2025-04-23 16:14:22] Production.ERROR: pbx CDR StartTime 2025-04-23 13:14:06 - End Time 2025-04-23 16:14:06 [2025-04-23 16:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973427', 'tblTempUsageDetail_20' ) start [2025-04-23 16:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973427', 'tblTempUsageDetail_20' ) end [2025-04-23 16:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973427', 'tblTempVendorCDR_20' ) start [2025-04-23 16:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973427', 'tblTempVendorCDR_20' ) end [2025-04-23 16:14:23] Production.INFO: ProcessCDR(1,14973427,1,1,2) [2025-04-23 16:14:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973427', 'tblTempUsageDetail_20' ) start [2025-04-23 16:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973427', 'tblTempUsageDetail_20' ) end [2025-04-23 16:14:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 16:14:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 16:14:27] Production.INFO: ==2499== Releasing lock... [2025-04-23 16:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 16:14:27] Production.INFO: 73 MB #Memory Used# [2025-04-23 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 13:15:05 [end_date_ymd] => 2025-04-23 16:15:05 [RateCDR] => 1 ) [2025-04-23 16:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 13:15:05' and `end` < '2025-04-23 16:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 16:15:19] Production.INFO: count ==5982 [2025-04-23 16:15:21] Production.ERROR: pbx CDR StartTime 2025-04-23 13:15:05 - End Time 2025-04-23 16:15:05 [2025-04-23 16:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973432', 'tblTempUsageDetail_20' ) start [2025-04-23 16:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973432', 'tblTempUsageDetail_20' ) end [2025-04-23 16:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973432', 'tblTempVendorCDR_20' ) start [2025-04-23 16:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973432', 'tblTempVendorCDR_20' ) end [2025-04-23 16:15:22] Production.INFO: ProcessCDR(1,14973432,1,1,2) [2025-04-23 16:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973432', 'tblTempUsageDetail_20' ) start [2025-04-23 16:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973432', 'tblTempUsageDetail_20' ) end [2025-04-23 16:15:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 16:15:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 16:15:27] Production.INFO: ==2628== Releasing lock... [2025-04-23 16:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 16:15:27] Production.INFO: 73 MB #Memory Used# [2025-04-23 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 13:16:05 [end_date_ymd] => 2025-04-23 16:16:05 [RateCDR] => 1 ) [2025-04-23 16:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 13:16:05' and `end` < '2025-04-23 16:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 16:16:20] Production.INFO: count ==5968 [2025-04-23 16:16:22] Production.ERROR: pbx CDR StartTime 2025-04-23 13:16:05 - End Time 2025-04-23 16:16:05 [2025-04-23 16:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973437', 'tblTempUsageDetail_20' ) start [2025-04-23 16:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973437', 'tblTempUsageDetail_20' ) end [2025-04-23 16:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973437', 'tblTempVendorCDR_20' ) start [2025-04-23 16:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973437', 'tblTempVendorCDR_20' ) end [2025-04-23 16:16:23] Production.INFO: ProcessCDR(1,14973437,1,1,2) [2025-04-23 16:16:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973437', 'tblTempUsageDetail_20' ) start [2025-04-23 16:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973437', 'tblTempUsageDetail_20' ) end [2025-04-23 16:16:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 16:16:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 16:16:26] Production.INFO: ==2705== Releasing lock... [2025-04-23 16:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 16:16:26] Production.INFO: 72.75 MB #Memory Used# [2025-04-23 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 13:17:05 [end_date_ymd] => 2025-04-23 16:17:05 [RateCDR] => 1 ) [2025-04-23 16:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 13:17:05' and `end` < '2025-04-23 16:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 16:17:19] Production.INFO: count ==5993 [2025-04-23 16:17:21] Production.ERROR: pbx CDR StartTime 2025-04-23 13:17:05 - End Time 2025-04-23 16:17:05 [2025-04-23 16:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973442', 'tblTempUsageDetail_20' ) start [2025-04-23 16:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973442', 'tblTempUsageDetail_20' ) end [2025-04-23 16:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973442', 'tblTempVendorCDR_20' ) start [2025-04-23 16:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973442', 'tblTempVendorCDR_20' ) end [2025-04-23 16:17:22] Production.INFO: ProcessCDR(1,14973442,1,1,2) [2025-04-23 16:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973442', 'tblTempUsageDetail_20' ) start [2025-04-23 16:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973442', 'tblTempUsageDetail_20' ) end [2025-04-23 16:17:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 16:17:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 16:17:27] Production.INFO: ==2786== Releasing lock... [2025-04-23 16:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 16:17:27] Production.INFO: 73 MB #Memory Used# [2025-04-23 16:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 13:18:06 [end_date_ymd] => 2025-04-23 16:18:06 [RateCDR] => 1 ) [2025-04-23 16:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 13:18:06' and `end` < '2025-04-23 16:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 16:18:20] Production.INFO: count ==5984 [2025-04-23 16:18:22] Production.ERROR: pbx CDR StartTime 2025-04-23 13:18:06 - End Time 2025-04-23 16:18:06 [2025-04-23 16:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 16:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973447', 'tblTempUsageDetail_20' ) start [2025-04-23 16:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973447', 'tblTempUsageDetail_20' ) end [2025-04-23 16:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973447', 'tblTempVendorCDR_20' ) start [2025-04-23 16:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973447', 'tblTempVendorCDR_20' ) end [2025-04-23 16:18:23] Production.INFO: ProcessCDR(1,14973447,1,1,2) [2025-04-23 16:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:18:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:18:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973447', 'tblTempUsageDetail_20' ) start [2025-04-23 16:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973447', 'tblTempUsageDetail_20' ) end [2025-04-23 16:18:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 16:18:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 16:18:28] Production.INFO: ==2877== Releasing lock... [2025-04-23 16:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 16:18:28] Production.INFO: 73 MB #Memory Used# [2025-04-23 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 13:19:05 [end_date_ymd] => 2025-04-23 16:19:05 [RateCDR] => 1 ) [2025-04-23 16:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 13:19:05' and `end` < '2025-04-23 16:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 16:19:20] Production.INFO: count ==5988 [2025-04-23 16:19:22] Production.ERROR: pbx CDR StartTime 2025-04-23 13:19:05 - End Time 2025-04-23 16:19:05 [2025-04-23 16:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973452', 'tblTempUsageDetail_20' ) start [2025-04-23 16:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973452', 'tblTempUsageDetail_20' ) end [2025-04-23 16:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973452', 'tblTempVendorCDR_20' ) start [2025-04-23 16:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973452', 'tblTempVendorCDR_20' ) end [2025-04-23 16:19:23] Production.INFO: ProcessCDR(1,14973452,1,1,2) [2025-04-23 16:19:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:19:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973452', 'tblTempUsageDetail_20' ) start [2025-04-23 16:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973452', 'tblTempUsageDetail_20' ) end [2025-04-23 16:19:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 16:19:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 16:19:28] Production.INFO: ==2956== Releasing lock... [2025-04-23 16:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 16:19:28] Production.INFO: 73 MB #Memory Used# [2025-04-23 16:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 13:20:06 [end_date_ymd] => 2025-04-23 16:20:06 [RateCDR] => 1 ) [2025-04-23 16:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 13:20:06' and `end` < '2025-04-23 16:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 16:20:20] Production.INFO: count ==5970 [2025-04-23 16:20:23] Production.ERROR: pbx CDR StartTime 2025-04-23 13:20:06 - End Time 2025-04-23 16:20:06 [2025-04-23 16:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 16:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973458', 'tblTempUsageDetail_20' ) start [2025-04-23 16:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973458', 'tblTempUsageDetail_20' ) end [2025-04-23 16:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973458', 'tblTempVendorCDR_20' ) start [2025-04-23 16:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973458', 'tblTempVendorCDR_20' ) end [2025-04-23 16:20:23] Production.INFO: ProcessCDR(1,14973458,1,1,2) [2025-04-23 16:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973458', 'tblTempUsageDetail_20' ) start [2025-04-23 16:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973458', 'tblTempUsageDetail_20' ) end [2025-04-23 16:20:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 16:20:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 16:20:28] Production.INFO: ==3044== Releasing lock... [2025-04-23 16:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 16:20:28] Production.INFO: 72.75 MB #Memory Used# [2025-04-23 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 13:21:05 [end_date_ymd] => 2025-04-23 16:21:05 [RateCDR] => 1 ) [2025-04-23 16:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 13:21:05' and `end` < '2025-04-23 16:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 16:21:19] Production.INFO: count ==5930 [2025-04-23 16:21:21] Production.ERROR: pbx CDR StartTime 2025-04-23 13:21:05 - End Time 2025-04-23 16:21:05 [2025-04-23 16:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 16:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973463', 'tblTempUsageDetail_20' ) start [2025-04-23 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973463', 'tblTempUsageDetail_20' ) end [2025-04-23 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973463', 'tblTempVendorCDR_20' ) start [2025-04-23 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973463', 'tblTempVendorCDR_20' ) end [2025-04-23 16:21:22] Production.INFO: ProcessCDR(1,14973463,1,1,2) [2025-04-23 16:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973463', 'tblTempUsageDetail_20' ) start [2025-04-23 16:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973463', 'tblTempUsageDetail_20' ) end [2025-04-23 16:21:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 16:21:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 16:21:27] Production.INFO: ==3133== Releasing lock... [2025-04-23 16:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 16:21:27] Production.INFO: 72.5 MB #Memory Used# [2025-04-23 16:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 13:22:06 [end_date_ymd] => 2025-04-23 16:22:06 [RateCDR] => 1 ) [2025-04-23 16:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 13:22:06' and `end` < '2025-04-23 16:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 16:22:20] Production.INFO: count ==5937 [2025-04-23 16:22:22] Production.ERROR: pbx CDR StartTime 2025-04-23 13:22:06 - End Time 2025-04-23 16:22:06 [2025-04-23 16:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 16:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973468', 'tblTempUsageDetail_20' ) start [2025-04-23 16:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973468', 'tblTempUsageDetail_20' ) end [2025-04-23 16:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973468', 'tblTempVendorCDR_20' ) start [2025-04-23 16:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973468', 'tblTempVendorCDR_20' ) end [2025-04-23 16:22:23] Production.INFO: ProcessCDR(1,14973468,1,1,2) [2025-04-23 16:22:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:22:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:22:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:22:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973468', 'tblTempUsageDetail_20' ) start [2025-04-23 16:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973468', 'tblTempUsageDetail_20' ) end [2025-04-23 16:22:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 16:22:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 16:22:28] Production.INFO: ==3218== Releasing lock... [2025-04-23 16:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 16:22:28] Production.INFO: 72.5 MB #Memory Used# [2025-04-23 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 13:23:05 [end_date_ymd] => 2025-04-23 16:23:05 [RateCDR] => 1 ) [2025-04-23 16:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 13:23:05' and `end` < '2025-04-23 16:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 16:23:19] Production.INFO: count ==5926 [2025-04-23 16:23:21] Production.ERROR: pbx CDR StartTime 2025-04-23 13:23:05 - End Time 2025-04-23 16:23:05 [2025-04-23 16:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973473', 'tblTempUsageDetail_20' ) start [2025-04-23 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973473', 'tblTempUsageDetail_20' ) end [2025-04-23 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973473', 'tblTempVendorCDR_20' ) start [2025-04-23 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973473', 'tblTempVendorCDR_20' ) end [2025-04-23 16:23:22] Production.INFO: ProcessCDR(1,14973473,1,1,2) [2025-04-23 16:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973473', 'tblTempUsageDetail_20' ) start [2025-04-23 16:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973473', 'tblTempUsageDetail_20' ) end [2025-04-23 16:23:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 16:23:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 16:23:27] Production.INFO: ==3302== Releasing lock... [2025-04-23 16:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 16:23:27] Production.INFO: 72.5 MB #Memory Used# [2025-04-23 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 13:24:05 [end_date_ymd] => 2025-04-23 16:24:05 [RateCDR] => 1 ) [2025-04-23 16:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 13:24:05' and `end` < '2025-04-23 16:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 16:24:20] Production.INFO: count ==5916 [2025-04-23 16:24:22] Production.ERROR: pbx CDR StartTime 2025-04-23 13:24:05 - End Time 2025-04-23 16:24:05 [2025-04-23 16:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973478', 'tblTempUsageDetail_20' ) start [2025-04-23 16:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973478', 'tblTempUsageDetail_20' ) end [2025-04-23 16:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973478', 'tblTempVendorCDR_20' ) start [2025-04-23 16:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973478', 'tblTempVendorCDR_20' ) end [2025-04-23 16:24:23] Production.INFO: ProcessCDR(1,14973478,1,1,2) [2025-04-23 16:24:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973478', 'tblTempUsageDetail_20' ) start [2025-04-23 16:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973478', 'tblTempUsageDetail_20' ) end [2025-04-23 16:24:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 16:24:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 16:24:27] Production.INFO: ==3387== Releasing lock... [2025-04-23 16:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 16:24:27] Production.INFO: 72.5 MB #Memory Used# [2025-04-23 16:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 13:25:06 [end_date_ymd] => 2025-04-23 16:25:06 [RateCDR] => 1 ) [2025-04-23 16:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 13:25:06' and `end` < '2025-04-23 16:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 16:25:20] Production.INFO: count ==5921 [2025-04-23 16:25:23] Production.ERROR: pbx CDR StartTime 2025-04-23 13:25:06 - End Time 2025-04-23 16:25:06 [2025-04-23 16:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973483', 'tblTempUsageDetail_20' ) start [2025-04-23 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973483', 'tblTempUsageDetail_20' ) end [2025-04-23 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973483', 'tblTempVendorCDR_20' ) start [2025-04-23 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973483', 'tblTempVendorCDR_20' ) end [2025-04-23 16:25:23] Production.INFO: ProcessCDR(1,14973483,1,1,2) [2025-04-23 16:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973483', 'tblTempUsageDetail_20' ) start [2025-04-23 16:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973483', 'tblTempUsageDetail_20' ) end [2025-04-23 16:25:29] Production.ERROR: pbx prc_insertCDR start [2025-04-23 16:25:29] Production.ERROR: pbx prc_insertCDR end [2025-04-23 16:25:29] Production.INFO: ==3471== Releasing lock... [2025-04-23 16:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 16:25:29] Production.INFO: 72.5 MB #Memory Used# [2025-04-23 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 13:26:05 [end_date_ymd] => 2025-04-23 16:26:05 [RateCDR] => 1 ) [2025-04-23 16:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 13:26:05' and `end` < '2025-04-23 16:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 16:26:19] Production.INFO: count ==5903 [2025-04-23 16:26:21] Production.ERROR: pbx CDR StartTime 2025-04-23 13:26:05 - End Time 2025-04-23 16:26:05 [2025-04-23 16:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973488', 'tblTempUsageDetail_20' ) start [2025-04-23 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973488', 'tblTempUsageDetail_20' ) end [2025-04-23 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973488', 'tblTempVendorCDR_20' ) start [2025-04-23 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973488', 'tblTempVendorCDR_20' ) end [2025-04-23 16:26:22] Production.INFO: ProcessCDR(1,14973488,1,1,2) [2025-04-23 16:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973488', 'tblTempUsageDetail_20' ) start [2025-04-23 16:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973488', 'tblTempUsageDetail_20' ) end [2025-04-23 16:26:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 16:26:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 16:26:27] Production.INFO: ==3564== Releasing lock... [2025-04-23 16:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 16:26:27] Production.INFO: 72.25 MB #Memory Used# [2025-04-23 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 13:27:05 [end_date_ymd] => 2025-04-23 16:27:05 [RateCDR] => 1 ) [2025-04-23 16:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 13:27:05' and `end` < '2025-04-23 16:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 16:27:20] Production.INFO: count ==5894 [2025-04-23 16:27:22] Production.ERROR: pbx CDR StartTime 2025-04-23 13:27:05 - End Time 2025-04-23 16:27:05 [2025-04-23 16:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973493', 'tblTempUsageDetail_20' ) start [2025-04-23 16:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973493', 'tblTempUsageDetail_20' ) end [2025-04-23 16:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973493', 'tblTempVendorCDR_20' ) start [2025-04-23 16:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973493', 'tblTempVendorCDR_20' ) end [2025-04-23 16:27:23] Production.INFO: ProcessCDR(1,14973493,1,1,2) [2025-04-23 16:27:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:27:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973493', 'tblTempUsageDetail_20' ) start [2025-04-23 16:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973493', 'tblTempUsageDetail_20' ) end [2025-04-23 16:27:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 16:27:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 16:27:28] Production.INFO: ==3647== Releasing lock... [2025-04-23 16:27:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 16:27:28] Production.INFO: 72.25 MB #Memory Used# [2025-04-23 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 13:28:05 [end_date_ymd] => 2025-04-23 16:28:05 [RateCDR] => 1 ) [2025-04-23 16:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 13:28:05' and `end` < '2025-04-23 16:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 16:28:19] Production.INFO: count ==5859 [2025-04-23 16:28:21] Production.ERROR: pbx CDR StartTime 2025-04-23 13:28:05 - End Time 2025-04-23 16:28:05 [2025-04-23 16:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973498', 'tblTempUsageDetail_20' ) start [2025-04-23 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973498', 'tblTempUsageDetail_20' ) end [2025-04-23 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973498', 'tblTempVendorCDR_20' ) start [2025-04-23 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973498', 'tblTempVendorCDR_20' ) end [2025-04-23 16:28:22] Production.INFO: ProcessCDR(1,14973498,1,1,2) [2025-04-23 16:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973498', 'tblTempUsageDetail_20' ) start [2025-04-23 16:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973498', 'tblTempUsageDetail_20' ) end [2025-04-23 16:28:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 16:28:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 16:28:27] Production.INFO: ==3734== Releasing lock... [2025-04-23 16:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 16:28:27] Production.INFO: 72 MB #Memory Used# [2025-04-23 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 13:29:05 [end_date_ymd] => 2025-04-23 16:29:05 [RateCDR] => 1 ) [2025-04-23 16:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 13:29:05' and `end` < '2025-04-23 16:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 16:29:19] Production.INFO: count ==5863 [2025-04-23 16:29:21] Production.ERROR: pbx CDR StartTime 2025-04-23 13:29:05 - End Time 2025-04-23 16:29:05 [2025-04-23 16:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973503', 'tblTempUsageDetail_20' ) start [2025-04-23 16:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973503', 'tblTempUsageDetail_20' ) end [2025-04-23 16:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973503', 'tblTempVendorCDR_20' ) start [2025-04-23 16:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973503', 'tblTempVendorCDR_20' ) end [2025-04-23 16:29:22] Production.INFO: ProcessCDR(1,14973503,1,1,2) [2025-04-23 16:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973503', 'tblTempUsageDetail_20' ) start [2025-04-23 16:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973503', 'tblTempUsageDetail_20' ) end [2025-04-23 16:29:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 16:29:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 16:29:27] Production.INFO: ==3817== Releasing lock... [2025-04-23 16:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 16:29:27] Production.INFO: 72 MB #Memory Used# [2025-04-23 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 13:30:06 [end_date_ymd] => 2025-04-23 16:30:06 [RateCDR] => 1 ) [2025-04-23 16:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 13:30:06' and `end` < '2025-04-23 16:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 16:30:20] Production.INFO: count ==5866 [2025-04-23 16:30:22] Production.ERROR: pbx CDR StartTime 2025-04-23 13:30:06 - End Time 2025-04-23 16:30:06 [2025-04-23 16:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973509', 'tblTempUsageDetail_20' ) start [2025-04-23 16:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973509', 'tblTempUsageDetail_20' ) end [2025-04-23 16:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973509', 'tblTempVendorCDR_20' ) start [2025-04-23 16:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973509', 'tblTempVendorCDR_20' ) end [2025-04-23 16:30:23] Production.INFO: ProcessCDR(1,14973509,1,1,2) [2025-04-23 16:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973509', 'tblTempUsageDetail_20' ) start [2025-04-23 16:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973509', 'tblTempUsageDetail_20' ) end [2025-04-23 16:30:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 16:30:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 16:30:28] Production.INFO: ==3941== Releasing lock... [2025-04-23 16:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 16:30:28] Production.INFO: 72 MB #Memory Used# [2025-04-23 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 13:31:05 [end_date_ymd] => 2025-04-23 16:31:05 [RateCDR] => 1 ) [2025-04-23 16:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 13:31:05' and `end` < '2025-04-23 16:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 16:31:19] Production.INFO: count ==5883 [2025-04-23 16:31:21] Production.ERROR: pbx CDR StartTime 2025-04-23 13:31:05 - End Time 2025-04-23 16:31:05 [2025-04-23 16:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973514', 'tblTempUsageDetail_20' ) start [2025-04-23 16:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973514', 'tblTempUsageDetail_20' ) end [2025-04-23 16:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973514', 'tblTempVendorCDR_20' ) start [2025-04-23 16:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973514', 'tblTempVendorCDR_20' ) end [2025-04-23 16:31:22] Production.INFO: ProcessCDR(1,14973514,1,1,2) [2025-04-23 16:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973514', 'tblTempUsageDetail_20' ) start [2025-04-23 16:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973514', 'tblTempUsageDetail_20' ) end [2025-04-23 16:31:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 16:31:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 16:31:27] Production.INFO: ==4029== Releasing lock... [2025-04-23 16:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 16:31:27] Production.INFO: 72.25 MB #Memory Used# [2025-04-23 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 13:32:05 [end_date_ymd] => 2025-04-23 16:32:05 [RateCDR] => 1 ) [2025-04-23 16:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 13:32:05' and `end` < '2025-04-23 16:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 16:32:19] Production.INFO: count ==5879 [2025-04-23 16:32:21] Production.ERROR: pbx CDR StartTime 2025-04-23 13:32:05 - End Time 2025-04-23 16:32:05 [2025-04-23 16:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973519', 'tblTempUsageDetail_20' ) start [2025-04-23 16:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973519', 'tblTempUsageDetail_20' ) end [2025-04-23 16:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973519', 'tblTempVendorCDR_20' ) start [2025-04-23 16:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973519', 'tblTempVendorCDR_20' ) end [2025-04-23 16:32:22] Production.INFO: ProcessCDR(1,14973519,1,1,2) [2025-04-23 16:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973519', 'tblTempUsageDetail_20' ) start [2025-04-23 16:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973519', 'tblTempUsageDetail_20' ) end [2025-04-23 16:32:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 16:32:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 16:32:26] Production.INFO: ==4113== Releasing lock... [2025-04-23 16:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 16:32:26] Production.INFO: 72.25 MB #Memory Used# [2025-04-23 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 13:33:05 [end_date_ymd] => 2025-04-23 16:33:05 [RateCDR] => 1 ) [2025-04-23 16:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 13:33:05' and `end` < '2025-04-23 16:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 16:33:19] Production.INFO: count ==5884 [2025-04-23 16:33:22] Production.ERROR: pbx CDR StartTime 2025-04-23 13:33:05 - End Time 2025-04-23 16:33:05 [2025-04-23 16:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973524', 'tblTempUsageDetail_20' ) start [2025-04-23 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973524', 'tblTempUsageDetail_20' ) end [2025-04-23 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973524', 'tblTempVendorCDR_20' ) start [2025-04-23 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973524', 'tblTempVendorCDR_20' ) end [2025-04-23 16:33:22] Production.INFO: ProcessCDR(1,14973524,1,1,2) [2025-04-23 16:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973524', 'tblTempUsageDetail_20' ) start [2025-04-23 16:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973524', 'tblTempUsageDetail_20' ) end [2025-04-23 16:33:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 16:33:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 16:33:27] Production.INFO: ==4203== Releasing lock... [2025-04-23 16:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 16:33:27] Production.INFO: 72.25 MB #Memory Used# [2025-04-23 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 13:34:05 [end_date_ymd] => 2025-04-23 16:34:05 [RateCDR] => 1 ) [2025-04-23 16:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 13:34:05' and `end` < '2025-04-23 16:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 16:34:19] Production.INFO: count ==5889 [2025-04-23 16:34:22] Production.ERROR: pbx CDR StartTime 2025-04-23 13:34:05 - End Time 2025-04-23 16:34:05 [2025-04-23 16:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 16:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973529', 'tblTempUsageDetail_20' ) start [2025-04-23 16:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973529', 'tblTempUsageDetail_20' ) end [2025-04-23 16:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973529', 'tblTempVendorCDR_20' ) start [2025-04-23 16:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973529', 'tblTempVendorCDR_20' ) end [2025-04-23 16:34:22] Production.INFO: ProcessCDR(1,14973529,1,1,2) [2025-04-23 16:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973529', 'tblTempUsageDetail_20' ) start [2025-04-23 16:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973529', 'tblTempUsageDetail_20' ) end [2025-04-23 16:34:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 16:34:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 16:34:27] Production.INFO: ==4291== Releasing lock... [2025-04-23 16:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 16:34:27] Production.INFO: 72.25 MB #Memory Used# [2025-04-23 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 13:35:05 [end_date_ymd] => 2025-04-23 16:35:05 [RateCDR] => 1 ) [2025-04-23 16:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 13:35:05' and `end` < '2025-04-23 16:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 16:35:19] Production.INFO: count ==5874 [2025-04-23 16:35:22] Production.ERROR: pbx CDR StartTime 2025-04-23 13:35:05 - End Time 2025-04-23 16:35:05 [2025-04-23 16:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973534', 'tblTempUsageDetail_20' ) start [2025-04-23 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973534', 'tblTempUsageDetail_20' ) end [2025-04-23 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973534', 'tblTempVendorCDR_20' ) start [2025-04-23 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973534', 'tblTempVendorCDR_20' ) end [2025-04-23 16:35:22] Production.INFO: ProcessCDR(1,14973534,1,1,2) [2025-04-23 16:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973534', 'tblTempUsageDetail_20' ) start [2025-04-23 16:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973534', 'tblTempUsageDetail_20' ) end [2025-04-23 16:35:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 16:35:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 16:35:26] Production.INFO: ==4375== Releasing lock... [2025-04-23 16:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 16:35:26] Production.INFO: 72 MB #Memory Used# [2025-04-23 16:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 13:36:06 [end_date_ymd] => 2025-04-23 16:36:06 [RateCDR] => 1 ) [2025-04-23 16:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 13:36:06' and `end` < '2025-04-23 16:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 16:36:20] Production.INFO: count ==5876 [2025-04-23 16:36:22] Production.ERROR: pbx CDR StartTime 2025-04-23 13:36:06 - End Time 2025-04-23 16:36:06 [2025-04-23 16:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 16:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973539', 'tblTempUsageDetail_20' ) start [2025-04-23 16:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973539', 'tblTempUsageDetail_20' ) end [2025-04-23 16:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973539', 'tblTempVendorCDR_20' ) start [2025-04-23 16:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973539', 'tblTempVendorCDR_20' ) end [2025-04-23 16:36:23] Production.INFO: ProcessCDR(1,14973539,1,1,2) [2025-04-23 16:36:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:36:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973539', 'tblTempUsageDetail_20' ) start [2025-04-23 16:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973539', 'tblTempUsageDetail_20' ) end [2025-04-23 16:36:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 16:36:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 16:36:28] Production.INFO: ==4463== Releasing lock... [2025-04-23 16:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 16:36:28] Production.INFO: 72.25 MB #Memory Used# [2025-04-23 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 13:37:05 [end_date_ymd] => 2025-04-23 16:37:05 [RateCDR] => 1 ) [2025-04-23 16:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 13:37:05' and `end` < '2025-04-23 16:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 16:37:19] Production.INFO: count ==5893 [2025-04-23 16:37:21] Production.ERROR: pbx CDR StartTime 2025-04-23 13:37:05 - End Time 2025-04-23 16:37:05 [2025-04-23 16:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973544', 'tblTempUsageDetail_20' ) start [2025-04-23 16:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973544', 'tblTempUsageDetail_20' ) end [2025-04-23 16:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973544', 'tblTempVendorCDR_20' ) start [2025-04-23 16:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973544', 'tblTempVendorCDR_20' ) end [2025-04-23 16:37:22] Production.INFO: ProcessCDR(1,14973544,1,1,2) [2025-04-23 16:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973544', 'tblTempUsageDetail_20' ) start [2025-04-23 16:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973544', 'tblTempUsageDetail_20' ) end [2025-04-23 16:37:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 16:37:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 16:37:27] Production.INFO: ==4552== Releasing lock... [2025-04-23 16:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 16:37:27] Production.INFO: 72.25 MB #Memory Used# [2025-04-23 16:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 13:38:06 [end_date_ymd] => 2025-04-23 16:38:06 [RateCDR] => 1 ) [2025-04-23 16:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 13:38:06' and `end` < '2025-04-23 16:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 16:38:20] Production.INFO: count ==5889 [2025-04-23 16:38:22] Production.ERROR: pbx CDR StartTime 2025-04-23 13:38:06 - End Time 2025-04-23 16:38:06 [2025-04-23 16:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 16:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973549', 'tblTempUsageDetail_20' ) start [2025-04-23 16:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973549', 'tblTempUsageDetail_20' ) end [2025-04-23 16:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973549', 'tblTempVendorCDR_20' ) start [2025-04-23 16:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973549', 'tblTempVendorCDR_20' ) end [2025-04-23 16:38:23] Production.INFO: ProcessCDR(1,14973549,1,1,2) [2025-04-23 16:38:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:38:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973549', 'tblTempUsageDetail_20' ) start [2025-04-23 16:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973549', 'tblTempUsageDetail_20' ) end [2025-04-23 16:38:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 16:38:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 16:38:28] Production.INFO: ==4643== Releasing lock... [2025-04-23 16:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 16:38:28] Production.INFO: 72.25 MB #Memory Used# [2025-04-23 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 13:39:05 [end_date_ymd] => 2025-04-23 16:39:05 [RateCDR] => 1 ) [2025-04-23 16:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 13:39:05' and `end` < '2025-04-23 16:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 16:39:18] Production.INFO: count ==5879 [2025-04-23 16:39:21] Production.ERROR: pbx CDR StartTime 2025-04-23 13:39:05 - End Time 2025-04-23 16:39:05 [2025-04-23 16:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973554', 'tblTempUsageDetail_20' ) start [2025-04-23 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973554', 'tblTempUsageDetail_20' ) end [2025-04-23 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973554', 'tblTempVendorCDR_20' ) start [2025-04-23 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973554', 'tblTempVendorCDR_20' ) end [2025-04-23 16:39:21] Production.INFO: ProcessCDR(1,14973554,1,1,2) [2025-04-23 16:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973554', 'tblTempUsageDetail_20' ) start [2025-04-23 16:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973554', 'tblTempUsageDetail_20' ) end [2025-04-23 16:39:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 16:39:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 16:39:27] Production.INFO: ==4724== Releasing lock... [2025-04-23 16:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 16:39:27] Production.INFO: 72.25 MB #Memory Used# [2025-04-23 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 13:40:06 [end_date_ymd] => 2025-04-23 16:40:06 [RateCDR] => 1 ) [2025-04-23 16:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 13:40:06' and `end` < '2025-04-23 16:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 16:40:20] Production.INFO: count ==5862 [2025-04-23 16:40:23] Production.ERROR: pbx CDR StartTime 2025-04-23 13:40:06 - End Time 2025-04-23 16:40:06 [2025-04-23 16:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 16:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973560', 'tblTempUsageDetail_20' ) start [2025-04-23 16:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973560', 'tblTempUsageDetail_20' ) end [2025-04-23 16:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973560', 'tblTempVendorCDR_20' ) start [2025-04-23 16:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973560', 'tblTempVendorCDR_20' ) end [2025-04-23 16:40:23] Production.INFO: ProcessCDR(1,14973560,1,1,2) [2025-04-23 16:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973560', 'tblTempUsageDetail_20' ) start [2025-04-23 16:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973560', 'tblTempUsageDetail_20' ) end [2025-04-23 16:40:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 16:40:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 16:40:28] Production.INFO: ==4810== Releasing lock... [2025-04-23 16:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 16:40:28] Production.INFO: 72 MB #Memory Used# [2025-04-23 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 13:41:05 [end_date_ymd] => 2025-04-23 16:41:05 [RateCDR] => 1 ) [2025-04-23 16:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 13:41:05' and `end` < '2025-04-23 16:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 16:41:19] Production.INFO: count ==5888 [2025-04-23 16:41:22] Production.ERROR: pbx CDR StartTime 2025-04-23 13:41:05 - End Time 2025-04-23 16:41:05 [2025-04-23 16:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 16:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973565', 'tblTempUsageDetail_20' ) start [2025-04-23 16:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973565', 'tblTempUsageDetail_20' ) end [2025-04-23 16:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973565', 'tblTempVendorCDR_20' ) start [2025-04-23 16:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973565', 'tblTempVendorCDR_20' ) end [2025-04-23 16:41:22] Production.INFO: ProcessCDR(1,14973565,1,1,2) [2025-04-23 16:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973565', 'tblTempUsageDetail_20' ) start [2025-04-23 16:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973565', 'tblTempUsageDetail_20' ) end [2025-04-23 16:41:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 16:41:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 16:41:27] Production.INFO: ==4907== Releasing lock... [2025-04-23 16:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 16:41:27] Production.INFO: 72.25 MB #Memory Used# [2025-04-23 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 13:42:05 [end_date_ymd] => 2025-04-23 16:42:05 [RateCDR] => 1 ) [2025-04-23 16:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 13:42:05' and `end` < '2025-04-23 16:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 16:42:20] Production.INFO: count ==5884 [2025-04-23 16:42:22] Production.ERROR: pbx CDR StartTime 2025-04-23 13:42:05 - End Time 2025-04-23 16:42:05 [2025-04-23 16:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973570', 'tblTempUsageDetail_20' ) start [2025-04-23 16:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973570', 'tblTempUsageDetail_20' ) end [2025-04-23 16:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973570', 'tblTempVendorCDR_20' ) start [2025-04-23 16:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973570', 'tblTempVendorCDR_20' ) end [2025-04-23 16:42:23] Production.INFO: ProcessCDR(1,14973570,1,1,2) [2025-04-23 16:42:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973570', 'tblTempUsageDetail_20' ) start [2025-04-23 16:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973570', 'tblTempUsageDetail_20' ) end [2025-04-23 16:42:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 16:42:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 16:42:28] Production.INFO: ==4993== Releasing lock... [2025-04-23 16:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 16:42:28] Production.INFO: 72.25 MB #Memory Used# [2025-04-23 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 13:43:05 [end_date_ymd] => 2025-04-23 16:43:05 [RateCDR] => 1 ) [2025-04-23 16:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 13:43:05' and `end` < '2025-04-23 16:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 16:43:19] Production.INFO: count ==5883 [2025-04-23 16:43:21] Production.ERROR: pbx CDR StartTime 2025-04-23 13:43:05 - End Time 2025-04-23 16:43:05 [2025-04-23 16:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 16:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973575', 'tblTempUsageDetail_20' ) start [2025-04-23 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973575', 'tblTempUsageDetail_20' ) end [2025-04-23 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973575', 'tblTempVendorCDR_20' ) start [2025-04-23 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973575', 'tblTempVendorCDR_20' ) end [2025-04-23 16:43:22] Production.INFO: ProcessCDR(1,14973575,1,1,2) [2025-04-23 16:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973575', 'tblTempUsageDetail_20' ) start [2025-04-23 16:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973575', 'tblTempUsageDetail_20' ) end [2025-04-23 16:43:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 16:43:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 16:43:26] Production.INFO: ==5074== Releasing lock... [2025-04-23 16:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 16:43:26] Production.INFO: 72.25 MB #Memory Used# [2025-04-23 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 13:44:05 [end_date_ymd] => 2025-04-23 16:44:05 [RateCDR] => 1 ) [2025-04-23 16:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 13:44:05' and `end` < '2025-04-23 16:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 16:44:19] Production.INFO: count ==5880 [2025-04-23 16:44:22] Production.ERROR: pbx CDR StartTime 2025-04-23 13:44:05 - End Time 2025-04-23 16:44:05 [2025-04-23 16:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973580', 'tblTempUsageDetail_20' ) start [2025-04-23 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973580', 'tblTempUsageDetail_20' ) end [2025-04-23 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973580', 'tblTempVendorCDR_20' ) start [2025-04-23 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973580', 'tblTempVendorCDR_20' ) end [2025-04-23 16:44:22] Production.INFO: ProcessCDR(1,14973580,1,1,2) [2025-04-23 16:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973580', 'tblTempUsageDetail_20' ) start [2025-04-23 16:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973580', 'tblTempUsageDetail_20' ) end [2025-04-23 16:44:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 16:44:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 16:44:27] Production.INFO: ==5158== Releasing lock... [2025-04-23 16:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 16:44:27] Production.INFO: 72.25 MB #Memory Used# [2025-04-23 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 13:45:05 [end_date_ymd] => 2025-04-23 16:45:05 [RateCDR] => 1 ) [2025-04-23 16:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 13:45:05' and `end` < '2025-04-23 16:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 16:45:19] Production.INFO: count ==5882 [2025-04-23 16:45:21] Production.ERROR: pbx CDR StartTime 2025-04-23 13:45:05 - End Time 2025-04-23 16:45:05 [2025-04-23 16:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973585', 'tblTempUsageDetail_20' ) start [2025-04-23 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973585', 'tblTempUsageDetail_20' ) end [2025-04-23 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973585', 'tblTempVendorCDR_20' ) start [2025-04-23 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973585', 'tblTempVendorCDR_20' ) end [2025-04-23 16:45:22] Production.INFO: ProcessCDR(1,14973585,1,1,2) [2025-04-23 16:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973585', 'tblTempUsageDetail_20' ) start [2025-04-23 16:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973585', 'tblTempUsageDetail_20' ) end [2025-04-23 16:45:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 16:45:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 16:45:25] Production.INFO: ==5278== Releasing lock... [2025-04-23 16:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 16:45:25] Production.INFO: 72.25 MB #Memory Used# [2025-04-23 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 13:46:05 [end_date_ymd] => 2025-04-23 16:46:05 [RateCDR] => 1 ) [2025-04-23 16:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 13:46:05' and `end` < '2025-04-23 16:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 16:46:19] Production.INFO: count ==5885 [2025-04-23 16:46:22] Production.ERROR: pbx CDR StartTime 2025-04-23 13:46:05 - End Time 2025-04-23 16:46:05 [2025-04-23 16:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973590', 'tblTempUsageDetail_20' ) start [2025-04-23 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973590', 'tblTempUsageDetail_20' ) end [2025-04-23 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973590', 'tblTempVendorCDR_20' ) start [2025-04-23 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973590', 'tblTempVendorCDR_20' ) end [2025-04-23 16:46:22] Production.INFO: ProcessCDR(1,14973590,1,1,2) [2025-04-23 16:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973590', 'tblTempUsageDetail_20' ) start [2025-04-23 16:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973590', 'tblTempUsageDetail_20' ) end [2025-04-23 16:46:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 16:46:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 16:46:27] Production.INFO: ==5364== Releasing lock... [2025-04-23 16:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 16:46:27] Production.INFO: 72.25 MB #Memory Used# [2025-04-23 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 13:47:05 [end_date_ymd] => 2025-04-23 16:47:05 [RateCDR] => 1 ) [2025-04-23 16:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 13:47:05' and `end` < '2025-04-23 16:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 16:47:19] Production.INFO: count ==5893 [2025-04-23 16:47:22] Production.ERROR: pbx CDR StartTime 2025-04-23 13:47:05 - End Time 2025-04-23 16:47:05 [2025-04-23 16:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 16:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973595', 'tblTempUsageDetail_20' ) start [2025-04-23 16:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973595', 'tblTempUsageDetail_20' ) end [2025-04-23 16:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973595', 'tblTempVendorCDR_20' ) start [2025-04-23 16:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973595', 'tblTempVendorCDR_20' ) end [2025-04-23 16:47:22] Production.INFO: ProcessCDR(1,14973595,1,1,2) [2025-04-23 16:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973595', 'tblTempUsageDetail_20' ) start [2025-04-23 16:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973595', 'tblTempUsageDetail_20' ) end [2025-04-23 16:47:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 16:47:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 16:47:28] Production.INFO: ==5451== Releasing lock... [2025-04-23 16:47:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 16:47:28] Production.INFO: 72.25 MB #Memory Used# [2025-04-23 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 13:48:05 [end_date_ymd] => 2025-04-23 16:48:05 [RateCDR] => 1 ) [2025-04-23 16:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 13:48:05' and `end` < '2025-04-23 16:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 16:48:19] Production.INFO: count ==5890 [2025-04-23 16:48:22] Production.ERROR: pbx CDR StartTime 2025-04-23 13:48:05 - End Time 2025-04-23 16:48:05 [2025-04-23 16:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973600', 'tblTempUsageDetail_20' ) start [2025-04-23 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973600', 'tblTempUsageDetail_20' ) end [2025-04-23 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973600', 'tblTempVendorCDR_20' ) start [2025-04-23 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973600', 'tblTempVendorCDR_20' ) end [2025-04-23 16:48:22] Production.INFO: ProcessCDR(1,14973600,1,1,2) [2025-04-23 16:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973600', 'tblTempUsageDetail_20' ) start [2025-04-23 16:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973600', 'tblTempUsageDetail_20' ) end [2025-04-23 16:48:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 16:48:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 16:48:27] Production.INFO: ==5536== Releasing lock... [2025-04-23 16:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 16:48:27] Production.INFO: 72.25 MB #Memory Used# [2025-04-23 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 13:49:05 [end_date_ymd] => 2025-04-23 16:49:05 [RateCDR] => 1 ) [2025-04-23 16:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 13:49:05' and `end` < '2025-04-23 16:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 16:49:19] Production.INFO: count ==5891 [2025-04-23 16:49:21] Production.ERROR: pbx CDR StartTime 2025-04-23 13:49:05 - End Time 2025-04-23 16:49:05 [2025-04-23 16:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973605', 'tblTempUsageDetail_20' ) start [2025-04-23 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973605', 'tblTempUsageDetail_20' ) end [2025-04-23 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973605', 'tblTempVendorCDR_20' ) start [2025-04-23 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973605', 'tblTempVendorCDR_20' ) end [2025-04-23 16:49:22] Production.INFO: ProcessCDR(1,14973605,1,1,2) [2025-04-23 16:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973605', 'tblTempUsageDetail_20' ) start [2025-04-23 16:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973605', 'tblTempUsageDetail_20' ) end [2025-04-23 16:49:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 16:49:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 16:49:27] Production.INFO: ==5616== Releasing lock... [2025-04-23 16:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 16:49:27] Production.INFO: 72.25 MB #Memory Used# [2025-04-23 16:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 13:50:06 [end_date_ymd] => 2025-04-23 16:50:06 [RateCDR] => 1 ) [2025-04-23 16:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 13:50:06' and `end` < '2025-04-23 16:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 16:50:20] Production.INFO: count ==5887 [2025-04-23 16:50:22] Production.ERROR: pbx CDR StartTime 2025-04-23 13:50:06 - End Time 2025-04-23 16:50:06 [2025-04-23 16:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973611', 'tblTempUsageDetail_20' ) start [2025-04-23 16:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973611', 'tblTempUsageDetail_20' ) end [2025-04-23 16:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973611', 'tblTempVendorCDR_20' ) start [2025-04-23 16:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973611', 'tblTempVendorCDR_20' ) end [2025-04-23 16:50:23] Production.INFO: ProcessCDR(1,14973611,1,1,2) [2025-04-23 16:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:50:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:50:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973611', 'tblTempUsageDetail_20' ) start [2025-04-23 16:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973611', 'tblTempUsageDetail_20' ) end [2025-04-23 16:50:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 16:50:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 16:50:28] Production.INFO: ==5702== Releasing lock... [2025-04-23 16:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 16:50:28] Production.INFO: 72.25 MB #Memory Used# [2025-04-23 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 13:51:05 [end_date_ymd] => 2025-04-23 16:51:05 [RateCDR] => 1 ) [2025-04-23 16:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 13:51:05' and `end` < '2025-04-23 16:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 16:51:19] Production.INFO: count ==5879 [2025-04-23 16:51:22] Production.ERROR: pbx CDR StartTime 2025-04-23 13:51:05 - End Time 2025-04-23 16:51:05 [2025-04-23 16:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 16:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973616', 'tblTempUsageDetail_20' ) start [2025-04-23 16:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973616', 'tblTempUsageDetail_20' ) end [2025-04-23 16:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973616', 'tblTempVendorCDR_20' ) start [2025-04-23 16:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973616', 'tblTempVendorCDR_20' ) end [2025-04-23 16:51:22] Production.INFO: ProcessCDR(1,14973616,1,1,2) [2025-04-23 16:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973616', 'tblTempUsageDetail_20' ) start [2025-04-23 16:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973616', 'tblTempUsageDetail_20' ) end [2025-04-23 16:51:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 16:51:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 16:51:28] Production.INFO: ==5794== Releasing lock... [2025-04-23 16:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 16:51:28] Production.INFO: 72.25 MB #Memory Used# [2025-04-23 16:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 13:52:05 [end_date_ymd] => 2025-04-23 16:52:05 [RateCDR] => 1 ) [2025-04-23 16:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 13:52:05' and `end` < '2025-04-23 16:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 16:52:19] Production.INFO: count ==5884 [2025-04-23 16:52:22] Production.ERROR: pbx CDR StartTime 2025-04-23 13:52:05 - End Time 2025-04-23 16:52:05 [2025-04-23 16:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973621', 'tblTempUsageDetail_20' ) start [2025-04-23 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973621', 'tblTempUsageDetail_20' ) end [2025-04-23 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973621', 'tblTempVendorCDR_20' ) start [2025-04-23 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973621', 'tblTempVendorCDR_20' ) end [2025-04-23 16:52:22] Production.INFO: ProcessCDR(1,14973621,1,1,2) [2025-04-23 16:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973621', 'tblTempUsageDetail_20' ) start [2025-04-23 16:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973621', 'tblTempUsageDetail_20' ) end [2025-04-23 16:52:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 16:52:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 16:52:27] Production.INFO: ==5880== Releasing lock... [2025-04-23 16:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 16:52:27] Production.INFO: 72.25 MB #Memory Used# [2025-04-23 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 13:53:05 [end_date_ymd] => 2025-04-23 16:53:05 [RateCDR] => 1 ) [2025-04-23 16:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 13:53:05' and `end` < '2025-04-23 16:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 16:53:19] Production.INFO: count ==5899 [2025-04-23 16:53:21] Production.ERROR: pbx CDR StartTime 2025-04-23 13:53:05 - End Time 2025-04-23 16:53:05 [2025-04-23 16:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973626', 'tblTempUsageDetail_20' ) start [2025-04-23 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973626', 'tblTempUsageDetail_20' ) end [2025-04-23 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973626', 'tblTempVendorCDR_20' ) start [2025-04-23 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973626', 'tblTempVendorCDR_20' ) end [2025-04-23 16:53:22] Production.INFO: ProcessCDR(1,14973626,1,1,2) [2025-04-23 16:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973626', 'tblTempUsageDetail_20' ) start [2025-04-23 16:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973626', 'tblTempUsageDetail_20' ) end [2025-04-23 16:53:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 16:53:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 16:53:27] Production.INFO: ==5967== Releasing lock... [2025-04-23 16:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 16:53:27] Production.INFO: 72.25 MB #Memory Used# [2025-04-23 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 13:54:05 [end_date_ymd] => 2025-04-23 16:54:05 [RateCDR] => 1 ) [2025-04-23 16:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 13:54:05' and `end` < '2025-04-23 16:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 16:54:19] Production.INFO: count ==5908 [2025-04-23 16:54:21] Production.ERROR: pbx CDR StartTime 2025-04-23 13:54:05 - End Time 2025-04-23 16:54:05 [2025-04-23 16:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973631', 'tblTempUsageDetail_20' ) start [2025-04-23 16:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973631', 'tblTempUsageDetail_20' ) end [2025-04-23 16:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973631', 'tblTempVendorCDR_20' ) start [2025-04-23 16:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973631', 'tblTempVendorCDR_20' ) end [2025-04-23 16:54:22] Production.INFO: ProcessCDR(1,14973631,1,1,2) [2025-04-23 16:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973631', 'tblTempUsageDetail_20' ) start [2025-04-23 16:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973631', 'tblTempUsageDetail_20' ) end [2025-04-23 16:54:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 16:54:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 16:54:27] Production.INFO: ==6052== Releasing lock... [2025-04-23 16:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 16:54:27] Production.INFO: 72.5 MB #Memory Used# [2025-04-23 16:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 13:55:05 [end_date_ymd] => 2025-04-23 16:55:05 [RateCDR] => 1 ) [2025-04-23 16:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 13:55:05' and `end` < '2025-04-23 16:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 16:55:19] Production.INFO: count ==5915 [2025-04-23 16:55:22] Production.ERROR: pbx CDR StartTime 2025-04-23 13:55:05 - End Time 2025-04-23 16:55:05 [2025-04-23 16:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 16:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973636', 'tblTempUsageDetail_20' ) start [2025-04-23 16:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973636', 'tblTempUsageDetail_20' ) end [2025-04-23 16:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973636', 'tblTempVendorCDR_20' ) start [2025-04-23 16:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973636', 'tblTempVendorCDR_20' ) end [2025-04-23 16:55:22] Production.INFO: ProcessCDR(1,14973636,1,1,2) [2025-04-23 16:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:55:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973636', 'tblTempUsageDetail_20' ) start [2025-04-23 16:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973636', 'tblTempUsageDetail_20' ) end [2025-04-23 16:55:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 16:55:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 16:55:28] Production.INFO: ==6133== Releasing lock... [2025-04-23 16:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 16:55:28] Production.INFO: 72.5 MB #Memory Used# [2025-04-23 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 13:56:05 [end_date_ymd] => 2025-04-23 16:56:05 [RateCDR] => 1 ) [2025-04-23 16:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 13:56:05' and `end` < '2025-04-23 16:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 16:56:19] Production.INFO: count ==5907 [2025-04-23 16:56:21] Production.ERROR: pbx CDR StartTime 2025-04-23 13:56:05 - End Time 2025-04-23 16:56:05 [2025-04-23 16:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973641', 'tblTempUsageDetail_20' ) start [2025-04-23 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973641', 'tblTempUsageDetail_20' ) end [2025-04-23 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973641', 'tblTempVendorCDR_20' ) start [2025-04-23 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973641', 'tblTempVendorCDR_20' ) end [2025-04-23 16:56:22] Production.INFO: ProcessCDR(1,14973641,1,1,2) [2025-04-23 16:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973641', 'tblTempUsageDetail_20' ) start [2025-04-23 16:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973641', 'tblTempUsageDetail_20' ) end [2025-04-23 16:56:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 16:56:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 16:56:27] Production.INFO: ==6228== Releasing lock... [2025-04-23 16:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 16:56:27] Production.INFO: 72.25 MB #Memory Used# [2025-04-23 16:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 13:57:05 [end_date_ymd] => 2025-04-23 16:57:05 [RateCDR] => 1 ) [2025-04-23 16:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 13:57:05' and `end` < '2025-04-23 16:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 16:57:19] Production.INFO: count ==5899 [2025-04-23 16:57:22] Production.ERROR: pbx CDR StartTime 2025-04-23 13:57:05 - End Time 2025-04-23 16:57:05 [2025-04-23 16:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 16:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973646', 'tblTempUsageDetail_20' ) start [2025-04-23 16:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973646', 'tblTempUsageDetail_20' ) end [2025-04-23 16:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973646', 'tblTempVendorCDR_20' ) start [2025-04-23 16:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973646', 'tblTempVendorCDR_20' ) end [2025-04-23 16:57:22] Production.INFO: ProcessCDR(1,14973646,1,1,2) [2025-04-23 16:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973646', 'tblTempUsageDetail_20' ) start [2025-04-23 16:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973646', 'tblTempUsageDetail_20' ) end [2025-04-23 16:57:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 16:57:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 16:57:27] Production.INFO: ==6314== Releasing lock... [2025-04-23 16:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 16:57:27] Production.INFO: 72.25 MB #Memory Used# [2025-04-23 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 13:58:05 [end_date_ymd] => 2025-04-23 16:58:05 [RateCDR] => 1 ) [2025-04-23 16:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 13:58:05' and `end` < '2025-04-23 16:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 16:58:19] Production.INFO: count ==5879 [2025-04-23 16:58:21] Production.ERROR: pbx CDR StartTime 2025-04-23 13:58:05 - End Time 2025-04-23 16:58:05 [2025-04-23 16:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973651', 'tblTempUsageDetail_20' ) start [2025-04-23 16:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973651', 'tblTempUsageDetail_20' ) end [2025-04-23 16:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973651', 'tblTempVendorCDR_20' ) start [2025-04-23 16:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973651', 'tblTempVendorCDR_20' ) end [2025-04-23 16:58:22] Production.INFO: ProcessCDR(1,14973651,1,1,2) [2025-04-23 16:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973651', 'tblTempUsageDetail_20' ) start [2025-04-23 16:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973651', 'tblTempUsageDetail_20' ) end [2025-04-23 16:58:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 16:58:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 16:58:26] Production.INFO: ==6398== Releasing lock... [2025-04-23 16:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 16:58:26] Production.INFO: 72.25 MB #Memory Used# [2025-04-23 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 13:59:05 [end_date_ymd] => 2025-04-23 16:59:05 [RateCDR] => 1 ) [2025-04-23 16:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 13:59:05' and `end` < '2025-04-23 16:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 16:59:19] Production.INFO: count ==5889 [2025-04-23 16:59:21] Production.ERROR: pbx CDR StartTime 2025-04-23 13:59:05 - End Time 2025-04-23 16:59:05 [2025-04-23 16:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973656', 'tblTempUsageDetail_20' ) start [2025-04-23 16:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973656', 'tblTempUsageDetail_20' ) end [2025-04-23 16:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973656', 'tblTempVendorCDR_20' ) start [2025-04-23 16:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973656', 'tblTempVendorCDR_20' ) end [2025-04-23 16:59:22] Production.INFO: ProcessCDR(1,14973656,1,1,2) [2025-04-23 16:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 16:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 16:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973656', 'tblTempUsageDetail_20' ) start [2025-04-23 16:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973656', 'tblTempUsageDetail_20' ) end [2025-04-23 16:59:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 16:59:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 16:59:27] Production.INFO: ==6481== Releasing lock... [2025-04-23 16:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 16:59:27] Production.INFO: 72.25 MB #Memory Used# [2025-04-23 17:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 14:00:07 [end_date_ymd] => 2025-04-23 17:00:07 [RateCDR] => 1 ) [2025-04-23 17:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 14:00:07' and `end` < '2025-04-23 17:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 17:00:21] Production.INFO: count ==5891 [2025-04-23 17:00:23] Production.ERROR: pbx CDR StartTime 2025-04-23 14:00:07 - End Time 2025-04-23 17:00:07 [2025-04-23 17:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973662', 'tblTempUsageDetail_20' ) start [2025-04-23 17:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973662', 'tblTempUsageDetail_20' ) end [2025-04-23 17:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973662', 'tblTempVendorCDR_20' ) start [2025-04-23 17:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973662', 'tblTempVendorCDR_20' ) end [2025-04-23 17:00:24] Production.INFO: ProcessCDR(1,14973662,1,1,2) [2025-04-23 17:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:00:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:00:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973662', 'tblTempUsageDetail_20' ) start [2025-04-23 17:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973662', 'tblTempUsageDetail_20' ) end [2025-04-23 17:00:29] Production.ERROR: pbx prc_insertCDR start [2025-04-23 17:00:29] Production.ERROR: pbx prc_insertCDR end [2025-04-23 17:00:29] Production.INFO: ==6571== Releasing lock... [2025-04-23 17:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 17:00:29] Production.INFO: 72.25 MB #Memory Used# [2025-04-23 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 14:01:05 [end_date_ymd] => 2025-04-23 17:01:05 [RateCDR] => 1 ) [2025-04-23 17:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 14:01:05' and `end` < '2025-04-23 17:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 17:01:19] Production.INFO: count ==5913 [2025-04-23 17:01:22] Production.ERROR: pbx CDR StartTime 2025-04-23 14:01:05 - End Time 2025-04-23 17:01:05 [2025-04-23 17:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973667', 'tblTempUsageDetail_20' ) start [2025-04-23 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973667', 'tblTempUsageDetail_20' ) end [2025-04-23 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973667', 'tblTempVendorCDR_20' ) start [2025-04-23 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973667', 'tblTempVendorCDR_20' ) end [2025-04-23 17:01:22] Production.INFO: ProcessCDR(1,14973667,1,1,2) [2025-04-23 17:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973667', 'tblTempUsageDetail_20' ) start [2025-04-23 17:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973667', 'tblTempUsageDetail_20' ) end [2025-04-23 17:01:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 17:01:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 17:01:27] Production.INFO: ==6710== Releasing lock... [2025-04-23 17:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 17:01:27] Production.INFO: 72.5 MB #Memory Used# [2025-04-23 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 14:02:05 [end_date_ymd] => 2025-04-23 17:02:05 [RateCDR] => 1 ) [2025-04-23 17:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 14:02:05' and `end` < '2025-04-23 17:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 17:02:19] Production.INFO: count ==5910 [2025-04-23 17:02:22] Production.ERROR: pbx CDR StartTime 2025-04-23 14:02:05 - End Time 2025-04-23 17:02:05 [2025-04-23 17:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973672', 'tblTempUsageDetail_20' ) start [2025-04-23 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973672', 'tblTempUsageDetail_20' ) end [2025-04-23 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973672', 'tblTempVendorCDR_20' ) start [2025-04-23 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973672', 'tblTempVendorCDR_20' ) end [2025-04-23 17:02:22] Production.INFO: ProcessCDR(1,14973672,1,1,2) [2025-04-23 17:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973672', 'tblTempUsageDetail_20' ) start [2025-04-23 17:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973672', 'tblTempUsageDetail_20' ) end [2025-04-23 17:02:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 17:02:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 17:02:27] Production.INFO: ==6791== Releasing lock... [2025-04-23 17:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 17:02:27] Production.INFO: 72.5 MB #Memory Used# [2025-04-23 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 14:03:05 [end_date_ymd] => 2025-04-23 17:03:05 [RateCDR] => 1 ) [2025-04-23 17:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 14:03:05' and `end` < '2025-04-23 17:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 17:03:19] Production.INFO: count ==5902 [2025-04-23 17:03:21] Production.ERROR: pbx CDR StartTime 2025-04-23 14:03:05 - End Time 2025-04-23 17:03:05 [2025-04-23 17:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973677', 'tblTempUsageDetail_20' ) start [2025-04-23 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973677', 'tblTempUsageDetail_20' ) end [2025-04-23 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973677', 'tblTempVendorCDR_20' ) start [2025-04-23 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973677', 'tblTempVendorCDR_20' ) end [2025-04-23 17:03:22] Production.INFO: ProcessCDR(1,14973677,1,1,2) [2025-04-23 17:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973677', 'tblTempUsageDetail_20' ) start [2025-04-23 17:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973677', 'tblTempUsageDetail_20' ) end [2025-04-23 17:03:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 17:03:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 17:03:27] Production.INFO: ==6876== Releasing lock... [2025-04-23 17:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 17:03:27] Production.INFO: 72.25 MB #Memory Used# [2025-04-23 17:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 14:04:05 [end_date_ymd] => 2025-04-23 17:04:05 [RateCDR] => 1 ) [2025-04-23 17:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 14:04:05' and `end` < '2025-04-23 17:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 17:04:20] Production.INFO: count ==5902 [2025-04-23 17:04:22] Production.ERROR: pbx CDR StartTime 2025-04-23 14:04:05 - End Time 2025-04-23 17:04:05 [2025-04-23 17:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973682', 'tblTempUsageDetail_20' ) start [2025-04-23 17:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973682', 'tblTempUsageDetail_20' ) end [2025-04-23 17:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973682', 'tblTempVendorCDR_20' ) start [2025-04-23 17:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973682', 'tblTempVendorCDR_20' ) end [2025-04-23 17:04:23] Production.INFO: ProcessCDR(1,14973682,1,1,2) [2025-04-23 17:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973682', 'tblTempUsageDetail_20' ) start [2025-04-23 17:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973682', 'tblTempUsageDetail_20' ) end [2025-04-23 17:04:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 17:04:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 17:04:28] Production.INFO: ==6964== Releasing lock... [2025-04-23 17:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 17:04:28] Production.INFO: 72.25 MB #Memory Used# [2025-04-23 17:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 14:05:04 [end_date_ymd] => 2025-04-23 17:05:04 [RateCDR] => 1 ) [2025-04-23 17:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 14:05:04' and `end` < '2025-04-23 17:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 17:05:18] Production.INFO: count ==5897 [2025-04-23 17:05:21] Production.ERROR: pbx CDR StartTime 2025-04-23 14:05:04 - End Time 2025-04-23 17:05:04 [2025-04-23 17:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973687', 'tblTempUsageDetail_20' ) start [2025-04-23 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973687', 'tblTempUsageDetail_20' ) end [2025-04-23 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973687', 'tblTempVendorCDR_20' ) start [2025-04-23 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973687', 'tblTempVendorCDR_20' ) end [2025-04-23 17:05:21] Production.INFO: ProcessCDR(1,14973687,1,1,2) [2025-04-23 17:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973687', 'tblTempUsageDetail_20' ) start [2025-04-23 17:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973687', 'tblTempUsageDetail_20' ) end [2025-04-23 17:05:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 17:05:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 17:05:27] Production.INFO: ==7048== Releasing lock... [2025-04-23 17:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 17:05:27] Production.INFO: 72.25 MB #Memory Used# [2025-04-23 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 14:06:05 [end_date_ymd] => 2025-04-23 17:06:05 [RateCDR] => 1 ) [2025-04-23 17:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 14:06:05' and `end` < '2025-04-23 17:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 17:06:19] Production.INFO: count ==5891 [2025-04-23 17:06:22] Production.ERROR: pbx CDR StartTime 2025-04-23 14:06:05 - End Time 2025-04-23 17:06:05 [2025-04-23 17:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973692', 'tblTempUsageDetail_20' ) start [2025-04-23 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973692', 'tblTempUsageDetail_20' ) end [2025-04-23 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973692', 'tblTempVendorCDR_20' ) start [2025-04-23 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973692', 'tblTempVendorCDR_20' ) end [2025-04-23 17:06:22] Production.INFO: ProcessCDR(1,14973692,1,1,2) [2025-04-23 17:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973692', 'tblTempUsageDetail_20' ) start [2025-04-23 17:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973692', 'tblTempUsageDetail_20' ) end [2025-04-23 17:06:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 17:06:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 17:06:27] Production.INFO: ==7125== Releasing lock... [2025-04-23 17:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 17:06:27] Production.INFO: 72.25 MB #Memory Used# [2025-04-23 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 14:07:05 [end_date_ymd] => 2025-04-23 17:07:05 [RateCDR] => 1 ) [2025-04-23 17:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 14:07:05' and `end` < '2025-04-23 17:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 17:07:19] Production.INFO: count ==5864 [2025-04-23 17:07:22] Production.ERROR: pbx CDR StartTime 2025-04-23 14:07:05 - End Time 2025-04-23 17:07:05 [2025-04-23 17:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973697', 'tblTempUsageDetail_20' ) start [2025-04-23 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973697', 'tblTempUsageDetail_20' ) end [2025-04-23 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973697', 'tblTempVendorCDR_20' ) start [2025-04-23 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973697', 'tblTempVendorCDR_20' ) end [2025-04-23 17:07:22] Production.INFO: ProcessCDR(1,14973697,1,1,2) [2025-04-23 17:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973697', 'tblTempUsageDetail_20' ) start [2025-04-23 17:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973697', 'tblTempUsageDetail_20' ) end [2025-04-23 17:07:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 17:07:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 17:07:27] Production.INFO: ==7199== Releasing lock... [2025-04-23 17:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 17:07:27] Production.INFO: 72 MB #Memory Used# [2025-04-23 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 14:08:05 [end_date_ymd] => 2025-04-23 17:08:05 [RateCDR] => 1 ) [2025-04-23 17:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 14:08:05' and `end` < '2025-04-23 17:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 17:08:19] Production.INFO: count ==5844 [2025-04-23 17:08:21] Production.ERROR: pbx CDR StartTime 2025-04-23 14:08:05 - End Time 2025-04-23 17:08:05 [2025-04-23 17:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973702', 'tblTempUsageDetail_20' ) start [2025-04-23 17:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973702', 'tblTempUsageDetail_20' ) end [2025-04-23 17:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973702', 'tblTempVendorCDR_20' ) start [2025-04-23 17:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973702', 'tblTempVendorCDR_20' ) end [2025-04-23 17:08:22] Production.INFO: ProcessCDR(1,14973702,1,1,2) [2025-04-23 17:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973702', 'tblTempUsageDetail_20' ) start [2025-04-23 17:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973702', 'tblTempUsageDetail_20' ) end [2025-04-23 17:08:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 17:08:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 17:08:27] Production.INFO: ==7270== Releasing lock... [2025-04-23 17:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 17:08:27] Production.INFO: 72 MB #Memory Used# [2025-04-23 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 14:09:05 [end_date_ymd] => 2025-04-23 17:09:05 [RateCDR] => 1 ) [2025-04-23 17:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 14:09:05' and `end` < '2025-04-23 17:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 17:09:19] Production.INFO: count ==5856 [2025-04-23 17:09:21] Production.ERROR: pbx CDR StartTime 2025-04-23 14:09:05 - End Time 2025-04-23 17:09:05 [2025-04-23 17:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973707', 'tblTempUsageDetail_20' ) start [2025-04-23 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973707', 'tblTempUsageDetail_20' ) end [2025-04-23 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973707', 'tblTempVendorCDR_20' ) start [2025-04-23 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973707', 'tblTempVendorCDR_20' ) end [2025-04-23 17:09:22] Production.INFO: ProcessCDR(1,14973707,1,1,2) [2025-04-23 17:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973707', 'tblTempUsageDetail_20' ) start [2025-04-23 17:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973707', 'tblTempUsageDetail_20' ) end [2025-04-23 17:09:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 17:09:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 17:09:27] Production.INFO: ==7341== Releasing lock... [2025-04-23 17:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 17:09:27] Production.INFO: 72 MB #Memory Used# [2025-04-23 17:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 14:10:05 [end_date_ymd] => 2025-04-23 17:10:05 [RateCDR] => 1 ) [2025-04-23 17:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 14:10:05' and `end` < '2025-04-23 17:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 17:10:19] Production.INFO: count ==5843 [2025-04-23 17:10:22] Production.ERROR: pbx CDR StartTime 2025-04-23 14:10:05 - End Time 2025-04-23 17:10:05 [2025-04-23 17:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973713', 'tblTempUsageDetail_20' ) start [2025-04-23 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973713', 'tblTempUsageDetail_20' ) end [2025-04-23 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973713', 'tblTempVendorCDR_20' ) start [2025-04-23 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973713', 'tblTempVendorCDR_20' ) end [2025-04-23 17:10:22] Production.INFO: ProcessCDR(1,14973713,1,1,2) [2025-04-23 17:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973713', 'tblTempUsageDetail_20' ) start [2025-04-23 17:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973713', 'tblTempUsageDetail_20' ) end [2025-04-23 17:10:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 17:10:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 17:10:27] Production.INFO: ==7415== Releasing lock... [2025-04-23 17:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 17:10:27] Production.INFO: 72 MB #Memory Used# [2025-04-23 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 14:11:05 [end_date_ymd] => 2025-04-23 17:11:05 [RateCDR] => 1 ) [2025-04-23 17:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 14:11:05' and `end` < '2025-04-23 17:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 17:11:19] Production.INFO: count ==5849 [2025-04-23 17:11:21] Production.ERROR: pbx CDR StartTime 2025-04-23 14:11:05 - End Time 2025-04-23 17:11:05 [2025-04-23 17:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973718', 'tblTempUsageDetail_20' ) start [2025-04-23 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973718', 'tblTempUsageDetail_20' ) end [2025-04-23 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973718', 'tblTempVendorCDR_20' ) start [2025-04-23 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973718', 'tblTempVendorCDR_20' ) end [2025-04-23 17:11:22] Production.INFO: ProcessCDR(1,14973718,1,1,2) [2025-04-23 17:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973718', 'tblTempUsageDetail_20' ) start [2025-04-23 17:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973718', 'tblTempUsageDetail_20' ) end [2025-04-23 17:11:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 17:11:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 17:11:27] Production.INFO: ==7493== Releasing lock... [2025-04-23 17:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 17:11:27] Production.INFO: 72 MB #Memory Used# [2025-04-23 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 14:12:05 [end_date_ymd] => 2025-04-23 17:12:05 [RateCDR] => 1 ) [2025-04-23 17:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 14:12:05' and `end` < '2025-04-23 17:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 17:12:19] Production.INFO: count ==5838 [2025-04-23 17:12:21] Production.ERROR: pbx CDR StartTime 2025-04-23 14:12:05 - End Time 2025-04-23 17:12:05 [2025-04-23 17:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973723', 'tblTempUsageDetail_20' ) start [2025-04-23 17:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973723', 'tblTempUsageDetail_20' ) end [2025-04-23 17:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973723', 'tblTempVendorCDR_20' ) start [2025-04-23 17:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973723', 'tblTempVendorCDR_20' ) end [2025-04-23 17:12:22] Production.INFO: ProcessCDR(1,14973723,1,1,2) [2025-04-23 17:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973723', 'tblTempUsageDetail_20' ) start [2025-04-23 17:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973723', 'tblTempUsageDetail_20' ) end [2025-04-23 17:12:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 17:12:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 17:12:27] Production.INFO: ==7578== Releasing lock... [2025-04-23 17:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 17:12:27] Production.INFO: 71.75 MB #Memory Used# [2025-04-23 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 14:13:05 [end_date_ymd] => 2025-04-23 17:13:05 [RateCDR] => 1 ) [2025-04-23 17:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 14:13:05' and `end` < '2025-04-23 17:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 17:13:19] Production.INFO: count ==5826 [2025-04-23 17:13:21] Production.ERROR: pbx CDR StartTime 2025-04-23 14:13:05 - End Time 2025-04-23 17:13:05 [2025-04-23 17:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973728', 'tblTempUsageDetail_20' ) start [2025-04-23 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973728', 'tblTempUsageDetail_20' ) end [2025-04-23 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973728', 'tblTempVendorCDR_20' ) start [2025-04-23 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973728', 'tblTempVendorCDR_20' ) end [2025-04-23 17:13:22] Production.INFO: ProcessCDR(1,14973728,1,1,2) [2025-04-23 17:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973728', 'tblTempUsageDetail_20' ) start [2025-04-23 17:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973728', 'tblTempUsageDetail_20' ) end [2025-04-23 17:13:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 17:13:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 17:13:27] Production.INFO: ==7666== Releasing lock... [2025-04-23 17:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 17:13:27] Production.INFO: 71.75 MB #Memory Used# [2025-04-23 17:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 14:14:06 [end_date_ymd] => 2025-04-23 17:14:06 [RateCDR] => 1 ) [2025-04-23 17:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 14:14:06' and `end` < '2025-04-23 17:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 17:14:19] Production.INFO: count ==5830 [2025-04-23 17:14:22] Production.ERROR: pbx CDR StartTime 2025-04-23 14:14:06 - End Time 2025-04-23 17:14:06 [2025-04-23 17:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973733', 'tblTempUsageDetail_20' ) start [2025-04-23 17:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973733', 'tblTempUsageDetail_20' ) end [2025-04-23 17:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973733', 'tblTempVendorCDR_20' ) start [2025-04-23 17:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973733', 'tblTempVendorCDR_20' ) end [2025-04-23 17:14:23] Production.INFO: ProcessCDR(1,14973733,1,1,2) [2025-04-23 17:14:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973733', 'tblTempUsageDetail_20' ) start [2025-04-23 17:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973733', 'tblTempUsageDetail_20' ) end [2025-04-23 17:14:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 17:14:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 17:14:28] Production.INFO: ==7752== Releasing lock... [2025-04-23 17:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 17:14:28] Production.INFO: 71.75 MB #Memory Used# [2025-04-23 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 14:15:05 [end_date_ymd] => 2025-04-23 17:15:05 [RateCDR] => 1 ) [2025-04-23 17:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 14:15:05' and `end` < '2025-04-23 17:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 17:15:18] Production.INFO: count ==5827 [2025-04-23 17:15:21] Production.ERROR: pbx CDR StartTime 2025-04-23 14:15:05 - End Time 2025-04-23 17:15:05 [2025-04-23 17:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973738', 'tblTempUsageDetail_20' ) start [2025-04-23 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973738', 'tblTempUsageDetail_20' ) end [2025-04-23 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973738', 'tblTempVendorCDR_20' ) start [2025-04-23 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973738', 'tblTempVendorCDR_20' ) end [2025-04-23 17:15:21] Production.INFO: ProcessCDR(1,14973738,1,1,2) [2025-04-23 17:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973738', 'tblTempUsageDetail_20' ) start [2025-04-23 17:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973738', 'tblTempUsageDetail_20' ) end [2025-04-23 17:15:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 17:15:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 17:15:26] Production.INFO: ==7837== Releasing lock... [2025-04-23 17:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 17:15:26] Production.INFO: 71.75 MB #Memory Used# [2025-04-23 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 14:16:05 [end_date_ymd] => 2025-04-23 17:16:05 [RateCDR] => 1 ) [2025-04-23 17:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 14:16:05' and `end` < '2025-04-23 17:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 17:16:19] Production.INFO: count ==5808 [2025-04-23 17:16:21] Production.ERROR: pbx CDR StartTime 2025-04-23 14:16:05 - End Time 2025-04-23 17:16:05 [2025-04-23 17:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973743', 'tblTempUsageDetail_20' ) start [2025-04-23 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973743', 'tblTempUsageDetail_20' ) end [2025-04-23 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973743', 'tblTempVendorCDR_20' ) start [2025-04-23 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973743', 'tblTempVendorCDR_20' ) end [2025-04-23 17:16:22] Production.INFO: ProcessCDR(1,14973743,1,1,2) [2025-04-23 17:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973743', 'tblTempUsageDetail_20' ) start [2025-04-23 17:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973743', 'tblTempUsageDetail_20' ) end [2025-04-23 17:16:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 17:16:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 17:16:27] Production.INFO: ==7964== Releasing lock... [2025-04-23 17:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 17:16:27] Production.INFO: 71.5 MB #Memory Used# [2025-04-23 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 14:17:05 [end_date_ymd] => 2025-04-23 17:17:05 [RateCDR] => 1 ) [2025-04-23 17:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 14:17:05' and `end` < '2025-04-23 17:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 17:17:19] Production.INFO: count ==5800 [2025-04-23 17:17:21] Production.ERROR: pbx CDR StartTime 2025-04-23 14:17:05 - End Time 2025-04-23 17:17:05 [2025-04-23 17:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973748', 'tblTempUsageDetail_20' ) start [2025-04-23 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973748', 'tblTempUsageDetail_20' ) end [2025-04-23 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973748', 'tblTempVendorCDR_20' ) start [2025-04-23 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973748', 'tblTempVendorCDR_20' ) end [2025-04-23 17:17:22] Production.INFO: ProcessCDR(1,14973748,1,1,2) [2025-04-23 17:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973748', 'tblTempUsageDetail_20' ) start [2025-04-23 17:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973748', 'tblTempUsageDetail_20' ) end [2025-04-23 17:17:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 17:17:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 17:17:27] Production.INFO: ==8049== Releasing lock... [2025-04-23 17:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 17:17:27] Production.INFO: 71.5 MB #Memory Used# [2025-04-23 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 14:18:05 [end_date_ymd] => 2025-04-23 17:18:05 [RateCDR] => 1 ) [2025-04-23 17:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 14:18:05' and `end` < '2025-04-23 17:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 17:18:18] Production.INFO: count ==5786 [2025-04-23 17:18:21] Production.ERROR: pbx CDR StartTime 2025-04-23 14:18:05 - End Time 2025-04-23 17:18:05 [2025-04-23 17:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973753', 'tblTempUsageDetail_20' ) start [2025-04-23 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973753', 'tblTempUsageDetail_20' ) end [2025-04-23 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973753', 'tblTempVendorCDR_20' ) start [2025-04-23 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973753', 'tblTempVendorCDR_20' ) end [2025-04-23 17:18:21] Production.INFO: ProcessCDR(1,14973753,1,1,2) [2025-04-23 17:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973753', 'tblTempUsageDetail_20' ) start [2025-04-23 17:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973753', 'tblTempUsageDetail_20' ) end [2025-04-23 17:18:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 17:18:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 17:18:27] Production.INFO: ==8156== Releasing lock... [2025-04-23 17:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 17:18:27] Production.INFO: 71.5 MB #Memory Used# [2025-04-23 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 14:19:05 [end_date_ymd] => 2025-04-23 17:19:05 [RateCDR] => 1 ) [2025-04-23 17:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 14:19:05' and `end` < '2025-04-23 17:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 17:19:18] Production.INFO: count ==5776 [2025-04-23 17:19:21] Production.ERROR: pbx CDR StartTime 2025-04-23 14:19:05 - End Time 2025-04-23 17:19:05 [2025-04-23 17:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973754', 'tblTempUsageDetail_20' ) start [2025-04-23 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973754', 'tblTempUsageDetail_20' ) end [2025-04-23 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973754', 'tblTempVendorCDR_20' ) start [2025-04-23 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973754', 'tblTempVendorCDR_20' ) end [2025-04-23 17:19:21] Production.INFO: ProcessCDR(1,14973754,1,1,2) [2025-04-23 17:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973754', 'tblTempUsageDetail_20' ) start [2025-04-23 17:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973754', 'tblTempUsageDetail_20' ) end [2025-04-23 17:19:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 17:19:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 17:19:26] Production.INFO: ==8243== Releasing lock... [2025-04-23 17:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 17:19:26] Production.INFO: 71.5 MB #Memory Used# [2025-04-23 17:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 14:20:05 [end_date_ymd] => 2025-04-23 17:20:05 [RateCDR] => 1 ) [2025-04-23 17:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 14:20:05' and `end` < '2025-04-23 17:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 17:20:19] Production.INFO: count ==5786 [2025-04-23 17:20:21] Production.ERROR: pbx CDR StartTime 2025-04-23 14:20:05 - End Time 2025-04-23 17:20:05 [2025-04-23 17:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973764', 'tblTempUsageDetail_20' ) start [2025-04-23 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973764', 'tblTempUsageDetail_20' ) end [2025-04-23 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973764', 'tblTempVendorCDR_20' ) start [2025-04-23 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973764', 'tblTempVendorCDR_20' ) end [2025-04-23 17:20:22] Production.INFO: ProcessCDR(1,14973764,1,1,2) [2025-04-23 17:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973764', 'tblTempUsageDetail_20' ) start [2025-04-23 17:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973764', 'tblTempUsageDetail_20' ) end [2025-04-23 17:20:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 17:20:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 17:20:27] Production.INFO: ==8331== Releasing lock... [2025-04-23 17:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 17:20:27] Production.INFO: 71.5 MB #Memory Used# [2025-04-23 17:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 14:21:06 [end_date_ymd] => 2025-04-23 17:21:06 [RateCDR] => 1 ) [2025-04-23 17:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 14:21:06' and `end` < '2025-04-23 17:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 17:21:19] Production.INFO: count ==5783 [2025-04-23 17:21:21] Production.ERROR: pbx CDR StartTime 2025-04-23 14:21:06 - End Time 2025-04-23 17:21:06 [2025-04-23 17:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973769', 'tblTempUsageDetail_20' ) start [2025-04-23 17:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973769', 'tblTempUsageDetail_20' ) end [2025-04-23 17:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973769', 'tblTempVendorCDR_20' ) start [2025-04-23 17:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973769', 'tblTempVendorCDR_20' ) end [2025-04-23 17:21:22] Production.INFO: ProcessCDR(1,14973769,1,1,2) [2025-04-23 17:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973769', 'tblTempUsageDetail_20' ) start [2025-04-23 17:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973769', 'tblTempUsageDetail_20' ) end [2025-04-23 17:21:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 17:21:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 17:21:27] Production.INFO: ==8416== Releasing lock... [2025-04-23 17:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 17:21:27] Production.INFO: 71.5 MB #Memory Used# [2025-04-23 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 14:22:05 [end_date_ymd] => 2025-04-23 17:22:05 [RateCDR] => 1 ) [2025-04-23 17:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 14:22:05' and `end` < '2025-04-23 17:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 17:22:19] Production.INFO: count ==5787 [2025-04-23 17:22:21] Production.ERROR: pbx CDR StartTime 2025-04-23 14:22:05 - End Time 2025-04-23 17:22:05 [2025-04-23 17:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973774', 'tblTempUsageDetail_20' ) start [2025-04-23 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973774', 'tblTempUsageDetail_20' ) end [2025-04-23 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973774', 'tblTempVendorCDR_20' ) start [2025-04-23 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973774', 'tblTempVendorCDR_20' ) end [2025-04-23 17:22:21] Production.INFO: ProcessCDR(1,14973774,1,1,2) [2025-04-23 17:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973774', 'tblTempUsageDetail_20' ) start [2025-04-23 17:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973774', 'tblTempUsageDetail_20' ) end [2025-04-23 17:22:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 17:22:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 17:22:26] Production.INFO: ==8507== Releasing lock... [2025-04-23 17:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 17:22:26] Production.INFO: 71.5 MB #Memory Used# [2025-04-23 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 14:23:05 [end_date_ymd] => 2025-04-23 17:23:05 [RateCDR] => 1 ) [2025-04-23 17:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 14:23:05' and `end` < '2025-04-23 17:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 17:23:19] Production.INFO: count ==5777 [2025-04-23 17:23:21] Production.ERROR: pbx CDR StartTime 2025-04-23 14:23:05 - End Time 2025-04-23 17:23:05 [2025-04-23 17:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973779', 'tblTempUsageDetail_20' ) start [2025-04-23 17:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973779', 'tblTempUsageDetail_20' ) end [2025-04-23 17:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973779', 'tblTempVendorCDR_20' ) start [2025-04-23 17:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973779', 'tblTempVendorCDR_20' ) end [2025-04-23 17:23:22] Production.INFO: ProcessCDR(1,14973779,1,1,2) [2025-04-23 17:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973779', 'tblTempUsageDetail_20' ) start [2025-04-23 17:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973779', 'tblTempUsageDetail_20' ) end [2025-04-23 17:23:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 17:23:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 17:23:27] Production.INFO: ==8592== Releasing lock... [2025-04-23 17:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 17:23:27] Production.INFO: 71.25 MB #Memory Used# [2025-04-23 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 14:24:05 [end_date_ymd] => 2025-04-23 17:24:05 [RateCDR] => 1 ) [2025-04-23 17:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 14:24:05' and `end` < '2025-04-23 17:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 17:24:18] Production.INFO: count ==5788 [2025-04-23 17:24:21] Production.ERROR: pbx CDR StartTime 2025-04-23 14:24:05 - End Time 2025-04-23 17:24:05 [2025-04-23 17:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973784', 'tblTempUsageDetail_20' ) start [2025-04-23 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973784', 'tblTempUsageDetail_20' ) end [2025-04-23 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973784', 'tblTempVendorCDR_20' ) start [2025-04-23 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973784', 'tblTempVendorCDR_20' ) end [2025-04-23 17:24:21] Production.INFO: ProcessCDR(1,14973784,1,1,2) [2025-04-23 17:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973784', 'tblTempUsageDetail_20' ) start [2025-04-23 17:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973784', 'tblTempUsageDetail_20' ) end [2025-04-23 17:24:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 17:24:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 17:24:26] Production.INFO: ==8676== Releasing lock... [2025-04-23 17:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 17:24:26] Production.INFO: 71.5 MB #Memory Used# [2025-04-23 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 14:25:05 [end_date_ymd] => 2025-04-23 17:25:05 [RateCDR] => 1 ) [2025-04-23 17:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 14:25:05' and `end` < '2025-04-23 17:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 17:25:19] Production.INFO: count ==5774 [2025-04-23 17:25:21] Production.ERROR: pbx CDR StartTime 2025-04-23 14:25:05 - End Time 2025-04-23 17:25:05 [2025-04-23 17:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973789', 'tblTempUsageDetail_20' ) start [2025-04-23 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973789', 'tblTempUsageDetail_20' ) end [2025-04-23 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973789', 'tblTempVendorCDR_20' ) start [2025-04-23 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973789', 'tblTempVendorCDR_20' ) end [2025-04-23 17:25:22] Production.INFO: ProcessCDR(1,14973789,1,1,2) [2025-04-23 17:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973789', 'tblTempUsageDetail_20' ) start [2025-04-23 17:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973789', 'tblTempUsageDetail_20' ) end [2025-04-23 17:25:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 17:25:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 17:25:26] Production.INFO: ==8766== Releasing lock... [2025-04-23 17:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 17:25:26] Production.INFO: 71.25 MB #Memory Used# [2025-04-23 17:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 14:26:05 [end_date_ymd] => 2025-04-23 17:26:05 [RateCDR] => 1 ) [2025-04-23 17:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 14:26:05' and `end` < '2025-04-23 17:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 17:26:19] Production.INFO: count ==5765 [2025-04-23 17:26:21] Production.ERROR: pbx CDR StartTime 2025-04-23 14:26:05 - End Time 2025-04-23 17:26:05 [2025-04-23 17:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973794', 'tblTempUsageDetail_20' ) start [2025-04-23 17:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973794', 'tblTempUsageDetail_20' ) end [2025-04-23 17:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973794', 'tblTempVendorCDR_20' ) start [2025-04-23 17:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973794', 'tblTempVendorCDR_20' ) end [2025-04-23 17:26:22] Production.INFO: ProcessCDR(1,14973794,1,1,2) [2025-04-23 17:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973794', 'tblTempUsageDetail_20' ) start [2025-04-23 17:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973794', 'tblTempUsageDetail_20' ) end [2025-04-23 17:26:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 17:26:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 17:26:27] Production.INFO: ==8856== Releasing lock... [2025-04-23 17:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 17:26:27] Production.INFO: 71.25 MB #Memory Used# [2025-04-23 17:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 14:27:05 [end_date_ymd] => 2025-04-23 17:27:05 [RateCDR] => 1 ) [2025-04-23 17:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 14:27:05' and `end` < '2025-04-23 17:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 17:27:19] Production.INFO: count ==5767 [2025-04-23 17:27:21] Production.ERROR: pbx CDR StartTime 2025-04-23 14:27:05 - End Time 2025-04-23 17:27:05 [2025-04-23 17:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 17:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973799', 'tblTempUsageDetail_20' ) start [2025-04-23 17:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973799', 'tblTempUsageDetail_20' ) end [2025-04-23 17:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973799', 'tblTempVendorCDR_20' ) start [2025-04-23 17:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973799', 'tblTempVendorCDR_20' ) end [2025-04-23 17:27:21] Production.INFO: ProcessCDR(1,14973799,1,1,2) [2025-04-23 17:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973799', 'tblTempUsageDetail_20' ) start [2025-04-23 17:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973799', 'tblTempUsageDetail_20' ) end [2025-04-23 17:27:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 17:27:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 17:27:26] Production.INFO: ==8945== Releasing lock... [2025-04-23 17:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 17:27:26] Production.INFO: 71.25 MB #Memory Used# [2025-04-23 17:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 14:28:06 [end_date_ymd] => 2025-04-23 17:28:06 [RateCDR] => 1 ) [2025-04-23 17:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 14:28:06' and `end` < '2025-04-23 17:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 17:28:19] Production.INFO: count ==5751 [2025-04-23 17:28:21] Production.ERROR: pbx CDR StartTime 2025-04-23 14:28:06 - End Time 2025-04-23 17:28:06 [2025-04-23 17:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 17:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973804', 'tblTempUsageDetail_20' ) start [2025-04-23 17:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973804', 'tblTempUsageDetail_20' ) end [2025-04-23 17:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973804', 'tblTempVendorCDR_20' ) start [2025-04-23 17:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973804', 'tblTempVendorCDR_20' ) end [2025-04-23 17:28:22] Production.INFO: ProcessCDR(1,14973804,1,1,2) [2025-04-23 17:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973804', 'tblTempUsageDetail_20' ) start [2025-04-23 17:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973804', 'tblTempUsageDetail_20' ) end [2025-04-23 17:28:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 17:28:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 17:28:27] Production.INFO: ==9035== Releasing lock... [2025-04-23 17:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 17:28:27] Production.INFO: 71.25 MB #Memory Used# [2025-04-23 17:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 14:29:05 [end_date_ymd] => 2025-04-23 17:29:05 [RateCDR] => 1 ) [2025-04-23 17:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 14:29:05' and `end` < '2025-04-23 17:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 17:29:19] Production.INFO: count ==5741 [2025-04-23 17:29:21] Production.ERROR: pbx CDR StartTime 2025-04-23 14:29:05 - End Time 2025-04-23 17:29:05 [2025-04-23 17:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973809', 'tblTempUsageDetail_20' ) start [2025-04-23 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973809', 'tblTempUsageDetail_20' ) end [2025-04-23 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973809', 'tblTempVendorCDR_20' ) start [2025-04-23 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973809', 'tblTempVendorCDR_20' ) end [2025-04-23 17:29:21] Production.INFO: ProcessCDR(1,14973809,1,1,2) [2025-04-23 17:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973809', 'tblTempUsageDetail_20' ) start [2025-04-23 17:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973809', 'tblTempUsageDetail_20' ) end [2025-04-23 17:29:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 17:29:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 17:29:26] Production.INFO: ==9136== Releasing lock... [2025-04-23 17:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 17:29:26] Production.INFO: 71 MB #Memory Used# [2025-04-23 17:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 14:30:06 [end_date_ymd] => 2025-04-23 17:30:06 [RateCDR] => 1 ) [2025-04-23 17:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 14:30:06' and `end` < '2025-04-23 17:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 17:30:20] Production.INFO: count ==5739 [2025-04-23 17:30:22] Production.ERROR: pbx CDR StartTime 2025-04-23 14:30:06 - End Time 2025-04-23 17:30:06 [2025-04-23 17:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 17:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973815', 'tblTempUsageDetail_20' ) start [2025-04-23 17:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973815', 'tblTempUsageDetail_20' ) end [2025-04-23 17:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973815', 'tblTempVendorCDR_20' ) start [2025-04-23 17:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973815', 'tblTempVendorCDR_20' ) end [2025-04-23 17:30:23] Production.INFO: ProcessCDR(1,14973815,1,1,2) [2025-04-23 17:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973815', 'tblTempUsageDetail_20' ) start [2025-04-23 17:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973815', 'tblTempUsageDetail_20' ) end [2025-04-23 17:30:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 17:30:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 17:30:28] Production.INFO: ==9227== Releasing lock... [2025-04-23 17:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 17:30:28] Production.INFO: 71 MB #Memory Used# [2025-04-23 17:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 14:31:05 [end_date_ymd] => 2025-04-23 17:31:05 [RateCDR] => 1 ) [2025-04-23 17:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 14:31:05' and `end` < '2025-04-23 17:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 17:31:19] Production.INFO: count ==5734 [2025-04-23 17:31:21] Production.ERROR: pbx CDR StartTime 2025-04-23 14:31:05 - End Time 2025-04-23 17:31:05 [2025-04-23 17:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 17:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973820', 'tblTempUsageDetail_20' ) start [2025-04-23 17:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973820', 'tblTempUsageDetail_20' ) end [2025-04-23 17:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973820', 'tblTempVendorCDR_20' ) start [2025-04-23 17:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973820', 'tblTempVendorCDR_20' ) end [2025-04-23 17:31:22] Production.INFO: ProcessCDR(1,14973820,1,1,2) [2025-04-23 17:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973820', 'tblTempUsageDetail_20' ) start [2025-04-23 17:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973820', 'tblTempUsageDetail_20' ) end [2025-04-23 17:31:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 17:31:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 17:31:27] Production.INFO: ==9319== Releasing lock... [2025-04-23 17:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 17:31:27] Production.INFO: 71 MB #Memory Used# [2025-04-23 17:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 14:32:05 [end_date_ymd] => 2025-04-23 17:32:05 [RateCDR] => 1 ) [2025-04-23 17:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 14:32:05' and `end` < '2025-04-23 17:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 17:32:19] Production.INFO: count ==5745 [2025-04-23 17:32:21] Production.ERROR: pbx CDR StartTime 2025-04-23 14:32:05 - End Time 2025-04-23 17:32:05 [2025-04-23 17:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 17:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973825', 'tblTempUsageDetail_20' ) start [2025-04-23 17:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973825', 'tblTempUsageDetail_20' ) end [2025-04-23 17:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973825', 'tblTempVendorCDR_20' ) start [2025-04-23 17:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973825', 'tblTempVendorCDR_20' ) end [2025-04-23 17:32:21] Production.INFO: ProcessCDR(1,14973825,1,1,2) [2025-04-23 17:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973825', 'tblTempUsageDetail_20' ) start [2025-04-23 17:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973825', 'tblTempUsageDetail_20' ) end [2025-04-23 17:32:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 17:32:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 17:32:26] Production.INFO: ==9454== Releasing lock... [2025-04-23 17:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 17:32:26] Production.INFO: 71.25 MB #Memory Used# [2025-04-23 17:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 14:33:05 [end_date_ymd] => 2025-04-23 17:33:05 [RateCDR] => 1 ) [2025-04-23 17:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 14:33:05' and `end` < '2025-04-23 17:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 17:33:19] Production.INFO: count ==5721 [2025-04-23 17:33:22] Production.ERROR: pbx CDR StartTime 2025-04-23 14:33:05 - End Time 2025-04-23 17:33:05 [2025-04-23 17:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 17:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973830', 'tblTempUsageDetail_20' ) start [2025-04-23 17:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973830', 'tblTempUsageDetail_20' ) end [2025-04-23 17:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973830', 'tblTempVendorCDR_20' ) start [2025-04-23 17:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973830', 'tblTempVendorCDR_20' ) end [2025-04-23 17:33:22] Production.INFO: ProcessCDR(1,14973830,1,1,2) [2025-04-23 17:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973830', 'tblTempUsageDetail_20' ) start [2025-04-23 17:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973830', 'tblTempUsageDetail_20' ) end [2025-04-23 17:33:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 17:33:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 17:33:28] Production.INFO: ==9542== Releasing lock... [2025-04-23 17:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 17:33:28] Production.INFO: 71 MB #Memory Used# [2025-04-23 17:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 14:34:05 [end_date_ymd] => 2025-04-23 17:34:05 [RateCDR] => 1 ) [2025-04-23 17:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 14:34:05' and `end` < '2025-04-23 17:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 17:34:18] Production.INFO: count ==5710 [2025-04-23 17:34:21] Production.ERROR: pbx CDR StartTime 2025-04-23 14:34:05 - End Time 2025-04-23 17:34:05 [2025-04-23 17:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973835', 'tblTempUsageDetail_20' ) start [2025-04-23 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973835', 'tblTempUsageDetail_20' ) end [2025-04-23 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973835', 'tblTempVendorCDR_20' ) start [2025-04-23 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973835', 'tblTempVendorCDR_20' ) end [2025-04-23 17:34:21] Production.INFO: ProcessCDR(1,14973835,1,1,2) [2025-04-23 17:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973835', 'tblTempUsageDetail_20' ) start [2025-04-23 17:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973835', 'tblTempUsageDetail_20' ) end [2025-04-23 17:34:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 17:34:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 17:34:26] Production.INFO: ==9629== Releasing lock... [2025-04-23 17:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 17:34:26] Production.INFO: 70.75 MB #Memory Used# [2025-04-23 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 14:35:05 [end_date_ymd] => 2025-04-23 17:35:05 [RateCDR] => 1 ) [2025-04-23 17:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 14:35:05' and `end` < '2025-04-23 17:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 17:35:19] Production.INFO: count ==5687 [2025-04-23 17:35:21] Production.ERROR: pbx CDR StartTime 2025-04-23 14:35:05 - End Time 2025-04-23 17:35:05 [2025-04-23 17:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973840', 'tblTempUsageDetail_20' ) start [2025-04-23 17:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973840', 'tblTempUsageDetail_20' ) end [2025-04-23 17:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973840', 'tblTempVendorCDR_20' ) start [2025-04-23 17:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973840', 'tblTempVendorCDR_20' ) end [2025-04-23 17:35:22] Production.INFO: ProcessCDR(1,14973840,1,1,2) [2025-04-23 17:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973840', 'tblTempUsageDetail_20' ) start [2025-04-23 17:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973840', 'tblTempUsageDetail_20' ) end [2025-04-23 17:35:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 17:35:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 17:35:27] Production.INFO: ==9715== Releasing lock... [2025-04-23 17:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 17:35:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-23 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 14:36:05 [end_date_ymd] => 2025-04-23 17:36:05 [RateCDR] => 1 ) [2025-04-23 17:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 14:36:05' and `end` < '2025-04-23 17:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 17:36:18] Production.INFO: count ==5687 [2025-04-23 17:36:21] Production.ERROR: pbx CDR StartTime 2025-04-23 14:36:05 - End Time 2025-04-23 17:36:05 [2025-04-23 17:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973845', 'tblTempUsageDetail_20' ) start [2025-04-23 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973845', 'tblTempUsageDetail_20' ) end [2025-04-23 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973845', 'tblTempVendorCDR_20' ) start [2025-04-23 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973845', 'tblTempVendorCDR_20' ) end [2025-04-23 17:36:21] Production.INFO: ProcessCDR(1,14973845,1,1,2) [2025-04-23 17:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973845', 'tblTempUsageDetail_20' ) start [2025-04-23 17:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973845', 'tblTempUsageDetail_20' ) end [2025-04-23 17:36:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 17:36:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 17:36:26] Production.INFO: ==9798== Releasing lock... [2025-04-23 17:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 17:36:26] Production.INFO: 70.75 MB #Memory Used# [2025-04-23 17:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 14:37:06 [end_date_ymd] => 2025-04-23 17:37:06 [RateCDR] => 1 ) [2025-04-23 17:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 14:37:06' and `end` < '2025-04-23 17:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 17:37:19] Production.INFO: count ==5663 [2025-04-23 17:37:21] Production.ERROR: pbx CDR StartTime 2025-04-23 14:37:06 - End Time 2025-04-23 17:37:06 [2025-04-23 17:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973850', 'tblTempUsageDetail_20' ) start [2025-04-23 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973850', 'tblTempUsageDetail_20' ) end [2025-04-23 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973850', 'tblTempVendorCDR_20' ) start [2025-04-23 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973850', 'tblTempVendorCDR_20' ) end [2025-04-23 17:37:22] Production.INFO: ProcessCDR(1,14973850,1,1,2) [2025-04-23 17:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973850', 'tblTempUsageDetail_20' ) start [2025-04-23 17:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973850', 'tblTempUsageDetail_20' ) end [2025-04-23 17:37:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 17:37:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 17:37:27] Production.INFO: ==9894== Releasing lock... [2025-04-23 17:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 17:37:27] Production.INFO: 70.5 MB #Memory Used# [2025-04-23 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 14:38:05 [end_date_ymd] => 2025-04-23 17:38:05 [RateCDR] => 1 ) [2025-04-23 17:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 14:38:05' and `end` < '2025-04-23 17:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 17:38:19] Production.INFO: count ==5651 [2025-04-23 17:38:21] Production.ERROR: pbx CDR StartTime 2025-04-23 14:38:05 - End Time 2025-04-23 17:38:05 [2025-04-23 17:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973855', 'tblTempUsageDetail_20' ) start [2025-04-23 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973855', 'tblTempUsageDetail_20' ) end [2025-04-23 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973855', 'tblTempVendorCDR_20' ) start [2025-04-23 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973855', 'tblTempVendorCDR_20' ) end [2025-04-23 17:38:21] Production.INFO: ProcessCDR(1,14973855,1,1,2) [2025-04-23 17:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973855', 'tblTempUsageDetail_20' ) start [2025-04-23 17:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973855', 'tblTempUsageDetail_20' ) end [2025-04-23 17:38:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 17:38:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 17:38:26] Production.INFO: ==9978== Releasing lock... [2025-04-23 17:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 17:38:26] Production.INFO: 70.5 MB #Memory Used# [2025-04-23 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 14:39:05 [end_date_ymd] => 2025-04-23 17:39:05 [RateCDR] => 1 ) [2025-04-23 17:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 14:39:05' and `end` < '2025-04-23 17:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 17:39:19] Production.INFO: count ==5635 [2025-04-23 17:39:21] Production.ERROR: pbx CDR StartTime 2025-04-23 14:39:05 - End Time 2025-04-23 17:39:05 [2025-04-23 17:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973860', 'tblTempUsageDetail_20' ) start [2025-04-23 17:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973860', 'tblTempUsageDetail_20' ) end [2025-04-23 17:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973860', 'tblTempVendorCDR_20' ) start [2025-04-23 17:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973860', 'tblTempVendorCDR_20' ) end [2025-04-23 17:39:22] Production.INFO: ProcessCDR(1,14973860,1,1,2) [2025-04-23 17:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973860', 'tblTempUsageDetail_20' ) start [2025-04-23 17:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973860', 'tblTempUsageDetail_20' ) end [2025-04-23 17:39:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 17:39:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 17:39:27] Production.INFO: ==10065== Releasing lock... [2025-04-23 17:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 17:39:27] Production.INFO: 70.25 MB #Memory Used# [2025-04-23 17:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 14:40:06 [end_date_ymd] => 2025-04-23 17:40:06 [RateCDR] => 1 ) [2025-04-23 17:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 14:40:06' and `end` < '2025-04-23 17:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 17:40:20] Production.INFO: count ==5622 [2025-04-23 17:40:22] Production.ERROR: pbx CDR StartTime 2025-04-23 14:40:06 - End Time 2025-04-23 17:40:06 [2025-04-23 17:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973866', 'tblTempUsageDetail_20' ) start [2025-04-23 17:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973866', 'tblTempUsageDetail_20' ) end [2025-04-23 17:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973866', 'tblTempVendorCDR_20' ) start [2025-04-23 17:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973866', 'tblTempVendorCDR_20' ) end [2025-04-23 17:40:23] Production.INFO: ProcessCDR(1,14973866,1,1,2) [2025-04-23 17:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973866', 'tblTempUsageDetail_20' ) start [2025-04-23 17:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973866', 'tblTempUsageDetail_20' ) end [2025-04-23 17:40:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 17:40:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 17:40:28] Production.INFO: ==10153== Releasing lock... [2025-04-23 17:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 17:40:28] Production.INFO: 70.25 MB #Memory Used# [2025-04-23 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 14:41:05 [end_date_ymd] => 2025-04-23 17:41:05 [RateCDR] => 1 ) [2025-04-23 17:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 14:41:05' and `end` < '2025-04-23 17:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 17:41:19] Production.INFO: count ==5580 [2025-04-23 17:41:21] Production.ERROR: pbx CDR StartTime 2025-04-23 14:41:05 - End Time 2025-04-23 17:41:05 [2025-04-23 17:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 17:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973871', 'tblTempUsageDetail_20' ) start [2025-04-23 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973871', 'tblTempUsageDetail_20' ) end [2025-04-23 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973871', 'tblTempVendorCDR_20' ) start [2025-04-23 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973871', 'tblTempVendorCDR_20' ) end [2025-04-23 17:41:22] Production.INFO: ProcessCDR(1,14973871,1,1,2) [2025-04-23 17:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973871', 'tblTempUsageDetail_20' ) start [2025-04-23 17:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973871', 'tblTempUsageDetail_20' ) end [2025-04-23 17:41:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 17:41:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 17:41:27] Production.INFO: ==10242== Releasing lock... [2025-04-23 17:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 17:41:27] Production.INFO: 70 MB #Memory Used# [2025-04-23 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 14:42:05 [end_date_ymd] => 2025-04-23 17:42:05 [RateCDR] => 1 ) [2025-04-23 17:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 14:42:05' and `end` < '2025-04-23 17:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 17:42:19] Production.INFO: count ==5565 [2025-04-23 17:42:21] Production.ERROR: pbx CDR StartTime 2025-04-23 14:42:05 - End Time 2025-04-23 17:42:05 [2025-04-23 17:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973876', 'tblTempUsageDetail_20' ) start [2025-04-23 17:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973876', 'tblTempUsageDetail_20' ) end [2025-04-23 17:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973876', 'tblTempVendorCDR_20' ) start [2025-04-23 17:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973876', 'tblTempVendorCDR_20' ) end [2025-04-23 17:42:22] Production.INFO: ProcessCDR(1,14973876,1,1,2) [2025-04-23 17:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973876', 'tblTempUsageDetail_20' ) start [2025-04-23 17:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973876', 'tblTempUsageDetail_20' ) end [2025-04-23 17:42:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 17:42:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 17:42:27] Production.INFO: ==10333== Releasing lock... [2025-04-23 17:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 17:42:27] Production.INFO: 69.75 MB #Memory Used# [2025-04-23 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 14:43:05 [end_date_ymd] => 2025-04-23 17:43:05 [RateCDR] => 1 ) [2025-04-23 17:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 14:43:05' and `end` < '2025-04-23 17:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 17:43:18] Production.INFO: count ==5544 [2025-04-23 17:43:20] Production.ERROR: pbx CDR StartTime 2025-04-23 14:43:05 - End Time 2025-04-23 17:43:05 [2025-04-23 17:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973881', 'tblTempUsageDetail_20' ) start [2025-04-23 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973881', 'tblTempUsageDetail_20' ) end [2025-04-23 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973881', 'tblTempVendorCDR_20' ) start [2025-04-23 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973881', 'tblTempVendorCDR_20' ) end [2025-04-23 17:43:21] Production.INFO: ProcessCDR(1,14973881,1,1,2) [2025-04-23 17:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973881', 'tblTempUsageDetail_20' ) start [2025-04-23 17:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973881', 'tblTempUsageDetail_20' ) end [2025-04-23 17:43:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 17:43:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 17:43:24] Production.INFO: ==10410== Releasing lock... [2025-04-23 17:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 17:43:24] Production.INFO: 69.75 MB #Memory Used# [2025-04-23 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 14:44:05 [end_date_ymd] => 2025-04-23 17:44:05 [RateCDR] => 1 ) [2025-04-23 17:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 14:44:05' and `end` < '2025-04-23 17:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 17:44:19] Production.INFO: count ==5546 [2025-04-23 17:44:21] Production.ERROR: pbx CDR StartTime 2025-04-23 14:44:05 - End Time 2025-04-23 17:44:05 [2025-04-23 17:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973886', 'tblTempUsageDetail_20' ) start [2025-04-23 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973886', 'tblTempUsageDetail_20' ) end [2025-04-23 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973886', 'tblTempVendorCDR_20' ) start [2025-04-23 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973886', 'tblTempVendorCDR_20' ) end [2025-04-23 17:44:21] Production.INFO: ProcessCDR(1,14973886,1,1,2) [2025-04-23 17:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973886', 'tblTempUsageDetail_20' ) start [2025-04-23 17:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973886', 'tblTempUsageDetail_20' ) end [2025-04-23 17:44:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 17:44:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 17:44:26] Production.INFO: ==10484== Releasing lock... [2025-04-23 17:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 17:44:26] Production.INFO: 70 MB #Memory Used# [2025-04-23 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 14:45:05 [end_date_ymd] => 2025-04-23 17:45:05 [RateCDR] => 1 ) [2025-04-23 17:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 14:45:05' and `end` < '2025-04-23 17:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 17:45:18] Production.INFO: count ==5537 [2025-04-23 17:45:20] Production.ERROR: pbx CDR StartTime 2025-04-23 14:45:05 - End Time 2025-04-23 17:45:05 [2025-04-23 17:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973891', 'tblTempUsageDetail_20' ) start [2025-04-23 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973891', 'tblTempUsageDetail_20' ) end [2025-04-23 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973891', 'tblTempVendorCDR_20' ) start [2025-04-23 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973891', 'tblTempVendorCDR_20' ) end [2025-04-23 17:45:21] Production.INFO: ProcessCDR(1,14973891,1,1,2) [2025-04-23 17:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973891', 'tblTempUsageDetail_20' ) start [2025-04-23 17:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973891', 'tblTempUsageDetail_20' ) end [2025-04-23 17:45:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 17:45:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 17:45:26] Production.INFO: ==10561== Releasing lock... [2025-04-23 17:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 17:45:26] Production.INFO: 69.5 MB #Memory Used# [2025-04-23 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 14:46:05 [end_date_ymd] => 2025-04-23 17:46:05 [RateCDR] => 1 ) [2025-04-23 17:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 14:46:05' and `end` < '2025-04-23 17:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 17:46:18] Production.INFO: count ==5534 [2025-04-23 17:46:20] Production.ERROR: pbx CDR StartTime 2025-04-23 14:46:05 - End Time 2025-04-23 17:46:05 [2025-04-23 17:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973896', 'tblTempUsageDetail_20' ) start [2025-04-23 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973896', 'tblTempUsageDetail_20' ) end [2025-04-23 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973896', 'tblTempVendorCDR_20' ) start [2025-04-23 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973896', 'tblTempVendorCDR_20' ) end [2025-04-23 17:46:21] Production.INFO: ProcessCDR(1,14973896,1,1,2) [2025-04-23 17:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973896', 'tblTempUsageDetail_20' ) start [2025-04-23 17:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973896', 'tblTempUsageDetail_20' ) end [2025-04-23 17:46:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 17:46:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 17:46:26] Production.INFO: ==10636== Releasing lock... [2025-04-23 17:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 17:46:26] Production.INFO: 69.5 MB #Memory Used# [2025-04-23 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 14:47:05 [end_date_ymd] => 2025-04-23 17:47:05 [RateCDR] => 1 ) [2025-04-23 17:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 14:47:05' and `end` < '2025-04-23 17:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 17:47:18] Production.INFO: count ==5521 [2025-04-23 17:47:20] Production.ERROR: pbx CDR StartTime 2025-04-23 14:47:05 - End Time 2025-04-23 17:47:05 [2025-04-23 17:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973901', 'tblTempUsageDetail_20' ) start [2025-04-23 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973901', 'tblTempUsageDetail_20' ) end [2025-04-23 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973901', 'tblTempVendorCDR_20' ) start [2025-04-23 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973901', 'tblTempVendorCDR_20' ) end [2025-04-23 17:47:21] Production.INFO: ProcessCDR(1,14973901,1,1,2) [2025-04-23 17:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973901', 'tblTempUsageDetail_20' ) start [2025-04-23 17:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973901', 'tblTempUsageDetail_20' ) end [2025-04-23 17:47:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 17:47:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 17:47:25] Production.INFO: ==10752== Releasing lock... [2025-04-23 17:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 17:47:25] Production.INFO: 69.5 MB #Memory Used# [2025-04-23 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 14:48:05 [end_date_ymd] => 2025-04-23 17:48:05 [RateCDR] => 1 ) [2025-04-23 17:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 14:48:05' and `end` < '2025-04-23 17:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 17:48:19] Production.INFO: count ==5497 [2025-04-23 17:48:21] Production.ERROR: pbx CDR StartTime 2025-04-23 14:48:05 - End Time 2025-04-23 17:48:05 [2025-04-23 17:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973906', 'tblTempUsageDetail_20' ) start [2025-04-23 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973906', 'tblTempUsageDetail_20' ) end [2025-04-23 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973906', 'tblTempVendorCDR_20' ) start [2025-04-23 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973906', 'tblTempVendorCDR_20' ) end [2025-04-23 17:48:21] Production.INFO: ProcessCDR(1,14973906,1,1,2) [2025-04-23 17:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973906', 'tblTempUsageDetail_20' ) start [2025-04-23 17:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973906', 'tblTempUsageDetail_20' ) end [2025-04-23 17:48:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 17:48:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 17:48:26] Production.INFO: ==10824== Releasing lock... [2025-04-23 17:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 17:48:26] Production.INFO: 69.25 MB #Memory Used# [2025-04-23 17:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 14:49:06 [end_date_ymd] => 2025-04-23 17:49:06 [RateCDR] => 1 ) [2025-04-23 17:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 14:49:06' and `end` < '2025-04-23 17:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 17:49:19] Production.INFO: count ==5486 [2025-04-23 17:49:21] Production.ERROR: pbx CDR StartTime 2025-04-23 14:49:06 - End Time 2025-04-23 17:49:06 [2025-04-23 17:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973911', 'tblTempUsageDetail_20' ) start [2025-04-23 17:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973911', 'tblTempUsageDetail_20' ) end [2025-04-23 17:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973911', 'tblTempVendorCDR_20' ) start [2025-04-23 17:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973911', 'tblTempVendorCDR_20' ) end [2025-04-23 17:49:22] Production.INFO: ProcessCDR(1,14973911,1,1,2) [2025-04-23 17:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973911', 'tblTempUsageDetail_20' ) start [2025-04-23 17:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973911', 'tblTempUsageDetail_20' ) end [2025-04-23 17:49:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 17:49:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 17:49:26] Production.INFO: ==10899== Releasing lock... [2025-04-23 17:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 17:49:26] Production.INFO: 69.25 MB #Memory Used# [2025-04-23 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 14:50:06 [end_date_ymd] => 2025-04-23 17:50:06 [RateCDR] => 1 ) [2025-04-23 17:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 14:50:06' and `end` < '2025-04-23 17:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 17:50:20] Production.INFO: count ==5478 [2025-04-23 17:50:22] Production.ERROR: pbx CDR StartTime 2025-04-23 14:50:06 - End Time 2025-04-23 17:50:06 [2025-04-23 17:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973917', 'tblTempUsageDetail_20' ) start [2025-04-23 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973917', 'tblTempUsageDetail_20' ) end [2025-04-23 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973917', 'tblTempVendorCDR_20' ) start [2025-04-23 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973917', 'tblTempVendorCDR_20' ) end [2025-04-23 17:50:22] Production.INFO: ProcessCDR(1,14973917,1,1,2) [2025-04-23 17:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973917', 'tblTempUsageDetail_20' ) start [2025-04-23 17:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973917', 'tblTempUsageDetail_20' ) end [2025-04-23 17:50:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 17:50:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 17:50:26] Production.INFO: ==10973== Releasing lock... [2025-04-23 17:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 17:50:26] Production.INFO: 69 MB #Memory Used# [2025-04-23 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 14:51:05 [end_date_ymd] => 2025-04-23 17:51:05 [RateCDR] => 1 ) [2025-04-23 17:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 14:51:05' and `end` < '2025-04-23 17:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 17:51:19] Production.INFO: count ==5436 [2025-04-23 17:51:21] Production.ERROR: pbx CDR StartTime 2025-04-23 14:51:05 - End Time 2025-04-23 17:51:05 [2025-04-23 17:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973922', 'tblTempUsageDetail_20' ) start [2025-04-23 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973922', 'tblTempUsageDetail_20' ) end [2025-04-23 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973922', 'tblTempVendorCDR_20' ) start [2025-04-23 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973922', 'tblTempVendorCDR_20' ) end [2025-04-23 17:51:21] Production.INFO: ProcessCDR(1,14973922,1,1,2) [2025-04-23 17:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973922', 'tblTempUsageDetail_20' ) start [2025-04-23 17:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973922', 'tblTempUsageDetail_20' ) end [2025-04-23 17:51:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 17:51:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 17:51:25] Production.INFO: ==11046== Releasing lock... [2025-04-23 17:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 17:51:25] Production.INFO: 68.75 MB #Memory Used# [2025-04-23 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 14:52:05 [end_date_ymd] => 2025-04-23 17:52:05 [RateCDR] => 1 ) [2025-04-23 17:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 14:52:05' and `end` < '2025-04-23 17:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 17:52:18] Production.INFO: count ==5400 [2025-04-23 17:52:20] Production.ERROR: pbx CDR StartTime 2025-04-23 14:52:05 - End Time 2025-04-23 17:52:05 [2025-04-23 17:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973927', 'tblTempUsageDetail_20' ) start [2025-04-23 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973927', 'tblTempUsageDetail_20' ) end [2025-04-23 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973927', 'tblTempVendorCDR_20' ) start [2025-04-23 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973927', 'tblTempVendorCDR_20' ) end [2025-04-23 17:52:21] Production.INFO: ProcessCDR(1,14973927,1,1,2) [2025-04-23 17:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973927', 'tblTempUsageDetail_20' ) start [2025-04-23 17:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973927', 'tblTempUsageDetail_20' ) end [2025-04-23 17:52:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 17:52:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 17:52:26] Production.INFO: ==11121== Releasing lock... [2025-04-23 17:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 17:52:26] Production.INFO: 68.5 MB #Memory Used# [2025-04-23 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 14:53:05 [end_date_ymd] => 2025-04-23 17:53:05 [RateCDR] => 1 ) [2025-04-23 17:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 14:53:05' and `end` < '2025-04-23 17:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 17:53:19] Production.INFO: count ==5395 [2025-04-23 17:53:21] Production.ERROR: pbx CDR StartTime 2025-04-23 14:53:05 - End Time 2025-04-23 17:53:05 [2025-04-23 17:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973932', 'tblTempUsageDetail_20' ) start [2025-04-23 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973932', 'tblTempUsageDetail_20' ) end [2025-04-23 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973932', 'tblTempVendorCDR_20' ) start [2025-04-23 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973932', 'tblTempVendorCDR_20' ) end [2025-04-23 17:53:21] Production.INFO: ProcessCDR(1,14973932,1,1,2) [2025-04-23 17:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973932', 'tblTempUsageDetail_20' ) start [2025-04-23 17:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973932', 'tblTempUsageDetail_20' ) end [2025-04-23 17:53:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 17:53:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 17:53:26] Production.INFO: ==11196== Releasing lock... [2025-04-23 17:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 17:53:26] Production.INFO: 68.5 MB #Memory Used# [2025-04-23 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 14:54:05 [end_date_ymd] => 2025-04-23 17:54:05 [RateCDR] => 1 ) [2025-04-23 17:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 14:54:05' and `end` < '2025-04-23 17:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 17:54:19] Production.INFO: count ==5377 [2025-04-23 17:54:21] Production.ERROR: pbx CDR StartTime 2025-04-23 14:54:05 - End Time 2025-04-23 17:54:05 [2025-04-23 17:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973937', 'tblTempUsageDetail_20' ) start [2025-04-23 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973937', 'tblTempUsageDetail_20' ) end [2025-04-23 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973937', 'tblTempVendorCDR_20' ) start [2025-04-23 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973937', 'tblTempVendorCDR_20' ) end [2025-04-23 17:54:21] Production.INFO: ProcessCDR(1,14973937,1,1,2) [2025-04-23 17:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973937', 'tblTempUsageDetail_20' ) start [2025-04-23 17:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973937', 'tblTempUsageDetail_20' ) end [2025-04-23 17:54:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 17:54:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 17:54:26] Production.INFO: ==11270== Releasing lock... [2025-04-23 17:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 17:54:26] Production.INFO: 68.25 MB #Memory Used# [2025-04-23 17:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 14:55:06 [end_date_ymd] => 2025-04-23 17:55:06 [RateCDR] => 1 ) [2025-04-23 17:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 14:55:06' and `end` < '2025-04-23 17:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 17:55:19] Production.INFO: count ==5385 [2025-04-23 17:55:21] Production.ERROR: pbx CDR StartTime 2025-04-23 14:55:06 - End Time 2025-04-23 17:55:06 [2025-04-23 17:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973942', 'tblTempUsageDetail_20' ) start [2025-04-23 17:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973942', 'tblTempUsageDetail_20' ) end [2025-04-23 17:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973942', 'tblTempVendorCDR_20' ) start [2025-04-23 17:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973942', 'tblTempVendorCDR_20' ) end [2025-04-23 17:55:22] Production.INFO: ProcessCDR(1,14973942,1,1,2) [2025-04-23 17:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973942', 'tblTempUsageDetail_20' ) start [2025-04-23 17:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973942', 'tblTempUsageDetail_20' ) end [2025-04-23 17:55:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 17:55:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 17:55:27] Production.INFO: ==11341== Releasing lock... [2025-04-23 17:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 17:55:27] Production.INFO: 68.5 MB #Memory Used# [2025-04-23 17:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 14:56:04 [end_date_ymd] => 2025-04-23 17:56:04 [RateCDR] => 1 ) [2025-04-23 17:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 14:56:04' and `end` < '2025-04-23 17:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 17:56:18] Production.INFO: count ==5379 [2025-04-23 17:56:20] Production.ERROR: pbx CDR StartTime 2025-04-23 14:56:04 - End Time 2025-04-23 17:56:04 [2025-04-23 17:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973947', 'tblTempUsageDetail_20' ) start [2025-04-23 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973947', 'tblTempUsageDetail_20' ) end [2025-04-23 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973947', 'tblTempVendorCDR_20' ) start [2025-04-23 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973947', 'tblTempVendorCDR_20' ) end [2025-04-23 17:56:20] Production.INFO: ProcessCDR(1,14973947,1,1,2) [2025-04-23 17:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973947', 'tblTempUsageDetail_20' ) start [2025-04-23 17:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973947', 'tblTempUsageDetail_20' ) end [2025-04-23 17:56:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 17:56:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 17:56:25] Production.INFO: ==11414== Releasing lock... [2025-04-23 17:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 17:56:25] Production.INFO: 68.25 MB #Memory Used# [2025-04-23 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 14:57:05 [end_date_ymd] => 2025-04-23 17:57:05 [RateCDR] => 1 ) [2025-04-23 17:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 14:57:05' and `end` < '2025-04-23 17:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 17:57:19] Production.INFO: count ==5372 [2025-04-23 17:57:21] Production.ERROR: pbx CDR StartTime 2025-04-23 14:57:05 - End Time 2025-04-23 17:57:05 [2025-04-23 17:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973952', 'tblTempUsageDetail_20' ) start [2025-04-23 17:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973952', 'tblTempUsageDetail_20' ) end [2025-04-23 17:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973952', 'tblTempVendorCDR_20' ) start [2025-04-23 17:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973952', 'tblTempVendorCDR_20' ) end [2025-04-23 17:57:22] Production.INFO: ProcessCDR(1,14973952,1,1,2) [2025-04-23 17:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973952', 'tblTempUsageDetail_20' ) start [2025-04-23 17:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973952', 'tblTempUsageDetail_20' ) end [2025-04-23 17:57:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 17:57:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 17:57:27] Production.INFO: ==11492== Releasing lock... [2025-04-23 17:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 17:57:27] Production.INFO: 68.25 MB #Memory Used# [2025-04-23 17:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 14:58:04 [end_date_ymd] => 2025-04-23 17:58:04 [RateCDR] => 1 ) [2025-04-23 17:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 14:58:04' and `end` < '2025-04-23 17:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 17:58:18] Production.INFO: count ==5364 [2025-04-23 17:58:20] Production.ERROR: pbx CDR StartTime 2025-04-23 14:58:04 - End Time 2025-04-23 17:58:04 [2025-04-23 17:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973957', 'tblTempUsageDetail_20' ) start [2025-04-23 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973957', 'tblTempUsageDetail_20' ) end [2025-04-23 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973957', 'tblTempVendorCDR_20' ) start [2025-04-23 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973957', 'tblTempVendorCDR_20' ) end [2025-04-23 17:58:20] Production.INFO: ProcessCDR(1,14973957,1,1,2) [2025-04-23 17:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973957', 'tblTempUsageDetail_20' ) start [2025-04-23 17:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973957', 'tblTempUsageDetail_20' ) end [2025-04-23 17:58:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 17:58:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 17:58:25] Production.INFO: ==11569== Releasing lock... [2025-04-23 17:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 17:58:25] Production.INFO: 68.25 MB #Memory Used# [2025-04-23 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 14:59:05 [end_date_ymd] => 2025-04-23 17:59:05 [RateCDR] => 1 ) [2025-04-23 17:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 14:59:05' and `end` < '2025-04-23 17:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 17:59:18] Production.INFO: count ==5364 [2025-04-23 17:59:20] Production.ERROR: pbx CDR StartTime 2025-04-23 14:59:05 - End Time 2025-04-23 17:59:05 [2025-04-23 17:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973962', 'tblTempUsageDetail_20' ) start [2025-04-23 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973962', 'tblTempUsageDetail_20' ) end [2025-04-23 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973962', 'tblTempVendorCDR_20' ) start [2025-04-23 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973962', 'tblTempVendorCDR_20' ) end [2025-04-23 17:59:21] Production.INFO: ProcessCDR(1,14973962,1,1,2) [2025-04-23 17:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 17:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 17:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973962', 'tblTempUsageDetail_20' ) start [2025-04-23 17:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973962', 'tblTempUsageDetail_20' ) end [2025-04-23 17:59:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 17:59:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 17:59:26] Production.INFO: ==11648== Releasing lock... [2025-04-23 17:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 17:59:26] Production.INFO: 68.25 MB #Memory Used# [2025-04-23 18:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 15:00:07 [end_date_ymd] => 2025-04-23 18:00:07 [RateCDR] => 1 ) [2025-04-23 18:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 15:00:07' and `end` < '2025-04-23 18:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 18:00:20] Production.INFO: count ==5355 [2025-04-23 18:00:22] Production.ERROR: pbx CDR StartTime 2025-04-23 15:00:07 - End Time 2025-04-23 18:00:07 [2025-04-23 18:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973968', 'tblTempUsageDetail_20' ) start [2025-04-23 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973968', 'tblTempUsageDetail_20' ) end [2025-04-23 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973968', 'tblTempVendorCDR_20' ) start [2025-04-23 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973968', 'tblTempVendorCDR_20' ) end [2025-04-23 18:00:22] Production.INFO: ProcessCDR(1,14973968,1,1,2) [2025-04-23 18:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973968', 'tblTempUsageDetail_20' ) start [2025-04-23 18:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973968', 'tblTempUsageDetail_20' ) end [2025-04-23 18:00:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 18:00:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 18:00:27] Production.INFO: ==11725== Releasing lock... [2025-04-23 18:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 18:00:27] Production.INFO: 68.25 MB #Memory Used# [2025-04-23 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 15:01:05 [end_date_ymd] => 2025-04-23 18:01:05 [RateCDR] => 1 ) [2025-04-23 18:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 15:01:05' and `end` < '2025-04-23 18:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 18:01:18] Production.INFO: count ==5303 [2025-04-23 18:01:20] Production.ERROR: pbx CDR StartTime 2025-04-23 15:01:05 - End Time 2025-04-23 18:01:05 [2025-04-23 18:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973973', 'tblTempUsageDetail_20' ) start [2025-04-23 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973973', 'tblTempUsageDetail_20' ) end [2025-04-23 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973973', 'tblTempVendorCDR_20' ) start [2025-04-23 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973973', 'tblTempVendorCDR_20' ) end [2025-04-23 18:01:21] Production.INFO: ProcessCDR(1,14973973,1,1,2) [2025-04-23 18:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973973', 'tblTempUsageDetail_20' ) start [2025-04-23 18:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973973', 'tblTempUsageDetail_20' ) end [2025-04-23 18:01:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 18:01:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 18:01:26] Production.INFO: ==11808== Releasing lock... [2025-04-23 18:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 18:01:26] Production.INFO: 67.75 MB #Memory Used# [2025-04-23 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 15:02:05 [end_date_ymd] => 2025-04-23 18:02:05 [RateCDR] => 1 ) [2025-04-23 18:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 15:02:05' and `end` < '2025-04-23 18:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 18:02:19] Production.INFO: count ==5274 [2025-04-23 18:02:21] Production.ERROR: pbx CDR StartTime 2025-04-23 15:02:05 - End Time 2025-04-23 18:02:05 [2025-04-23 18:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973978', 'tblTempUsageDetail_20' ) start [2025-04-23 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973978', 'tblTempUsageDetail_20' ) end [2025-04-23 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973978', 'tblTempVendorCDR_20' ) start [2025-04-23 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973978', 'tblTempVendorCDR_20' ) end [2025-04-23 18:02:21] Production.INFO: ProcessCDR(1,14973978,1,1,2) [2025-04-23 18:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973978', 'tblTempUsageDetail_20' ) start [2025-04-23 18:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973978', 'tblTempUsageDetail_20' ) end [2025-04-23 18:02:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 18:02:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 18:02:26] Production.INFO: ==11882== Releasing lock... [2025-04-23 18:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 18:02:26] Production.INFO: 67.5 MB #Memory Used# [2025-04-23 18:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 15:03:04 [end_date_ymd] => 2025-04-23 18:03:04 [RateCDR] => 1 ) [2025-04-23 18:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 15:03:04' and `end` < '2025-04-23 18:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 18:03:18] Production.INFO: count ==5257 [2025-04-23 18:03:20] Production.ERROR: pbx CDR StartTime 2025-04-23 15:03:04 - End Time 2025-04-23 18:03:04 [2025-04-23 18:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973983', 'tblTempUsageDetail_20' ) start [2025-04-23 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973983', 'tblTempUsageDetail_20' ) end [2025-04-23 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973983', 'tblTempVendorCDR_20' ) start [2025-04-23 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973983', 'tblTempVendorCDR_20' ) end [2025-04-23 18:03:20] Production.INFO: ProcessCDR(1,14973983,1,1,2) [2025-04-23 18:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973983', 'tblTempUsageDetail_20' ) start [2025-04-23 18:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973983', 'tblTempUsageDetail_20' ) end [2025-04-23 18:03:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 18:03:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 18:03:25] Production.INFO: ==11996== Releasing lock... [2025-04-23 18:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 18:03:25] Production.INFO: 67.5 MB #Memory Used# [2025-04-23 18:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 15:04:05 [end_date_ymd] => 2025-04-23 18:04:05 [RateCDR] => 1 ) [2025-04-23 18:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 15:04:05' and `end` < '2025-04-23 18:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 18:04:19] Production.INFO: count ==5251 [2025-04-23 18:04:20] Production.ERROR: pbx CDR StartTime 2025-04-23 15:04:05 - End Time 2025-04-23 18:04:05 [2025-04-23 18:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973988', 'tblTempUsageDetail_20' ) start [2025-04-23 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973988', 'tblTempUsageDetail_20' ) end [2025-04-23 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973988', 'tblTempVendorCDR_20' ) start [2025-04-23 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973988', 'tblTempVendorCDR_20' ) end [2025-04-23 18:04:21] Production.INFO: ProcessCDR(1,14973988,1,1,2) [2025-04-23 18:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973988', 'tblTempUsageDetail_20' ) start [2025-04-23 18:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973988', 'tblTempUsageDetail_20' ) end [2025-04-23 18:04:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 18:04:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 18:04:26] Production.INFO: ==12070== Releasing lock... [2025-04-23 18:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 18:04:26] Production.INFO: 67.5 MB #Memory Used# [2025-04-23 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 15:05:05 [end_date_ymd] => 2025-04-23 18:05:05 [RateCDR] => 1 ) [2025-04-23 18:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 15:05:05' and `end` < '2025-04-23 18:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 18:05:18] Production.INFO: count ==5232 [2025-04-23 18:05:20] Production.ERROR: pbx CDR StartTime 2025-04-23 15:05:05 - End Time 2025-04-23 18:05:05 [2025-04-23 18:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973993', 'tblTempUsageDetail_20' ) start [2025-04-23 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973993', 'tblTempUsageDetail_20' ) end [2025-04-23 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973993', 'tblTempVendorCDR_20' ) start [2025-04-23 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973993', 'tblTempVendorCDR_20' ) end [2025-04-23 18:05:21] Production.INFO: ProcessCDR(1,14973993,1,1,2) [2025-04-23 18:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973993', 'tblTempUsageDetail_20' ) start [2025-04-23 18:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973993', 'tblTempUsageDetail_20' ) end [2025-04-23 18:05:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 18:05:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 18:05:26] Production.INFO: ==12144== Releasing lock... [2025-04-23 18:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 18:05:26] Production.INFO: 67.25 MB #Memory Used# [2025-04-23 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 15:06:05 [end_date_ymd] => 2025-04-23 18:06:05 [RateCDR] => 1 ) [2025-04-23 18:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 15:06:05' and `end` < '2025-04-23 18:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 18:06:18] Production.INFO: count ==5225 [2025-04-23 18:06:20] Production.ERROR: pbx CDR StartTime 2025-04-23 15:06:05 - End Time 2025-04-23 18:06:05 [2025-04-23 18:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973998', 'tblTempUsageDetail_20' ) start [2025-04-23 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14973998', 'tblTempUsageDetail_20' ) end [2025-04-23 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973998', 'tblTempVendorCDR_20' ) start [2025-04-23 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14973998', 'tblTempVendorCDR_20' ) end [2025-04-23 18:06:21] Production.INFO: ProcessCDR(1,14973998,1,1,2) [2025-04-23 18:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14973998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14973998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14973998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14973998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973998', 'tblTempUsageDetail_20' ) start [2025-04-23 18:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14973998', 'tblTempUsageDetail_20' ) end [2025-04-23 18:06:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 18:06:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 18:06:26] Production.INFO: ==12216== Releasing lock... [2025-04-23 18:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 18:06:26] Production.INFO: 67.25 MB #Memory Used# [2025-04-23 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 15:07:05 [end_date_ymd] => 2025-04-23 18:07:05 [RateCDR] => 1 ) [2025-04-23 18:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 15:07:05' and `end` < '2025-04-23 18:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 18:07:19] Production.INFO: count ==5217 [2025-04-23 18:07:21] Production.ERROR: pbx CDR StartTime 2025-04-23 15:07:05 - End Time 2025-04-23 18:07:05 [2025-04-23 18:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974003', 'tblTempUsageDetail_20' ) start [2025-04-23 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974003', 'tblTempUsageDetail_20' ) end [2025-04-23 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974003', 'tblTempVendorCDR_20' ) start [2025-04-23 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974003', 'tblTempVendorCDR_20' ) end [2025-04-23 18:07:21] Production.INFO: ProcessCDR(1,14974003,1,1,2) [2025-04-23 18:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974003', 'tblTempUsageDetail_20' ) start [2025-04-23 18:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974003', 'tblTempUsageDetail_20' ) end [2025-04-23 18:07:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 18:07:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 18:07:26] Production.INFO: ==12290== Releasing lock... [2025-04-23 18:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 18:07:26] Production.INFO: 67.25 MB #Memory Used# [2025-04-23 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 15:08:05 [end_date_ymd] => 2025-04-23 18:08:05 [RateCDR] => 1 ) [2025-04-23 18:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 15:08:05' and `end` < '2025-04-23 18:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 18:08:19] Production.INFO: count ==5209 [2025-04-23 18:08:20] Production.ERROR: pbx CDR StartTime 2025-04-23 15:08:05 - End Time 2025-04-23 18:08:05 [2025-04-23 18:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974008', 'tblTempUsageDetail_20' ) start [2025-04-23 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974008', 'tblTempUsageDetail_20' ) end [2025-04-23 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974008', 'tblTempVendorCDR_20' ) start [2025-04-23 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974008', 'tblTempVendorCDR_20' ) end [2025-04-23 18:08:21] Production.INFO: ProcessCDR(1,14974008,1,1,2) [2025-04-23 18:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974008', 'tblTempUsageDetail_20' ) start [2025-04-23 18:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974008', 'tblTempUsageDetail_20' ) end [2025-04-23 18:08:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 18:08:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 18:08:24] Production.INFO: ==12366== Releasing lock... [2025-04-23 18:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 18:08:24] Production.INFO: 67 MB #Memory Used# [2025-04-23 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 15:09:05 [end_date_ymd] => 2025-04-23 18:09:05 [RateCDR] => 1 ) [2025-04-23 18:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 15:09:05' and `end` < '2025-04-23 18:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 18:09:19] Production.INFO: count ==5203 [2025-04-23 18:09:20] Production.ERROR: pbx CDR StartTime 2025-04-23 15:09:05 - End Time 2025-04-23 18:09:05 [2025-04-23 18:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974013', 'tblTempUsageDetail_20' ) start [2025-04-23 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974013', 'tblTempUsageDetail_20' ) end [2025-04-23 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974013', 'tblTempVendorCDR_20' ) start [2025-04-23 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974013', 'tblTempVendorCDR_20' ) end [2025-04-23 18:09:21] Production.INFO: ProcessCDR(1,14974013,1,1,2) [2025-04-23 18:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974013', 'tblTempUsageDetail_20' ) start [2025-04-23 18:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974013', 'tblTempUsageDetail_20' ) end [2025-04-23 18:09:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 18:09:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 18:09:26] Production.INFO: ==12438== Releasing lock... [2025-04-23 18:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 18:09:26] Production.INFO: 67 MB #Memory Used# [2025-04-23 18:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 15:10:05 [end_date_ymd] => 2025-04-23 18:10:05 [RateCDR] => 1 ) [2025-04-23 18:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 15:10:05' and `end` < '2025-04-23 18:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 18:10:19] Production.INFO: count ==5184 [2025-04-23 18:10:20] Production.ERROR: pbx CDR StartTime 2025-04-23 15:10:05 - End Time 2025-04-23 18:10:05 [2025-04-23 18:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974018', 'tblTempUsageDetail_20' ) start [2025-04-23 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974018', 'tblTempUsageDetail_20' ) end [2025-04-23 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974018', 'tblTempVendorCDR_20' ) start [2025-04-23 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974018', 'tblTempVendorCDR_20' ) end [2025-04-23 18:10:21] Production.INFO: ProcessCDR(1,14974018,1,1,2) [2025-04-23 18:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974018', 'tblTempUsageDetail_20' ) start [2025-04-23 18:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974018', 'tblTempUsageDetail_20' ) end [2025-04-23 18:10:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 18:10:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 18:10:26] Production.INFO: ==12513== Releasing lock... [2025-04-23 18:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 18:10:26] Production.INFO: 67 MB #Memory Used# [2025-04-23 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 15:11:05 [end_date_ymd] => 2025-04-23 18:11:05 [RateCDR] => 1 ) [2025-04-23 18:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 15:11:05' and `end` < '2025-04-23 18:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 18:11:18] Production.INFO: count ==5177 [2025-04-23 18:11:20] Production.ERROR: pbx CDR StartTime 2025-04-23 15:11:05 - End Time 2025-04-23 18:11:05 [2025-04-23 18:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974024', 'tblTempUsageDetail_20' ) start [2025-04-23 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974024', 'tblTempUsageDetail_20' ) end [2025-04-23 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974024', 'tblTempVendorCDR_20' ) start [2025-04-23 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974024', 'tblTempVendorCDR_20' ) end [2025-04-23 18:11:20] Production.INFO: ProcessCDR(1,14974024,1,1,2) [2025-04-23 18:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974024', 'tblTempUsageDetail_20' ) start [2025-04-23 18:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974024', 'tblTempUsageDetail_20' ) end [2025-04-23 18:11:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 18:11:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 18:11:25] Production.INFO: ==12588== Releasing lock... [2025-04-23 18:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 18:11:25] Production.INFO: 66.75 MB #Memory Used# [2025-04-23 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 15:12:05 [end_date_ymd] => 2025-04-23 18:12:05 [RateCDR] => 1 ) [2025-04-23 18:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 15:12:05' and `end` < '2025-04-23 18:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 18:12:19] Production.INFO: count ==5161 [2025-04-23 18:12:21] Production.ERROR: pbx CDR StartTime 2025-04-23 15:12:05 - End Time 2025-04-23 18:12:05 [2025-04-23 18:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974029', 'tblTempUsageDetail_20' ) start [2025-04-23 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974029', 'tblTempUsageDetail_20' ) end [2025-04-23 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974029', 'tblTempVendorCDR_20' ) start [2025-04-23 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974029', 'tblTempVendorCDR_20' ) end [2025-04-23 18:12:21] Production.INFO: ProcessCDR(1,14974029,1,1,2) [2025-04-23 18:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974029', 'tblTempUsageDetail_20' ) start [2025-04-23 18:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974029', 'tblTempUsageDetail_20' ) end [2025-04-23 18:12:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 18:12:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 18:12:27] Production.INFO: ==12669== Releasing lock... [2025-04-23 18:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 18:12:27] Production.INFO: 66.75 MB #Memory Used# [2025-04-23 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 15:13:05 [end_date_ymd] => 2025-04-23 18:13:05 [RateCDR] => 1 ) [2025-04-23 18:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 15:13:05' and `end` < '2025-04-23 18:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 18:13:18] Production.INFO: count ==5191 [2025-04-23 18:13:20] Production.ERROR: pbx CDR StartTime 2025-04-23 15:13:05 - End Time 2025-04-23 18:13:05 [2025-04-23 18:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974034', 'tblTempUsageDetail_20' ) start [2025-04-23 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974034', 'tblTempUsageDetail_20' ) end [2025-04-23 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974034', 'tblTempVendorCDR_20' ) start [2025-04-23 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974034', 'tblTempVendorCDR_20' ) end [2025-04-23 18:13:20] Production.INFO: ProcessCDR(1,14974034,1,1,2) [2025-04-23 18:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974034', 'tblTempUsageDetail_20' ) start [2025-04-23 18:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974034', 'tblTempUsageDetail_20' ) end [2025-04-23 18:13:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 18:13:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 18:13:26] Production.INFO: ==12743== Releasing lock... [2025-04-23 18:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 18:13:26] Production.INFO: 67 MB #Memory Used# [2025-04-23 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 15:14:05 [end_date_ymd] => 2025-04-23 18:14:05 [RateCDR] => 1 ) [2025-04-23 18:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 15:14:05' and `end` < '2025-04-23 18:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 18:14:19] Production.INFO: count ==5179 [2025-04-23 18:14:21] Production.ERROR: pbx CDR StartTime 2025-04-23 15:14:05 - End Time 2025-04-23 18:14:05 [2025-04-23 18:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974039', 'tblTempUsageDetail_20' ) start [2025-04-23 18:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974039', 'tblTempUsageDetail_20' ) end [2025-04-23 18:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974039', 'tblTempVendorCDR_20' ) start [2025-04-23 18:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974039', 'tblTempVendorCDR_20' ) end [2025-04-23 18:14:22] Production.INFO: ProcessCDR(1,14974039,1,1,2) [2025-04-23 18:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974039', 'tblTempUsageDetail_20' ) start [2025-04-23 18:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974039', 'tblTempUsageDetail_20' ) end [2025-04-23 18:14:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 18:14:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 18:14:27] Production.INFO: ==12825== Releasing lock... [2025-04-23 18:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 18:14:27] Production.INFO: 66.75 MB #Memory Used# [2025-04-23 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 15:15:05 [end_date_ymd] => 2025-04-23 18:15:05 [RateCDR] => 1 ) [2025-04-23 18:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 15:15:05' and `end` < '2025-04-23 18:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 18:15:19] Production.INFO: count ==5181 [2025-04-23 18:15:21] Production.ERROR: pbx CDR StartTime 2025-04-23 15:15:05 - End Time 2025-04-23 18:15:05 [2025-04-23 18:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974044', 'tblTempUsageDetail_20' ) start [2025-04-23 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974044', 'tblTempUsageDetail_20' ) end [2025-04-23 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974044', 'tblTempVendorCDR_20' ) start [2025-04-23 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974044', 'tblTempVendorCDR_20' ) end [2025-04-23 18:15:21] Production.INFO: ProcessCDR(1,14974044,1,1,2) [2025-04-23 18:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974044', 'tblTempUsageDetail_20' ) start [2025-04-23 18:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974044', 'tblTempUsageDetail_20' ) end [2025-04-23 18:15:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 18:15:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 18:15:26] Production.INFO: ==12897== Releasing lock... [2025-04-23 18:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 18:15:26] Production.INFO: 67 MB #Memory Used# [2025-04-23 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 15:16:05 [end_date_ymd] => 2025-04-23 18:16:05 [RateCDR] => 1 ) [2025-04-23 18:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 15:16:05' and `end` < '2025-04-23 18:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 18:16:19] Production.INFO: count ==5157 [2025-04-23 18:16:21] Production.ERROR: pbx CDR StartTime 2025-04-23 15:16:05 - End Time 2025-04-23 18:16:05 [2025-04-23 18:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974049', 'tblTempUsageDetail_20' ) start [2025-04-23 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974049', 'tblTempUsageDetail_20' ) end [2025-04-23 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974049', 'tblTempVendorCDR_20' ) start [2025-04-23 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974049', 'tblTempVendorCDR_20' ) end [2025-04-23 18:16:21] Production.INFO: ProcessCDR(1,14974049,1,1,2) [2025-04-23 18:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974049', 'tblTempUsageDetail_20' ) start [2025-04-23 18:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974049', 'tblTempUsageDetail_20' ) end [2025-04-23 18:16:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 18:16:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 18:16:27] Production.INFO: ==12970== Releasing lock... [2025-04-23 18:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 18:16:27] Production.INFO: 66.75 MB #Memory Used# [2025-04-23 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 15:17:05 [end_date_ymd] => 2025-04-23 18:17:05 [RateCDR] => 1 ) [2025-04-23 18:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 15:17:05' and `end` < '2025-04-23 18:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 18:17:19] Production.INFO: count ==5136 [2025-04-23 18:17:21] Production.ERROR: pbx CDR StartTime 2025-04-23 15:17:05 - End Time 2025-04-23 18:17:05 [2025-04-23 18:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974054', 'tblTempUsageDetail_20' ) start [2025-04-23 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974054', 'tblTempUsageDetail_20' ) end [2025-04-23 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974054', 'tblTempVendorCDR_20' ) start [2025-04-23 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974054', 'tblTempVendorCDR_20' ) end [2025-04-23 18:17:21] Production.INFO: ProcessCDR(1,14974054,1,1,2) [2025-04-23 18:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974054', 'tblTempUsageDetail_20' ) start [2025-04-23 18:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974054', 'tblTempUsageDetail_20' ) end [2025-04-23 18:17:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 18:17:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 18:17:26] Production.INFO: ==13042== Releasing lock... [2025-04-23 18:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 18:17:26] Production.INFO: 66.5 MB #Memory Used# [2025-04-23 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 15:18:05 [end_date_ymd] => 2025-04-23 18:18:05 [RateCDR] => 1 ) [2025-04-23 18:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 15:18:05' and `end` < '2025-04-23 18:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 18:18:19] Production.INFO: count ==5122 [2025-04-23 18:18:21] Production.ERROR: pbx CDR StartTime 2025-04-23 15:18:05 - End Time 2025-04-23 18:18:05 [2025-04-23 18:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974059', 'tblTempUsageDetail_20' ) start [2025-04-23 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974059', 'tblTempUsageDetail_20' ) end [2025-04-23 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974059', 'tblTempVendorCDR_20' ) start [2025-04-23 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974059', 'tblTempVendorCDR_20' ) end [2025-04-23 18:18:21] Production.INFO: ProcessCDR(1,14974059,1,1,2) [2025-04-23 18:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974059', 'tblTempUsageDetail_20' ) start [2025-04-23 18:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974059', 'tblTempUsageDetail_20' ) end [2025-04-23 18:18:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 18:18:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 18:18:26] Production.INFO: ==13168== Releasing lock... [2025-04-23 18:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 18:18:26] Production.INFO: 66.5 MB #Memory Used# [2025-04-23 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 15:19:05 [end_date_ymd] => 2025-04-23 18:19:05 [RateCDR] => 1 ) [2025-04-23 18:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 15:19:05' and `end` < '2025-04-23 18:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 18:19:19] Production.INFO: count ==5114 [2025-04-23 18:19:20] Production.ERROR: pbx CDR StartTime 2025-04-23 15:19:05 - End Time 2025-04-23 18:19:05 [2025-04-23 18:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974064', 'tblTempUsageDetail_20' ) start [2025-04-23 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974064', 'tblTempUsageDetail_20' ) end [2025-04-23 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974064', 'tblTempVendorCDR_20' ) start [2025-04-23 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974064', 'tblTempVendorCDR_20' ) end [2025-04-23 18:19:21] Production.INFO: ProcessCDR(1,14974064,1,1,2) [2025-04-23 18:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974064', 'tblTempUsageDetail_20' ) start [2025-04-23 18:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974064', 'tblTempUsageDetail_20' ) end [2025-04-23 18:19:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 18:19:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 18:19:26] Production.INFO: ==13242== Releasing lock... [2025-04-23 18:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 18:19:26] Production.INFO: 66.25 MB #Memory Used# [2025-04-23 18:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 15:20:06 [end_date_ymd] => 2025-04-23 18:20:06 [RateCDR] => 1 ) [2025-04-23 18:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 15:20:06' and `end` < '2025-04-23 18:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 18:20:19] Production.INFO: count ==5105 [2025-04-23 18:20:21] Production.ERROR: pbx CDR StartTime 2025-04-23 15:20:06 - End Time 2025-04-23 18:20:06 [2025-04-23 18:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974070', 'tblTempUsageDetail_20' ) start [2025-04-23 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974070', 'tblTempUsageDetail_20' ) end [2025-04-23 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974070', 'tblTempVendorCDR_20' ) start [2025-04-23 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974070', 'tblTempVendorCDR_20' ) end [2025-04-23 18:20:21] Production.INFO: ProcessCDR(1,14974070,1,1,2) [2025-04-23 18:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974070', 'tblTempUsageDetail_20' ) start [2025-04-23 18:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974070', 'tblTempUsageDetail_20' ) end [2025-04-23 18:20:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 18:20:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 18:20:26] Production.INFO: ==13317== Releasing lock... [2025-04-23 18:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 18:20:26] Production.INFO: 66.25 MB #Memory Used# [2025-04-23 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 15:21:05 [end_date_ymd] => 2025-04-23 18:21:05 [RateCDR] => 1 ) [2025-04-23 18:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 15:21:05' and `end` < '2025-04-23 18:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 18:21:18] Production.INFO: count ==5084 [2025-04-23 18:21:20] Production.ERROR: pbx CDR StartTime 2025-04-23 15:21:05 - End Time 2025-04-23 18:21:05 [2025-04-23 18:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974075', 'tblTempUsageDetail_20' ) start [2025-04-23 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974075', 'tblTempUsageDetail_20' ) end [2025-04-23 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974075', 'tblTempVendorCDR_20' ) start [2025-04-23 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974075', 'tblTempVendorCDR_20' ) end [2025-04-23 18:21:20] Production.INFO: ProcessCDR(1,14974075,1,1,2) [2025-04-23 18:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974075', 'tblTempUsageDetail_20' ) start [2025-04-23 18:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974075', 'tblTempUsageDetail_20' ) end [2025-04-23 18:21:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 18:21:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 18:21:26] Production.INFO: ==13388== Releasing lock... [2025-04-23 18:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 18:21:26] Production.INFO: 66.25 MB #Memory Used# [2025-04-23 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 15:22:05 [end_date_ymd] => 2025-04-23 18:22:05 [RateCDR] => 1 ) [2025-04-23 18:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 15:22:05' and `end` < '2025-04-23 18:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 18:22:19] Production.INFO: count ==5048 [2025-04-23 18:22:21] Production.ERROR: pbx CDR StartTime 2025-04-23 15:22:05 - End Time 2025-04-23 18:22:05 [2025-04-23 18:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974080', 'tblTempUsageDetail_20' ) start [2025-04-23 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974080', 'tblTempUsageDetail_20' ) end [2025-04-23 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974080', 'tblTempVendorCDR_20' ) start [2025-04-23 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974080', 'tblTempVendorCDR_20' ) end [2025-04-23 18:22:21] Production.INFO: ProcessCDR(1,14974080,1,1,2) [2025-04-23 18:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974080', 'tblTempUsageDetail_20' ) start [2025-04-23 18:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974080', 'tblTempUsageDetail_20' ) end [2025-04-23 18:22:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 18:22:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 18:22:26] Production.INFO: ==13463== Releasing lock... [2025-04-23 18:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 18:22:26] Production.INFO: 65.75 MB #Memory Used# [2025-04-23 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 15:23:05 [end_date_ymd] => 2025-04-23 18:23:05 [RateCDR] => 1 ) [2025-04-23 18:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 15:23:05' and `end` < '2025-04-23 18:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 18:23:18] Production.INFO: count ==5038 [2025-04-23 18:23:20] Production.ERROR: pbx CDR StartTime 2025-04-23 15:23:05 - End Time 2025-04-23 18:23:05 [2025-04-23 18:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974085', 'tblTempUsageDetail_20' ) start [2025-04-23 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974085', 'tblTempUsageDetail_20' ) end [2025-04-23 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974085', 'tblTempVendorCDR_20' ) start [2025-04-23 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974085', 'tblTempVendorCDR_20' ) end [2025-04-23 18:23:21] Production.INFO: ProcessCDR(1,14974085,1,1,2) [2025-04-23 18:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974085', 'tblTempUsageDetail_20' ) start [2025-04-23 18:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974085', 'tblTempUsageDetail_20' ) end [2025-04-23 18:23:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 18:23:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 18:23:25] Production.INFO: ==13534== Releasing lock... [2025-04-23 18:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 18:23:25] Production.INFO: 65.75 MB #Memory Used# [2025-04-23 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 15:24:05 [end_date_ymd] => 2025-04-23 18:24:05 [RateCDR] => 1 ) [2025-04-23 18:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 15:24:05' and `end` < '2025-04-23 18:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 18:24:18] Production.INFO: count ==5027 [2025-04-23 18:24:20] Production.ERROR: pbx CDR StartTime 2025-04-23 15:24:05 - End Time 2025-04-23 18:24:05 [2025-04-23 18:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974090', 'tblTempUsageDetail_20' ) start [2025-04-23 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974090', 'tblTempUsageDetail_20' ) end [2025-04-23 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974090', 'tblTempVendorCDR_20' ) start [2025-04-23 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974090', 'tblTempVendorCDR_20' ) end [2025-04-23 18:24:21] Production.INFO: ProcessCDR(1,14974090,1,1,2) [2025-04-23 18:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974090', 'tblTempUsageDetail_20' ) start [2025-04-23 18:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974090', 'tblTempUsageDetail_20' ) end [2025-04-23 18:24:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 18:24:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 18:24:26] Production.INFO: ==13613== Releasing lock... [2025-04-23 18:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 18:24:26] Production.INFO: 65.75 MB #Memory Used# [2025-04-23 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 15:25:05 [end_date_ymd] => 2025-04-23 18:25:05 [RateCDR] => 1 ) [2025-04-23 18:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 15:25:05' and `end` < '2025-04-23 18:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 18:25:19] Production.INFO: count ==5004 [2025-04-23 18:25:41] Production.ERROR: pbx CDR StartTime 2025-04-23 15:25:05 - End Time 2025-04-23 18:25:05 [2025-04-23 18:25:41] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 18:25:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974095', 'tblTempUsageDetail_20' ) start [2025-04-23 18:26:00] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974095', 'tblTempUsageDetail_20' ) end [2025-04-23 18:26:00] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974095', 'tblTempVendorCDR_20' ) start [2025-04-23 18:26:00] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974095', 'tblTempVendorCDR_20' ) end [2025-04-23 18:26:00] Production.INFO: ProcessCDR(1,14974095,1,1,2) [2025-04-23 18:26:00] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:26:06] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:26:06] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:26:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:26:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974095', 'tblTempUsageDetail_20' ) start [2025-04-23 18:26:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974095', 'tblTempUsageDetail_20' ) end [2025-04-23 18:26:46] Production.ERROR: pbx prc_insertCDR start [2025-04-23 18:26:46] Production.ERROR: pbx prc_insertCDR end [2025-04-23 18:27:03] Production.INFO: ==13685== Releasing lock... [2025-04-23 18:27:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 18:27:03] Production.INFO: 65.5 MB #Memory Used# [2025-04-23 18:27:18] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 15:27:18 [end_date_ymd] => 2025-04-23 18:27:18 [RateCDR] => 1 ) [2025-04-23 18:27:18] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 15:27:18' and `end` < '2025-04-23 18:27:18' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 18:27:32] Production.INFO: count ==4946 [2025-04-23 18:28:29] Production.ERROR: pbx CDR StartTime 2025-04-23 15:27:18 - End Time 2025-04-23 18:27:18 [2025-04-23 18:28:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 18:28:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974103', 'tblTempUsageDetail_20' ) start [2025-04-23 18:28:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974103', 'tblTempUsageDetail_20' ) end [2025-04-23 18:28:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974103', 'tblTempVendorCDR_20' ) start [2025-04-23 18:28:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974103', 'tblTempVendorCDR_20' ) end [2025-04-23 18:28:37] Production.INFO: ProcessCDR(1,14974103,1,1,2) [2025-04-23 18:28:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:28:52] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:28:52] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974103', 'tblTempUsageDetail_20' ) start [2025-04-23 18:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974103', 'tblTempUsageDetail_20' ) end [2025-04-23 18:29:28] Production.ERROR: pbx prc_insertCDR start [2025-04-23 18:29:28] Production.ERROR: pbx prc_insertCDR end [2025-04-23 18:29:28] Production.INFO: ==13827== Releasing lock... [2025-04-23 18:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 18:29:28] Production.INFO: 65 MB #Memory Used# [2025-04-23 18:30:29] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 15:30:29 [end_date_ymd] => 2025-04-23 18:30:29 [RateCDR] => 1 ) [2025-04-23 18:30:29] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 15:30:29' and `end` < '2025-04-23 18:30:29' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 18:30:42] Production.INFO: count ==4895 [2025-04-23 18:31:27] Production.ERROR: pbx CDR StartTime 2025-04-23 15:30:29 - End Time 2025-04-23 18:30:29 [2025-04-23 18:31:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 18:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974115', 'tblTempUsageDetail_20' ) start [2025-04-23 18:31:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974115', 'tblTempUsageDetail_20' ) end [2025-04-23 18:31:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974115', 'tblTempVendorCDR_20' ) start [2025-04-23 18:31:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974115', 'tblTempVendorCDR_20' ) end [2025-04-23 18:31:32] Production.INFO: ProcessCDR(1,14974115,1,1,2) [2025-04-23 18:31:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:31:43] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:31:43] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:32:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:32:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974115', 'tblTempUsageDetail_20' ) start [2025-04-23 18:32:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974115', 'tblTempUsageDetail_20' ) end [2025-04-23 18:32:46] Production.ERROR: pbx prc_insertCDR start [2025-04-23 18:32:46] Production.ERROR: pbx prc_insertCDR end [2025-04-23 18:32:50] Production.INFO: ==14040== Releasing lock... [2025-04-23 18:32:50] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 18:32:50] Production.INFO: 64.75 MB #Memory Used# [2025-04-23 18:33:18] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 15:33:18 [end_date_ymd] => 2025-04-23 18:33:18 [RateCDR] => 1 ) [2025-04-23 18:33:18] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 15:33:18' and `end` < '2025-04-23 18:33:18' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 18:33:32] Production.INFO: count ==4813 [2025-04-23 18:33:58] Production.ERROR: pbx CDR StartTime 2025-04-23 15:33:18 - End Time 2025-04-23 18:33:18 [2025-04-23 18:33:58] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 18:33:58] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974126', 'tblTempUsageDetail_20' ) start [2025-04-23 18:33:58] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974126', 'tblTempUsageDetail_20' ) end [2025-04-23 18:33:58] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974126', 'tblTempVendorCDR_20' ) start [2025-04-23 18:33:58] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974126', 'tblTempVendorCDR_20' ) end [2025-04-23 18:33:58] Production.INFO: ProcessCDR(1,14974126,1,1,2) [2025-04-23 18:33:58] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:34:01] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:34:01] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:34:05] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:34:05] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974126', 'tblTempUsageDetail_20' ) start [2025-04-23 18:34:06] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974126', 'tblTempUsageDetail_20' ) end [2025-04-23 18:34:06] Production.ERROR: pbx prc_insertCDR start [2025-04-23 18:34:07] Production.ERROR: pbx prc_insertCDR end [2025-04-23 18:34:07] Production.INFO: ==14246== Releasing lock... [2025-04-23 18:34:07] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 18:34:07] Production.INFO: 64 MB #Memory Used# [2025-04-23 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 15:35:05 [end_date_ymd] => 2025-04-23 18:35:05 [RateCDR] => 1 ) [2025-04-23 18:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 15:35:05' and `end` < '2025-04-23 18:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 18:35:19] Production.INFO: count ==4776 [2025-04-23 18:35:21] Production.ERROR: pbx CDR StartTime 2025-04-23 15:35:05 - End Time 2025-04-23 18:35:05 [2025-04-23 18:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974135', 'tblTempUsageDetail_20' ) start [2025-04-23 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974135', 'tblTempUsageDetail_20' ) end [2025-04-23 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974135', 'tblTempVendorCDR_20' ) start [2025-04-23 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974135', 'tblTempVendorCDR_20' ) end [2025-04-23 18:35:21] Production.INFO: ProcessCDR(1,14974135,1,1,2) [2025-04-23 18:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974135', 'tblTempUsageDetail_20' ) start [2025-04-23 18:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974135', 'tblTempUsageDetail_20' ) end [2025-04-23 18:35:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 18:35:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 18:35:27] Production.INFO: ==14440== Releasing lock... [2025-04-23 18:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 18:35:27] Production.INFO: 63.75 MB #Memory Used# [2025-04-23 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 15:36:05 [end_date_ymd] => 2025-04-23 18:36:05 [RateCDR] => 1 ) [2025-04-23 18:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 15:36:05' and `end` < '2025-04-23 18:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 18:36:19] Production.INFO: count ==4759 [2025-04-23 18:36:20] Production.ERROR: pbx CDR StartTime 2025-04-23 15:36:05 - End Time 2025-04-23 18:36:05 [2025-04-23 18:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974140', 'tblTempUsageDetail_20' ) start [2025-04-23 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974140', 'tblTempUsageDetail_20' ) end [2025-04-23 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974140', 'tblTempVendorCDR_20' ) start [2025-04-23 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974140', 'tblTempVendorCDR_20' ) end [2025-04-23 18:36:21] Production.INFO: ProcessCDR(1,14974140,1,1,2) [2025-04-23 18:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974140', 'tblTempUsageDetail_20' ) start [2025-04-23 18:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974140', 'tblTempUsageDetail_20' ) end [2025-04-23 18:36:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 18:36:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 18:36:26] Production.INFO: ==14515== Releasing lock... [2025-04-23 18:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 18:36:26] Production.INFO: 63.75 MB #Memory Used# [2025-04-23 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 15:37:05 [end_date_ymd] => 2025-04-23 18:37:05 [RateCDR] => 1 ) [2025-04-23 18:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 15:37:05' and `end` < '2025-04-23 18:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 18:37:19] Production.INFO: count ==4749 [2025-04-23 18:37:21] Production.ERROR: pbx CDR StartTime 2025-04-23 15:37:05 - End Time 2025-04-23 18:37:05 [2025-04-23 18:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974145', 'tblTempUsageDetail_20' ) start [2025-04-23 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974145', 'tblTempUsageDetail_20' ) end [2025-04-23 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974145', 'tblTempVendorCDR_20' ) start [2025-04-23 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974145', 'tblTempVendorCDR_20' ) end [2025-04-23 18:37:21] Production.INFO: ProcessCDR(1,14974145,1,1,2) [2025-04-23 18:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974145', 'tblTempUsageDetail_20' ) start [2025-04-23 18:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974145', 'tblTempUsageDetail_20' ) end [2025-04-23 18:37:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 18:37:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 18:37:27] Production.INFO: ==14588== Releasing lock... [2025-04-23 18:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 18:37:27] Production.INFO: 63.75 MB #Memory Used# [2025-04-23 18:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 15:38:06 [end_date_ymd] => 2025-04-23 18:38:06 [RateCDR] => 1 ) [2025-04-23 18:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 15:38:06' and `end` < '2025-04-23 18:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 18:38:19] Production.INFO: count ==4738 [2025-04-23 18:38:21] Production.ERROR: pbx CDR StartTime 2025-04-23 15:38:06 - End Time 2025-04-23 18:38:06 [2025-04-23 18:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 18:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974150', 'tblTempUsageDetail_20' ) start [2025-04-23 18:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974150', 'tblTempUsageDetail_20' ) end [2025-04-23 18:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974150', 'tblTempVendorCDR_20' ) start [2025-04-23 18:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974150', 'tblTempVendorCDR_20' ) end [2025-04-23 18:38:21] Production.INFO: ProcessCDR(1,14974150,1,1,2) [2025-04-23 18:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974150', 'tblTempUsageDetail_20' ) start [2025-04-23 18:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974150', 'tblTempUsageDetail_20' ) end [2025-04-23 18:38:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 18:38:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 18:38:26] Production.INFO: ==14659== Releasing lock... [2025-04-23 18:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 18:38:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-23 18:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 15:39:06 [end_date_ymd] => 2025-04-23 18:39:06 [RateCDR] => 1 ) [2025-04-23 18:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 15:39:06' and `end` < '2025-04-23 18:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 18:39:19] Production.INFO: count ==4742 [2025-04-23 18:39:21] Production.ERROR: pbx CDR StartTime 2025-04-23 15:39:06 - End Time 2025-04-23 18:39:06 [2025-04-23 18:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974155', 'tblTempUsageDetail_20' ) start [2025-04-23 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974155', 'tblTempUsageDetail_20' ) end [2025-04-23 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974155', 'tblTempVendorCDR_20' ) start [2025-04-23 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974155', 'tblTempVendorCDR_20' ) end [2025-04-23 18:39:21] Production.INFO: ProcessCDR(1,14974155,1,1,2) [2025-04-23 18:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974155', 'tblTempUsageDetail_20' ) start [2025-04-23 18:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974155', 'tblTempUsageDetail_20' ) end [2025-04-23 18:39:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 18:39:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 18:39:26] Production.INFO: ==14731== Releasing lock... [2025-04-23 18:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 18:39:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-23 18:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 15:40:05 [end_date_ymd] => 2025-04-23 18:40:05 [RateCDR] => 1 ) [2025-04-23 18:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 15:40:05' and `end` < '2025-04-23 18:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 18:40:19] Production.INFO: count ==4740 [2025-04-23 18:40:21] Production.ERROR: pbx CDR StartTime 2025-04-23 15:40:05 - End Time 2025-04-23 18:40:05 [2025-04-23 18:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974161', 'tblTempUsageDetail_20' ) start [2025-04-23 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974161', 'tblTempUsageDetail_20' ) end [2025-04-23 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974161', 'tblTempVendorCDR_20' ) start [2025-04-23 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974161', 'tblTempVendorCDR_20' ) end [2025-04-23 18:40:21] Production.INFO: ProcessCDR(1,14974161,1,1,2) [2025-04-23 18:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974161', 'tblTempUsageDetail_20' ) start [2025-04-23 18:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974161', 'tblTempUsageDetail_20' ) end [2025-04-23 18:40:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 18:40:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 18:40:26] Production.INFO: ==14812== Releasing lock... [2025-04-23 18:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 18:40:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-23 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 15:41:05 [end_date_ymd] => 2025-04-23 18:41:05 [RateCDR] => 1 ) [2025-04-23 18:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 15:41:05' and `end` < '2025-04-23 18:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 18:41:18] Production.INFO: count ==4674 [2025-04-23 18:41:20] Production.ERROR: pbx CDR StartTime 2025-04-23 15:41:05 - End Time 2025-04-23 18:41:05 [2025-04-23 18:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974166', 'tblTempUsageDetail_20' ) start [2025-04-23 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974166', 'tblTempUsageDetail_20' ) end [2025-04-23 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974166', 'tblTempVendorCDR_20' ) start [2025-04-23 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974166', 'tblTempVendorCDR_20' ) end [2025-04-23 18:41:20] Production.INFO: ProcessCDR(1,14974166,1,1,2) [2025-04-23 18:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974166', 'tblTempUsageDetail_20' ) start [2025-04-23 18:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974166', 'tblTempUsageDetail_20' ) end [2025-04-23 18:41:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 18:41:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 18:41:25] Production.INFO: ==14885== Releasing lock... [2025-04-23 18:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 18:41:25] Production.INFO: 63 MB #Memory Used# [2025-04-23 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 15:42:05 [end_date_ymd] => 2025-04-23 18:42:05 [RateCDR] => 1 ) [2025-04-23 18:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 15:42:05' and `end` < '2025-04-23 18:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 18:42:18] Production.INFO: count ==4664 [2025-04-23 18:42:20] Production.ERROR: pbx CDR StartTime 2025-04-23 15:42:05 - End Time 2025-04-23 18:42:05 [2025-04-23 18:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974171', 'tblTempUsageDetail_20' ) start [2025-04-23 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974171', 'tblTempUsageDetail_20' ) end [2025-04-23 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974171', 'tblTempVendorCDR_20' ) start [2025-04-23 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974171', 'tblTempVendorCDR_20' ) end [2025-04-23 18:42:20] Production.INFO: ProcessCDR(1,14974171,1,1,2) [2025-04-23 18:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974171', 'tblTempUsageDetail_20' ) start [2025-04-23 18:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974171', 'tblTempUsageDetail_20' ) end [2025-04-23 18:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 18:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 18:42:23] Production.INFO: ==14961== Releasing lock... [2025-04-23 18:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 18:42:23] Production.INFO: 63 MB #Memory Used# [2025-04-23 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 15:43:05 [end_date_ymd] => 2025-04-23 18:43:05 [RateCDR] => 1 ) [2025-04-23 18:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 15:43:05' and `end` < '2025-04-23 18:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 18:43:19] Production.INFO: count ==4657 [2025-04-23 18:43:20] Production.ERROR: pbx CDR StartTime 2025-04-23 15:43:05 - End Time 2025-04-23 18:43:05 [2025-04-23 18:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974176', 'tblTempUsageDetail_20' ) start [2025-04-23 18:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974176', 'tblTempUsageDetail_20' ) end [2025-04-23 18:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974176', 'tblTempVendorCDR_20' ) start [2025-04-23 18:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974176', 'tblTempVendorCDR_20' ) end [2025-04-23 18:43:21] Production.INFO: ProcessCDR(1,14974176,1,1,2) [2025-04-23 18:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974176', 'tblTempUsageDetail_20' ) start [2025-04-23 18:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974176', 'tblTempUsageDetail_20' ) end [2025-04-23 18:43:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 18:43:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 18:43:26] Production.INFO: ==15037== Releasing lock... [2025-04-23 18:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 18:43:26] Production.INFO: 63 MB #Memory Used# [2025-04-23 18:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 15:44:04 [end_date_ymd] => 2025-04-23 18:44:04 [RateCDR] => 1 ) [2025-04-23 18:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 15:44:04' and `end` < '2025-04-23 18:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 18:44:18] Production.INFO: count ==4638 [2025-04-23 18:44:19] Production.ERROR: pbx CDR StartTime 2025-04-23 15:44:04 - End Time 2025-04-23 18:44:04 [2025-04-23 18:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974181', 'tblTempUsageDetail_20' ) start [2025-04-23 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974181', 'tblTempUsageDetail_20' ) end [2025-04-23 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974181', 'tblTempVendorCDR_20' ) start [2025-04-23 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974181', 'tblTempVendorCDR_20' ) end [2025-04-23 18:44:20] Production.INFO: ProcessCDR(1,14974181,1,1,2) [2025-04-23 18:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974181', 'tblTempUsageDetail_20' ) start [2025-04-23 18:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974181', 'tblTempUsageDetail_20' ) end [2025-04-23 18:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 18:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 18:44:23] Production.INFO: ==15108== Releasing lock... [2025-04-23 18:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 18:44:23] Production.INFO: 62.75 MB #Memory Used# [2025-04-23 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 15:45:05 [end_date_ymd] => 2025-04-23 18:45:05 [RateCDR] => 1 ) [2025-04-23 18:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 15:45:05' and `end` < '2025-04-23 18:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 18:45:19] Production.INFO: count ==4628 [2025-04-23 18:45:20] Production.ERROR: pbx CDR StartTime 2025-04-23 15:45:05 - End Time 2025-04-23 18:45:05 [2025-04-23 18:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974186', 'tblTempUsageDetail_20' ) start [2025-04-23 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974186', 'tblTempUsageDetail_20' ) end [2025-04-23 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974186', 'tblTempVendorCDR_20' ) start [2025-04-23 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974186', 'tblTempVendorCDR_20' ) end [2025-04-23 18:45:21] Production.INFO: ProcessCDR(1,14974186,1,1,2) [2025-04-23 18:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974186', 'tblTempUsageDetail_20' ) start [2025-04-23 18:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974186', 'tblTempUsageDetail_20' ) end [2025-04-23 18:45:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 18:45:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 18:45:26] Production.INFO: ==15192== Releasing lock... [2025-04-23 18:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 18:45:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-23 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 15:46:05 [end_date_ymd] => 2025-04-23 18:46:05 [RateCDR] => 1 ) [2025-04-23 18:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 15:46:05' and `end` < '2025-04-23 18:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 18:46:19] Production.INFO: count ==4617 [2025-04-23 18:46:20] Production.ERROR: pbx CDR StartTime 2025-04-23 15:46:05 - End Time 2025-04-23 18:46:05 [2025-04-23 18:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974191', 'tblTempUsageDetail_20' ) start [2025-04-23 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974191', 'tblTempUsageDetail_20' ) end [2025-04-23 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974191', 'tblTempVendorCDR_20' ) start [2025-04-23 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974191', 'tblTempVendorCDR_20' ) end [2025-04-23 18:46:20] Production.INFO: ProcessCDR(1,14974191,1,1,2) [2025-04-23 18:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974191', 'tblTempUsageDetail_20' ) start [2025-04-23 18:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974191', 'tblTempUsageDetail_20' ) end [2025-04-23 18:46:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 18:46:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 18:46:24] Production.INFO: ==15268== Releasing lock... [2025-04-23 18:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 18:46:24] Production.INFO: 62.75 MB #Memory Used# [2025-04-23 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 15:47:05 [end_date_ymd] => 2025-04-23 18:47:05 [RateCDR] => 1 ) [2025-04-23 18:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 15:47:05' and `end` < '2025-04-23 18:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 18:47:18] Production.INFO: count ==4603 [2025-04-23 18:47:20] Production.ERROR: pbx CDR StartTime 2025-04-23 15:47:05 - End Time 2025-04-23 18:47:05 [2025-04-23 18:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974196', 'tblTempUsageDetail_20' ) start [2025-04-23 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974196', 'tblTempUsageDetail_20' ) end [2025-04-23 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974196', 'tblTempVendorCDR_20' ) start [2025-04-23 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974196', 'tblTempVendorCDR_20' ) end [2025-04-23 18:47:20] Production.INFO: ProcessCDR(1,14974196,1,1,2) [2025-04-23 18:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974196', 'tblTempUsageDetail_20' ) start [2025-04-23 18:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974196', 'tblTempUsageDetail_20' ) end [2025-04-23 18:47:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 18:47:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 18:47:23] Production.INFO: ==15341== Releasing lock... [2025-04-23 18:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 18:47:23] Production.INFO: 62.5 MB #Memory Used# [2025-04-23 18:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 15:48:06 [end_date_ymd] => 2025-04-23 18:48:06 [RateCDR] => 1 ) [2025-04-23 18:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 15:48:06' and `end` < '2025-04-23 18:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 18:48:19] Production.INFO: count ==4579 [2025-04-23 18:48:21] Production.ERROR: pbx CDR StartTime 2025-04-23 15:48:06 - End Time 2025-04-23 18:48:06 [2025-04-23 18:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974201', 'tblTempUsageDetail_20' ) start [2025-04-23 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974201', 'tblTempUsageDetail_20' ) end [2025-04-23 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974201', 'tblTempVendorCDR_20' ) start [2025-04-23 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974201', 'tblTempVendorCDR_20' ) end [2025-04-23 18:48:21] Production.INFO: ProcessCDR(1,14974201,1,1,2) [2025-04-23 18:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974201', 'tblTempUsageDetail_20' ) start [2025-04-23 18:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974201', 'tblTempUsageDetail_20' ) end [2025-04-23 18:48:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 18:48:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 18:48:24] Production.INFO: ==15420== Releasing lock... [2025-04-23 18:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 18:48:24] Production.INFO: 62.25 MB #Memory Used# [2025-04-23 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 15:49:05 [end_date_ymd] => 2025-04-23 18:49:05 [RateCDR] => 1 ) [2025-04-23 18:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 15:49:05' and `end` < '2025-04-23 18:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 18:49:20] Production.INFO: count ==4558 [2025-04-23 18:49:22] Production.ERROR: pbx CDR StartTime 2025-04-23 15:49:05 - End Time 2025-04-23 18:49:05 [2025-04-23 18:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 18:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974206', 'tblTempUsageDetail_20' ) start [2025-04-23 18:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974206', 'tblTempUsageDetail_20' ) end [2025-04-23 18:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974206', 'tblTempVendorCDR_20' ) start [2025-04-23 18:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974206', 'tblTempVendorCDR_20' ) end [2025-04-23 18:49:22] Production.INFO: ProcessCDR(1,14974206,1,1,2) [2025-04-23 18:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974206', 'tblTempUsageDetail_20' ) start [2025-04-23 18:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974206', 'tblTempUsageDetail_20' ) end [2025-04-23 18:49:27] Production.ERROR: pbx prc_insertCDR start [2025-04-23 18:49:27] Production.ERROR: pbx prc_insertCDR end [2025-04-23 18:49:27] Production.INFO: ==15534== Releasing lock... [2025-04-23 18:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 18:49:27] Production.INFO: 62.25 MB #Memory Used# [2025-04-23 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 15:50:06 [end_date_ymd] => 2025-04-23 18:50:06 [RateCDR] => 1 ) [2025-04-23 18:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 15:50:06' and `end` < '2025-04-23 18:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 18:50:19] Production.INFO: count ==4534 [2025-04-23 18:50:21] Production.ERROR: pbx CDR StartTime 2025-04-23 15:50:06 - End Time 2025-04-23 18:50:06 [2025-04-23 18:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974211', 'tblTempUsageDetail_20' ) start [2025-04-23 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974211', 'tblTempUsageDetail_20' ) end [2025-04-23 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974211', 'tblTempVendorCDR_20' ) start [2025-04-23 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974211', 'tblTempVendorCDR_20' ) end [2025-04-23 18:50:21] Production.INFO: ProcessCDR(1,14974211,1,1,2) [2025-04-23 18:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974211', 'tblTempUsageDetail_20' ) start [2025-04-23 18:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974211', 'tblTempUsageDetail_20' ) end [2025-04-23 18:50:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 18:50:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 18:50:26] Production.INFO: ==15618== Releasing lock... [2025-04-23 18:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 18:50:26] Production.INFO: 62 MB #Memory Used# [2025-04-23 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 15:51:05 [end_date_ymd] => 2025-04-23 18:51:05 [RateCDR] => 1 ) [2025-04-23 18:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 15:51:05' and `end` < '2025-04-23 18:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 18:51:19] Production.INFO: count ==4480 [2025-04-23 18:51:20] Production.ERROR: pbx CDR StartTime 2025-04-23 15:51:05 - End Time 2025-04-23 18:51:05 [2025-04-23 18:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974217', 'tblTempUsageDetail_20' ) start [2025-04-23 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974217', 'tblTempUsageDetail_20' ) end [2025-04-23 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974217', 'tblTempVendorCDR_20' ) start [2025-04-23 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974217', 'tblTempVendorCDR_20' ) end [2025-04-23 18:51:20] Production.INFO: ProcessCDR(1,14974217,1,1,2) [2025-04-23 18:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974217', 'tblTempUsageDetail_20' ) start [2025-04-23 18:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974217', 'tblTempUsageDetail_20' ) end [2025-04-23 18:51:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 18:51:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 18:51:24] Production.INFO: ==15699== Releasing lock... [2025-04-23 18:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 18:51:24] Production.INFO: 61.5 MB #Memory Used# [2025-04-23 18:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 15:52:06 [end_date_ymd] => 2025-04-23 18:52:06 [RateCDR] => 1 ) [2025-04-23 18:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 15:52:06' and `end` < '2025-04-23 18:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 18:52:19] Production.INFO: count ==4471 [2025-04-23 18:52:21] Production.ERROR: pbx CDR StartTime 2025-04-23 15:52:06 - End Time 2025-04-23 18:52:06 [2025-04-23 18:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 18:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974222', 'tblTempUsageDetail_20' ) start [2025-04-23 18:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974222', 'tblTempUsageDetail_20' ) end [2025-04-23 18:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974222', 'tblTempVendorCDR_20' ) start [2025-04-23 18:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974222', 'tblTempVendorCDR_20' ) end [2025-04-23 18:52:21] Production.INFO: ProcessCDR(1,14974222,1,1,2) [2025-04-23 18:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974222', 'tblTempUsageDetail_20' ) start [2025-04-23 18:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974222', 'tblTempUsageDetail_20' ) end [2025-04-23 18:52:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 18:52:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 18:52:24] Production.INFO: ==15772== Releasing lock... [2025-04-23 18:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 18:52:24] Production.INFO: 61.5 MB #Memory Used# [2025-04-23 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 15:53:05 [end_date_ymd] => 2025-04-23 18:53:05 [RateCDR] => 1 ) [2025-04-23 18:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 15:53:05' and `end` < '2025-04-23 18:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 18:53:18] Production.INFO: count ==4447 [2025-04-23 18:53:20] Production.ERROR: pbx CDR StartTime 2025-04-23 15:53:05 - End Time 2025-04-23 18:53:05 [2025-04-23 18:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974227', 'tblTempUsageDetail_20' ) start [2025-04-23 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974227', 'tblTempUsageDetail_20' ) end [2025-04-23 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974227', 'tblTempVendorCDR_20' ) start [2025-04-23 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974227', 'tblTempVendorCDR_20' ) end [2025-04-23 18:53:20] Production.INFO: ProcessCDR(1,14974227,1,1,2) [2025-04-23 18:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974227', 'tblTempUsageDetail_20' ) start [2025-04-23 18:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974227', 'tblTempUsageDetail_20' ) end [2025-04-23 18:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 18:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 18:53:23] Production.INFO: ==15847== Releasing lock... [2025-04-23 18:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 18:53:23] Production.INFO: 61.25 MB #Memory Used# [2025-04-23 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 15:54:05 [end_date_ymd] => 2025-04-23 18:54:05 [RateCDR] => 1 ) [2025-04-23 18:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 15:54:05' and `end` < '2025-04-23 18:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 18:54:18] Production.INFO: count ==4439 [2025-04-23 18:54:19] Production.ERROR: pbx CDR StartTime 2025-04-23 15:54:05 - End Time 2025-04-23 18:54:05 [2025-04-23 18:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974232', 'tblTempUsageDetail_20' ) start [2025-04-23 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974232', 'tblTempUsageDetail_20' ) end [2025-04-23 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974232', 'tblTempVendorCDR_20' ) start [2025-04-23 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974232', 'tblTempVendorCDR_20' ) end [2025-04-23 18:54:20] Production.INFO: ProcessCDR(1,14974232,1,1,2) [2025-04-23 18:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974232', 'tblTempUsageDetail_20' ) start [2025-04-23 18:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974232', 'tblTempUsageDetail_20' ) end [2025-04-23 18:54:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 18:54:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 18:54:25] Production.INFO: ==15924== Releasing lock... [2025-04-23 18:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 18:54:25] Production.INFO: 61.25 MB #Memory Used# [2025-04-23 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 15:55:05 [end_date_ymd] => 2025-04-23 18:55:05 [RateCDR] => 1 ) [2025-04-23 18:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 15:55:05' and `end` < '2025-04-23 18:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 18:55:19] Production.INFO: count ==4422 [2025-04-23 18:55:20] Production.ERROR: pbx CDR StartTime 2025-04-23 15:55:05 - End Time 2025-04-23 18:55:05 [2025-04-23 18:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974237', 'tblTempUsageDetail_20' ) start [2025-04-23 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974237', 'tblTempUsageDetail_20' ) end [2025-04-23 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974237', 'tblTempVendorCDR_20' ) start [2025-04-23 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974237', 'tblTempVendorCDR_20' ) end [2025-04-23 18:55:20] Production.INFO: ProcessCDR(1,14974237,1,1,2) [2025-04-23 18:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974237', 'tblTempUsageDetail_20' ) start [2025-04-23 18:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974237', 'tblTempUsageDetail_20' ) end [2025-04-23 18:55:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 18:55:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 18:55:25] Production.INFO: ==15996== Releasing lock... [2025-04-23 18:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 18:55:25] Production.INFO: 61.25 MB #Memory Used# [2025-04-23 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 15:56:05 [end_date_ymd] => 2025-04-23 18:56:05 [RateCDR] => 1 ) [2025-04-23 18:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 15:56:05' and `end` < '2025-04-23 18:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 18:56:18] Production.INFO: count ==4403 [2025-04-23 18:56:20] Production.ERROR: pbx CDR StartTime 2025-04-23 15:56:05 - End Time 2025-04-23 18:56:05 [2025-04-23 18:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974242', 'tblTempUsageDetail_20' ) start [2025-04-23 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974242', 'tblTempUsageDetail_20' ) end [2025-04-23 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974242', 'tblTempVendorCDR_20' ) start [2025-04-23 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974242', 'tblTempVendorCDR_20' ) end [2025-04-23 18:56:20] Production.INFO: ProcessCDR(1,14974242,1,1,2) [2025-04-23 18:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974242', 'tblTempUsageDetail_20' ) start [2025-04-23 18:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974242', 'tblTempUsageDetail_20' ) end [2025-04-23 18:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 18:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 18:56:23] Production.INFO: ==16070== Releasing lock... [2025-04-23 18:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 18:56:23] Production.INFO: 61 MB #Memory Used# [2025-04-23 18:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 15:57:06 [end_date_ymd] => 2025-04-23 18:57:06 [RateCDR] => 1 ) [2025-04-23 18:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 15:57:06' and `end` < '2025-04-23 18:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 18:57:19] Production.INFO: count ==4391 [2025-04-23 18:57:20] Production.ERROR: pbx CDR StartTime 2025-04-23 15:57:06 - End Time 2025-04-23 18:57:06 [2025-04-23 18:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974247', 'tblTempUsageDetail_20' ) start [2025-04-23 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974247', 'tblTempUsageDetail_20' ) end [2025-04-23 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974247', 'tblTempVendorCDR_20' ) start [2025-04-23 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974247', 'tblTempVendorCDR_20' ) end [2025-04-23 18:57:20] Production.INFO: ProcessCDR(1,14974247,1,1,2) [2025-04-23 18:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974247', 'tblTempUsageDetail_20' ) start [2025-04-23 18:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974247', 'tblTempUsageDetail_20' ) end [2025-04-23 18:57:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 18:57:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 18:57:24] Production.INFO: ==16140== Releasing lock... [2025-04-23 18:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 18:57:24] Production.INFO: 61 MB #Memory Used# [2025-04-23 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 15:58:05 [end_date_ymd] => 2025-04-23 18:58:05 [RateCDR] => 1 ) [2025-04-23 18:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 15:58:05' and `end` < '2025-04-23 18:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 18:58:20] Production.INFO: count ==4383 [2025-04-23 18:58:21] Production.ERROR: pbx CDR StartTime 2025-04-23 15:58:05 - End Time 2025-04-23 18:58:05 [2025-04-23 18:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 18:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974252', 'tblTempUsageDetail_20' ) start [2025-04-23 18:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974252', 'tblTempUsageDetail_20' ) end [2025-04-23 18:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974252', 'tblTempVendorCDR_20' ) start [2025-04-23 18:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974252', 'tblTempVendorCDR_20' ) end [2025-04-23 18:58:21] Production.INFO: ProcessCDR(1,14974252,1,1,2) [2025-04-23 18:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974252', 'tblTempUsageDetail_20' ) start [2025-04-23 18:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974252', 'tblTempUsageDetail_20' ) end [2025-04-23 18:58:26] Production.ERROR: pbx prc_insertCDR start [2025-04-23 18:58:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 18:58:26] Production.INFO: ==16219== Releasing lock... [2025-04-23 18:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 18:58:26] Production.INFO: 60.75 MB #Memory Used# [2025-04-23 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 15:59:05 [end_date_ymd] => 2025-04-23 18:59:05 [RateCDR] => 1 ) [2025-04-23 18:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 15:59:05' and `end` < '2025-04-23 18:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 18:59:19] Production.INFO: count ==4366 [2025-04-23 18:59:20] Production.ERROR: pbx CDR StartTime 2025-04-23 15:59:05 - End Time 2025-04-23 18:59:05 [2025-04-23 18:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974257', 'tblTempUsageDetail_20' ) start [2025-04-23 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974257', 'tblTempUsageDetail_20' ) end [2025-04-23 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974257', 'tblTempVendorCDR_20' ) start [2025-04-23 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974257', 'tblTempVendorCDR_20' ) end [2025-04-23 18:59:20] Production.INFO: ProcessCDR(1,14974257,1,1,2) [2025-04-23 18:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 18:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 18:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974257', 'tblTempUsageDetail_20' ) start [2025-04-23 18:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974257', 'tblTempUsageDetail_20' ) end [2025-04-23 18:59:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 18:59:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 18:59:25] Production.INFO: ==16292== Releasing lock... [2025-04-23 18:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 18:59:25] Production.INFO: 60.75 MB #Memory Used# [2025-04-23 19:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 16:00:05 [end_date_ymd] => 2025-04-23 19:00:05 [RateCDR] => 1 ) [2025-04-23 19:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 16:00:05' and `end` < '2025-04-23 19:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 19:00:19] Production.INFO: count ==4356 [2025-04-23 19:00:20] Production.ERROR: pbx CDR StartTime 2025-04-23 16:00:05 - End Time 2025-04-23 19:00:05 [2025-04-23 19:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974262', 'tblTempUsageDetail_20' ) start [2025-04-23 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974262', 'tblTempUsageDetail_20' ) end [2025-04-23 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974262', 'tblTempVendorCDR_20' ) start [2025-04-23 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974262', 'tblTempVendorCDR_20' ) end [2025-04-23 19:00:20] Production.INFO: ProcessCDR(1,14974262,1,1,2) [2025-04-23 19:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974262', 'tblTempUsageDetail_20' ) start [2025-04-23 19:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974262', 'tblTempUsageDetail_20' ) end [2025-04-23 19:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 19:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 19:00:24] Production.INFO: ==16364== Releasing lock... [2025-04-23 19:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 19:00:24] Production.INFO: 60.75 MB #Memory Used# [2025-04-23 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 16:01:05 [end_date_ymd] => 2025-04-23 19:01:05 [RateCDR] => 1 ) [2025-04-23 19:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 16:01:05' and `end` < '2025-04-23 19:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 19:01:19] Production.INFO: count ==4312 [2025-04-23 19:01:20] Production.ERROR: pbx CDR StartTime 2025-04-23 16:01:05 - End Time 2025-04-23 19:01:05 [2025-04-23 19:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974268', 'tblTempUsageDetail_20' ) start [2025-04-23 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974268', 'tblTempUsageDetail_20' ) end [2025-04-23 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974268', 'tblTempVendorCDR_20' ) start [2025-04-23 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974268', 'tblTempVendorCDR_20' ) end [2025-04-23 19:01:20] Production.INFO: ProcessCDR(1,14974268,1,1,2) [2025-04-23 19:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974268', 'tblTempUsageDetail_20' ) start [2025-04-23 19:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974268', 'tblTempUsageDetail_20' ) end [2025-04-23 19:01:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 19:01:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 19:01:25] Production.INFO: ==16452== Releasing lock... [2025-04-23 19:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 19:01:25] Production.INFO: 60.25 MB #Memory Used# [2025-04-23 19:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 16:02:05 [end_date_ymd] => 2025-04-23 19:02:05 [RateCDR] => 1 ) [2025-04-23 19:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 16:02:05' and `end` < '2025-04-23 19:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 19:02:18] Production.INFO: count ==4279 [2025-04-23 19:02:20] Production.ERROR: pbx CDR StartTime 2025-04-23 16:02:05 - End Time 2025-04-23 19:02:05 [2025-04-23 19:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974273', 'tblTempUsageDetail_20' ) start [2025-04-23 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974273', 'tblTempUsageDetail_20' ) end [2025-04-23 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974273', 'tblTempVendorCDR_20' ) start [2025-04-23 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974273', 'tblTempVendorCDR_20' ) end [2025-04-23 19:02:20] Production.INFO: ProcessCDR(1,14974273,1,1,2) [2025-04-23 19:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974273', 'tblTempUsageDetail_20' ) start [2025-04-23 19:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974273', 'tblTempUsageDetail_20' ) end [2025-04-23 19:02:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 19:02:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 19:02:25] Production.INFO: ==16600== Releasing lock... [2025-04-23 19:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 19:02:25] Production.INFO: 60 MB #Memory Used# [2025-04-23 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 16:03:05 [end_date_ymd] => 2025-04-23 19:03:05 [RateCDR] => 1 ) [2025-04-23 19:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 16:03:05' and `end` < '2025-04-23 19:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 19:03:18] Production.INFO: count ==4266 [2025-04-23 19:03:20] Production.ERROR: pbx CDR StartTime 2025-04-23 16:03:05 - End Time 2025-04-23 19:03:05 [2025-04-23 19:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974278', 'tblTempUsageDetail_20' ) start [2025-04-23 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974278', 'tblTempUsageDetail_20' ) end [2025-04-23 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974278', 'tblTempVendorCDR_20' ) start [2025-04-23 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974278', 'tblTempVendorCDR_20' ) end [2025-04-23 19:03:20] Production.INFO: ProcessCDR(1,14974278,1,1,2) [2025-04-23 19:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974278', 'tblTempUsageDetail_20' ) start [2025-04-23 19:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974278', 'tblTempUsageDetail_20' ) end [2025-04-23 19:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 19:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 19:03:23] Production.INFO: ==16679== Releasing lock... [2025-04-23 19:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 19:03:23] Production.INFO: 60 MB #Memory Used# [2025-04-23 19:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 16:04:05 [end_date_ymd] => 2025-04-23 19:04:05 [RateCDR] => 1 ) [2025-04-23 19:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 16:04:05' and `end` < '2025-04-23 19:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 19:04:18] Production.INFO: count ==4224 [2025-04-23 19:04:20] Production.ERROR: pbx CDR StartTime 2025-04-23 16:04:05 - End Time 2025-04-23 19:04:05 [2025-04-23 19:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974283', 'tblTempUsageDetail_20' ) start [2025-04-23 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974283', 'tblTempUsageDetail_20' ) end [2025-04-23 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974283', 'tblTempVendorCDR_20' ) start [2025-04-23 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974283', 'tblTempVendorCDR_20' ) end [2025-04-23 19:04:20] Production.INFO: ProcessCDR(1,14974283,1,1,2) [2025-04-23 19:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974283', 'tblTempUsageDetail_20' ) start [2025-04-23 19:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974283', 'tblTempUsageDetail_20' ) end [2025-04-23 19:04:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 19:04:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 19:04:24] Production.INFO: ==16791== Releasing lock... [2025-04-23 19:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 19:04:24] Production.INFO: 59.75 MB #Memory Used# [2025-04-23 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 16:05:05 [end_date_ymd] => 2025-04-23 19:05:05 [RateCDR] => 1 ) [2025-04-23 19:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 16:05:05' and `end` < '2025-04-23 19:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 19:05:18] Production.INFO: count ==4216 [2025-04-23 19:05:20] Production.ERROR: pbx CDR StartTime 2025-04-23 16:05:05 - End Time 2025-04-23 19:05:05 [2025-04-23 19:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974288', 'tblTempUsageDetail_20' ) start [2025-04-23 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974288', 'tblTempUsageDetail_20' ) end [2025-04-23 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974288', 'tblTempVendorCDR_20' ) start [2025-04-23 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974288', 'tblTempVendorCDR_20' ) end [2025-04-23 19:05:20] Production.INFO: ProcessCDR(1,14974288,1,1,2) [2025-04-23 19:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974288', 'tblTempUsageDetail_20' ) start [2025-04-23 19:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974288', 'tblTempUsageDetail_20' ) end [2025-04-23 19:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 19:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 19:05:23] Production.INFO: ==16946== Releasing lock... [2025-04-23 19:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 19:05:23] Production.INFO: 59.5 MB #Memory Used# [2025-04-23 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 16:06:05 [end_date_ymd] => 2025-04-23 19:06:05 [RateCDR] => 1 ) [2025-04-23 19:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 16:06:05' and `end` < '2025-04-23 19:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 19:06:18] Production.INFO: count ==4193 [2025-04-23 19:06:20] Production.ERROR: pbx CDR StartTime 2025-04-23 16:06:05 - End Time 2025-04-23 19:06:05 [2025-04-23 19:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974293', 'tblTempUsageDetail_20' ) start [2025-04-23 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974293', 'tblTempUsageDetail_20' ) end [2025-04-23 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974293', 'tblTempVendorCDR_20' ) start [2025-04-23 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974293', 'tblTempVendorCDR_20' ) end [2025-04-23 19:06:20] Production.INFO: ProcessCDR(1,14974293,1,1,2) [2025-04-23 19:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974293', 'tblTempUsageDetail_20' ) start [2025-04-23 19:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974293', 'tblTempUsageDetail_20' ) end [2025-04-23 19:06:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 19:06:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 19:06:24] Production.INFO: ==17016== Releasing lock... [2025-04-23 19:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 19:06:24] Production.INFO: 59.5 MB #Memory Used# [2025-04-23 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 16:07:05 [end_date_ymd] => 2025-04-23 19:07:05 [RateCDR] => 1 ) [2025-04-23 19:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 16:07:05' and `end` < '2025-04-23 19:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 19:07:18] Production.INFO: count ==4186 [2025-04-23 19:07:20] Production.ERROR: pbx CDR StartTime 2025-04-23 16:07:05 - End Time 2025-04-23 19:07:05 [2025-04-23 19:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974298', 'tblTempUsageDetail_20' ) start [2025-04-23 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974298', 'tblTempUsageDetail_20' ) end [2025-04-23 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974298', 'tblTempVendorCDR_20' ) start [2025-04-23 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974298', 'tblTempVendorCDR_20' ) end [2025-04-23 19:07:20] Production.INFO: ProcessCDR(1,14974298,1,1,2) [2025-04-23 19:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974298', 'tblTempUsageDetail_20' ) start [2025-04-23 19:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974298', 'tblTempUsageDetail_20' ) end [2025-04-23 19:07:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 19:07:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 19:07:25] Production.INFO: ==17094== Releasing lock... [2025-04-23 19:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 19:07:25] Production.INFO: 59.5 MB #Memory Used# [2025-04-23 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 16:08:05 [end_date_ymd] => 2025-04-23 19:08:05 [RateCDR] => 1 ) [2025-04-23 19:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 16:08:05' and `end` < '2025-04-23 19:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 19:08:18] Production.INFO: count ==4173 [2025-04-23 19:08:20] Production.ERROR: pbx CDR StartTime 2025-04-23 16:08:05 - End Time 2025-04-23 19:08:05 [2025-04-23 19:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974303', 'tblTempUsageDetail_20' ) start [2025-04-23 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974303', 'tblTempUsageDetail_20' ) end [2025-04-23 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974303', 'tblTempVendorCDR_20' ) start [2025-04-23 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974303', 'tblTempVendorCDR_20' ) end [2025-04-23 19:08:20] Production.INFO: ProcessCDR(1,14974303,1,1,2) [2025-04-23 19:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974303', 'tblTempUsageDetail_20' ) start [2025-04-23 19:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974303', 'tblTempUsageDetail_20' ) end [2025-04-23 19:08:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 19:08:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 19:08:25] Production.INFO: ==17211== Releasing lock... [2025-04-23 19:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 19:08:25] Production.INFO: 59.25 MB #Memory Used# [2025-04-23 19:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 16:09:04 [end_date_ymd] => 2025-04-23 19:09:04 [RateCDR] => 1 ) [2025-04-23 19:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 16:09:04' and `end` < '2025-04-23 19:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 19:09:18] Production.INFO: count ==4158 [2025-04-23 19:09:19] Production.ERROR: pbx CDR StartTime 2025-04-23 16:09:04 - End Time 2025-04-23 19:09:04 [2025-04-23 19:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974308', 'tblTempUsageDetail_20' ) start [2025-04-23 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974308', 'tblTempUsageDetail_20' ) end [2025-04-23 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974308', 'tblTempVendorCDR_20' ) start [2025-04-23 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974308', 'tblTempVendorCDR_20' ) end [2025-04-23 19:09:19] Production.INFO: ProcessCDR(1,14974308,1,1,2) [2025-04-23 19:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974308', 'tblTempUsageDetail_20' ) start [2025-04-23 19:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974308', 'tblTempUsageDetail_20' ) end [2025-04-23 19:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 19:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 19:09:22] Production.INFO: ==17322== Releasing lock... [2025-04-23 19:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 19:09:22] Production.INFO: 59.25 MB #Memory Used# [2025-04-23 19:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 16:10:05 [end_date_ymd] => 2025-04-23 19:10:05 [RateCDR] => 1 ) [2025-04-23 19:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 16:10:05' and `end` < '2025-04-23 19:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 19:10:19] Production.INFO: count ==4134 [2025-04-23 19:10:20] Production.ERROR: pbx CDR StartTime 2025-04-23 16:10:05 - End Time 2025-04-23 19:10:05 [2025-04-23 19:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974313', 'tblTempUsageDetail_20' ) start [2025-04-23 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974313', 'tblTempUsageDetail_20' ) end [2025-04-23 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974313', 'tblTempVendorCDR_20' ) start [2025-04-23 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974313', 'tblTempVendorCDR_20' ) end [2025-04-23 19:10:20] Production.INFO: ProcessCDR(1,14974313,1,1,2) [2025-04-23 19:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974313', 'tblTempUsageDetail_20' ) start [2025-04-23 19:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974313', 'tblTempUsageDetail_20' ) end [2025-04-23 19:10:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 19:10:26] Production.ERROR: pbx prc_insertCDR end [2025-04-23 19:10:26] Production.INFO: ==17398== Releasing lock... [2025-04-23 19:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 19:10:26] Production.INFO: 59.25 MB #Memory Used# [2025-04-23 19:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 16:11:06 [end_date_ymd] => 2025-04-23 19:11:06 [RateCDR] => 1 ) [2025-04-23 19:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 16:11:06' and `end` < '2025-04-23 19:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 19:11:19] Production.INFO: count ==4045 [2025-04-23 19:11:20] Production.ERROR: pbx CDR StartTime 2025-04-23 16:11:06 - End Time 2025-04-23 19:11:06 [2025-04-23 19:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974319', 'tblTempUsageDetail_20' ) start [2025-04-23 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974319', 'tblTempUsageDetail_20' ) end [2025-04-23 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974319', 'tblTempVendorCDR_20' ) start [2025-04-23 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974319', 'tblTempVendorCDR_20' ) end [2025-04-23 19:11:20] Production.INFO: ProcessCDR(1,14974319,1,1,2) [2025-04-23 19:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974319', 'tblTempUsageDetail_20' ) start [2025-04-23 19:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974319', 'tblTempUsageDetail_20' ) end [2025-04-23 19:11:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 19:11:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 19:11:25] Production.INFO: ==17476== Releasing lock... [2025-04-23 19:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 19:11:25] Production.INFO: 58.25 MB #Memory Used# [2025-04-23 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 16:12:05 [end_date_ymd] => 2025-04-23 19:12:05 [RateCDR] => 1 ) [2025-04-23 19:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 16:12:05' and `end` < '2025-04-23 19:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 19:12:18] Production.INFO: count ==4007 [2025-04-23 19:12:20] Production.ERROR: pbx CDR StartTime 2025-04-23 16:12:05 - End Time 2025-04-23 19:12:05 [2025-04-23 19:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974324', 'tblTempUsageDetail_20' ) start [2025-04-23 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974324', 'tblTempUsageDetail_20' ) end [2025-04-23 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974324', 'tblTempVendorCDR_20' ) start [2025-04-23 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974324', 'tblTempVendorCDR_20' ) end [2025-04-23 19:12:20] Production.INFO: ProcessCDR(1,14974324,1,1,2) [2025-04-23 19:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974324', 'tblTempUsageDetail_20' ) start [2025-04-23 19:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974324', 'tblTempUsageDetail_20' ) end [2025-04-23 19:12:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 19:12:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 19:12:25] Production.INFO: ==17624== Releasing lock... [2025-04-23 19:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 19:12:25] Production.INFO: 58 MB #Memory Used# [2025-04-23 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 16:13:05 [end_date_ymd] => 2025-04-23 19:13:05 [RateCDR] => 1 ) [2025-04-23 19:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 16:13:05' and `end` < '2025-04-23 19:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 19:13:18] Production.INFO: count ==3985 [2025-04-23 19:13:19] Production.ERROR: pbx CDR StartTime 2025-04-23 16:13:05 - End Time 2025-04-23 19:13:05 [2025-04-23 19:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974329', 'tblTempUsageDetail_20' ) start [2025-04-23 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974329', 'tblTempUsageDetail_20' ) end [2025-04-23 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974329', 'tblTempVendorCDR_20' ) start [2025-04-23 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974329', 'tblTempVendorCDR_20' ) end [2025-04-23 19:13:19] Production.INFO: ProcessCDR(1,14974329,1,1,2) [2025-04-23 19:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974329', 'tblTempUsageDetail_20' ) start [2025-04-23 19:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974329', 'tblTempUsageDetail_20' ) end [2025-04-23 19:13:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 19:13:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 19:13:23] Production.INFO: ==17726== Releasing lock... [2025-04-23 19:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 19:13:23] Production.INFO: 57.75 MB #Memory Used# [2025-04-23 19:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 16:14:04 [end_date_ymd] => 2025-04-23 19:14:04 [RateCDR] => 1 ) [2025-04-23 19:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 16:14:04' and `end` < '2025-04-23 19:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 19:14:18] Production.INFO: count ==3974 [2025-04-23 19:14:19] Production.ERROR: pbx CDR StartTime 2025-04-23 16:14:04 - End Time 2025-04-23 19:14:04 [2025-04-23 19:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974334', 'tblTempUsageDetail_20' ) start [2025-04-23 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974334', 'tblTempUsageDetail_20' ) end [2025-04-23 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974334', 'tblTempVendorCDR_20' ) start [2025-04-23 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974334', 'tblTempVendorCDR_20' ) end [2025-04-23 19:14:19] Production.INFO: ProcessCDR(1,14974334,1,1,2) [2025-04-23 19:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974334', 'tblTempUsageDetail_20' ) start [2025-04-23 19:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974334', 'tblTempUsageDetail_20' ) end [2025-04-23 19:14:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 19:14:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 19:14:25] Production.INFO: ==17804== Releasing lock... [2025-04-23 19:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 19:14:25] Production.INFO: 57.75 MB #Memory Used# [2025-04-23 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 16:15:05 [end_date_ymd] => 2025-04-23 19:15:05 [RateCDR] => 1 ) [2025-04-23 19:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 16:15:05' and `end` < '2025-04-23 19:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 19:15:19] Production.INFO: count ==3972 [2025-04-23 19:15:20] Production.ERROR: pbx CDR StartTime 2025-04-23 16:15:05 - End Time 2025-04-23 19:15:05 [2025-04-23 19:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974339', 'tblTempUsageDetail_20' ) start [2025-04-23 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974339', 'tblTempUsageDetail_20' ) end [2025-04-23 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974339', 'tblTempVendorCDR_20' ) start [2025-04-23 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974339', 'tblTempVendorCDR_20' ) end [2025-04-23 19:15:20] Production.INFO: ProcessCDR(1,14974339,1,1,2) [2025-04-23 19:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974339', 'tblTempUsageDetail_20' ) start [2025-04-23 19:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974339', 'tblTempUsageDetail_20' ) end [2025-04-23 19:15:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 19:15:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 19:15:25] Production.INFO: ==17957== Releasing lock... [2025-04-23 19:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 19:15:25] Production.INFO: 57.75 MB #Memory Used# [2025-04-23 19:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 16:16:06 [end_date_ymd] => 2025-04-23 19:16:06 [RateCDR] => 1 ) [2025-04-23 19:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 16:16:06' and `end` < '2025-04-23 19:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 19:16:19] Production.INFO: count ==3959 [2025-04-23 19:16:20] Production.ERROR: pbx CDR StartTime 2025-04-23 16:16:06 - End Time 2025-04-23 19:16:06 [2025-04-23 19:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974344', 'tblTempUsageDetail_20' ) start [2025-04-23 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974344', 'tblTempUsageDetail_20' ) end [2025-04-23 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974344', 'tblTempVendorCDR_20' ) start [2025-04-23 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974344', 'tblTempVendorCDR_20' ) end [2025-04-23 19:16:20] Production.INFO: ProcessCDR(1,14974344,1,1,2) [2025-04-23 19:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974344', 'tblTempUsageDetail_20' ) start [2025-04-23 19:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974344', 'tblTempUsageDetail_20' ) end [2025-04-23 19:16:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 19:16:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 19:16:25] Production.INFO: ==18028== Releasing lock... [2025-04-23 19:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 19:16:25] Production.INFO: 57.75 MB #Memory Used# [2025-04-23 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 16:17:05 [end_date_ymd] => 2025-04-23 19:17:05 [RateCDR] => 1 ) [2025-04-23 19:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 16:17:05' and `end` < '2025-04-23 19:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 19:17:18] Production.INFO: count ==3959 [2025-04-23 19:17:19] Production.ERROR: pbx CDR StartTime 2025-04-23 16:17:05 - End Time 2025-04-23 19:17:05 [2025-04-23 19:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974349', 'tblTempUsageDetail_20' ) start [2025-04-23 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974349', 'tblTempUsageDetail_20' ) end [2025-04-23 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974349', 'tblTempVendorCDR_20' ) start [2025-04-23 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974349', 'tblTempVendorCDR_20' ) end [2025-04-23 19:17:20] Production.INFO: ProcessCDR(1,14974349,1,1,2) [2025-04-23 19:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974349', 'tblTempUsageDetail_20' ) start [2025-04-23 19:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974349', 'tblTempUsageDetail_20' ) end [2025-04-23 19:17:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 19:17:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 19:17:25] Production.INFO: ==18097== Releasing lock... [2025-04-23 19:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 19:17:25] Production.INFO: 57.75 MB #Memory Used# [2025-04-23 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 16:18:05 [end_date_ymd] => 2025-04-23 19:18:05 [RateCDR] => 1 ) [2025-04-23 19:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 16:18:05' and `end` < '2025-04-23 19:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 19:18:19] Production.INFO: count ==3952 [2025-04-23 19:18:20] Production.ERROR: pbx CDR StartTime 2025-04-23 16:18:05 - End Time 2025-04-23 19:18:05 [2025-04-23 19:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974354', 'tblTempUsageDetail_20' ) start [2025-04-23 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974354', 'tblTempUsageDetail_20' ) end [2025-04-23 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974354', 'tblTempVendorCDR_20' ) start [2025-04-23 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974354', 'tblTempVendorCDR_20' ) end [2025-04-23 19:18:20] Production.INFO: ProcessCDR(1,14974354,1,1,2) [2025-04-23 19:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974354', 'tblTempUsageDetail_20' ) start [2025-04-23 19:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974354', 'tblTempUsageDetail_20' ) end [2025-04-23 19:18:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 19:18:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 19:18:23] Production.INFO: ==18170== Releasing lock... [2025-04-23 19:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 19:18:23] Production.INFO: 57.5 MB #Memory Used# [2025-04-23 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 16:19:05 [end_date_ymd] => 2025-04-23 19:19:05 [RateCDR] => 1 ) [2025-04-23 19:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 16:19:05' and `end` < '2025-04-23 19:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 19:19:18] Production.INFO: count ==3921 [2025-04-23 19:19:20] Production.ERROR: pbx CDR StartTime 2025-04-23 16:19:05 - End Time 2025-04-23 19:19:05 [2025-04-23 19:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974359', 'tblTempUsageDetail_20' ) start [2025-04-23 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974359', 'tblTempUsageDetail_20' ) end [2025-04-23 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974359', 'tblTempVendorCDR_20' ) start [2025-04-23 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974359', 'tblTempVendorCDR_20' ) end [2025-04-23 19:19:20] Production.INFO: ProcessCDR(1,14974359,1,1,2) [2025-04-23 19:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974359', 'tblTempUsageDetail_20' ) start [2025-04-23 19:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974359', 'tblTempUsageDetail_20' ) end [2025-04-23 19:19:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 19:19:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 19:19:25] Production.INFO: ==18245== Releasing lock... [2025-04-23 19:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 19:19:25] Production.INFO: 57.25 MB #Memory Used# [2025-04-23 19:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 16:20:05 [end_date_ymd] => 2025-04-23 19:20:05 [RateCDR] => 1 ) [2025-04-23 19:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 16:20:05' and `end` < '2025-04-23 19:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 19:20:19] Production.INFO: count ==3910 [2025-04-23 19:20:20] Production.ERROR: pbx CDR StartTime 2025-04-23 16:20:05 - End Time 2025-04-23 19:20:05 [2025-04-23 19:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974365', 'tblTempUsageDetail_20' ) start [2025-04-23 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974365', 'tblTempUsageDetail_20' ) end [2025-04-23 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974365', 'tblTempVendorCDR_20' ) start [2025-04-23 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974365', 'tblTempVendorCDR_20' ) end [2025-04-23 19:20:20] Production.INFO: ProcessCDR(1,14974365,1,1,2) [2025-04-23 19:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974365', 'tblTempUsageDetail_20' ) start [2025-04-23 19:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974365', 'tblTempUsageDetail_20' ) end [2025-04-23 19:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 19:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 19:20:23] Production.INFO: ==18370== Releasing lock... [2025-04-23 19:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 19:20:23] Production.INFO: 57.25 MB #Memory Used# [2025-04-23 19:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 16:21:04 [end_date_ymd] => 2025-04-23 19:21:04 [RateCDR] => 1 ) [2025-04-23 19:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 16:21:04' and `end` < '2025-04-23 19:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 19:21:18] Production.INFO: count ==3835 [2025-04-23 19:21:19] Production.ERROR: pbx CDR StartTime 2025-04-23 16:21:04 - End Time 2025-04-23 19:21:04 [2025-04-23 19:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974370', 'tblTempUsageDetail_20' ) start [2025-04-23 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974370', 'tblTempUsageDetail_20' ) end [2025-04-23 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974370', 'tblTempVendorCDR_20' ) start [2025-04-23 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974370', 'tblTempVendorCDR_20' ) end [2025-04-23 19:21:19] Production.INFO: ProcessCDR(1,14974370,1,1,2) [2025-04-23 19:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974370', 'tblTempUsageDetail_20' ) start [2025-04-23 19:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974370', 'tblTempUsageDetail_20' ) end [2025-04-23 19:21:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 19:21:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 19:21:24] Production.INFO: ==18445== Releasing lock... [2025-04-23 19:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 19:21:24] Production.INFO: 56.75 MB #Memory Used# [2025-04-23 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 16:22:05 [end_date_ymd] => 2025-04-23 19:22:05 [RateCDR] => 1 ) [2025-04-23 19:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 16:22:05' and `end` < '2025-04-23 19:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 19:22:18] Production.INFO: count ==3813 [2025-04-23 19:22:20] Production.ERROR: pbx CDR StartTime 2025-04-23 16:22:05 - End Time 2025-04-23 19:22:05 [2025-04-23 19:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974375', 'tblTempUsageDetail_20' ) start [2025-04-23 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974375', 'tblTempUsageDetail_20' ) end [2025-04-23 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974375', 'tblTempVendorCDR_20' ) start [2025-04-23 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974375', 'tblTempVendorCDR_20' ) end [2025-04-23 19:22:20] Production.INFO: ProcessCDR(1,14974375,1,1,2) [2025-04-23 19:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974375', 'tblTempUsageDetail_20' ) start [2025-04-23 19:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974375', 'tblTempUsageDetail_20' ) end [2025-04-23 19:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 19:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 19:22:23] Production.INFO: ==18523== Releasing lock... [2025-04-23 19:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 19:22:23] Production.INFO: 56.5 MB #Memory Used# [2025-04-23 19:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 16:23:04 [end_date_ymd] => 2025-04-23 19:23:04 [RateCDR] => 1 ) [2025-04-23 19:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 16:23:04' and `end` < '2025-04-23 19:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 19:23:18] Production.INFO: count ==3797 [2025-04-23 19:23:19] Production.ERROR: pbx CDR StartTime 2025-04-23 16:23:04 - End Time 2025-04-23 19:23:04 [2025-04-23 19:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974380', 'tblTempUsageDetail_20' ) start [2025-04-23 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974380', 'tblTempUsageDetail_20' ) end [2025-04-23 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974380', 'tblTempVendorCDR_20' ) start [2025-04-23 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974380', 'tblTempVendorCDR_20' ) end [2025-04-23 19:23:19] Production.INFO: ProcessCDR(1,14974380,1,1,2) [2025-04-23 19:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974380', 'tblTempUsageDetail_20' ) start [2025-04-23 19:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974380', 'tblTempUsageDetail_20' ) end [2025-04-23 19:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 19:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 19:23:22] Production.INFO: ==18596== Releasing lock... [2025-04-23 19:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 19:23:22] Production.INFO: 56.5 MB #Memory Used# [2025-04-23 19:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 16:24:05 [end_date_ymd] => 2025-04-23 19:24:05 [RateCDR] => 1 ) [2025-04-23 19:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 16:24:05' and `end` < '2025-04-23 19:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 19:24:18] Production.INFO: count ==3788 [2025-04-23 19:24:19] Production.ERROR: pbx CDR StartTime 2025-04-23 16:24:05 - End Time 2025-04-23 19:24:05 [2025-04-23 19:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974385', 'tblTempUsageDetail_20' ) start [2025-04-23 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974385', 'tblTempUsageDetail_20' ) end [2025-04-23 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974385', 'tblTempVendorCDR_20' ) start [2025-04-23 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974385', 'tblTempVendorCDR_20' ) end [2025-04-23 19:24:19] Production.INFO: ProcessCDR(1,14974385,1,1,2) [2025-04-23 19:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974385', 'tblTempUsageDetail_20' ) start [2025-04-23 19:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974385', 'tblTempUsageDetail_20' ) end [2025-04-23 19:24:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 19:24:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 19:24:23] Production.INFO: ==18671== Releasing lock... [2025-04-23 19:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 19:24:23] Production.INFO: 56.25 MB #Memory Used# [2025-04-23 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 16:25:05 [end_date_ymd] => 2025-04-23 19:25:05 [RateCDR] => 1 ) [2025-04-23 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-04-23 16:25:05' and `end` < '2025-04-23 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-04-23 19:25:18] Production.INFO: count ==3782 [2025-04-23 19:25:20] Production.ERROR: pbx CDR StartTime 2025-04-23 16:25:05 - End Time 2025-04-23 19:25:05 [2025-04-23 19:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974390', 'tblTempUsageDetail_20' ) start [2025-04-23 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974390', 'tblTempUsageDetail_20' ) end [2025-04-23 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974390', 'tblTempVendorCDR_20' ) start [2025-04-23 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974390', 'tblTempVendorCDR_20' ) end [2025-04-23 19:25:20] Production.INFO: ProcessCDR(1,14974390,1,1,2) [2025-04-23 19:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974390', 'tblTempUsageDetail_20' ) start [2025-04-23 19:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974390', 'tblTempUsageDetail_20' ) end [2025-04-23 19:25:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 19:25:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 19:25:24] Production.INFO: ==18742== Releasing lock... [2025-04-23 19:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 19:25:24] Production.INFO: 56.5 MB #Memory Used# [2025-04-23 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 16:26:05 [end_date_ymd] => 2025-04-23 19:26:05 [RateCDR] => 1 ) [2025-04-23 19:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 16:26:05' and `end` < '2025-04-23 19:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 19:26:18] Production.INFO: count ==3763 [2025-04-23 19:26:19] Production.ERROR: pbx CDR StartTime 2025-04-23 16:26:05 - End Time 2025-04-23 19:26:05 [2025-04-23 19:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974395', 'tblTempUsageDetail_20' ) start [2025-04-23 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974395', 'tblTempUsageDetail_20' ) end [2025-04-23 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974395', 'tblTempVendorCDR_20' ) start [2025-04-23 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974395', 'tblTempVendorCDR_20' ) end [2025-04-23 19:26:19] Production.INFO: ProcessCDR(1,14974395,1,1,2) [2025-04-23 19:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974395', 'tblTempUsageDetail_20' ) start [2025-04-23 19:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974395', 'tblTempUsageDetail_20' ) end [2025-04-23 19:26:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 19:26:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 19:26:24] Production.INFO: ==18818== Releasing lock... [2025-04-23 19:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 19:26:24] Production.INFO: 56.25 MB #Memory Used# [2025-04-23 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 16:27:05 [end_date_ymd] => 2025-04-23 19:27:05 [RateCDR] => 1 ) [2025-04-23 19:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 16:27:05' and `end` < '2025-04-23 19:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 19:27:18] Production.INFO: count ==3769 [2025-04-23 19:27:19] Production.ERROR: pbx CDR StartTime 2025-04-23 16:27:05 - End Time 2025-04-23 19:27:05 [2025-04-23 19:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974400', 'tblTempUsageDetail_20' ) start [2025-04-23 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974400', 'tblTempUsageDetail_20' ) end [2025-04-23 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974400', 'tblTempVendorCDR_20' ) start [2025-04-23 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974400', 'tblTempVendorCDR_20' ) end [2025-04-23 19:27:20] Production.INFO: ProcessCDR(1,14974400,1,1,2) [2025-04-23 19:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974400', 'tblTempUsageDetail_20' ) start [2025-04-23 19:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974400', 'tblTempUsageDetail_20' ) end [2025-04-23 19:27:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 19:27:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 19:27:23] Production.INFO: ==18892== Releasing lock... [2025-04-23 19:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 19:27:23] Production.INFO: 56.25 MB #Memory Used# [2025-04-23 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 16:28:05 [end_date_ymd] => 2025-04-23 19:28:05 [RateCDR] => 1 ) [2025-04-23 19:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 16:28:05' and `end` < '2025-04-23 19:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 19:28:18] Production.INFO: count ==3743 [2025-04-23 19:28:19] Production.ERROR: pbx CDR StartTime 2025-04-23 16:28:05 - End Time 2025-04-23 19:28:05 [2025-04-23 19:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974405', 'tblTempUsageDetail_20' ) start [2025-04-23 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974405', 'tblTempUsageDetail_20' ) end [2025-04-23 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974405', 'tblTempVendorCDR_20' ) start [2025-04-23 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974405', 'tblTempVendorCDR_20' ) end [2025-04-23 19:28:19] Production.INFO: ProcessCDR(1,14974405,1,1,2) [2025-04-23 19:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974405', 'tblTempUsageDetail_20' ) start [2025-04-23 19:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974405', 'tblTempUsageDetail_20' ) end [2025-04-23 19:28:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 19:28:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 19:28:24] Production.INFO: ==18974== Releasing lock... [2025-04-23 19:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 19:28:24] Production.INFO: 56.25 MB #Memory Used# [2025-04-23 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 16:29:05 [end_date_ymd] => 2025-04-23 19:29:05 [RateCDR] => 1 ) [2025-04-23 19:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 16:29:05' and `end` < '2025-04-23 19:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 19:29:18] Production.INFO: count ==3723 [2025-04-23 19:29:19] Production.ERROR: pbx CDR StartTime 2025-04-23 16:29:05 - End Time 2025-04-23 19:29:05 [2025-04-23 19:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974410', 'tblTempUsageDetail_20' ) start [2025-04-23 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974410', 'tblTempUsageDetail_20' ) end [2025-04-23 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974410', 'tblTempVendorCDR_20' ) start [2025-04-23 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974410', 'tblTempVendorCDR_20' ) end [2025-04-23 19:29:20] Production.INFO: ProcessCDR(1,14974410,1,1,2) [2025-04-23 19:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974410', 'tblTempUsageDetail_20' ) start [2025-04-23 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974410', 'tblTempUsageDetail_20' ) end [2025-04-23 19:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 19:29:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 19:29:23] Production.INFO: ==19050== Releasing lock... [2025-04-23 19:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 19:29:23] Production.INFO: 56 MB #Memory Used# [2025-04-23 19:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 16:30:05 [end_date_ymd] => 2025-04-23 19:30:05 [RateCDR] => 1 ) [2025-04-23 19:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 16:30:05' and `end` < '2025-04-23 19:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 19:30:19] Production.INFO: count ==3718 [2025-04-23 19:30:20] Production.ERROR: pbx CDR StartTime 2025-04-23 16:30:05 - End Time 2025-04-23 19:30:05 [2025-04-23 19:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974415', 'tblTempUsageDetail_20' ) start [2025-04-23 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974415', 'tblTempUsageDetail_20' ) end [2025-04-23 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974415', 'tblTempVendorCDR_20' ) start [2025-04-23 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974415', 'tblTempVendorCDR_20' ) end [2025-04-23 19:30:20] Production.INFO: ProcessCDR(1,14974415,1,1,2) [2025-04-23 19:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974415', 'tblTempUsageDetail_20' ) start [2025-04-23 19:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974415', 'tblTempUsageDetail_20' ) end [2025-04-23 19:30:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 19:30:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 19:30:25] Production.INFO: ==19125== Releasing lock... [2025-04-23 19:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 19:30:25] Production.INFO: 55.75 MB #Memory Used# [2025-04-23 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 16:31:05 [end_date_ymd] => 2025-04-23 19:31:05 [RateCDR] => 1 ) [2025-04-23 19:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 16:31:05' and `end` < '2025-04-23 19:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 19:31:18] Production.INFO: count ==3622 [2025-04-23 19:31:19] Production.ERROR: pbx CDR StartTime 2025-04-23 16:31:05 - End Time 2025-04-23 19:31:05 [2025-04-23 19:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974421', 'tblTempUsageDetail_20' ) start [2025-04-23 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974421', 'tblTempUsageDetail_20' ) end [2025-04-23 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974421', 'tblTempVendorCDR_20' ) start [2025-04-23 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974421', 'tblTempVendorCDR_20' ) end [2025-04-23 19:31:19] Production.INFO: ProcessCDR(1,14974421,1,1,2) [2025-04-23 19:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974421', 'tblTempUsageDetail_20' ) start [2025-04-23 19:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974421', 'tblTempUsageDetail_20' ) end [2025-04-23 19:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 19:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 19:31:22] Production.INFO: ==19202== Releasing lock... [2025-04-23 19:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 19:31:22] Production.INFO: 55 MB #Memory Used# [2025-04-23 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 16:32:05 [end_date_ymd] => 2025-04-23 19:32:05 [RateCDR] => 1 ) [2025-04-23 19:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 16:32:05' and `end` < '2025-04-23 19:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 19:32:18] Production.INFO: count ==3618 [2025-04-23 19:32:19] Production.ERROR: pbx CDR StartTime 2025-04-23 16:32:05 - End Time 2025-04-23 19:32:05 [2025-04-23 19:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974426', 'tblTempUsageDetail_20' ) start [2025-04-23 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974426', 'tblTempUsageDetail_20' ) end [2025-04-23 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974426', 'tblTempVendorCDR_20' ) start [2025-04-23 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974426', 'tblTempVendorCDR_20' ) end [2025-04-23 19:32:20] Production.INFO: ProcessCDR(1,14974426,1,1,2) [2025-04-23 19:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974426', 'tblTempUsageDetail_20' ) start [2025-04-23 19:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974426', 'tblTempUsageDetail_20' ) end [2025-04-23 19:32:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 19:32:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 19:32:23] Production.INFO: ==19279== Releasing lock... [2025-04-23 19:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 19:32:23] Production.INFO: 55.75 MB #Memory Used# [2025-04-23 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 16:33:05 [end_date_ymd] => 2025-04-23 19:33:05 [RateCDR] => 1 ) [2025-04-23 19:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 16:33:05' and `end` < '2025-04-23 19:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 19:33:18] Production.INFO: count ==3613 [2025-04-23 19:33:19] Production.ERROR: pbx CDR StartTime 2025-04-23 16:33:05 - End Time 2025-04-23 19:33:05 [2025-04-23 19:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974431', 'tblTempUsageDetail_20' ) start [2025-04-23 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974431', 'tblTempUsageDetail_20' ) end [2025-04-23 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974431', 'tblTempVendorCDR_20' ) start [2025-04-23 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974431', 'tblTempVendorCDR_20' ) end [2025-04-23 19:33:19] Production.INFO: ProcessCDR(1,14974431,1,1,2) [2025-04-23 19:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974431', 'tblTempUsageDetail_20' ) start [2025-04-23 19:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974431', 'tblTempUsageDetail_20' ) end [2025-04-23 19:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 19:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 19:33:23] Production.INFO: ==19358== Releasing lock... [2025-04-23 19:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 19:33:23] Production.INFO: 55 MB #Memory Used# [2025-04-23 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 16:34:05 [end_date_ymd] => 2025-04-23 19:34:05 [RateCDR] => 1 ) [2025-04-23 19:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 16:34:05' and `end` < '2025-04-23 19:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 19:34:18] Production.INFO: count ==3585 [2025-04-23 19:34:19] Production.ERROR: pbx CDR StartTime 2025-04-23 16:34:05 - End Time 2025-04-23 19:34:05 [2025-04-23 19:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974436', 'tblTempUsageDetail_20' ) start [2025-04-23 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974436', 'tblTempUsageDetail_20' ) end [2025-04-23 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974436', 'tblTempVendorCDR_20' ) start [2025-04-23 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974436', 'tblTempVendorCDR_20' ) end [2025-04-23 19:34:19] Production.INFO: ProcessCDR(1,14974436,1,1,2) [2025-04-23 19:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974436', 'tblTempUsageDetail_20' ) start [2025-04-23 19:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974436', 'tblTempUsageDetail_20' ) end [2025-04-23 19:34:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 19:34:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 19:34:23] Production.INFO: ==19456== Releasing lock... [2025-04-23 19:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 19:34:23] Production.INFO: 55 MB #Memory Used# [2025-04-23 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 16:35:05 [end_date_ymd] => 2025-04-23 19:35:05 [RateCDR] => 1 ) [2025-04-23 19:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 16:35:05' and `end` < '2025-04-23 19:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 19:35:18] Production.INFO: count ==3579 [2025-04-23 19:35:19] Production.ERROR: pbx CDR StartTime 2025-04-23 16:35:05 - End Time 2025-04-23 19:35:05 [2025-04-23 19:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974441', 'tblTempUsageDetail_20' ) start [2025-04-23 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974441', 'tblTempUsageDetail_20' ) end [2025-04-23 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974441', 'tblTempVendorCDR_20' ) start [2025-04-23 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974441', 'tblTempVendorCDR_20' ) end [2025-04-23 19:35:19] Production.INFO: ProcessCDR(1,14974441,1,1,2) [2025-04-23 19:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974441', 'tblTempUsageDetail_20' ) start [2025-04-23 19:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974441', 'tblTempUsageDetail_20' ) end [2025-04-23 19:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 19:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 19:35:22] Production.INFO: ==19584== Releasing lock... [2025-04-23 19:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 19:35:22] Production.INFO: 55.25 MB #Memory Used# [2025-04-23 19:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 16:36:04 [end_date_ymd] => 2025-04-23 19:36:04 [RateCDR] => 1 ) [2025-04-23 19:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 16:36:04' and `end` < '2025-04-23 19:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 19:36:18] Production.INFO: count ==3567 [2025-04-23 19:36:19] Production.ERROR: pbx CDR StartTime 2025-04-23 16:36:04 - End Time 2025-04-23 19:36:04 [2025-04-23 19:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974446', 'tblTempUsageDetail_20' ) start [2025-04-23 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974446', 'tblTempUsageDetail_20' ) end [2025-04-23 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974446', 'tblTempVendorCDR_20' ) start [2025-04-23 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974446', 'tblTempVendorCDR_20' ) end [2025-04-23 19:36:19] Production.INFO: ProcessCDR(1,14974446,1,1,2) [2025-04-23 19:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974446', 'tblTempUsageDetail_20' ) start [2025-04-23 19:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974446', 'tblTempUsageDetail_20' ) end [2025-04-23 19:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 19:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 19:36:22] Production.INFO: ==19676== Releasing lock... [2025-04-23 19:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 19:36:22] Production.INFO: 54.75 MB #Memory Used# [2025-04-23 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 16:37:05 [end_date_ymd] => 2025-04-23 19:37:05 [RateCDR] => 1 ) [2025-04-23 19:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 16:37:05' and `end` < '2025-04-23 19:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 19:37:18] Production.INFO: count ==3544 [2025-04-23 19:37:19] Production.ERROR: pbx CDR StartTime 2025-04-23 16:37:05 - End Time 2025-04-23 19:37:05 [2025-04-23 19:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974451', 'tblTempUsageDetail_20' ) start [2025-04-23 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974451', 'tblTempUsageDetail_20' ) end [2025-04-23 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974451', 'tblTempVendorCDR_20' ) start [2025-04-23 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974451', 'tblTempVendorCDR_20' ) end [2025-04-23 19:37:20] Production.INFO: ProcessCDR(1,14974451,1,1,2) [2025-04-23 19:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974451', 'tblTempUsageDetail_20' ) start [2025-04-23 19:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974451', 'tblTempUsageDetail_20' ) end [2025-04-23 19:37:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 19:37:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 19:37:24] Production.INFO: ==19768== Releasing lock... [2025-04-23 19:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 19:37:24] Production.INFO: 56.25 MB #Memory Used# [2025-04-23 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 16:38:05 [end_date_ymd] => 2025-04-23 19:38:05 [RateCDR] => 1 ) [2025-04-23 19:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 16:38:05' and `end` < '2025-04-23 19:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 19:38:18] Production.INFO: count ==3537 [2025-04-23 19:38:19] Production.ERROR: pbx CDR StartTime 2025-04-23 16:38:05 - End Time 2025-04-23 19:38:05 [2025-04-23 19:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974456', 'tblTempUsageDetail_20' ) start [2025-04-23 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974456', 'tblTempUsageDetail_20' ) end [2025-04-23 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974456', 'tblTempVendorCDR_20' ) start [2025-04-23 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974456', 'tblTempVendorCDR_20' ) end [2025-04-23 19:38:20] Production.INFO: ProcessCDR(1,14974456,1,1,2) [2025-04-23 19:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974456', 'tblTempUsageDetail_20' ) start [2025-04-23 19:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974456', 'tblTempUsageDetail_20' ) end [2025-04-23 19:38:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 19:38:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 19:38:24] Production.INFO: ==19858== Releasing lock... [2025-04-23 19:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 19:38:24] Production.INFO: 55.5 MB #Memory Used# [2025-04-23 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 16:39:05 [end_date_ymd] => 2025-04-23 19:39:05 [RateCDR] => 1 ) [2025-04-23 19:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 16:39:05' and `end` < '2025-04-23 19:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 19:39:18] Production.INFO: count ==3529 [2025-04-23 19:39:19] Production.ERROR: pbx CDR StartTime 2025-04-23 16:39:05 - End Time 2025-04-23 19:39:05 [2025-04-23 19:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974461', 'tblTempUsageDetail_20' ) start [2025-04-23 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974461', 'tblTempUsageDetail_20' ) end [2025-04-23 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974461', 'tblTempVendorCDR_20' ) start [2025-04-23 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974461', 'tblTempVendorCDR_20' ) end [2025-04-23 19:39:19] Production.INFO: ProcessCDR(1,14974461,1,1,2) [2025-04-23 19:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974461', 'tblTempUsageDetail_20' ) start [2025-04-23 19:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974461', 'tblTempUsageDetail_20' ) end [2025-04-23 19:39:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 19:39:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 19:39:23] Production.INFO: ==19950== Releasing lock... [2025-04-23 19:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 19:39:23] Production.INFO: 54.5 MB #Memory Used# [2025-04-23 19:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 16:40:05 [end_date_ymd] => 2025-04-23 19:40:05 [RateCDR] => 1 ) [2025-04-23 19:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 16:40:05' and `end` < '2025-04-23 19:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 19:40:18] Production.INFO: count ==3505 [2025-04-23 19:40:19] Production.ERROR: pbx CDR StartTime 2025-04-23 16:40:05 - End Time 2025-04-23 19:40:05 [2025-04-23 19:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974467', 'tblTempUsageDetail_20' ) start [2025-04-23 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974467', 'tblTempUsageDetail_20' ) end [2025-04-23 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974467', 'tblTempVendorCDR_20' ) start [2025-04-23 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974467', 'tblTempVendorCDR_20' ) end [2025-04-23 19:40:19] Production.INFO: ProcessCDR(1,14974467,1,1,2) [2025-04-23 19:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974467', 'tblTempUsageDetail_20' ) start [2025-04-23 19:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974467', 'tblTempUsageDetail_20' ) end [2025-04-23 19:40:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 19:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 19:40:24] Production.INFO: ==20050== Releasing lock... [2025-04-23 19:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 19:40:24] Production.INFO: 54.25 MB #Memory Used# [2025-04-23 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 16:41:05 [end_date_ymd] => 2025-04-23 19:41:05 [RateCDR] => 1 ) [2025-04-23 19:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 16:41:05' and `end` < '2025-04-23 19:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 19:41:18] Production.INFO: count ==3430 [2025-04-23 19:41:19] Production.ERROR: pbx CDR StartTime 2025-04-23 16:41:05 - End Time 2025-04-23 19:41:05 [2025-04-23 19:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974472', 'tblTempUsageDetail_20' ) start [2025-04-23 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974472', 'tblTempUsageDetail_20' ) end [2025-04-23 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974472', 'tblTempVendorCDR_20' ) start [2025-04-23 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974472', 'tblTempVendorCDR_20' ) end [2025-04-23 19:41:19] Production.INFO: ProcessCDR(1,14974472,1,1,2) [2025-04-23 19:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974472', 'tblTempUsageDetail_20' ) start [2025-04-23 19:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974472', 'tblTempUsageDetail_20' ) end [2025-04-23 19:41:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 19:41:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 19:41:25] Production.INFO: ==20158== Releasing lock... [2025-04-23 19:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 19:41:25] Production.INFO: 53.75 MB #Memory Used# [2025-04-23 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 16:42:05 [end_date_ymd] => 2025-04-23 19:42:05 [RateCDR] => 1 ) [2025-04-23 19:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 16:42:05' and `end` < '2025-04-23 19:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 19:42:18] Production.INFO: count ==3416 [2025-04-23 19:42:19] Production.ERROR: pbx CDR StartTime 2025-04-23 16:42:05 - End Time 2025-04-23 19:42:05 [2025-04-23 19:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974477', 'tblTempUsageDetail_20' ) start [2025-04-23 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974477', 'tblTempUsageDetail_20' ) end [2025-04-23 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974477', 'tblTempVendorCDR_20' ) start [2025-04-23 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974477', 'tblTempVendorCDR_20' ) end [2025-04-23 19:42:19] Production.INFO: ProcessCDR(1,14974477,1,1,2) [2025-04-23 19:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974477', 'tblTempUsageDetail_20' ) start [2025-04-23 19:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974477', 'tblTempUsageDetail_20' ) end [2025-04-23 19:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 19:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 19:42:23] Production.INFO: ==20253== Releasing lock... [2025-04-23 19:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 19:42:23] Production.INFO: 53.5 MB #Memory Used# [2025-04-23 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 16:43:05 [end_date_ymd] => 2025-04-23 19:43:05 [RateCDR] => 1 ) [2025-04-23 19:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 16:43:05' and `end` < '2025-04-23 19:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 19:43:18] Production.INFO: count ==3403 [2025-04-23 19:43:19] Production.ERROR: pbx CDR StartTime 2025-04-23 16:43:05 - End Time 2025-04-23 19:43:05 [2025-04-23 19:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974482', 'tblTempUsageDetail_20' ) start [2025-04-23 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974482', 'tblTempUsageDetail_20' ) end [2025-04-23 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974482', 'tblTempVendorCDR_20' ) start [2025-04-23 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974482', 'tblTempVendorCDR_20' ) end [2025-04-23 19:43:19] Production.INFO: ProcessCDR(1,14974482,1,1,2) [2025-04-23 19:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974482', 'tblTempUsageDetail_20' ) start [2025-04-23 19:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974482', 'tblTempUsageDetail_20' ) end [2025-04-23 19:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 19:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 19:43:22] Production.INFO: ==20347== Releasing lock... [2025-04-23 19:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 19:43:22] Production.INFO: 53.5 MB #Memory Used# [2025-04-23 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 16:44:05 [end_date_ymd] => 2025-04-23 19:44:05 [RateCDR] => 1 ) [2025-04-23 19:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 16:44:05' and `end` < '2025-04-23 19:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 19:44:19] Production.INFO: count ==3389 [2025-04-23 19:44:20] Production.ERROR: pbx CDR StartTime 2025-04-23 16:44:05 - End Time 2025-04-23 19:44:05 [2025-04-23 19:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974487', 'tblTempUsageDetail_20' ) start [2025-04-23 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974487', 'tblTempUsageDetail_20' ) end [2025-04-23 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974487', 'tblTempVendorCDR_20' ) start [2025-04-23 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974487', 'tblTempVendorCDR_20' ) end [2025-04-23 19:44:20] Production.INFO: ProcessCDR(1,14974487,1,1,2) [2025-04-23 19:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974487', 'tblTempUsageDetail_20' ) start [2025-04-23 19:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974487', 'tblTempUsageDetail_20' ) end [2025-04-23 19:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 19:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 19:44:23] Production.INFO: ==20440== Releasing lock... [2025-04-23 19:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 19:44:23] Production.INFO: 53.25 MB #Memory Used# [2025-04-23 19:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 16:45:04 [end_date_ymd] => 2025-04-23 19:45:04 [RateCDR] => 1 ) [2025-04-23 19:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 16:45:04' and `end` < '2025-04-23 19:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 19:45:18] Production.INFO: count ==3376 [2025-04-23 19:45:19] Production.ERROR: pbx CDR StartTime 2025-04-23 16:45:04 - End Time 2025-04-23 19:45:04 [2025-04-23 19:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974492', 'tblTempUsageDetail_20' ) start [2025-04-23 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974492', 'tblTempUsageDetail_20' ) end [2025-04-23 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974492', 'tblTempVendorCDR_20' ) start [2025-04-23 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974492', 'tblTempVendorCDR_20' ) end [2025-04-23 19:45:19] Production.INFO: ProcessCDR(1,14974492,1,1,2) [2025-04-23 19:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974492', 'tblTempUsageDetail_20' ) start [2025-04-23 19:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974492', 'tblTempUsageDetail_20' ) end [2025-04-23 19:45:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 19:45:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 19:45:24] Production.INFO: ==20530== Releasing lock... [2025-04-23 19:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 19:45:24] Production.INFO: 53.75 MB #Memory Used# [2025-04-23 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 16:46:05 [end_date_ymd] => 2025-04-23 19:46:05 [RateCDR] => 1 ) [2025-04-23 19:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 16:46:05' and `end` < '2025-04-23 19:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 19:46:18] Production.INFO: count ==3348 [2025-04-23 19:46:19] Production.ERROR: pbx CDR StartTime 2025-04-23 16:46:05 - End Time 2025-04-23 19:46:05 [2025-04-23 19:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974497', 'tblTempUsageDetail_20' ) start [2025-04-23 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974497', 'tblTempUsageDetail_20' ) end [2025-04-23 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974497', 'tblTempVendorCDR_20' ) start [2025-04-23 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974497', 'tblTempVendorCDR_20' ) end [2025-04-23 19:46:19] Production.INFO: ProcessCDR(1,14974497,1,1,2) [2025-04-23 19:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974497', 'tblTempUsageDetail_20' ) start [2025-04-23 19:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974497', 'tblTempUsageDetail_20' ) end [2025-04-23 19:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 19:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 19:46:22] Production.INFO: ==20619== Releasing lock... [2025-04-23 19:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 19:46:22] Production.INFO: 53.25 MB #Memory Used# [2025-04-23 19:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 16:47:04 [end_date_ymd] => 2025-04-23 19:47:04 [RateCDR] => 1 ) [2025-04-23 19:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 16:47:04' and `end` < '2025-04-23 19:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 19:47:17] Production.INFO: count ==3335 [2025-04-23 19:47:18] Production.ERROR: pbx CDR StartTime 2025-04-23 16:47:04 - End Time 2025-04-23 19:47:04 [2025-04-23 19:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974502', 'tblTempUsageDetail_20' ) start [2025-04-23 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974502', 'tblTempUsageDetail_20' ) end [2025-04-23 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974502', 'tblTempVendorCDR_20' ) start [2025-04-23 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974502', 'tblTempVendorCDR_20' ) end [2025-04-23 19:47:18] Production.INFO: ProcessCDR(1,14974502,1,1,2) [2025-04-23 19:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974502', 'tblTempUsageDetail_20' ) start [2025-04-23 19:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974502', 'tblTempUsageDetail_20' ) end [2025-04-23 19:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 19:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 19:47:22] Production.INFO: ==20709== Releasing lock... [2025-04-23 19:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 19:47:22] Production.INFO: 53.25 MB #Memory Used# [2025-04-23 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 16:48:05 [end_date_ymd] => 2025-04-23 19:48:05 [RateCDR] => 1 ) [2025-04-23 19:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 16:48:05' and `end` < '2025-04-23 19:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 19:48:18] Production.INFO: count ==3330 [2025-04-23 19:48:19] Production.ERROR: pbx CDR StartTime 2025-04-23 16:48:05 - End Time 2025-04-23 19:48:05 [2025-04-23 19:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974506', 'tblTempUsageDetail_20' ) start [2025-04-23 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974506', 'tblTempUsageDetail_20' ) end [2025-04-23 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974506', 'tblTempVendorCDR_20' ) start [2025-04-23 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974506', 'tblTempVendorCDR_20' ) end [2025-04-23 19:48:19] Production.INFO: ProcessCDR(1,14974506,1,1,2) [2025-04-23 19:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974506', 'tblTempUsageDetail_20' ) start [2025-04-23 19:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974506', 'tblTempUsageDetail_20' ) end [2025-04-23 19:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 19:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 19:48:23] Production.INFO: ==20801== Releasing lock... [2025-04-23 19:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 19:48:23] Production.INFO: 53 MB #Memory Used# [2025-04-23 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 16:49:05 [end_date_ymd] => 2025-04-23 19:49:05 [RateCDR] => 1 ) [2025-04-23 19:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 16:49:05' and `end` < '2025-04-23 19:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 19:49:19] Production.INFO: count ==3325 [2025-04-23 19:49:20] Production.ERROR: pbx CDR StartTime 2025-04-23 16:49:05 - End Time 2025-04-23 19:49:05 [2025-04-23 19:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974512', 'tblTempUsageDetail_20' ) start [2025-04-23 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974512', 'tblTempUsageDetail_20' ) end [2025-04-23 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974512', 'tblTempVendorCDR_20' ) start [2025-04-23 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974512', 'tblTempVendorCDR_20' ) end [2025-04-23 19:49:20] Production.INFO: ProcessCDR(1,14974512,1,1,2) [2025-04-23 19:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974512', 'tblTempUsageDetail_20' ) start [2025-04-23 19:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974512', 'tblTempUsageDetail_20' ) end [2025-04-23 19:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 19:49:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 19:49:23] Production.INFO: ==20890== Releasing lock... [2025-04-23 19:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 19:49:23] Production.INFO: 52.75 MB #Memory Used# [2025-04-23 19:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 16:50:05 [end_date_ymd] => 2025-04-23 19:50:05 [RateCDR] => 1 ) [2025-04-23 19:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 16:50:05' and `end` < '2025-04-23 19:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 19:50:18] Production.INFO: count ==3304 [2025-04-23 19:50:19] Production.ERROR: pbx CDR StartTime 2025-04-23 16:50:05 - End Time 2025-04-23 19:50:05 [2025-04-23 19:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974518', 'tblTempUsageDetail_20' ) start [2025-04-23 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974518', 'tblTempUsageDetail_20' ) end [2025-04-23 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974518', 'tblTempVendorCDR_20' ) start [2025-04-23 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974518', 'tblTempVendorCDR_20' ) end [2025-04-23 19:50:20] Production.INFO: ProcessCDR(1,14974518,1,1,2) [2025-04-23 19:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974518', 'tblTempUsageDetail_20' ) start [2025-04-23 19:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974518', 'tblTempUsageDetail_20' ) end [2025-04-23 19:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 19:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 19:50:24] Production.INFO: ==20977== Releasing lock... [2025-04-23 19:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 19:50:24] Production.INFO: 52.75 MB #Memory Used# [2025-04-23 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 16:51:05 [end_date_ymd] => 2025-04-23 19:51:05 [RateCDR] => 1 ) [2025-04-23 19:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 16:51:05' and `end` < '2025-04-23 19:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 19:51:18] Production.INFO: count ==3175 [2025-04-23 19:51:19] Production.ERROR: pbx CDR StartTime 2025-04-23 16:51:05 - End Time 2025-04-23 19:51:05 [2025-04-23 19:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974523', 'tblTempUsageDetail_20' ) start [2025-04-23 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974523', 'tblTempUsageDetail_20' ) end [2025-04-23 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974523', 'tblTempVendorCDR_20' ) start [2025-04-23 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974523', 'tblTempVendorCDR_20' ) end [2025-04-23 19:51:19] Production.INFO: ProcessCDR(1,14974523,1,1,2) [2025-04-23 19:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974523', 'tblTempUsageDetail_20' ) start [2025-04-23 19:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974523', 'tblTempUsageDetail_20' ) end [2025-04-23 19:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 19:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 19:51:22] Production.INFO: ==21104== Releasing lock... [2025-04-23 19:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 19:51:22] Production.INFO: 51.75 MB #Memory Used# [2025-04-23 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 16:52:05 [end_date_ymd] => 2025-04-23 19:52:05 [RateCDR] => 1 ) [2025-04-23 19:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 16:52:05' and `end` < '2025-04-23 19:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 19:52:18] Production.INFO: count ==3126 [2025-04-23 19:52:19] Production.ERROR: pbx CDR StartTime 2025-04-23 16:52:05 - End Time 2025-04-23 19:52:05 [2025-04-23 19:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974528', 'tblTempUsageDetail_20' ) start [2025-04-23 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974528', 'tblTempUsageDetail_20' ) end [2025-04-23 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974528', 'tblTempVendorCDR_20' ) start [2025-04-23 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974528', 'tblTempVendorCDR_20' ) end [2025-04-23 19:52:19] Production.INFO: ProcessCDR(1,14974528,1,1,2) [2025-04-23 19:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974528', 'tblTempUsageDetail_20' ) start [2025-04-23 19:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974528', 'tblTempUsageDetail_20' ) end [2025-04-23 19:52:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 19:52:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 19:52:24] Production.INFO: ==21208== Releasing lock... [2025-04-23 19:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 19:52:24] Production.INFO: 51.25 MB #Memory Used# [2025-04-23 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 16:53:05 [end_date_ymd] => 2025-04-23 19:53:05 [RateCDR] => 1 ) [2025-04-23 19:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 16:53:05' and `end` < '2025-04-23 19:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 19:53:18] Production.INFO: count ==3111 [2025-04-23 19:53:19] Production.ERROR: pbx CDR StartTime 2025-04-23 16:53:05 - End Time 2025-04-23 19:53:05 [2025-04-23 19:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974533', 'tblTempUsageDetail_20' ) start [2025-04-23 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974533', 'tblTempUsageDetail_20' ) end [2025-04-23 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974533', 'tblTempVendorCDR_20' ) start [2025-04-23 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974533', 'tblTempVendorCDR_20' ) end [2025-04-23 19:53:19] Production.INFO: ProcessCDR(1,14974533,1,1,2) [2025-04-23 19:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974533', 'tblTempUsageDetail_20' ) start [2025-04-23 19:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974533', 'tblTempUsageDetail_20' ) end [2025-04-23 19:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 19:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 19:53:22] Production.INFO: ==21296== Releasing lock... [2025-04-23 19:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 19:53:22] Production.INFO: 51.5 MB #Memory Used# [2025-04-23 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 16:54:05 [end_date_ymd] => 2025-04-23 19:54:05 [RateCDR] => 1 ) [2025-04-23 19:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 16:54:05' and `end` < '2025-04-23 19:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 19:54:18] Production.INFO: count ==3093 [2025-04-23 19:54:19] Production.ERROR: pbx CDR StartTime 2025-04-23 16:54:05 - End Time 2025-04-23 19:54:05 [2025-04-23 19:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974538', 'tblTempUsageDetail_20' ) start [2025-04-23 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974538', 'tblTempUsageDetail_20' ) end [2025-04-23 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974538', 'tblTempVendorCDR_20' ) start [2025-04-23 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974538', 'tblTempVendorCDR_20' ) end [2025-04-23 19:54:19] Production.INFO: ProcessCDR(1,14974538,1,1,2) [2025-04-23 19:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974538', 'tblTempUsageDetail_20' ) start [2025-04-23 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974538', 'tblTempUsageDetail_20' ) end [2025-04-23 19:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 19:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 19:54:22] Production.INFO: ==21391== Releasing lock... [2025-04-23 19:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 19:54:22] Production.INFO: 51.25 MB #Memory Used# [2025-04-23 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 16:55:05 [end_date_ymd] => 2025-04-23 19:55:05 [RateCDR] => 1 ) [2025-04-23 19:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 16:55:05' and `end` < '2025-04-23 19:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 19:55:18] Production.INFO: count ==3075 [2025-04-23 19:55:19] Production.ERROR: pbx CDR StartTime 2025-04-23 16:55:05 - End Time 2025-04-23 19:55:05 [2025-04-23 19:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974543', 'tblTempUsageDetail_20' ) start [2025-04-23 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974543', 'tblTempUsageDetail_20' ) end [2025-04-23 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974543', 'tblTempVendorCDR_20' ) start [2025-04-23 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974543', 'tblTempVendorCDR_20' ) end [2025-04-23 19:55:19] Production.INFO: ProcessCDR(1,14974543,1,1,2) [2025-04-23 19:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974543', 'tblTempUsageDetail_20' ) start [2025-04-23 19:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974543', 'tblTempUsageDetail_20' ) end [2025-04-23 19:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 19:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 19:55:23] Production.INFO: ==21476== Releasing lock... [2025-04-23 19:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 19:55:23] Production.INFO: 51 MB #Memory Used# [2025-04-23 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 16:56:05 [end_date_ymd] => 2025-04-23 19:56:05 [RateCDR] => 1 ) [2025-04-23 19:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 16:56:05' and `end` < '2025-04-23 19:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 19:56:18] Production.INFO: count ==3068 [2025-04-23 19:56:19] Production.ERROR: pbx CDR StartTime 2025-04-23 16:56:05 - End Time 2025-04-23 19:56:05 [2025-04-23 19:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974548', 'tblTempUsageDetail_20' ) start [2025-04-23 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974548', 'tblTempUsageDetail_20' ) end [2025-04-23 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974548', 'tblTempVendorCDR_20' ) start [2025-04-23 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974548', 'tblTempVendorCDR_20' ) end [2025-04-23 19:56:19] Production.INFO: ProcessCDR(1,14974548,1,1,2) [2025-04-23 19:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974548', 'tblTempUsageDetail_20' ) start [2025-04-23 19:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974548', 'tblTempUsageDetail_20' ) end [2025-04-23 19:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 19:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 19:56:23] Production.INFO: ==21570== Releasing lock... [2025-04-23 19:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 19:56:23] Production.INFO: 51 MB #Memory Used# [2025-04-23 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 16:57:05 [end_date_ymd] => 2025-04-23 19:57:05 [RateCDR] => 1 ) [2025-04-23 19:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 16:57:05' and `end` < '2025-04-23 19:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 19:57:18] Production.INFO: count ==3063 [2025-04-23 19:57:18] Production.ERROR: pbx CDR StartTime 2025-04-23 16:57:05 - End Time 2025-04-23 19:57:05 [2025-04-23 19:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974553', 'tblTempUsageDetail_20' ) start [2025-04-23 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974553', 'tblTempUsageDetail_20' ) end [2025-04-23 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974553', 'tblTempVendorCDR_20' ) start [2025-04-23 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974553', 'tblTempVendorCDR_20' ) end [2025-04-23 19:57:19] Production.INFO: ProcessCDR(1,14974553,1,1,2) [2025-04-23 19:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974553', 'tblTempUsageDetail_20' ) start [2025-04-23 19:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974553', 'tblTempUsageDetail_20' ) end [2025-04-23 19:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 19:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 19:57:22] Production.INFO: ==21659== Releasing lock... [2025-04-23 19:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 19:57:22] Production.INFO: 51 MB #Memory Used# [2025-04-23 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 16:58:05 [end_date_ymd] => 2025-04-23 19:58:05 [RateCDR] => 1 ) [2025-04-23 19:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 16:58:05' and `end` < '2025-04-23 19:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 19:58:18] Production.INFO: count ==3059 [2025-04-23 19:58:19] Production.ERROR: pbx CDR StartTime 2025-04-23 16:58:05 - End Time 2025-04-23 19:58:05 [2025-04-23 19:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974558', 'tblTempUsageDetail_20' ) start [2025-04-23 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974558', 'tblTempUsageDetail_20' ) end [2025-04-23 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974558', 'tblTempVendorCDR_20' ) start [2025-04-23 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974558', 'tblTempVendorCDR_20' ) end [2025-04-23 19:58:19] Production.INFO: ProcessCDR(1,14974558,1,1,2) [2025-04-23 19:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974558', 'tblTempUsageDetail_20' ) start [2025-04-23 19:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974558', 'tblTempUsageDetail_20' ) end [2025-04-23 19:58:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 19:58:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 19:58:24] Production.INFO: ==21750== Releasing lock... [2025-04-23 19:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 19:58:24] Production.INFO: 50.75 MB #Memory Used# [2025-04-23 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 16:59:05 [end_date_ymd] => 2025-04-23 19:59:05 [RateCDR] => 1 ) [2025-04-23 19:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 16:59:05' and `end` < '2025-04-23 19:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 19:59:18] Production.INFO: count ==3026 [2025-04-23 19:59:19] Production.ERROR: pbx CDR StartTime 2025-04-23 16:59:05 - End Time 2025-04-23 19:59:05 [2025-04-23 19:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974563', 'tblTempUsageDetail_20' ) start [2025-04-23 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974563', 'tblTempUsageDetail_20' ) end [2025-04-23 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974563', 'tblTempVendorCDR_20' ) start [2025-04-23 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974563', 'tblTempVendorCDR_20' ) end [2025-04-23 19:59:19] Production.INFO: ProcessCDR(1,14974563,1,1,2) [2025-04-23 19:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 19:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 19:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974563', 'tblTempUsageDetail_20' ) start [2025-04-23 19:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974563', 'tblTempUsageDetail_20' ) end [2025-04-23 19:59:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 19:59:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 19:59:24] Production.INFO: ==21845== Releasing lock... [2025-04-23 19:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 19:59:24] Production.INFO: 50.5 MB #Memory Used# [2025-04-23 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 17:00:06 [end_date_ymd] => 2025-04-23 20:00:06 [RateCDR] => 1 ) [2025-04-23 20:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 17:00:06' and `end` < '2025-04-23 20:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 20:00:19] Production.INFO: count ==3010 [2025-04-23 20:00:20] Production.ERROR: pbx CDR StartTime 2025-04-23 17:00:06 - End Time 2025-04-23 20:00:06 [2025-04-23 20:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974569', 'tblTempUsageDetail_20' ) start [2025-04-23 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974569', 'tblTempUsageDetail_20' ) end [2025-04-23 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974569', 'tblTempVendorCDR_20' ) start [2025-04-23 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974569', 'tblTempVendorCDR_20' ) end [2025-04-23 20:00:20] Production.INFO: ProcessCDR(1,14974569,1,1,2) [2025-04-23 20:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974569', 'tblTempUsageDetail_20' ) start [2025-04-23 20:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974569', 'tblTempUsageDetail_20' ) end [2025-04-23 20:00:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 20:00:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 20:00:25] Production.INFO: ==21936== Releasing lock... [2025-04-23 20:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 20:00:25] Production.INFO: 50.5 MB #Memory Used# [2025-04-23 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 17:01:05 [end_date_ymd] => 2025-04-23 20:01:05 [RateCDR] => 1 ) [2025-04-23 20:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 17:01:05' and `end` < '2025-04-23 20:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 20:01:18] Production.INFO: count ==2950 [2025-04-23 20:01:18] Production.ERROR: pbx CDR StartTime 2025-04-23 17:01:05 - End Time 2025-04-23 20:01:05 [2025-04-23 20:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974574', 'tblTempUsageDetail_20' ) start [2025-04-23 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974574', 'tblTempUsageDetail_20' ) end [2025-04-23 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974574', 'tblTempVendorCDR_20' ) start [2025-04-23 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974574', 'tblTempVendorCDR_20' ) end [2025-04-23 20:01:18] Production.INFO: ProcessCDR(1,14974574,1,1,2) [2025-04-23 20:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974574', 'tblTempUsageDetail_20' ) start [2025-04-23 20:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974574', 'tblTempUsageDetail_20' ) end [2025-04-23 20:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 20:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 20:01:22] Production.INFO: ==22083== Releasing lock... [2025-04-23 20:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 20:01:22] Production.INFO: 49.75 MB #Memory Used# [2025-04-23 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 17:02:05 [end_date_ymd] => 2025-04-23 20:02:05 [RateCDR] => 1 ) [2025-04-23 20:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 17:02:05' and `end` < '2025-04-23 20:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 20:02:18] Production.INFO: count ==2938 [2025-04-23 20:02:19] Production.ERROR: pbx CDR StartTime 2025-04-23 17:02:05 - End Time 2025-04-23 20:02:05 [2025-04-23 20:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974579', 'tblTempUsageDetail_20' ) start [2025-04-23 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974579', 'tblTempUsageDetail_20' ) end [2025-04-23 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974579', 'tblTempVendorCDR_20' ) start [2025-04-23 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974579', 'tblTempVendorCDR_20' ) end [2025-04-23 20:02:19] Production.INFO: ProcessCDR(1,14974579,1,1,2) [2025-04-23 20:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974579', 'tblTempUsageDetail_20' ) start [2025-04-23 20:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974579', 'tblTempUsageDetail_20' ) end [2025-04-23 20:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 20:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 20:02:22] Production.INFO: ==22174== Releasing lock... [2025-04-23 20:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 20:02:22] Production.INFO: 49.75 MB #Memory Used# [2025-04-23 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 17:03:05 [end_date_ymd] => 2025-04-23 20:03:05 [RateCDR] => 1 ) [2025-04-23 20:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 17:03:05' and `end` < '2025-04-23 20:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 20:03:18] Production.INFO: count ==2932 [2025-04-23 20:03:19] Production.ERROR: pbx CDR StartTime 2025-04-23 17:03:05 - End Time 2025-04-23 20:03:05 [2025-04-23 20:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974584', 'tblTempUsageDetail_20' ) start [2025-04-23 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974584', 'tblTempUsageDetail_20' ) end [2025-04-23 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974584', 'tblTempVendorCDR_20' ) start [2025-04-23 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974584', 'tblTempVendorCDR_20' ) end [2025-04-23 20:03:19] Production.INFO: ProcessCDR(1,14974584,1,1,2) [2025-04-23 20:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974584', 'tblTempUsageDetail_20' ) start [2025-04-23 20:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974584', 'tblTempUsageDetail_20' ) end [2025-04-23 20:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 20:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 20:03:23] Production.INFO: ==22265== Releasing lock... [2025-04-23 20:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 20:03:23] Production.INFO: 49.75 MB #Memory Used# [2025-04-23 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 17:04:05 [end_date_ymd] => 2025-04-23 20:04:05 [RateCDR] => 1 ) [2025-04-23 20:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 17:04:05' and `end` < '2025-04-23 20:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 20:04:18] Production.INFO: count ==2919 [2025-04-23 20:04:19] Production.ERROR: pbx CDR StartTime 2025-04-23 17:04:05 - End Time 2025-04-23 20:04:05 [2025-04-23 20:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974589', 'tblTempUsageDetail_20' ) start [2025-04-23 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974589', 'tblTempUsageDetail_20' ) end [2025-04-23 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974589', 'tblTempVendorCDR_20' ) start [2025-04-23 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974589', 'tblTempVendorCDR_20' ) end [2025-04-23 20:04:19] Production.INFO: ProcessCDR(1,14974589,1,1,2) [2025-04-23 20:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974589', 'tblTempUsageDetail_20' ) start [2025-04-23 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974589', 'tblTempUsageDetail_20' ) end [2025-04-23 20:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 20:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 20:04:22] Production.INFO: ==22350== Releasing lock... [2025-04-23 20:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 20:04:22] Production.INFO: 49.75 MB #Memory Used# [2025-04-23 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 17:05:05 [end_date_ymd] => 2025-04-23 20:05:05 [RateCDR] => 1 ) [2025-04-23 20:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 17:05:05' and `end` < '2025-04-23 20:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 20:05:18] Production.INFO: count ==2903 [2025-04-23 20:05:19] Production.ERROR: pbx CDR StartTime 2025-04-23 17:05:05 - End Time 2025-04-23 20:05:05 [2025-04-23 20:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974594', 'tblTempUsageDetail_20' ) start [2025-04-23 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974594', 'tblTempUsageDetail_20' ) end [2025-04-23 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974594', 'tblTempVendorCDR_20' ) start [2025-04-23 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974594', 'tblTempVendorCDR_20' ) end [2025-04-23 20:05:19] Production.INFO: ProcessCDR(1,14974594,1,1,2) [2025-04-23 20:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974594', 'tblTempUsageDetail_20' ) start [2025-04-23 20:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974594', 'tblTempUsageDetail_20' ) end [2025-04-23 20:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 20:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 20:05:22] Production.INFO: ==22438== Releasing lock... [2025-04-23 20:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 20:05:22] Production.INFO: 49.75 MB #Memory Used# [2025-04-23 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 17:06:05 [end_date_ymd] => 2025-04-23 20:06:05 [RateCDR] => 1 ) [2025-04-23 20:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 17:06:05' and `end` < '2025-04-23 20:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 20:06:18] Production.INFO: count ==2891 [2025-04-23 20:06:18] Production.ERROR: pbx CDR StartTime 2025-04-23 17:06:05 - End Time 2025-04-23 20:06:05 [2025-04-23 20:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974599', 'tblTempUsageDetail_20' ) start [2025-04-23 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974599', 'tblTempUsageDetail_20' ) end [2025-04-23 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974599', 'tblTempVendorCDR_20' ) start [2025-04-23 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974599', 'tblTempVendorCDR_20' ) end [2025-04-23 20:06:18] Production.INFO: ProcessCDR(1,14974599,1,1,2) [2025-04-23 20:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974599', 'tblTempUsageDetail_20' ) start [2025-04-23 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974599', 'tblTempUsageDetail_20' ) end [2025-04-23 20:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 20:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 20:06:22] Production.INFO: ==22564== Releasing lock... [2025-04-23 20:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 20:06:22] Production.INFO: 49.5 MB #Memory Used# [2025-04-23 20:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 17:07:06 [end_date_ymd] => 2025-04-23 20:07:06 [RateCDR] => 1 ) [2025-04-23 20:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 17:07:06' and `end` < '2025-04-23 20:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 20:07:19] Production.INFO: count ==2882 [2025-04-23 20:07:20] Production.ERROR: pbx CDR StartTime 2025-04-23 17:07:06 - End Time 2025-04-23 20:07:06 [2025-04-23 20:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974604', 'tblTempUsageDetail_20' ) start [2025-04-23 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974604', 'tblTempUsageDetail_20' ) end [2025-04-23 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974604', 'tblTempVendorCDR_20' ) start [2025-04-23 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974604', 'tblTempVendorCDR_20' ) end [2025-04-23 20:07:20] Production.INFO: ProcessCDR(1,14974604,1,1,2) [2025-04-23 20:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974604', 'tblTempUsageDetail_20' ) start [2025-04-23 20:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974604', 'tblTempUsageDetail_20' ) end [2025-04-23 20:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 20:07:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 20:07:23] Production.INFO: ==22672== Releasing lock... [2025-04-23 20:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 20:07:23] Production.INFO: 49.5 MB #Memory Used# [2025-04-23 20:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 17:08:05 [end_date_ymd] => 2025-04-23 20:08:05 [RateCDR] => 1 ) [2025-04-23 20:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 17:08:05' and `end` < '2025-04-23 20:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 20:08:18] Production.INFO: count ==2858 [2025-04-23 20:08:19] Production.ERROR: pbx CDR StartTime 2025-04-23 17:08:05 - End Time 2025-04-23 20:08:05 [2025-04-23 20:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974609', 'tblTempUsageDetail_20' ) start [2025-04-23 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974609', 'tblTempUsageDetail_20' ) end [2025-04-23 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974609', 'tblTempVendorCDR_20' ) start [2025-04-23 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974609', 'tblTempVendorCDR_20' ) end [2025-04-23 20:08:19] Production.INFO: ProcessCDR(1,14974609,1,1,2) [2025-04-23 20:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974609', 'tblTempUsageDetail_20' ) start [2025-04-23 20:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974609', 'tblTempUsageDetail_20' ) end [2025-04-23 20:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 20:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 20:08:22] Production.INFO: ==22804== Releasing lock... [2025-04-23 20:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 20:08:22] Production.INFO: 49.5 MB #Memory Used# [2025-04-23 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 17:09:05 [end_date_ymd] => 2025-04-23 20:09:05 [RateCDR] => 1 ) [2025-04-23 20:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 17:09:05' and `end` < '2025-04-23 20:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 20:09:18] Production.INFO: count ==2848 [2025-04-23 20:09:19] Production.ERROR: pbx CDR StartTime 2025-04-23 17:09:05 - End Time 2025-04-23 20:09:05 [2025-04-23 20:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974614', 'tblTempUsageDetail_20' ) start [2025-04-23 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974614', 'tblTempUsageDetail_20' ) end [2025-04-23 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974614', 'tblTempVendorCDR_20' ) start [2025-04-23 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974614', 'tblTempVendorCDR_20' ) end [2025-04-23 20:09:19] Production.INFO: ProcessCDR(1,14974614,1,1,2) [2025-04-23 20:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974614', 'tblTempUsageDetail_20' ) start [2025-04-23 20:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974614', 'tblTempUsageDetail_20' ) end [2025-04-23 20:09:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 20:09:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 20:09:24] Production.INFO: ==22904== Releasing lock... [2025-04-23 20:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 20:09:24] Production.INFO: 49.5 MB #Memory Used# [2025-04-23 20:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 17:10:06 [end_date_ymd] => 2025-04-23 20:10:06 [RateCDR] => 1 ) [2025-04-23 20:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 17:10:06' and `end` < '2025-04-23 20:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 20:10:19] Production.INFO: count ==2832 [2025-04-23 20:10:20] Production.ERROR: pbx CDR StartTime 2025-04-23 17:10:06 - End Time 2025-04-23 20:10:06 [2025-04-23 20:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974620', 'tblTempUsageDetail_20' ) start [2025-04-23 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974620', 'tblTempUsageDetail_20' ) end [2025-04-23 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974620', 'tblTempVendorCDR_20' ) start [2025-04-23 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974620', 'tblTempVendorCDR_20' ) end [2025-04-23 20:10:20] Production.INFO: ProcessCDR(1,14974620,1,1,2) [2025-04-23 20:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974620', 'tblTempUsageDetail_20' ) start [2025-04-23 20:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974620', 'tblTempUsageDetail_20' ) end [2025-04-23 20:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 20:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 20:10:24] Production.INFO: ==22978== Releasing lock... [2025-04-23 20:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 20:10:24] Production.INFO: 49.5 MB #Memory Used# [2025-04-23 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 17:11:05 [end_date_ymd] => 2025-04-23 20:11:05 [RateCDR] => 1 ) [2025-04-23 20:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 17:11:05' and `end` < '2025-04-23 20:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 20:11:18] Production.INFO: count ==2724 [2025-04-23 20:11:18] Production.ERROR: pbx CDR StartTime 2025-04-23 17:11:05 - End Time 2025-04-23 20:11:05 [2025-04-23 20:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974625', 'tblTempUsageDetail_20' ) start [2025-04-23 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974625', 'tblTempUsageDetail_20' ) end [2025-04-23 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974625', 'tblTempVendorCDR_20' ) start [2025-04-23 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974625', 'tblTempVendorCDR_20' ) end [2025-04-23 20:11:18] Production.INFO: ProcessCDR(1,14974625,1,1,2) [2025-04-23 20:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974625', 'tblTempUsageDetail_20' ) start [2025-04-23 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974625', 'tblTempUsageDetail_20' ) end [2025-04-23 20:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 20:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 20:11:22] Production.INFO: ==23057== Releasing lock... [2025-04-23 20:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 20:11:22] Production.INFO: 48.5 MB #Memory Used# [2025-04-23 20:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 17:12:05 [end_date_ymd] => 2025-04-23 20:12:05 [RateCDR] => 1 ) [2025-04-23 20:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 17:12:05' and `end` < '2025-04-23 20:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 20:12:18] Production.INFO: count ==2724 [2025-04-23 20:12:19] Production.ERROR: pbx CDR StartTime 2025-04-23 17:12:05 - End Time 2025-04-23 20:12:05 [2025-04-23 20:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974630', 'tblTempUsageDetail_20' ) start [2025-04-23 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974630', 'tblTempUsageDetail_20' ) end [2025-04-23 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974630', 'tblTempVendorCDR_20' ) start [2025-04-23 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974630', 'tblTempVendorCDR_20' ) end [2025-04-23 20:12:19] Production.INFO: ProcessCDR(1,14974630,1,1,2) [2025-04-23 20:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974630', 'tblTempUsageDetail_20' ) start [2025-04-23 20:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974630', 'tblTempUsageDetail_20' ) end [2025-04-23 20:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 20:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 20:12:22] Production.INFO: ==23130== Releasing lock... [2025-04-23 20:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 20:12:22] Production.INFO: 48.5 MB #Memory Used# [2025-04-23 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 17:13:05 [end_date_ymd] => 2025-04-23 20:13:05 [RateCDR] => 1 ) [2025-04-23 20:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 17:13:05' and `end` < '2025-04-23 20:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 20:13:18] Production.INFO: count ==2702 [2025-04-23 20:13:19] Production.ERROR: pbx CDR StartTime 2025-04-23 17:13:05 - End Time 2025-04-23 20:13:05 [2025-04-23 20:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974635', 'tblTempUsageDetail_20' ) start [2025-04-23 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974635', 'tblTempUsageDetail_20' ) end [2025-04-23 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974635', 'tblTempVendorCDR_20' ) start [2025-04-23 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974635', 'tblTempVendorCDR_20' ) end [2025-04-23 20:13:19] Production.INFO: ProcessCDR(1,14974635,1,1,2) [2025-04-23 20:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974635', 'tblTempUsageDetail_20' ) start [2025-04-23 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974635', 'tblTempUsageDetail_20' ) end [2025-04-23 20:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 20:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 20:13:22] Production.INFO: ==23210== Releasing lock... [2025-04-23 20:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 20:13:22] Production.INFO: 48.25 MB #Memory Used# [2025-04-23 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 17:14:05 [end_date_ymd] => 2025-04-23 20:14:05 [RateCDR] => 1 ) [2025-04-23 20:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 17:14:05' and `end` < '2025-04-23 20:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 20:14:18] Production.INFO: count ==2698 [2025-04-23 20:14:19] Production.ERROR: pbx CDR StartTime 2025-04-23 17:14:05 - End Time 2025-04-23 20:14:05 [2025-04-23 20:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974640', 'tblTempUsageDetail_20' ) start [2025-04-23 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974640', 'tblTempUsageDetail_20' ) end [2025-04-23 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974640', 'tblTempVendorCDR_20' ) start [2025-04-23 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974640', 'tblTempVendorCDR_20' ) end [2025-04-23 20:14:19] Production.INFO: ProcessCDR(1,14974640,1,1,2) [2025-04-23 20:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974640', 'tblTempUsageDetail_20' ) start [2025-04-23 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974640', 'tblTempUsageDetail_20' ) end [2025-04-23 20:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 20:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 20:14:22] Production.INFO: ==23285== Releasing lock... [2025-04-23 20:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 20:14:22] Production.INFO: 48.25 MB #Memory Used# [2025-04-23 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 17:15:05 [end_date_ymd] => 2025-04-23 20:15:05 [RateCDR] => 1 ) [2025-04-23 20:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 17:15:05' and `end` < '2025-04-23 20:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 20:15:18] Production.INFO: count ==2699 [2025-04-23 20:15:19] Production.ERROR: pbx CDR StartTime 2025-04-23 17:15:05 - End Time 2025-04-23 20:15:05 [2025-04-23 20:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974645', 'tblTempUsageDetail_20' ) start [2025-04-23 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974645', 'tblTempUsageDetail_20' ) end [2025-04-23 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974645', 'tblTempVendorCDR_20' ) start [2025-04-23 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974645', 'tblTempVendorCDR_20' ) end [2025-04-23 20:15:19] Production.INFO: ProcessCDR(1,14974645,1,1,2) [2025-04-23 20:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974645', 'tblTempUsageDetail_20' ) start [2025-04-23 20:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974645', 'tblTempUsageDetail_20' ) end [2025-04-23 20:15:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 20:15:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 20:15:24] Production.INFO: ==23364== Releasing lock... [2025-04-23 20:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 20:15:24] Production.INFO: 48.25 MB #Memory Used# [2025-04-23 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 17:16:05 [end_date_ymd] => 2025-04-23 20:16:05 [RateCDR] => 1 ) [2025-04-23 20:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 17:16:05' and `end` < '2025-04-23 20:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 20:16:18] Production.INFO: count ==2695 [2025-04-23 20:16:19] Production.ERROR: pbx CDR StartTime 2025-04-23 17:16:05 - End Time 2025-04-23 20:16:05 [2025-04-23 20:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974650', 'tblTempUsageDetail_20' ) start [2025-04-23 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974650', 'tblTempUsageDetail_20' ) end [2025-04-23 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974650', 'tblTempVendorCDR_20' ) start [2025-04-23 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974650', 'tblTempVendorCDR_20' ) end [2025-04-23 20:16:19] Production.INFO: ProcessCDR(1,14974650,1,1,2) [2025-04-23 20:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974650', 'tblTempUsageDetail_20' ) start [2025-04-23 20:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974650', 'tblTempUsageDetail_20' ) end [2025-04-23 20:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 20:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 20:16:22] Production.INFO: ==23442== Releasing lock... [2025-04-23 20:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 20:16:22] Production.INFO: 48.25 MB #Memory Used# [2025-04-23 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 17:17:05 [end_date_ymd] => 2025-04-23 20:17:05 [RateCDR] => 1 ) [2025-04-23 20:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 17:17:05' and `end` < '2025-04-23 20:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 20:17:18] Production.INFO: count ==2686 [2025-04-23 20:17:18] Production.ERROR: pbx CDR StartTime 2025-04-23 17:17:05 - End Time 2025-04-23 20:17:05 [2025-04-23 20:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974655', 'tblTempUsageDetail_20' ) start [2025-04-23 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974655', 'tblTempUsageDetail_20' ) end [2025-04-23 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974655', 'tblTempVendorCDR_20' ) start [2025-04-23 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974655', 'tblTempVendorCDR_20' ) end [2025-04-23 20:17:18] Production.INFO: ProcessCDR(1,14974655,1,1,2) [2025-04-23 20:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974655', 'tblTempUsageDetail_20' ) start [2025-04-23 20:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974655', 'tblTempUsageDetail_20' ) end [2025-04-23 20:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 20:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 20:17:22] Production.INFO: ==23523== Releasing lock... [2025-04-23 20:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 20:17:22] Production.INFO: 48.25 MB #Memory Used# [2025-04-23 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 17:18:05 [end_date_ymd] => 2025-04-23 20:18:05 [RateCDR] => 1 ) [2025-04-23 20:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 17:18:05' and `end` < '2025-04-23 20:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 20:18:18] Production.INFO: count ==2681 [2025-04-23 20:18:19] Production.ERROR: pbx CDR StartTime 2025-04-23 17:18:05 - End Time 2025-04-23 20:18:05 [2025-04-23 20:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974660', 'tblTempUsageDetail_20' ) start [2025-04-23 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974660', 'tblTempUsageDetail_20' ) end [2025-04-23 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974660', 'tblTempVendorCDR_20' ) start [2025-04-23 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974660', 'tblTempVendorCDR_20' ) end [2025-04-23 20:18:19] Production.INFO: ProcessCDR(1,14974660,1,1,2) [2025-04-23 20:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974660', 'tblTempUsageDetail_20' ) start [2025-04-23 20:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974660', 'tblTempUsageDetail_20' ) end [2025-04-23 20:18:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 20:18:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 20:18:24] Production.INFO: ==23596== Releasing lock... [2025-04-23 20:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 20:18:24] Production.INFO: 48.25 MB #Memory Used# [2025-04-23 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 17:19:05 [end_date_ymd] => 2025-04-23 20:19:05 [RateCDR] => 1 ) [2025-04-23 20:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 17:19:05' and `end` < '2025-04-23 20:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 20:19:18] Production.INFO: count ==2679 [2025-04-23 20:19:19] Production.ERROR: pbx CDR StartTime 2025-04-23 17:19:05 - End Time 2025-04-23 20:19:05 [2025-04-23 20:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974665', 'tblTempUsageDetail_20' ) start [2025-04-23 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974665', 'tblTempUsageDetail_20' ) end [2025-04-23 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974665', 'tblTempVendorCDR_20' ) start [2025-04-23 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974665', 'tblTempVendorCDR_20' ) end [2025-04-23 20:19:19] Production.INFO: ProcessCDR(1,14974665,1,1,2) [2025-04-23 20:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974665', 'tblTempUsageDetail_20' ) start [2025-04-23 20:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974665', 'tblTempUsageDetail_20' ) end [2025-04-23 20:19:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 20:19:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 20:19:24] Production.INFO: ==23671== Releasing lock... [2025-04-23 20:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 20:19:24] Production.INFO: 48.25 MB #Memory Used# [2025-04-23 20:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 17:20:05 [end_date_ymd] => 2025-04-23 20:20:05 [RateCDR] => 1 ) [2025-04-23 20:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 17:20:05' and `end` < '2025-04-23 20:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 20:20:18] Production.INFO: count ==2658 [2025-04-23 20:20:19] Production.ERROR: pbx CDR StartTime 2025-04-23 17:20:05 - End Time 2025-04-23 20:20:05 [2025-04-23 20:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974670', 'tblTempUsageDetail_20' ) start [2025-04-23 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974670', 'tblTempUsageDetail_20' ) end [2025-04-23 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974670', 'tblTempVendorCDR_20' ) start [2025-04-23 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974670', 'tblTempVendorCDR_20' ) end [2025-04-23 20:20:19] Production.INFO: ProcessCDR(1,14974670,1,1,2) [2025-04-23 20:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974670', 'tblTempUsageDetail_20' ) start [2025-04-23 20:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974670', 'tblTempUsageDetail_20' ) end [2025-04-23 20:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 20:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 20:20:24] Production.INFO: ==23743== Releasing lock... [2025-04-23 20:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 20:20:24] Production.INFO: 48 MB #Memory Used# [2025-04-23 20:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 17:21:06 [end_date_ymd] => 2025-04-23 20:21:06 [RateCDR] => 1 ) [2025-04-23 20:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 17:21:06' and `end` < '2025-04-23 20:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 20:21:19] Production.INFO: count ==2601 [2025-04-23 20:21:19] Production.ERROR: pbx CDR StartTime 2025-04-23 17:21:06 - End Time 2025-04-23 20:21:06 [2025-04-23 20:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974676', 'tblTempUsageDetail_20' ) start [2025-04-23 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974676', 'tblTempUsageDetail_20' ) end [2025-04-23 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974676', 'tblTempVendorCDR_20' ) start [2025-04-23 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974676', 'tblTempVendorCDR_20' ) end [2025-04-23 20:21:19] Production.INFO: ProcessCDR(1,14974676,1,1,2) [2025-04-23 20:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974676', 'tblTempUsageDetail_20' ) start [2025-04-23 20:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974676', 'tblTempUsageDetail_20' ) end [2025-04-23 20:21:25] Production.ERROR: pbx prc_insertCDR start [2025-04-23 20:21:25] Production.ERROR: pbx prc_insertCDR end [2025-04-23 20:21:25] Production.INFO: ==23816== Releasing lock... [2025-04-23 20:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 20:21:25] Production.INFO: 47.75 MB #Memory Used# [2025-04-23 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 17:22:05 [end_date_ymd] => 2025-04-23 20:22:05 [RateCDR] => 1 ) [2025-04-23 20:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 17:22:05' and `end` < '2025-04-23 20:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 20:22:18] Production.INFO: count ==2596 [2025-04-23 20:22:19] Production.ERROR: pbx CDR StartTime 2025-04-23 17:22:05 - End Time 2025-04-23 20:22:05 [2025-04-23 20:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974681', 'tblTempUsageDetail_20' ) start [2025-04-23 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974681', 'tblTempUsageDetail_20' ) end [2025-04-23 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974681', 'tblTempVendorCDR_20' ) start [2025-04-23 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974681', 'tblTempVendorCDR_20' ) end [2025-04-23 20:22:19] Production.INFO: ProcessCDR(1,14974681,1,1,2) [2025-04-23 20:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974681', 'tblTempUsageDetail_20' ) start [2025-04-23 20:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974681', 'tblTempUsageDetail_20' ) end [2025-04-23 20:22:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 20:22:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 20:22:24] Production.INFO: ==23934== Releasing lock... [2025-04-23 20:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 20:22:24] Production.INFO: 47.5 MB #Memory Used# [2025-04-23 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 17:23:05 [end_date_ymd] => 2025-04-23 20:23:05 [RateCDR] => 1 ) [2025-04-23 20:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 17:23:05' and `end` < '2025-04-23 20:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 20:23:18] Production.INFO: count ==2591 [2025-04-23 20:23:19] Production.ERROR: pbx CDR StartTime 2025-04-23 17:23:05 - End Time 2025-04-23 20:23:05 [2025-04-23 20:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974686', 'tblTempUsageDetail_20' ) start [2025-04-23 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974686', 'tblTempUsageDetail_20' ) end [2025-04-23 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974686', 'tblTempVendorCDR_20' ) start [2025-04-23 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974686', 'tblTempVendorCDR_20' ) end [2025-04-23 20:23:19] Production.INFO: ProcessCDR(1,14974686,1,1,2) [2025-04-23 20:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974686', 'tblTempUsageDetail_20' ) start [2025-04-23 20:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974686', 'tblTempUsageDetail_20' ) end [2025-04-23 20:23:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 20:23:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 20:23:24] Production.INFO: ==24006== Releasing lock... [2025-04-23 20:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 20:23:24] Production.INFO: 47.75 MB #Memory Used# [2025-04-23 20:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 17:24:05 [end_date_ymd] => 2025-04-23 20:24:05 [RateCDR] => 1 ) [2025-04-23 20:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 17:24:05' and `end` < '2025-04-23 20:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 20:24:18] Production.INFO: count ==2577 [2025-04-23 20:24:18] Production.ERROR: pbx CDR StartTime 2025-04-23 17:24:05 - End Time 2025-04-23 20:24:05 [2025-04-23 20:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974691', 'tblTempUsageDetail_20' ) start [2025-04-23 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974691', 'tblTempUsageDetail_20' ) end [2025-04-23 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974691', 'tblTempVendorCDR_20' ) start [2025-04-23 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974691', 'tblTempVendorCDR_20' ) end [2025-04-23 20:24:18] Production.INFO: ProcessCDR(1,14974691,1,1,2) [2025-04-23 20:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974691', 'tblTempUsageDetail_20' ) start [2025-04-23 20:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974691', 'tblTempUsageDetail_20' ) end [2025-04-23 20:24:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 20:24:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 20:24:23] Production.INFO: ==24075== Releasing lock... [2025-04-23 20:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 20:24:23] Production.INFO: 47.5 MB #Memory Used# [2025-04-23 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 17:25:05 [end_date_ymd] => 2025-04-23 20:25:05 [RateCDR] => 1 ) [2025-04-23 20:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 17:25:05' and `end` < '2025-04-23 20:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 20:25:18] Production.INFO: count ==2559 [2025-04-23 20:25:19] Production.ERROR: pbx CDR StartTime 2025-04-23 17:25:05 - End Time 2025-04-23 20:25:05 [2025-04-23 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974696', 'tblTempUsageDetail_20' ) start [2025-04-23 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974696', 'tblTempUsageDetail_20' ) end [2025-04-23 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974696', 'tblTempVendorCDR_20' ) start [2025-04-23 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974696', 'tblTempVendorCDR_20' ) end [2025-04-23 20:25:19] Production.INFO: ProcessCDR(1,14974696,1,1,2) [2025-04-23 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974696', 'tblTempUsageDetail_20' ) start [2025-04-23 20:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974696', 'tblTempUsageDetail_20' ) end [2025-04-23 20:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 20:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 20:25:22] Production.INFO: ==24148== Releasing lock... [2025-04-23 20:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 20:25:22] Production.INFO: 47.25 MB #Memory Used# [2025-04-23 20:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 17:26:04 [end_date_ymd] => 2025-04-23 20:26:04 [RateCDR] => 1 ) [2025-04-23 20:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 17:26:04' and `end` < '2025-04-23 20:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 20:26:17] Production.INFO: count ==2557 [2025-04-23 20:26:18] Production.ERROR: pbx CDR StartTime 2025-04-23 17:26:04 - End Time 2025-04-23 20:26:04 [2025-04-23 20:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974701', 'tblTempUsageDetail_20' ) start [2025-04-23 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974701', 'tblTempUsageDetail_20' ) end [2025-04-23 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974701', 'tblTempVendorCDR_20' ) start [2025-04-23 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974701', 'tblTempVendorCDR_20' ) end [2025-04-23 20:26:18] Production.INFO: ProcessCDR(1,14974701,1,1,2) [2025-04-23 20:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974701', 'tblTempUsageDetail_20' ) start [2025-04-23 20:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974701', 'tblTempUsageDetail_20' ) end [2025-04-23 20:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 20:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 20:26:21] Production.INFO: ==24221== Releasing lock... [2025-04-23 20:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 20:26:21] Production.INFO: 47.25 MB #Memory Used# [2025-04-23 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 17:27:05 [end_date_ymd] => 2025-04-23 20:27:05 [RateCDR] => 1 ) [2025-04-23 20:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 17:27:05' and `end` < '2025-04-23 20:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 20:27:18] Production.INFO: count ==2548 [2025-04-23 20:27:19] Production.ERROR: pbx CDR StartTime 2025-04-23 17:27:05 - End Time 2025-04-23 20:27:05 [2025-04-23 20:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974706', 'tblTempUsageDetail_20' ) start [2025-04-23 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974706', 'tblTempUsageDetail_20' ) end [2025-04-23 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974706', 'tblTempVendorCDR_20' ) start [2025-04-23 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974706', 'tblTempVendorCDR_20' ) end [2025-04-23 20:27:19] Production.INFO: ProcessCDR(1,14974706,1,1,2) [2025-04-23 20:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974706', 'tblTempUsageDetail_20' ) start [2025-04-23 20:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974706', 'tblTempUsageDetail_20' ) end [2025-04-23 20:27:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 20:27:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 20:27:24] Production.INFO: ==24295== Releasing lock... [2025-04-23 20:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 20:27:24] Production.INFO: 47.25 MB #Memory Used# [2025-04-23 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 17:28:05 [end_date_ymd] => 2025-04-23 20:28:05 [RateCDR] => 1 ) [2025-04-23 20:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 17:28:05' and `end` < '2025-04-23 20:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 20:28:18] Production.INFO: count ==2542 [2025-04-23 20:28:19] Production.ERROR: pbx CDR StartTime 2025-04-23 17:28:05 - End Time 2025-04-23 20:28:05 [2025-04-23 20:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974711', 'tblTempUsageDetail_20' ) start [2025-04-23 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974711', 'tblTempUsageDetail_20' ) end [2025-04-23 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974711', 'tblTempVendorCDR_20' ) start [2025-04-23 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974711', 'tblTempVendorCDR_20' ) end [2025-04-23 20:28:19] Production.INFO: ProcessCDR(1,14974711,1,1,2) [2025-04-23 20:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974711', 'tblTempUsageDetail_20' ) start [2025-04-23 20:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974711', 'tblTempUsageDetail_20' ) end [2025-04-23 20:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 20:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 20:28:22] Production.INFO: ==24372== Releasing lock... [2025-04-23 20:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 20:28:22] Production.INFO: 47.5 MB #Memory Used# [2025-04-23 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 17:29:05 [end_date_ymd] => 2025-04-23 20:29:05 [RateCDR] => 1 ) [2025-04-23 20:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 17:29:05' and `end` < '2025-04-23 20:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 20:29:18] Production.INFO: count ==2525 [2025-04-23 20:29:18] Production.ERROR: pbx CDR StartTime 2025-04-23 17:29:05 - End Time 2025-04-23 20:29:05 [2025-04-23 20:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974716', 'tblTempUsageDetail_20' ) start [2025-04-23 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974716', 'tblTempUsageDetail_20' ) end [2025-04-23 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974716', 'tblTempVendorCDR_20' ) start [2025-04-23 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974716', 'tblTempVendorCDR_20' ) end [2025-04-23 20:29:18] Production.INFO: ProcessCDR(1,14974716,1,1,2) [2025-04-23 20:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974716', 'tblTempUsageDetail_20' ) start [2025-04-23 20:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974716', 'tblTempUsageDetail_20' ) end [2025-04-23 20:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 20:29:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 20:29:23] Production.INFO: ==24448== Releasing lock... [2025-04-23 20:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 20:29:23] Production.INFO: 47 MB #Memory Used# [2025-04-23 20:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 17:30:06 [end_date_ymd] => 2025-04-23 20:30:06 [RateCDR] => 1 ) [2025-04-23 20:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 17:30:06' and `end` < '2025-04-23 20:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 20:30:18] Production.INFO: count ==2510 [2025-04-23 20:30:19] Production.ERROR: pbx CDR StartTime 2025-04-23 17:30:06 - End Time 2025-04-23 20:30:06 [2025-04-23 20:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974721', 'tblTempUsageDetail_20' ) start [2025-04-23 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974721', 'tblTempUsageDetail_20' ) end [2025-04-23 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974721', 'tblTempVendorCDR_20' ) start [2025-04-23 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974721', 'tblTempVendorCDR_20' ) end [2025-04-23 20:30:19] Production.INFO: ProcessCDR(1,14974721,1,1,2) [2025-04-23 20:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974721', 'tblTempUsageDetail_20' ) start [2025-04-23 20:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974721', 'tblTempUsageDetail_20' ) end [2025-04-23 20:30:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 20:30:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 20:30:24] Production.INFO: ==24526== Releasing lock... [2025-04-23 20:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 20:30:24] Production.INFO: 47 MB #Memory Used# [2025-04-23 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 17:31:05 [end_date_ymd] => 2025-04-23 20:31:05 [RateCDR] => 1 ) [2025-04-23 20:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 17:31:05' and `end` < '2025-04-23 20:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 20:31:18] Production.INFO: count ==2410 [2025-04-23 20:31:18] Production.ERROR: pbx CDR StartTime 2025-04-23 17:31:05 - End Time 2025-04-23 20:31:05 [2025-04-23 20:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974727', 'tblTempUsageDetail_20' ) start [2025-04-23 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974727', 'tblTempUsageDetail_20' ) end [2025-04-23 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974727', 'tblTempVendorCDR_20' ) start [2025-04-23 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974727', 'tblTempVendorCDR_20' ) end [2025-04-23 20:31:18] Production.INFO: ProcessCDR(1,14974727,1,1,2) [2025-04-23 20:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974727', 'tblTempUsageDetail_20' ) start [2025-04-23 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974727', 'tblTempUsageDetail_20' ) end [2025-04-23 20:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 20:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 20:31:22] Production.INFO: ==24605== Releasing lock... [2025-04-23 20:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 20:31:22] Production.INFO: 46.25 MB #Memory Used# [2025-04-23 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 17:32:05 [end_date_ymd] => 2025-04-23 20:32:05 [RateCDR] => 1 ) [2025-04-23 20:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 17:32:05' and `end` < '2025-04-23 20:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 20:32:18] Production.INFO: count ==2386 [2025-04-23 20:32:18] Production.ERROR: pbx CDR StartTime 2025-04-23 17:32:05 - End Time 2025-04-23 20:32:05 [2025-04-23 20:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974732', 'tblTempUsageDetail_20' ) start [2025-04-23 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974732', 'tblTempUsageDetail_20' ) end [2025-04-23 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974732', 'tblTempVendorCDR_20' ) start [2025-04-23 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974732', 'tblTempVendorCDR_20' ) end [2025-04-23 20:32:18] Production.INFO: ProcessCDR(1,14974732,1,1,2) [2025-04-23 20:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974732', 'tblTempUsageDetail_20' ) start [2025-04-23 20:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974732', 'tblTempUsageDetail_20' ) end [2025-04-23 20:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 20:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 20:32:22] Production.INFO: ==24681== Releasing lock... [2025-04-23 20:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 20:32:22] Production.INFO: 46 MB #Memory Used# [2025-04-23 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 17:33:05 [end_date_ymd] => 2025-04-23 20:33:05 [RateCDR] => 1 ) [2025-04-23 20:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 17:33:05' and `end` < '2025-04-23 20:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 20:33:17] Production.INFO: count ==2377 [2025-04-23 20:33:18] Production.ERROR: pbx CDR StartTime 2025-04-23 17:33:05 - End Time 2025-04-23 20:33:05 [2025-04-23 20:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974737', 'tblTempUsageDetail_20' ) start [2025-04-23 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974737', 'tblTempUsageDetail_20' ) end [2025-04-23 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974737', 'tblTempVendorCDR_20' ) start [2025-04-23 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974737', 'tblTempVendorCDR_20' ) end [2025-04-23 20:33:18] Production.INFO: ProcessCDR(1,14974737,1,1,2) [2025-04-23 20:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974737', 'tblTempUsageDetail_20' ) start [2025-04-23 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974737', 'tblTempUsageDetail_20' ) end [2025-04-23 20:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 20:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 20:33:22] Production.INFO: ==24757== Releasing lock... [2025-04-23 20:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 20:33:22] Production.INFO: 46 MB #Memory Used# [2025-04-23 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 17:34:05 [end_date_ymd] => 2025-04-23 20:34:05 [RateCDR] => 1 ) [2025-04-23 20:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 17:34:05' and `end` < '2025-04-23 20:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 20:34:18] Production.INFO: count ==2373 [2025-04-23 20:34:19] Production.ERROR: pbx CDR StartTime 2025-04-23 17:34:05 - End Time 2025-04-23 20:34:05 [2025-04-23 20:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974742', 'tblTempUsageDetail_20' ) start [2025-04-23 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974742', 'tblTempUsageDetail_20' ) end [2025-04-23 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974742', 'tblTempVendorCDR_20' ) start [2025-04-23 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974742', 'tblTempVendorCDR_20' ) end [2025-04-23 20:34:19] Production.INFO: ProcessCDR(1,14974742,1,1,2) [2025-04-23 20:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974742', 'tblTempUsageDetail_20' ) start [2025-04-23 20:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974742', 'tblTempUsageDetail_20' ) end [2025-04-23 20:34:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 20:34:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 20:34:24] Production.INFO: ==24835== Releasing lock... [2025-04-23 20:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 20:34:24] Production.INFO: 46 MB #Memory Used# [2025-04-23 20:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 17:35:06 [end_date_ymd] => 2025-04-23 20:35:06 [RateCDR] => 1 ) [2025-04-23 20:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 17:35:06' and `end` < '2025-04-23 20:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 20:35:19] Production.INFO: count ==2356 [2025-04-23 20:35:19] Production.ERROR: pbx CDR StartTime 2025-04-23 17:35:06 - End Time 2025-04-23 20:35:06 [2025-04-23 20:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974747', 'tblTempUsageDetail_20' ) start [2025-04-23 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974747', 'tblTempUsageDetail_20' ) end [2025-04-23 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974747', 'tblTempVendorCDR_20' ) start [2025-04-23 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974747', 'tblTempVendorCDR_20' ) end [2025-04-23 20:35:19] Production.INFO: ProcessCDR(1,14974747,1,1,2) [2025-04-23 20:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974747', 'tblTempUsageDetail_20' ) start [2025-04-23 20:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974747', 'tblTempUsageDetail_20' ) end [2025-04-23 20:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 20:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 20:35:23] Production.INFO: ==24910== Releasing lock... [2025-04-23 20:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 20:35:23] Production.INFO: 45.75 MB #Memory Used# [2025-04-23 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 17:36:05 [end_date_ymd] => 2025-04-23 20:36:05 [RateCDR] => 1 ) [2025-04-23 20:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 17:36:05' and `end` < '2025-04-23 20:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 20:36:18] Production.INFO: count ==2352 [2025-04-23 20:36:18] Production.ERROR: pbx CDR StartTime 2025-04-23 17:36:05 - End Time 2025-04-23 20:36:05 [2025-04-23 20:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974752', 'tblTempUsageDetail_20' ) start [2025-04-23 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974752', 'tblTempUsageDetail_20' ) end [2025-04-23 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974752', 'tblTempVendorCDR_20' ) start [2025-04-23 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974752', 'tblTempVendorCDR_20' ) end [2025-04-23 20:36:18] Production.INFO: ProcessCDR(1,14974752,1,1,2) [2025-04-23 20:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974752', 'tblTempUsageDetail_20' ) start [2025-04-23 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974752', 'tblTempUsageDetail_20' ) end [2025-04-23 20:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 20:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 20:36:22] Production.INFO: ==24981== Releasing lock... [2025-04-23 20:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 20:36:22] Production.INFO: 45.75 MB #Memory Used# [2025-04-23 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 17:37:05 [end_date_ymd] => 2025-04-23 20:37:05 [RateCDR] => 1 ) [2025-04-23 20:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 17:37:05' and `end` < '2025-04-23 20:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 20:37:18] Production.INFO: count ==2354 [2025-04-23 20:37:19] Production.ERROR: pbx CDR StartTime 2025-04-23 17:37:05 - End Time 2025-04-23 20:37:05 [2025-04-23 20:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974757', 'tblTempUsageDetail_20' ) start [2025-04-23 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974757', 'tblTempUsageDetail_20' ) end [2025-04-23 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974757', 'tblTempVendorCDR_20' ) start [2025-04-23 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974757', 'tblTempVendorCDR_20' ) end [2025-04-23 20:37:19] Production.INFO: ProcessCDR(1,14974757,1,1,2) [2025-04-23 20:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974757', 'tblTempUsageDetail_20' ) start [2025-04-23 20:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974757', 'tblTempUsageDetail_20' ) end [2025-04-23 20:37:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 20:37:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 20:37:24] Production.INFO: ==25096== Releasing lock... [2025-04-23 20:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 20:37:24] Production.INFO: 45.75 MB #Memory Used# [2025-04-23 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 17:38:05 [end_date_ymd] => 2025-04-23 20:38:05 [RateCDR] => 1 ) [2025-04-23 20:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 17:38:05' and `end` < '2025-04-23 20:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 20:38:18] Production.INFO: count ==2347 [2025-04-23 20:38:18] Production.ERROR: pbx CDR StartTime 2025-04-23 17:38:05 - End Time 2025-04-23 20:38:05 [2025-04-23 20:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974762', 'tblTempUsageDetail_20' ) start [2025-04-23 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974762', 'tblTempUsageDetail_20' ) end [2025-04-23 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974762', 'tblTempVendorCDR_20' ) start [2025-04-23 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974762', 'tblTempVendorCDR_20' ) end [2025-04-23 20:38:18] Production.INFO: ProcessCDR(1,14974762,1,1,2) [2025-04-23 20:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974762', 'tblTempUsageDetail_20' ) start [2025-04-23 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974762', 'tblTempUsageDetail_20' ) end [2025-04-23 20:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 20:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 20:38:22] Production.INFO: ==25170== Releasing lock... [2025-04-23 20:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 20:38:22] Production.INFO: 45.75 MB #Memory Used# [2025-04-23 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 17:39:05 [end_date_ymd] => 2025-04-23 20:39:05 [RateCDR] => 1 ) [2025-04-23 20:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 17:39:05' and `end` < '2025-04-23 20:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 20:39:18] Production.INFO: count ==2343 [2025-04-23 20:39:19] Production.ERROR: pbx CDR StartTime 2025-04-23 17:39:05 - End Time 2025-04-23 20:39:05 [2025-04-23 20:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974767', 'tblTempUsageDetail_20' ) start [2025-04-23 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974767', 'tblTempUsageDetail_20' ) end [2025-04-23 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974767', 'tblTempVendorCDR_20' ) start [2025-04-23 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974767', 'tblTempVendorCDR_20' ) end [2025-04-23 20:39:19] Production.INFO: ProcessCDR(1,14974767,1,1,2) [2025-04-23 20:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974767', 'tblTempUsageDetail_20' ) start [2025-04-23 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974767', 'tblTempUsageDetail_20' ) end [2025-04-23 20:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 20:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 20:39:22] Production.INFO: ==25244== Releasing lock... [2025-04-23 20:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 20:39:22] Production.INFO: 45.75 MB #Memory Used# [2025-04-23 20:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 17:40:05 [end_date_ymd] => 2025-04-23 20:40:05 [RateCDR] => 1 ) [2025-04-23 20:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 17:40:05' and `end` < '2025-04-23 20:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 20:40:18] Production.INFO: count ==2353 [2025-04-23 20:40:19] Production.ERROR: pbx CDR StartTime 2025-04-23 17:40:05 - End Time 2025-04-23 20:40:05 [2025-04-23 20:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974773', 'tblTempUsageDetail_20' ) start [2025-04-23 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974773', 'tblTempUsageDetail_20' ) end [2025-04-23 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974773', 'tblTempVendorCDR_20' ) start [2025-04-23 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974773', 'tblTempVendorCDR_20' ) end [2025-04-23 20:40:19] Production.INFO: ProcessCDR(1,14974773,1,1,2) [2025-04-23 20:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974773', 'tblTempUsageDetail_20' ) start [2025-04-23 20:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974773', 'tblTempUsageDetail_20' ) end [2025-04-23 20:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 20:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 20:40:22] Production.INFO: ==25323== Releasing lock... [2025-04-23 20:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 20:40:22] Production.INFO: 46 MB #Memory Used# [2025-04-23 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 17:41:05 [end_date_ymd] => 2025-04-23 20:41:05 [RateCDR] => 1 ) [2025-04-23 20:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 17:41:05' and `end` < '2025-04-23 20:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 20:41:18] Production.INFO: count ==2329 [2025-04-23 20:41:19] Production.ERROR: pbx CDR StartTime 2025-04-23 17:41:05 - End Time 2025-04-23 20:41:05 [2025-04-23 20:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974778', 'tblTempUsageDetail_20' ) start [2025-04-23 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974778', 'tblTempUsageDetail_20' ) end [2025-04-23 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974778', 'tblTempVendorCDR_20' ) start [2025-04-23 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974778', 'tblTempVendorCDR_20' ) end [2025-04-23 20:41:19] Production.INFO: ProcessCDR(1,14974778,1,1,2) [2025-04-23 20:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974778', 'tblTempUsageDetail_20' ) start [2025-04-23 20:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974778', 'tblTempUsageDetail_20' ) end [2025-04-23 20:41:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 20:41:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 20:41:24] Production.INFO: ==25399== Releasing lock... [2025-04-23 20:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 20:41:24] Production.INFO: 45.5 MB #Memory Used# [2025-04-23 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 17:42:05 [end_date_ymd] => 2025-04-23 20:42:05 [RateCDR] => 1 ) [2025-04-23 20:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 17:42:05' and `end` < '2025-04-23 20:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 20:42:18] Production.INFO: count ==2329 [2025-04-23 20:42:19] Production.ERROR: pbx CDR StartTime 2025-04-23 17:42:05 - End Time 2025-04-23 20:42:05 [2025-04-23 20:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974783', 'tblTempUsageDetail_20' ) start [2025-04-23 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974783', 'tblTempUsageDetail_20' ) end [2025-04-23 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974783', 'tblTempVendorCDR_20' ) start [2025-04-23 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974783', 'tblTempVendorCDR_20' ) end [2025-04-23 20:42:19] Production.INFO: ProcessCDR(1,14974783,1,1,2) [2025-04-23 20:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974783', 'tblTempUsageDetail_20' ) start [2025-04-23 20:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974783', 'tblTempUsageDetail_20' ) end [2025-04-23 20:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 20:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 20:42:22] Production.INFO: ==25477== Releasing lock... [2025-04-23 20:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 20:42:22] Production.INFO: 45.5 MB #Memory Used# [2025-04-23 20:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 17:43:04 [end_date_ymd] => 2025-04-23 20:43:04 [RateCDR] => 1 ) [2025-04-23 20:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 17:43:04' and `end` < '2025-04-23 20:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 20:43:17] Production.INFO: count ==2330 [2025-04-23 20:43:18] Production.ERROR: pbx CDR StartTime 2025-04-23 17:43:04 - End Time 2025-04-23 20:43:04 [2025-04-23 20:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974788', 'tblTempUsageDetail_20' ) start [2025-04-23 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974788', 'tblTempUsageDetail_20' ) end [2025-04-23 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974788', 'tblTempVendorCDR_20' ) start [2025-04-23 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974788', 'tblTempVendorCDR_20' ) end [2025-04-23 20:43:18] Production.INFO: ProcessCDR(1,14974788,1,1,2) [2025-04-23 20:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974788', 'tblTempUsageDetail_20' ) start [2025-04-23 20:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974788', 'tblTempUsageDetail_20' ) end [2025-04-23 20:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 20:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 20:43:21] Production.INFO: ==25550== Releasing lock... [2025-04-23 20:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 20:43:21] Production.INFO: 45.5 MB #Memory Used# [2025-04-23 20:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 17:44:06 [end_date_ymd] => 2025-04-23 20:44:06 [RateCDR] => 1 ) [2025-04-23 20:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 17:44:06' and `end` < '2025-04-23 20:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 20:44:19] Production.INFO: count ==2322 [2025-04-23 20:44:19] Production.ERROR: pbx CDR StartTime 2025-04-23 17:44:06 - End Time 2025-04-23 20:44:06 [2025-04-23 20:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974793', 'tblTempUsageDetail_20' ) start [2025-04-23 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974793', 'tblTempUsageDetail_20' ) end [2025-04-23 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974793', 'tblTempVendorCDR_20' ) start [2025-04-23 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974793', 'tblTempVendorCDR_20' ) end [2025-04-23 20:44:19] Production.INFO: ProcessCDR(1,14974793,1,1,2) [2025-04-23 20:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974793', 'tblTempUsageDetail_20' ) start [2025-04-23 20:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974793', 'tblTempUsageDetail_20' ) end [2025-04-23 20:44:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 20:44:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 20:44:24] Production.INFO: ==25631== Releasing lock... [2025-04-23 20:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 20:44:24] Production.INFO: 45.5 MB #Memory Used# [2025-04-23 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 17:45:05 [end_date_ymd] => 2025-04-23 20:45:05 [RateCDR] => 1 ) [2025-04-23 20:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 17:45:05' and `end` < '2025-04-23 20:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 20:45:18] Production.INFO: count ==2295 [2025-04-23 20:45:18] Production.ERROR: pbx CDR StartTime 2025-04-23 17:45:05 - End Time 2025-04-23 20:45:05 [2025-04-23 20:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974798', 'tblTempUsageDetail_20' ) start [2025-04-23 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974798', 'tblTempUsageDetail_20' ) end [2025-04-23 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974798', 'tblTempVendorCDR_20' ) start [2025-04-23 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974798', 'tblTempVendorCDR_20' ) end [2025-04-23 20:45:18] Production.INFO: ProcessCDR(1,14974798,1,1,2) [2025-04-23 20:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974798', 'tblTempUsageDetail_20' ) start [2025-04-23 20:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974798', 'tblTempUsageDetail_20' ) end [2025-04-23 20:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 20:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 20:45:22] Production.INFO: ==25704== Releasing lock... [2025-04-23 20:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 20:45:22] Production.INFO: 45.25 MB #Memory Used# [2025-04-23 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 17:46:05 [end_date_ymd] => 2025-04-23 20:46:05 [RateCDR] => 1 ) [2025-04-23 20:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 17:46:05' and `end` < '2025-04-23 20:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 20:46:18] Production.INFO: count ==2289 [2025-04-23 20:46:19] Production.ERROR: pbx CDR StartTime 2025-04-23 17:46:05 - End Time 2025-04-23 20:46:05 [2025-04-23 20:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974803', 'tblTempUsageDetail_20' ) start [2025-04-23 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974803', 'tblTempUsageDetail_20' ) end [2025-04-23 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974803', 'tblTempVendorCDR_20' ) start [2025-04-23 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974803', 'tblTempVendorCDR_20' ) end [2025-04-23 20:46:19] Production.INFO: ProcessCDR(1,14974803,1,1,2) [2025-04-23 20:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974803', 'tblTempUsageDetail_20' ) start [2025-04-23 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974803', 'tblTempUsageDetail_20' ) end [2025-04-23 20:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 20:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 20:46:22] Production.INFO: ==25784== Releasing lock... [2025-04-23 20:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 20:46:22] Production.INFO: 45.25 MB #Memory Used# [2025-04-23 20:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 17:47:06 [end_date_ymd] => 2025-04-23 20:47:06 [RateCDR] => 1 ) [2025-04-23 20:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 17:47:06' and `end` < '2025-04-23 20:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 20:47:18] Production.INFO: count ==2290 [2025-04-23 20:47:19] Production.ERROR: pbx CDR StartTime 2025-04-23 17:47:06 - End Time 2025-04-23 20:47:06 [2025-04-23 20:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974808', 'tblTempUsageDetail_20' ) start [2025-04-23 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974808', 'tblTempUsageDetail_20' ) end [2025-04-23 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974808', 'tblTempVendorCDR_20' ) start [2025-04-23 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974808', 'tblTempVendorCDR_20' ) end [2025-04-23 20:47:19] Production.INFO: ProcessCDR(1,14974808,1,1,2) [2025-04-23 20:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974808', 'tblTempUsageDetail_20' ) start [2025-04-23 20:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974808', 'tblTempUsageDetail_20' ) end [2025-04-23 20:47:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 20:47:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 20:47:24] Production.INFO: ==25860== Releasing lock... [2025-04-23 20:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 20:47:24] Production.INFO: 45.5 MB #Memory Used# [2025-04-23 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 17:48:05 [end_date_ymd] => 2025-04-23 20:48:05 [RateCDR] => 1 ) [2025-04-23 20:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 17:48:05' and `end` < '2025-04-23 20:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 20:48:18] Production.INFO: count ==2289 [2025-04-23 20:48:18] Production.ERROR: pbx CDR StartTime 2025-04-23 17:48:05 - End Time 2025-04-23 20:48:05 [2025-04-23 20:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974813', 'tblTempUsageDetail_20' ) start [2025-04-23 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974813', 'tblTempUsageDetail_20' ) end [2025-04-23 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974813', 'tblTempVendorCDR_20' ) start [2025-04-23 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974813', 'tblTempVendorCDR_20' ) end [2025-04-23 20:48:18] Production.INFO: ProcessCDR(1,14974813,1,1,2) [2025-04-23 20:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974813', 'tblTempUsageDetail_20' ) start [2025-04-23 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974813', 'tblTempUsageDetail_20' ) end [2025-04-23 20:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 20:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 20:48:22] Production.INFO: ==25935== Releasing lock... [2025-04-23 20:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 20:48:22] Production.INFO: 45.25 MB #Memory Used# [2025-04-23 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 17:49:05 [end_date_ymd] => 2025-04-23 20:49:05 [RateCDR] => 1 ) [2025-04-23 20:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 17:49:05' and `end` < '2025-04-23 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 20:49:18] Production.INFO: count ==2284 [2025-04-23 20:49:19] Production.ERROR: pbx CDR StartTime 2025-04-23 17:49:05 - End Time 2025-04-23 20:49:05 [2025-04-23 20:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974818', 'tblTempUsageDetail_20' ) start [2025-04-23 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974818', 'tblTempUsageDetail_20' ) end [2025-04-23 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974818', 'tblTempVendorCDR_20' ) start [2025-04-23 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974818', 'tblTempVendorCDR_20' ) end [2025-04-23 20:49:19] Production.INFO: ProcessCDR(1,14974818,1,1,2) [2025-04-23 20:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974818', 'tblTempUsageDetail_20' ) start [2025-04-23 20:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974818', 'tblTempUsageDetail_20' ) end [2025-04-23 20:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 20:49:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 20:49:23] Production.INFO: ==26019== Releasing lock... [2025-04-23 20:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 20:49:23] Production.INFO: 45.25 MB #Memory Used# [2025-04-23 20:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 17:50:05 [end_date_ymd] => 2025-04-23 20:50:05 [RateCDR] => 1 ) [2025-04-23 20:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 17:50:05' and `end` < '2025-04-23 20:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 20:50:18] Production.INFO: count ==2269 [2025-04-23 20:50:19] Production.ERROR: pbx CDR StartTime 2025-04-23 17:50:05 - End Time 2025-04-23 20:50:05 [2025-04-23 20:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974824', 'tblTempUsageDetail_20' ) start [2025-04-23 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974824', 'tblTempUsageDetail_20' ) end [2025-04-23 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974824', 'tblTempVendorCDR_20' ) start [2025-04-23 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974824', 'tblTempVendorCDR_20' ) end [2025-04-23 20:50:19] Production.INFO: ProcessCDR(1,14974824,1,1,2) [2025-04-23 20:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974824', 'tblTempUsageDetail_20' ) start [2025-04-23 20:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974824', 'tblTempUsageDetail_20' ) end [2025-04-23 20:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 20:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 20:50:22] Production.INFO: ==26091== Releasing lock... [2025-04-23 20:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 20:50:22] Production.INFO: 45.5 MB #Memory Used# [2025-04-23 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 17:51:05 [end_date_ymd] => 2025-04-23 20:51:05 [RateCDR] => 1 ) [2025-04-23 20:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 17:51:05' and `end` < '2025-04-23 20:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 20:51:18] Production.INFO: count ==2187 [2025-04-23 20:51:18] Production.ERROR: pbx CDR StartTime 2025-04-23 17:51:05 - End Time 2025-04-23 20:51:05 [2025-04-23 20:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974829', 'tblTempUsageDetail_20' ) start [2025-04-23 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974829', 'tblTempUsageDetail_20' ) end [2025-04-23 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974829', 'tblTempVendorCDR_20' ) start [2025-04-23 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974829', 'tblTempVendorCDR_20' ) end [2025-04-23 20:51:19] Production.INFO: ProcessCDR(1,14974829,1,1,2) [2025-04-23 20:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974829', 'tblTempUsageDetail_20' ) start [2025-04-23 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974829', 'tblTempUsageDetail_20' ) end [2025-04-23 20:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 20:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 20:51:22] Production.INFO: ==26175== Releasing lock... [2025-04-23 20:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 20:51:22] Production.INFO: 44.5 MB #Memory Used# [2025-04-23 20:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 17:52:04 [end_date_ymd] => 2025-04-23 20:52:04 [RateCDR] => 1 ) [2025-04-23 20:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 17:52:04' and `end` < '2025-04-23 20:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 20:52:17] Production.INFO: count ==2165 [2025-04-23 20:52:18] Production.ERROR: pbx CDR StartTime 2025-04-23 17:52:04 - End Time 2025-04-23 20:52:04 [2025-04-23 20:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974834', 'tblTempUsageDetail_20' ) start [2025-04-23 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974834', 'tblTempUsageDetail_20' ) end [2025-04-23 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974834', 'tblTempVendorCDR_20' ) start [2025-04-23 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974834', 'tblTempVendorCDR_20' ) end [2025-04-23 20:52:18] Production.INFO: ProcessCDR(1,14974834,1,1,2) [2025-04-23 20:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974834', 'tblTempUsageDetail_20' ) start [2025-04-23 20:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974834', 'tblTempUsageDetail_20' ) end [2025-04-23 20:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 20:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 20:52:23] Production.INFO: ==26300== Releasing lock... [2025-04-23 20:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 20:52:23] Production.INFO: 44.25 MB #Memory Used# [2025-04-23 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 17:53:05 [end_date_ymd] => 2025-04-23 20:53:05 [RateCDR] => 1 ) [2025-04-23 20:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 17:53:05' and `end` < '2025-04-23 20:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 20:53:18] Production.INFO: count ==2160 [2025-04-23 20:53:18] Production.ERROR: pbx CDR StartTime 2025-04-23 17:53:05 - End Time 2025-04-23 20:53:05 [2025-04-23 20:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974839', 'tblTempUsageDetail_20' ) start [2025-04-23 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974839', 'tblTempUsageDetail_20' ) end [2025-04-23 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974839', 'tblTempVendorCDR_20' ) start [2025-04-23 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974839', 'tblTempVendorCDR_20' ) end [2025-04-23 20:53:18] Production.INFO: ProcessCDR(1,14974839,1,1,2) [2025-04-23 20:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974839', 'tblTempUsageDetail_20' ) start [2025-04-23 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974839', 'tblTempUsageDetail_20' ) end [2025-04-23 20:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 20:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 20:53:22] Production.INFO: ==26381== Releasing lock... [2025-04-23 20:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 20:53:22] Production.INFO: 44.25 MB #Memory Used# [2025-04-23 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 17:54:05 [end_date_ymd] => 2025-04-23 20:54:05 [RateCDR] => 1 ) [2025-04-23 20:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 17:54:05' and `end` < '2025-04-23 20:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 20:54:18] Production.INFO: count ==2159 [2025-04-23 20:54:19] Production.ERROR: pbx CDR StartTime 2025-04-23 17:54:05 - End Time 2025-04-23 20:54:05 [2025-04-23 20:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974844', 'tblTempUsageDetail_20' ) start [2025-04-23 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974844', 'tblTempUsageDetail_20' ) end [2025-04-23 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974844', 'tblTempVendorCDR_20' ) start [2025-04-23 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974844', 'tblTempVendorCDR_20' ) end [2025-04-23 20:54:19] Production.INFO: ProcessCDR(1,14974844,1,1,2) [2025-04-23 20:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974844', 'tblTempUsageDetail_20' ) start [2025-04-23 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974844', 'tblTempUsageDetail_20' ) end [2025-04-23 20:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 20:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 20:54:22] Production.INFO: ==26455== Releasing lock... [2025-04-23 20:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 20:54:22] Production.INFO: 44.25 MB #Memory Used# [2025-04-23 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 17:55:05 [end_date_ymd] => 2025-04-23 20:55:05 [RateCDR] => 1 ) [2025-04-23 20:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 17:55:05' and `end` < '2025-04-23 20:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 20:55:18] Production.INFO: count ==2152 [2025-04-23 20:55:19] Production.ERROR: pbx CDR StartTime 2025-04-23 17:55:05 - End Time 2025-04-23 20:55:05 [2025-04-23 20:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974849', 'tblTempUsageDetail_20' ) start [2025-04-23 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974849', 'tblTempUsageDetail_20' ) end [2025-04-23 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974849', 'tblTempVendorCDR_20' ) start [2025-04-23 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974849', 'tblTempVendorCDR_20' ) end [2025-04-23 20:55:19] Production.INFO: ProcessCDR(1,14974849,1,1,2) [2025-04-23 20:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974849', 'tblTempUsageDetail_20' ) start [2025-04-23 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974849', 'tblTempUsageDetail_20' ) end [2025-04-23 20:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 20:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 20:55:22] Production.INFO: ==26525== Releasing lock... [2025-04-23 20:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 20:55:22] Production.INFO: 44 MB #Memory Used# [2025-04-23 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 17:56:05 [end_date_ymd] => 2025-04-23 20:56:05 [RateCDR] => 1 ) [2025-04-23 20:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 17:56:05' and `end` < '2025-04-23 20:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 20:56:18] Production.INFO: count ==2150 [2025-04-23 20:56:19] Production.ERROR: pbx CDR StartTime 2025-04-23 17:56:05 - End Time 2025-04-23 20:56:05 [2025-04-23 20:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974854', 'tblTempUsageDetail_20' ) start [2025-04-23 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974854', 'tblTempUsageDetail_20' ) end [2025-04-23 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974854', 'tblTempVendorCDR_20' ) start [2025-04-23 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974854', 'tblTempVendorCDR_20' ) end [2025-04-23 20:56:19] Production.INFO: ProcessCDR(1,14974854,1,1,2) [2025-04-23 20:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974854', 'tblTempUsageDetail_20' ) start [2025-04-23 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974854', 'tblTempUsageDetail_20' ) end [2025-04-23 20:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 20:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 20:56:22] Production.INFO: ==26603== Releasing lock... [2025-04-23 20:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 20:56:22] Production.INFO: 44.25 MB #Memory Used# [2025-04-23 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 17:57:05 [end_date_ymd] => 2025-04-23 20:57:05 [RateCDR] => 1 ) [2025-04-23 20:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 17:57:05' and `end` < '2025-04-23 20:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 20:57:18] Production.INFO: count ==2145 [2025-04-23 20:57:19] Production.ERROR: pbx CDR StartTime 2025-04-23 17:57:05 - End Time 2025-04-23 20:57:05 [2025-04-23 20:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974859', 'tblTempUsageDetail_20' ) start [2025-04-23 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974859', 'tblTempUsageDetail_20' ) end [2025-04-23 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974859', 'tblTempVendorCDR_20' ) start [2025-04-23 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974859', 'tblTempVendorCDR_20' ) end [2025-04-23 20:57:19] Production.INFO: ProcessCDR(1,14974859,1,1,2) [2025-04-23 20:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974859', 'tblTempUsageDetail_20' ) start [2025-04-23 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974859', 'tblTempUsageDetail_20' ) end [2025-04-23 20:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 20:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 20:57:22] Production.INFO: ==26679== Releasing lock... [2025-04-23 20:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 20:57:22] Production.INFO: 44.25 MB #Memory Used# [2025-04-23 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 17:58:05 [end_date_ymd] => 2025-04-23 20:58:05 [RateCDR] => 1 ) [2025-04-23 20:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 17:58:05' and `end` < '2025-04-23 20:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 20:58:18] Production.INFO: count ==2140 [2025-04-23 20:58:19] Production.ERROR: pbx CDR StartTime 2025-04-23 17:58:05 - End Time 2025-04-23 20:58:05 [2025-04-23 20:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974864', 'tblTempUsageDetail_20' ) start [2025-04-23 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974864', 'tblTempUsageDetail_20' ) end [2025-04-23 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974864', 'tblTempVendorCDR_20' ) start [2025-04-23 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974864', 'tblTempVendorCDR_20' ) end [2025-04-23 20:58:19] Production.INFO: ProcessCDR(1,14974864,1,1,2) [2025-04-23 20:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974864', 'tblTempUsageDetail_20' ) start [2025-04-23 20:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974864', 'tblTempUsageDetail_20' ) end [2025-04-23 20:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 20:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 20:58:22] Production.INFO: ==26797== Releasing lock... [2025-04-23 20:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 20:58:22] Production.INFO: 44.5 MB #Memory Used# [2025-04-23 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 17:59:05 [end_date_ymd] => 2025-04-23 20:59:05 [RateCDR] => 1 ) [2025-04-23 20:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 17:59:05' and `end` < '2025-04-23 20:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 20:59:18] Production.INFO: count ==2131 [2025-04-23 20:59:18] Production.ERROR: pbx CDR StartTime 2025-04-23 17:59:05 - End Time 2025-04-23 20:59:05 [2025-04-23 20:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974869', 'tblTempUsageDetail_20' ) start [2025-04-23 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974869', 'tblTempUsageDetail_20' ) end [2025-04-23 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974869', 'tblTempVendorCDR_20' ) start [2025-04-23 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974869', 'tblTempVendorCDR_20' ) end [2025-04-23 20:59:18] Production.INFO: ProcessCDR(1,14974869,1,1,2) [2025-04-23 20:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 20:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 20:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974869', 'tblTempUsageDetail_20' ) start [2025-04-23 20:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974869', 'tblTempUsageDetail_20' ) end [2025-04-23 20:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 20:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 20:59:23] Production.INFO: ==26912== Releasing lock... [2025-04-23 20:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 20:59:23] Production.INFO: 44.25 MB #Memory Used# [2025-04-23 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 18:00:06 [end_date_ymd] => 2025-04-23 21:00:06 [RateCDR] => 1 ) [2025-04-23 21:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 18:00:06' and `end` < '2025-04-23 21:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 21:00:19] Production.INFO: count ==2123 [2025-04-23 21:00:19] Production.ERROR: pbx CDR StartTime 2025-04-23 18:00:06 - End Time 2025-04-23 21:00:06 [2025-04-23 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974874', 'tblTempUsageDetail_20' ) start [2025-04-23 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974874', 'tblTempUsageDetail_20' ) end [2025-04-23 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974874', 'tblTempVendorCDR_20' ) start [2025-04-23 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974874', 'tblTempVendorCDR_20' ) end [2025-04-23 21:00:20] Production.INFO: ProcessCDR(1,14974874,1,1,2) [2025-04-23 21:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974874', 'tblTempUsageDetail_20' ) start [2025-04-23 21:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974874', 'tblTempUsageDetail_20' ) end [2025-04-23 21:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 21:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 21:00:23] Production.INFO: ==27036== Releasing lock... [2025-04-23 21:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 21:00:23] Production.INFO: 44 MB #Memory Used# [2025-04-23 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 18:01:05 [end_date_ymd] => 2025-04-23 21:01:05 [RateCDR] => 1 ) [2025-04-23 21:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 18:01:05' and `end` < '2025-04-23 21:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 21:01:18] Production.INFO: count ==2088 [2025-04-23 21:01:18] Production.ERROR: pbx CDR StartTime 2025-04-23 18:01:05 - End Time 2025-04-23 21:01:05 [2025-04-23 21:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974880', 'tblTempUsageDetail_20' ) start [2025-04-23 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974880', 'tblTempUsageDetail_20' ) end [2025-04-23 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974880', 'tblTempVendorCDR_20' ) start [2025-04-23 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974880', 'tblTempVendorCDR_20' ) end [2025-04-23 21:01:19] Production.INFO: ProcessCDR(1,14974880,1,1,2) [2025-04-23 21:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974880', 'tblTempUsageDetail_20' ) start [2025-04-23 21:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974880', 'tblTempUsageDetail_20' ) end [2025-04-23 21:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 21:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 21:01:23] Production.INFO: ==27163== Releasing lock... [2025-04-23 21:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 21:01:23] Production.INFO: 43.75 MB #Memory Used# [2025-04-23 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 18:02:05 [end_date_ymd] => 2025-04-23 21:02:05 [RateCDR] => 1 ) [2025-04-23 21:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 18:02:05' and `end` < '2025-04-23 21:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 21:02:18] Production.INFO: count ==2082 [2025-04-23 21:02:19] Production.ERROR: pbx CDR StartTime 2025-04-23 18:02:05 - End Time 2025-04-23 21:02:05 [2025-04-23 21:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974885', 'tblTempUsageDetail_20' ) start [2025-04-23 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974885', 'tblTempUsageDetail_20' ) end [2025-04-23 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974885', 'tblTempVendorCDR_20' ) start [2025-04-23 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974885', 'tblTempVendorCDR_20' ) end [2025-04-23 21:02:19] Production.INFO: ProcessCDR(1,14974885,1,1,2) [2025-04-23 21:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974885', 'tblTempUsageDetail_20' ) start [2025-04-23 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974885', 'tblTempUsageDetail_20' ) end [2025-04-23 21:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 21:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 21:02:22] Production.INFO: ==27275== Releasing lock... [2025-04-23 21:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 21:02:22] Production.INFO: 43.75 MB #Memory Used# [2025-04-23 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 18:03:05 [end_date_ymd] => 2025-04-23 21:03:05 [RateCDR] => 1 ) [2025-04-23 21:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 18:03:05' and `end` < '2025-04-23 21:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 21:03:18] Production.INFO: count ==2071 [2025-04-23 21:03:19] Production.ERROR: pbx CDR StartTime 2025-04-23 18:03:05 - End Time 2025-04-23 21:03:05 [2025-04-23 21:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974890', 'tblTempUsageDetail_20' ) start [2025-04-23 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974890', 'tblTempUsageDetail_20' ) end [2025-04-23 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974890', 'tblTempVendorCDR_20' ) start [2025-04-23 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974890', 'tblTempVendorCDR_20' ) end [2025-04-23 21:03:19] Production.INFO: ProcessCDR(1,14974890,1,1,2) [2025-04-23 21:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974890', 'tblTempUsageDetail_20' ) start [2025-04-23 21:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974890', 'tblTempUsageDetail_20' ) end [2025-04-23 21:03:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 21:03:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 21:03:24] Production.INFO: ==27392== Releasing lock... [2025-04-23 21:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 21:03:24] Production.INFO: 43.75 MB #Memory Used# [2025-04-23 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 18:04:05 [end_date_ymd] => 2025-04-23 21:04:05 [RateCDR] => 1 ) [2025-04-23 21:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 18:04:05' and `end` < '2025-04-23 21:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 21:04:18] Production.INFO: count ==2062 [2025-04-23 21:04:18] Production.ERROR: pbx CDR StartTime 2025-04-23 18:04:05 - End Time 2025-04-23 21:04:05 [2025-04-23 21:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974894', 'tblTempUsageDetail_20' ) start [2025-04-23 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974894', 'tblTempUsageDetail_20' ) end [2025-04-23 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974894', 'tblTempVendorCDR_20' ) start [2025-04-23 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974894', 'tblTempVendorCDR_20' ) end [2025-04-23 21:04:18] Production.INFO: ProcessCDR(1,14974894,1,1,2) [2025-04-23 21:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974894', 'tblTempUsageDetail_20' ) start [2025-04-23 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974894', 'tblTempUsageDetail_20' ) end [2025-04-23 21:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 21:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 21:04:22] Production.INFO: ==27505== Releasing lock... [2025-04-23 21:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 21:04:22] Production.INFO: 43.5 MB #Memory Used# [2025-04-23 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 18:05:05 [end_date_ymd] => 2025-04-23 21:05:05 [RateCDR] => 1 ) [2025-04-23 21:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 18:05:05' and `end` < '2025-04-23 21:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 21:05:18] Production.INFO: count ==2052 [2025-04-23 21:05:19] Production.ERROR: pbx CDR StartTime 2025-04-23 18:05:05 - End Time 2025-04-23 21:05:05 [2025-04-23 21:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974900', 'tblTempUsageDetail_20' ) start [2025-04-23 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974900', 'tblTempUsageDetail_20' ) end [2025-04-23 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974900', 'tblTempVendorCDR_20' ) start [2025-04-23 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974900', 'tblTempVendorCDR_20' ) end [2025-04-23 21:05:19] Production.INFO: ProcessCDR(1,14974900,1,1,2) [2025-04-23 21:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974900', 'tblTempUsageDetail_20' ) start [2025-04-23 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974900', 'tblTempUsageDetail_20' ) end [2025-04-23 21:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 21:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 21:05:22] Production.INFO: ==27617== Releasing lock... [2025-04-23 21:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 21:05:22] Production.INFO: 43.75 MB #Memory Used# [2025-04-23 21:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 18:06:04 [end_date_ymd] => 2025-04-23 21:06:04 [RateCDR] => 1 ) [2025-04-23 21:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 18:06:04' and `end` < '2025-04-23 21:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 21:06:17] Production.INFO: count ==2048 [2025-04-23 21:06:18] Production.ERROR: pbx CDR StartTime 2025-04-23 18:06:04 - End Time 2025-04-23 21:06:04 [2025-04-23 21:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974905', 'tblTempUsageDetail_20' ) start [2025-04-23 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974905', 'tblTempUsageDetail_20' ) end [2025-04-23 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974905', 'tblTempVendorCDR_20' ) start [2025-04-23 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974905', 'tblTempVendorCDR_20' ) end [2025-04-23 21:06:18] Production.INFO: ProcessCDR(1,14974905,1,1,2) [2025-04-23 21:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974905', 'tblTempUsageDetail_20' ) start [2025-04-23 21:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974905', 'tblTempUsageDetail_20' ) end [2025-04-23 21:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 21:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 21:06:21] Production.INFO: ==27726== Releasing lock... [2025-04-23 21:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 21:06:21] Production.INFO: 43.75 MB #Memory Used# [2025-04-23 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 18:07:05 [end_date_ymd] => 2025-04-23 21:07:05 [RateCDR] => 1 ) [2025-04-23 21:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 18:07:05' and `end` < '2025-04-23 21:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 21:07:18] Production.INFO: count ==2031 [2025-04-23 21:07:18] Production.ERROR: pbx CDR StartTime 2025-04-23 18:07:05 - End Time 2025-04-23 21:07:05 [2025-04-23 21:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974910', 'tblTempUsageDetail_20' ) start [2025-04-23 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974910', 'tblTempUsageDetail_20' ) end [2025-04-23 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974910', 'tblTempVendorCDR_20' ) start [2025-04-23 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974910', 'tblTempVendorCDR_20' ) end [2025-04-23 21:07:19] Production.INFO: ProcessCDR(1,14974910,1,1,2) [2025-04-23 21:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974910', 'tblTempUsageDetail_20' ) start [2025-04-23 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974910', 'tblTempUsageDetail_20' ) end [2025-04-23 21:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 21:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 21:07:22] Production.INFO: ==27843== Releasing lock... [2025-04-23 21:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 21:07:22] Production.INFO: 43.5 MB #Memory Used# [2025-04-23 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 18:08:05 [end_date_ymd] => 2025-04-23 21:08:05 [RateCDR] => 1 ) [2025-04-23 21:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 18:08:05' and `end` < '2025-04-23 21:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 21:08:18] Production.INFO: count ==2012 [2025-04-23 21:08:19] Production.ERROR: pbx CDR StartTime 2025-04-23 18:08:05 - End Time 2025-04-23 21:08:05 [2025-04-23 21:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974915', 'tblTempUsageDetail_20' ) start [2025-04-23 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974915', 'tblTempUsageDetail_20' ) end [2025-04-23 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974915', 'tblTempVendorCDR_20' ) start [2025-04-23 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974915', 'tblTempVendorCDR_20' ) end [2025-04-23 21:08:19] Production.INFO: ProcessCDR(1,14974915,1,1,2) [2025-04-23 21:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974915', 'tblTempUsageDetail_20' ) start [2025-04-23 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974915', 'tblTempUsageDetail_20' ) end [2025-04-23 21:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 21:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 21:08:22] Production.INFO: ==28002== Releasing lock... [2025-04-23 21:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 21:08:22] Production.INFO: 43.5 MB #Memory Used# [2025-04-23 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 18:09:05 [end_date_ymd] => 2025-04-23 21:09:05 [RateCDR] => 1 ) [2025-04-23 21:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 18:09:05' and `end` < '2025-04-23 21:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 21:09:18] Production.INFO: count ==2007 [2025-04-23 21:09:18] Production.ERROR: pbx CDR StartTime 2025-04-23 18:09:05 - End Time 2025-04-23 21:09:05 [2025-04-23 21:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974920', 'tblTempUsageDetail_20' ) start [2025-04-23 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974920', 'tblTempUsageDetail_20' ) end [2025-04-23 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974920', 'tblTempVendorCDR_20' ) start [2025-04-23 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974920', 'tblTempVendorCDR_20' ) end [2025-04-23 21:09:18] Production.INFO: ProcessCDR(1,14974920,1,1,2) [2025-04-23 21:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974920', 'tblTempUsageDetail_20' ) start [2025-04-23 21:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974920', 'tblTempUsageDetail_20' ) end [2025-04-23 21:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 21:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 21:09:22] Production.INFO: ==28122== Releasing lock... [2025-04-23 21:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 21:09:22] Production.INFO: 43.25 MB #Memory Used# [2025-04-23 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 18:10:06 [end_date_ymd] => 2025-04-23 21:10:06 [RateCDR] => 1 ) [2025-04-23 21:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 18:10:06' and `end` < '2025-04-23 21:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 21:10:19] Production.INFO: count ==2009 [2025-04-23 21:10:20] Production.ERROR: pbx CDR StartTime 2025-04-23 18:10:06 - End Time 2025-04-23 21:10:06 [2025-04-23 21:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974925', 'tblTempUsageDetail_20' ) start [2025-04-23 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974925', 'tblTempUsageDetail_20' ) end [2025-04-23 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974925', 'tblTempVendorCDR_20' ) start [2025-04-23 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974925', 'tblTempVendorCDR_20' ) end [2025-04-23 21:10:20] Production.INFO: ProcessCDR(1,14974925,1,1,2) [2025-04-23 21:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974925', 'tblTempUsageDetail_20' ) start [2025-04-23 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974925', 'tblTempUsageDetail_20' ) end [2025-04-23 21:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 21:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 21:10:23] Production.INFO: ==28243== Releasing lock... [2025-04-23 21:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 21:10:23] Production.INFO: 43.25 MB #Memory Used# [2025-04-23 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 18:11:05 [end_date_ymd] => 2025-04-23 21:11:05 [RateCDR] => 1 ) [2025-04-23 21:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 18:11:05' and `end` < '2025-04-23 21:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 21:11:18] Production.INFO: count ==1891 [2025-04-23 21:11:18] Production.ERROR: pbx CDR StartTime 2025-04-23 18:11:05 - End Time 2025-04-23 21:11:05 [2025-04-23 21:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974931', 'tblTempUsageDetail_20' ) start [2025-04-23 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974931', 'tblTempUsageDetail_20' ) end [2025-04-23 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974931', 'tblTempVendorCDR_20' ) start [2025-04-23 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974931', 'tblTempVendorCDR_20' ) end [2025-04-23 21:11:18] Production.INFO: ProcessCDR(1,14974931,1,1,2) [2025-04-23 21:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974931', 'tblTempUsageDetail_20' ) start [2025-04-23 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974931', 'tblTempUsageDetail_20' ) end [2025-04-23 21:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 21:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 21:11:22] Production.INFO: ==28328== Releasing lock... [2025-04-23 21:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 21:11:22] Production.INFO: 42.25 MB #Memory Used# [2025-04-23 21:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 18:12:06 [end_date_ymd] => 2025-04-23 21:12:06 [RateCDR] => 1 ) [2025-04-23 21:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 18:12:06' and `end` < '2025-04-23 21:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 21:12:18] Production.INFO: count ==1879 [2025-04-23 21:12:19] Production.ERROR: pbx CDR StartTime 2025-04-23 18:12:06 - End Time 2025-04-23 21:12:06 [2025-04-23 21:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974936', 'tblTempUsageDetail_20' ) start [2025-04-23 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974936', 'tblTempUsageDetail_20' ) end [2025-04-23 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974936', 'tblTempVendorCDR_20' ) start [2025-04-23 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974936', 'tblTempVendorCDR_20' ) end [2025-04-23 21:12:19] Production.INFO: ProcessCDR(1,14974936,1,1,2) [2025-04-23 21:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974936', 'tblTempUsageDetail_20' ) start [2025-04-23 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974936', 'tblTempUsageDetail_20' ) end [2025-04-23 21:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 21:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 21:12:22] Production.INFO: ==28399== Releasing lock... [2025-04-23 21:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 21:12:22] Production.INFO: 42.25 MB #Memory Used# [2025-04-23 21:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 18:13:04 [end_date_ymd] => 2025-04-23 21:13:04 [RateCDR] => 1 ) [2025-04-23 21:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 18:13:04' and `end` < '2025-04-23 21:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 21:13:17] Production.INFO: count ==1856 [2025-04-23 21:13:18] Production.ERROR: pbx CDR StartTime 2025-04-23 18:13:04 - End Time 2025-04-23 21:13:04 [2025-04-23 21:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974941', 'tblTempUsageDetail_20' ) start [2025-04-23 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974941', 'tblTempUsageDetail_20' ) end [2025-04-23 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974941', 'tblTempVendorCDR_20' ) start [2025-04-23 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974941', 'tblTempVendorCDR_20' ) end [2025-04-23 21:13:18] Production.INFO: ProcessCDR(1,14974941,1,1,2) [2025-04-23 21:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974941', 'tblTempUsageDetail_20' ) start [2025-04-23 21:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974941', 'tblTempUsageDetail_20' ) end [2025-04-23 21:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 21:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 21:13:21] Production.INFO: ==28474== Releasing lock... [2025-04-23 21:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 21:13:21] Production.INFO: 42 MB #Memory Used# [2025-04-23 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 18:14:05 [end_date_ymd] => 2025-04-23 21:14:05 [RateCDR] => 1 ) [2025-04-23 21:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 18:14:05' and `end` < '2025-04-23 21:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 21:14:18] Production.INFO: count ==1867 [2025-04-23 21:14:19] Production.ERROR: pbx CDR StartTime 2025-04-23 18:14:05 - End Time 2025-04-23 21:14:05 [2025-04-23 21:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974946', 'tblTempUsageDetail_20' ) start [2025-04-23 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974946', 'tblTempUsageDetail_20' ) end [2025-04-23 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974946', 'tblTempVendorCDR_20' ) start [2025-04-23 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974946', 'tblTempVendorCDR_20' ) end [2025-04-23 21:14:19] Production.INFO: ProcessCDR(1,14974946,1,1,2) [2025-04-23 21:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974946', 'tblTempUsageDetail_20' ) start [2025-04-23 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974946', 'tblTempUsageDetail_20' ) end [2025-04-23 21:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 21:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 21:14:22] Production.INFO: ==28551== Releasing lock... [2025-04-23 21:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 21:14:22] Production.INFO: 42 MB #Memory Used# [2025-04-23 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 18:15:05 [end_date_ymd] => 2025-04-23 21:15:05 [RateCDR] => 1 ) [2025-04-23 21:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 18:15:05' and `end` < '2025-04-23 21:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 21:15:18] Production.INFO: count ==1853 [2025-04-23 21:15:18] Production.ERROR: pbx CDR StartTime 2025-04-23 18:15:05 - End Time 2025-04-23 21:15:05 [2025-04-23 21:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974951', 'tblTempUsageDetail_20' ) start [2025-04-23 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974951', 'tblTempUsageDetail_20' ) end [2025-04-23 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974951', 'tblTempVendorCDR_20' ) start [2025-04-23 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974951', 'tblTempVendorCDR_20' ) end [2025-04-23 21:15:19] Production.INFO: ProcessCDR(1,14974951,1,1,2) [2025-04-23 21:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974951', 'tblTempUsageDetail_20' ) start [2025-04-23 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974951', 'tblTempUsageDetail_20' ) end [2025-04-23 21:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 21:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 21:15:22] Production.INFO: ==28630== Releasing lock... [2025-04-23 21:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 21:15:22] Production.INFO: 42 MB #Memory Used# [2025-04-23 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 18:16:05 [end_date_ymd] => 2025-04-23 21:16:05 [RateCDR] => 1 ) [2025-04-23 21:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 18:16:05' and `end` < '2025-04-23 21:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 21:16:18] Production.INFO: count ==1848 [2025-04-23 21:16:19] Production.ERROR: pbx CDR StartTime 2025-04-23 18:16:05 - End Time 2025-04-23 21:16:05 [2025-04-23 21:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974956', 'tblTempUsageDetail_20' ) start [2025-04-23 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974956', 'tblTempUsageDetail_20' ) end [2025-04-23 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974956', 'tblTempVendorCDR_20' ) start [2025-04-23 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974956', 'tblTempVendorCDR_20' ) end [2025-04-23 21:16:19] Production.INFO: ProcessCDR(1,14974956,1,1,2) [2025-04-23 21:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974956', 'tblTempUsageDetail_20' ) start [2025-04-23 21:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974956', 'tblTempUsageDetail_20' ) end [2025-04-23 21:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 21:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 21:16:22] Production.INFO: ==28705== Releasing lock... [2025-04-23 21:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 21:16:22] Production.INFO: 41.75 MB #Memory Used# [2025-04-23 21:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 18:17:04 [end_date_ymd] => 2025-04-23 21:17:04 [RateCDR] => 1 ) [2025-04-23 21:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 18:17:04' and `end` < '2025-04-23 21:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 21:17:17] Production.INFO: count ==1842 [2025-04-23 21:17:17] Production.ERROR: pbx CDR StartTime 2025-04-23 18:17:04 - End Time 2025-04-23 21:17:04 [2025-04-23 21:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 21:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974961', 'tblTempUsageDetail_20' ) start [2025-04-23 21:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974961', 'tblTempUsageDetail_20' ) end [2025-04-23 21:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974961', 'tblTempVendorCDR_20' ) start [2025-04-23 21:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974961', 'tblTempVendorCDR_20' ) end [2025-04-23 21:17:17] Production.INFO: ProcessCDR(1,14974961,1,1,2) [2025-04-23 21:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974961', 'tblTempUsageDetail_20' ) start [2025-04-23 21:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974961', 'tblTempUsageDetail_20' ) end [2025-04-23 21:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 21:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 21:17:21] Production.INFO: ==28781== Releasing lock... [2025-04-23 21:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 21:17:21] Production.INFO: 42 MB #Memory Used# [2025-04-23 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 18:18:05 [end_date_ymd] => 2025-04-23 21:18:05 [RateCDR] => 1 ) [2025-04-23 21:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 18:18:05' and `end` < '2025-04-23 21:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 21:18:18] Production.INFO: count ==1831 [2025-04-23 21:18:18] Production.ERROR: pbx CDR StartTime 2025-04-23 18:18:05 - End Time 2025-04-23 21:18:05 [2025-04-23 21:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974966', 'tblTempUsageDetail_20' ) start [2025-04-23 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974966', 'tblTempUsageDetail_20' ) end [2025-04-23 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974966', 'tblTempVendorCDR_20' ) start [2025-04-23 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974966', 'tblTempVendorCDR_20' ) end [2025-04-23 21:18:18] Production.INFO: ProcessCDR(1,14974966,1,1,2) [2025-04-23 21:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974966', 'tblTempUsageDetail_20' ) start [2025-04-23 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974966', 'tblTempUsageDetail_20' ) end [2025-04-23 21:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 21:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 21:18:22] Production.INFO: ==28865== Releasing lock... [2025-04-23 21:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 21:18:22] Production.INFO: 41.75 MB #Memory Used# [2025-04-23 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 18:19:05 [end_date_ymd] => 2025-04-23 21:19:05 [RateCDR] => 1 ) [2025-04-23 21:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 18:19:05' and `end` < '2025-04-23 21:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 21:19:17] Production.INFO: count ==1821 [2025-04-23 21:19:18] Production.ERROR: pbx CDR StartTime 2025-04-23 18:19:05 - End Time 2025-04-23 21:19:05 [2025-04-23 21:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974971', 'tblTempUsageDetail_20' ) start [2025-04-23 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974971', 'tblTempUsageDetail_20' ) end [2025-04-23 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974971', 'tblTempVendorCDR_20' ) start [2025-04-23 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974971', 'tblTempVendorCDR_20' ) end [2025-04-23 21:19:18] Production.INFO: ProcessCDR(1,14974971,1,1,2) [2025-04-23 21:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974971', 'tblTempUsageDetail_20' ) start [2025-04-23 21:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974971', 'tblTempUsageDetail_20' ) end [2025-04-23 21:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 21:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 21:19:21] Production.INFO: ==28939== Releasing lock... [2025-04-23 21:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 21:19:21] Production.INFO: 41.75 MB #Memory Used# [2025-04-23 21:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 18:20:05 [end_date_ymd] => 2025-04-23 21:20:05 [RateCDR] => 1 ) [2025-04-23 21:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 18:20:05' and `end` < '2025-04-23 21:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 21:20:18] Production.INFO: count ==1816 [2025-04-23 21:20:18] Production.ERROR: pbx CDR StartTime 2025-04-23 18:20:05 - End Time 2025-04-23 21:20:05 [2025-04-23 21:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974976', 'tblTempUsageDetail_20' ) start [2025-04-23 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974976', 'tblTempUsageDetail_20' ) end [2025-04-23 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974976', 'tblTempVendorCDR_20' ) start [2025-04-23 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974976', 'tblTempVendorCDR_20' ) end [2025-04-23 21:20:18] Production.INFO: ProcessCDR(1,14974976,1,1,2) [2025-04-23 21:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974976', 'tblTempUsageDetail_20' ) start [2025-04-23 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974976', 'tblTempUsageDetail_20' ) end [2025-04-23 21:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 21:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 21:20:22] Production.INFO: ==29029== Releasing lock... [2025-04-23 21:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 21:20:22] Production.INFO: 41.75 MB #Memory Used# [2025-04-23 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 18:21:05 [end_date_ymd] => 2025-04-23 21:21:05 [RateCDR] => 1 ) [2025-04-23 21:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 18:21:05' and `end` < '2025-04-23 21:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 21:21:18] Production.INFO: count ==1742 [2025-04-23 21:21:19] Production.ERROR: pbx CDR StartTime 2025-04-23 18:21:05 - End Time 2025-04-23 21:21:05 [2025-04-23 21:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974982', 'tblTempUsageDetail_20' ) start [2025-04-23 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974982', 'tblTempUsageDetail_20' ) end [2025-04-23 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974982', 'tblTempVendorCDR_20' ) start [2025-04-23 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974982', 'tblTempVendorCDR_20' ) end [2025-04-23 21:21:19] Production.INFO: ProcessCDR(1,14974982,1,1,2) [2025-04-23 21:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974982', 'tblTempUsageDetail_20' ) start [2025-04-23 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974982', 'tblTempUsageDetail_20' ) end [2025-04-23 21:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 21:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 21:21:22] Production.INFO: ==29103== Releasing lock... [2025-04-23 21:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 21:21:22] Production.INFO: 41.25 MB #Memory Used# [2025-04-23 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 18:22:05 [end_date_ymd] => 2025-04-23 21:22:05 [RateCDR] => 1 ) [2025-04-23 21:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 18:22:05' and `end` < '2025-04-23 21:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 21:22:18] Production.INFO: count ==1737 [2025-04-23 21:22:18] Production.ERROR: pbx CDR StartTime 2025-04-23 18:22:05 - End Time 2025-04-23 21:22:05 [2025-04-23 21:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974987', 'tblTempUsageDetail_20' ) start [2025-04-23 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974987', 'tblTempUsageDetail_20' ) end [2025-04-23 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974987', 'tblTempVendorCDR_20' ) start [2025-04-23 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974987', 'tblTempVendorCDR_20' ) end [2025-04-23 21:22:18] Production.INFO: ProcessCDR(1,14974987,1,1,2) [2025-04-23 21:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974987', 'tblTempUsageDetail_20' ) start [2025-04-23 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974987', 'tblTempUsageDetail_20' ) end [2025-04-23 21:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 21:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 21:22:22] Production.INFO: ==29180== Releasing lock... [2025-04-23 21:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 21:22:22] Production.INFO: 41 MB #Memory Used# [2025-04-23 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 18:23:05 [end_date_ymd] => 2025-04-23 21:23:05 [RateCDR] => 1 ) [2025-04-23 21:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 18:23:05' and `end` < '2025-04-23 21:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 21:23:18] Production.INFO: count ==1732 [2025-04-23 21:23:18] Production.ERROR: pbx CDR StartTime 2025-04-23 18:23:05 - End Time 2025-04-23 21:23:05 [2025-04-23 21:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974992', 'tblTempUsageDetail_20' ) start [2025-04-23 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974992', 'tblTempUsageDetail_20' ) end [2025-04-23 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974992', 'tblTempVendorCDR_20' ) start [2025-04-23 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974992', 'tblTempVendorCDR_20' ) end [2025-04-23 21:23:18] Production.INFO: ProcessCDR(1,14974992,1,1,2) [2025-04-23 21:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974992', 'tblTempUsageDetail_20' ) start [2025-04-23 21:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974992', 'tblTempUsageDetail_20' ) end [2025-04-23 21:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 21:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 21:23:21] Production.INFO: ==29298== Releasing lock... [2025-04-23 21:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 21:23:21] Production.INFO: 41 MB #Memory Used# [2025-04-23 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 18:24:05 [end_date_ymd] => 2025-04-23 21:24:05 [RateCDR] => 1 ) [2025-04-23 21:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 18:24:05' and `end` < '2025-04-23 21:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 21:24:17] Production.INFO: count ==1724 [2025-04-23 21:24:18] Production.ERROR: pbx CDR StartTime 2025-04-23 18:24:05 - End Time 2025-04-23 21:24:05 [2025-04-23 21:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974997', 'tblTempUsageDetail_20' ) start [2025-04-23 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14974997', 'tblTempUsageDetail_20' ) end [2025-04-23 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974997', 'tblTempVendorCDR_20' ) start [2025-04-23 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14974997', 'tblTempVendorCDR_20' ) end [2025-04-23 21:24:18] Production.INFO: ProcessCDR(1,14974997,1,1,2) [2025-04-23 21:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14974997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14974997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14974997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14974997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974997', 'tblTempUsageDetail_20' ) start [2025-04-23 21:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14974997', 'tblTempUsageDetail_20' ) end [2025-04-23 21:24:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 21:24:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 21:24:23] Production.INFO: ==29376== Releasing lock... [2025-04-23 21:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 21:24:23] Production.INFO: 41.5 MB #Memory Used# [2025-04-23 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 18:25:05 [end_date_ymd] => 2025-04-23 21:25:05 [RateCDR] => 1 ) [2025-04-23 21:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 18:25:05' and `end` < '2025-04-23 21:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 21:25:17] Production.INFO: count ==1730 [2025-04-23 21:25:18] Production.ERROR: pbx CDR StartTime 2025-04-23 18:25:05 - End Time 2025-04-23 21:25:05 [2025-04-23 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975002', 'tblTempUsageDetail_20' ) start [2025-04-23 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975002', 'tblTempUsageDetail_20' ) end [2025-04-23 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975002', 'tblTempVendorCDR_20' ) start [2025-04-23 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975002', 'tblTempVendorCDR_20' ) end [2025-04-23 21:25:18] Production.INFO: ProcessCDR(1,14975002,1,1,2) [2025-04-23 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975002', 'tblTempUsageDetail_20' ) start [2025-04-23 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975002', 'tblTempUsageDetail_20' ) end [2025-04-23 21:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 21:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 21:25:21] Production.INFO: ==29450== Releasing lock... [2025-04-23 21:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 21:25:21] Production.INFO: 41 MB #Memory Used# [2025-04-23 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 18:26:05 [end_date_ymd] => 2025-04-23 21:26:05 [RateCDR] => 1 ) [2025-04-23 21:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 18:26:05' and `end` < '2025-04-23 21:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 21:26:18] Production.INFO: count ==1718 [2025-04-23 21:26:18] Production.ERROR: pbx CDR StartTime 2025-04-23 18:26:05 - End Time 2025-04-23 21:26:05 [2025-04-23 21:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975007', 'tblTempUsageDetail_20' ) start [2025-04-23 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975007', 'tblTempUsageDetail_20' ) end [2025-04-23 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975007', 'tblTempVendorCDR_20' ) start [2025-04-23 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975007', 'tblTempVendorCDR_20' ) end [2025-04-23 21:26:18] Production.INFO: ProcessCDR(1,14975007,1,1,2) [2025-04-23 21:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975007', 'tblTempUsageDetail_20' ) start [2025-04-23 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975007', 'tblTempUsageDetail_20' ) end [2025-04-23 21:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 21:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 21:26:22] Production.INFO: ==29528== Releasing lock... [2025-04-23 21:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 21:26:22] Production.INFO: 41.25 MB #Memory Used# [2025-04-23 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 18:27:05 [end_date_ymd] => 2025-04-23 21:27:05 [RateCDR] => 1 ) [2025-04-23 21:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 18:27:05' and `end` < '2025-04-23 21:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 21:27:18] Production.INFO: count ==1719 [2025-04-23 21:27:19] Production.ERROR: pbx CDR StartTime 2025-04-23 18:27:05 - End Time 2025-04-23 21:27:05 [2025-04-23 21:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975012', 'tblTempUsageDetail_20' ) start [2025-04-23 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975012', 'tblTempUsageDetail_20' ) end [2025-04-23 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975012', 'tblTempVendorCDR_20' ) start [2025-04-23 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975012', 'tblTempVendorCDR_20' ) end [2025-04-23 21:27:19] Production.INFO: ProcessCDR(1,14975012,1,1,2) [2025-04-23 21:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975012', 'tblTempUsageDetail_20' ) start [2025-04-23 21:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975012', 'tblTempUsageDetail_20' ) end [2025-04-23 21:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 21:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 21:27:22] Production.INFO: ==29610== Releasing lock... [2025-04-23 21:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 21:27:22] Production.INFO: 41.25 MB #Memory Used# [2025-04-23 21:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 18:28:06 [end_date_ymd] => 2025-04-23 21:28:06 [RateCDR] => 1 ) [2025-04-23 21:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 18:28:06' and `end` < '2025-04-23 21:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 21:28:18] Production.INFO: count ==1712 [2025-04-23 21:28:19] Production.ERROR: pbx CDR StartTime 2025-04-23 18:28:06 - End Time 2025-04-23 21:28:06 [2025-04-23 21:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975017', 'tblTempUsageDetail_20' ) start [2025-04-23 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975017', 'tblTempUsageDetail_20' ) end [2025-04-23 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975017', 'tblTempVendorCDR_20' ) start [2025-04-23 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975017', 'tblTempVendorCDR_20' ) end [2025-04-23 21:28:19] Production.INFO: ProcessCDR(1,14975017,1,1,2) [2025-04-23 21:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975017', 'tblTempUsageDetail_20' ) start [2025-04-23 21:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975017', 'tblTempUsageDetail_20' ) end [2025-04-23 21:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 21:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 21:28:22] Production.INFO: ==29685== Releasing lock... [2025-04-23 21:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 21:28:22] Production.INFO: 41 MB #Memory Used# [2025-04-23 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 18:29:05 [end_date_ymd] => 2025-04-23 21:29:05 [RateCDR] => 1 ) [2025-04-23 21:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 18:29:05' and `end` < '2025-04-23 21:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 21:29:18] Production.INFO: count ==1705 [2025-04-23 21:29:18] Production.ERROR: pbx CDR StartTime 2025-04-23 18:29:05 - End Time 2025-04-23 21:29:05 [2025-04-23 21:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975022', 'tblTempUsageDetail_20' ) start [2025-04-23 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975022', 'tblTempUsageDetail_20' ) end [2025-04-23 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975022', 'tblTempVendorCDR_20' ) start [2025-04-23 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975022', 'tblTempVendorCDR_20' ) end [2025-04-23 21:29:18] Production.INFO: ProcessCDR(1,14975022,1,1,2) [2025-04-23 21:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975022', 'tblTempUsageDetail_20' ) start [2025-04-23 21:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975022', 'tblTempUsageDetail_20' ) end [2025-04-23 21:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 21:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 21:29:21] Production.INFO: ==29761== Releasing lock... [2025-04-23 21:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 21:29:21] Production.INFO: 40.75 MB #Memory Used# [2025-04-23 21:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 18:30:05 [end_date_ymd] => 2025-04-23 21:30:05 [RateCDR] => 1 ) [2025-04-23 21:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 18:30:05' and `end` < '2025-04-23 21:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 21:30:18] Production.INFO: count ==1703 [2025-04-23 21:30:19] Production.ERROR: pbx CDR StartTime 2025-04-23 18:30:05 - End Time 2025-04-23 21:30:05 [2025-04-23 21:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975027', 'tblTempUsageDetail_20' ) start [2025-04-23 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975027', 'tblTempUsageDetail_20' ) end [2025-04-23 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975027', 'tblTempVendorCDR_20' ) start [2025-04-23 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975027', 'tblTempVendorCDR_20' ) end [2025-04-23 21:30:19] Production.INFO: ProcessCDR(1,14975027,1,1,2) [2025-04-23 21:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975027', 'tblTempUsageDetail_20' ) start [2025-04-23 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975027', 'tblTempUsageDetail_20' ) end [2025-04-23 21:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 21:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 21:30:22] Production.INFO: ==29840== Releasing lock... [2025-04-23 21:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 21:30:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-23 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 18:31:05 [end_date_ymd] => 2025-04-23 21:31:05 [RateCDR] => 1 ) [2025-04-23 21:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 18:31:05' and `end` < '2025-04-23 21:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 21:31:17] Production.INFO: count ==1648 [2025-04-23 21:31:18] Production.ERROR: pbx CDR StartTime 2025-04-23 18:31:05 - End Time 2025-04-23 21:31:05 [2025-04-23 21:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975033', 'tblTempUsageDetail_20' ) start [2025-04-23 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975033', 'tblTempUsageDetail_20' ) end [2025-04-23 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975033', 'tblTempVendorCDR_20' ) start [2025-04-23 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975033', 'tblTempVendorCDR_20' ) end [2025-04-23 21:31:18] Production.INFO: ProcessCDR(1,14975033,1,1,2) [2025-04-23 21:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975033', 'tblTempUsageDetail_20' ) start [2025-04-23 21:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975033', 'tblTempUsageDetail_20' ) end [2025-04-23 21:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 21:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 21:31:21] Production.INFO: ==29916== Releasing lock... [2025-04-23 21:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 21:31:21] Production.INFO: 40.5 MB #Memory Used# [2025-04-23 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 18:32:05 [end_date_ymd] => 2025-04-23 21:32:05 [RateCDR] => 1 ) [2025-04-23 21:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 18:32:05' and `end` < '2025-04-23 21:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 21:32:18] Production.INFO: count ==1646 [2025-04-23 21:32:19] Production.ERROR: pbx CDR StartTime 2025-04-23 18:32:05 - End Time 2025-04-23 21:32:05 [2025-04-23 21:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975038', 'tblTempUsageDetail_20' ) start [2025-04-23 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975038', 'tblTempUsageDetail_20' ) end [2025-04-23 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975038', 'tblTempVendorCDR_20' ) start [2025-04-23 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975038', 'tblTempVendorCDR_20' ) end [2025-04-23 21:32:19] Production.INFO: ProcessCDR(1,14975038,1,1,2) [2025-04-23 21:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975038', 'tblTempUsageDetail_20' ) start [2025-04-23 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975038', 'tblTempUsageDetail_20' ) end [2025-04-23 21:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 21:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 21:32:22] Production.INFO: ==29987== Releasing lock... [2025-04-23 21:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 21:32:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-23 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 18:33:05 [end_date_ymd] => 2025-04-23 21:33:05 [RateCDR] => 1 ) [2025-04-23 21:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 18:33:05' and `end` < '2025-04-23 21:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 21:33:18] Production.INFO: count ==1650 [2025-04-23 21:33:19] Production.ERROR: pbx CDR StartTime 2025-04-23 18:33:05 - End Time 2025-04-23 21:33:05 [2025-04-23 21:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975043', 'tblTempUsageDetail_20' ) start [2025-04-23 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975043', 'tblTempUsageDetail_20' ) end [2025-04-23 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975043', 'tblTempVendorCDR_20' ) start [2025-04-23 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975043', 'tblTempVendorCDR_20' ) end [2025-04-23 21:33:19] Production.INFO: ProcessCDR(1,14975043,1,1,2) [2025-04-23 21:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975043', 'tblTempUsageDetail_20' ) start [2025-04-23 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975043', 'tblTempUsageDetail_20' ) end [2025-04-23 21:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 21:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 21:33:22] Production.INFO: ==30061== Releasing lock... [2025-04-23 21:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 21:33:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-23 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 18:34:05 [end_date_ymd] => 2025-04-23 21:34:05 [RateCDR] => 1 ) [2025-04-23 21:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 18:34:05' and `end` < '2025-04-23 21:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 21:34:18] Production.INFO: count ==1648 [2025-04-23 21:34:18] Production.ERROR: pbx CDR StartTime 2025-04-23 18:34:05 - End Time 2025-04-23 21:34:05 [2025-04-23 21:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975048', 'tblTempUsageDetail_20' ) start [2025-04-23 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975048', 'tblTempUsageDetail_20' ) end [2025-04-23 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975048', 'tblTempVendorCDR_20' ) start [2025-04-23 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975048', 'tblTempVendorCDR_20' ) end [2025-04-23 21:34:18] Production.INFO: ProcessCDR(1,14975048,1,1,2) [2025-04-23 21:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975048', 'tblTempUsageDetail_20' ) start [2025-04-23 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975048', 'tblTempUsageDetail_20' ) end [2025-04-23 21:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 21:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 21:34:22] Production.INFO: ==30131== Releasing lock... [2025-04-23 21:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 21:34:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-23 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 18:35:05 [end_date_ymd] => 2025-04-23 21:35:05 [RateCDR] => 1 ) [2025-04-23 21:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 18:35:05' and `end` < '2025-04-23 21:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 21:35:18] Production.INFO: count ==1641 [2025-04-23 21:35:18] Production.ERROR: pbx CDR StartTime 2025-04-23 18:35:05 - End Time 2025-04-23 21:35:05 [2025-04-23 21:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975053', 'tblTempUsageDetail_20' ) start [2025-04-23 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975053', 'tblTempUsageDetail_20' ) end [2025-04-23 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975053', 'tblTempVendorCDR_20' ) start [2025-04-23 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975053', 'tblTempVendorCDR_20' ) end [2025-04-23 21:35:19] Production.INFO: ProcessCDR(1,14975053,1,1,2) [2025-04-23 21:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975053', 'tblTempUsageDetail_20' ) start [2025-04-23 21:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975053', 'tblTempUsageDetail_20' ) end [2025-04-23 21:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 21:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 21:35:22] Production.INFO: ==30207== Releasing lock... [2025-04-23 21:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 21:35:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-23 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 18:36:05 [end_date_ymd] => 2025-04-23 21:36:05 [RateCDR] => 1 ) [2025-04-23 21:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 18:36:05' and `end` < '2025-04-23 21:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 21:36:18] Production.INFO: count ==1639 [2025-04-23 21:36:18] Production.ERROR: pbx CDR StartTime 2025-04-23 18:36:05 - End Time 2025-04-23 21:36:05 [2025-04-23 21:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975058', 'tblTempUsageDetail_20' ) start [2025-04-23 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975058', 'tblTempUsageDetail_20' ) end [2025-04-23 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975058', 'tblTempVendorCDR_20' ) start [2025-04-23 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975058', 'tblTempVendorCDR_20' ) end [2025-04-23 21:36:18] Production.INFO: ProcessCDR(1,14975058,1,1,2) [2025-04-23 21:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975058', 'tblTempUsageDetail_20' ) start [2025-04-23 21:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975058', 'tblTempUsageDetail_20' ) end [2025-04-23 21:36:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 21:36:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 21:36:23] Production.INFO: ==30282== Releasing lock... [2025-04-23 21:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 21:36:23] Production.INFO: 40.25 MB #Memory Used# [2025-04-23 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 18:37:05 [end_date_ymd] => 2025-04-23 21:37:05 [RateCDR] => 1 ) [2025-04-23 21:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 18:37:05' and `end` < '2025-04-23 21:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 21:37:18] Production.INFO: count ==1630 [2025-04-23 21:37:19] Production.ERROR: pbx CDR StartTime 2025-04-23 18:37:05 - End Time 2025-04-23 21:37:05 [2025-04-23 21:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975063', 'tblTempUsageDetail_20' ) start [2025-04-23 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975063', 'tblTempUsageDetail_20' ) end [2025-04-23 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975063', 'tblTempVendorCDR_20' ) start [2025-04-23 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975063', 'tblTempVendorCDR_20' ) end [2025-04-23 21:37:19] Production.INFO: ProcessCDR(1,14975063,1,1,2) [2025-04-23 21:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975063', 'tblTempUsageDetail_20' ) start [2025-04-23 21:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975063', 'tblTempUsageDetail_20' ) end [2025-04-23 21:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 21:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 21:37:22] Production.INFO: ==30368== Releasing lock... [2025-04-23 21:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 21:37:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-23 21:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 18:38:04 [end_date_ymd] => 2025-04-23 21:38:04 [RateCDR] => 1 ) [2025-04-23 21:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 18:38:04' and `end` < '2025-04-23 21:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 21:38:17] Production.INFO: count ==1631 [2025-04-23 21:38:17] Production.ERROR: pbx CDR StartTime 2025-04-23 18:38:04 - End Time 2025-04-23 21:38:04 [2025-04-23 21:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 21:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975068', 'tblTempUsageDetail_20' ) start [2025-04-23 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975068', 'tblTempUsageDetail_20' ) end [2025-04-23 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975068', 'tblTempVendorCDR_20' ) start [2025-04-23 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975068', 'tblTempVendorCDR_20' ) end [2025-04-23 21:38:18] Production.INFO: ProcessCDR(1,14975068,1,1,2) [2025-04-23 21:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975068', 'tblTempUsageDetail_20' ) start [2025-04-23 21:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975068', 'tblTempUsageDetail_20' ) end [2025-04-23 21:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 21:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 21:38:21] Production.INFO: ==30441== Releasing lock... [2025-04-23 21:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 21:38:21] Production.INFO: 40 MB #Memory Used# [2025-04-23 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 18:39:05 [end_date_ymd] => 2025-04-23 21:39:05 [RateCDR] => 1 ) [2025-04-23 21:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 18:39:05' and `end` < '2025-04-23 21:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 21:39:18] Production.INFO: count ==1620 [2025-04-23 21:39:18] Production.ERROR: pbx CDR StartTime 2025-04-23 18:39:05 - End Time 2025-04-23 21:39:05 [2025-04-23 21:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975073', 'tblTempUsageDetail_20' ) start [2025-04-23 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975073', 'tblTempUsageDetail_20' ) end [2025-04-23 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975073', 'tblTempVendorCDR_20' ) start [2025-04-23 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975073', 'tblTempVendorCDR_20' ) end [2025-04-23 21:39:18] Production.INFO: ProcessCDR(1,14975073,1,1,2) [2025-04-23 21:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975073', 'tblTempUsageDetail_20' ) start [2025-04-23 21:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975073', 'tblTempUsageDetail_20' ) end [2025-04-23 21:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 21:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 21:39:21] Production.INFO: ==30556== Releasing lock... [2025-04-23 21:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 21:39:21] Production.INFO: 40.25 MB #Memory Used# [2025-04-23 21:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 18:40:06 [end_date_ymd] => 2025-04-23 21:40:06 [RateCDR] => 1 ) [2025-04-23 21:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 18:40:06' and `end` < '2025-04-23 21:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 21:40:19] Production.INFO: count ==1618 [2025-04-23 21:40:19] Production.ERROR: pbx CDR StartTime 2025-04-23 18:40:06 - End Time 2025-04-23 21:40:06 [2025-04-23 21:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975079', 'tblTempUsageDetail_20' ) start [2025-04-23 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975079', 'tblTempUsageDetail_20' ) end [2025-04-23 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975079', 'tblTempVendorCDR_20' ) start [2025-04-23 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975079', 'tblTempVendorCDR_20' ) end [2025-04-23 21:40:20] Production.INFO: ProcessCDR(1,14975079,1,1,2) [2025-04-23 21:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975079', 'tblTempUsageDetail_20' ) start [2025-04-23 21:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975079', 'tblTempUsageDetail_20' ) end [2025-04-23 21:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 21:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 21:40:23] Production.INFO: ==30639== Releasing lock... [2025-04-23 21:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 21:40:23] Production.INFO: 40.5 MB #Memory Used# [2025-04-23 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 18:41:05 [end_date_ymd] => 2025-04-23 21:41:05 [RateCDR] => 1 ) [2025-04-23 21:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 18:41:05' and `end` < '2025-04-23 21:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 21:41:17] Production.INFO: count ==1579 [2025-04-23 21:41:18] Production.ERROR: pbx CDR StartTime 2025-04-23 18:41:05 - End Time 2025-04-23 21:41:05 [2025-04-23 21:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975084', 'tblTempUsageDetail_20' ) start [2025-04-23 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975084', 'tblTempUsageDetail_20' ) end [2025-04-23 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975084', 'tblTempVendorCDR_20' ) start [2025-04-23 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975084', 'tblTempVendorCDR_20' ) end [2025-04-23 21:41:18] Production.INFO: ProcessCDR(1,14975084,1,1,2) [2025-04-23 21:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975084', 'tblTempUsageDetail_20' ) start [2025-04-23 21:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975084', 'tblTempUsageDetail_20' ) end [2025-04-23 21:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 21:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 21:41:21] Production.INFO: ==30715== Releasing lock... [2025-04-23 21:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 21:41:21] Production.INFO: 40 MB #Memory Used# [2025-04-23 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 18:42:05 [end_date_ymd] => 2025-04-23 21:42:05 [RateCDR] => 1 ) [2025-04-23 21:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 18:42:05' and `end` < '2025-04-23 21:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 21:42:18] Production.INFO: count ==1578 [2025-04-23 21:42:19] Production.ERROR: pbx CDR StartTime 2025-04-23 18:42:05 - End Time 2025-04-23 21:42:05 [2025-04-23 21:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975089', 'tblTempUsageDetail_20' ) start [2025-04-23 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975089', 'tblTempUsageDetail_20' ) end [2025-04-23 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975089', 'tblTempVendorCDR_20' ) start [2025-04-23 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975089', 'tblTempVendorCDR_20' ) end [2025-04-23 21:42:19] Production.INFO: ProcessCDR(1,14975089,1,1,2) [2025-04-23 21:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975089', 'tblTempUsageDetail_20' ) start [2025-04-23 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975089', 'tblTempUsageDetail_20' ) end [2025-04-23 21:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 21:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 21:42:22] Production.INFO: ==30791== Releasing lock... [2025-04-23 21:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 21:42:22] Production.INFO: 40 MB #Memory Used# [2025-04-23 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 18:43:05 [end_date_ymd] => 2025-04-23 21:43:05 [RateCDR] => 1 ) [2025-04-23 21:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 18:43:05' and `end` < '2025-04-23 21:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 21:43:18] Production.INFO: count ==1575 [2025-04-23 21:43:18] Production.ERROR: pbx CDR StartTime 2025-04-23 18:43:05 - End Time 2025-04-23 21:43:05 [2025-04-23 21:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975094', 'tblTempUsageDetail_20' ) start [2025-04-23 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975094', 'tblTempUsageDetail_20' ) end [2025-04-23 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975094', 'tblTempVendorCDR_20' ) start [2025-04-23 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975094', 'tblTempVendorCDR_20' ) end [2025-04-23 21:43:18] Production.INFO: ProcessCDR(1,14975094,1,1,2) [2025-04-23 21:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975094', 'tblTempUsageDetail_20' ) start [2025-04-23 21:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975094', 'tblTempUsageDetail_20' ) end [2025-04-23 21:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 21:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 21:43:21] Production.INFO: ==30863== Releasing lock... [2025-04-23 21:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 21:43:21] Production.INFO: 40 MB #Memory Used# [2025-04-23 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 18:44:05 [end_date_ymd] => 2025-04-23 21:44:05 [RateCDR] => 1 ) [2025-04-23 21:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 18:44:05' and `end` < '2025-04-23 21:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 21:44:17] Production.INFO: count ==1574 [2025-04-23 21:44:18] Production.ERROR: pbx CDR StartTime 2025-04-23 18:44:05 - End Time 2025-04-23 21:44:05 [2025-04-23 21:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975099', 'tblTempUsageDetail_20' ) start [2025-04-23 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975099', 'tblTempUsageDetail_20' ) end [2025-04-23 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975099', 'tblTempVendorCDR_20' ) start [2025-04-23 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975099', 'tblTempVendorCDR_20' ) end [2025-04-23 21:44:18] Production.INFO: ProcessCDR(1,14975099,1,1,2) [2025-04-23 21:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975099', 'tblTempUsageDetail_20' ) start [2025-04-23 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975099', 'tblTempUsageDetail_20' ) end [2025-04-23 21:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 21:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 21:44:21] Production.INFO: ==30938== Releasing lock... [2025-04-23 21:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 21:44:21] Production.INFO: 39.75 MB #Memory Used# [2025-04-23 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 18:45:05 [end_date_ymd] => 2025-04-23 21:45:05 [RateCDR] => 1 ) [2025-04-23 21:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 18:45:05' and `end` < '2025-04-23 21:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 21:45:18] Production.INFO: count ==1568 [2025-04-23 21:45:18] Production.ERROR: pbx CDR StartTime 2025-04-23 18:45:05 - End Time 2025-04-23 21:45:05 [2025-04-23 21:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975104', 'tblTempUsageDetail_20' ) start [2025-04-23 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975104', 'tblTempUsageDetail_20' ) end [2025-04-23 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975104', 'tblTempVendorCDR_20' ) start [2025-04-23 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975104', 'tblTempVendorCDR_20' ) end [2025-04-23 21:45:18] Production.INFO: ProcessCDR(1,14975104,1,1,2) [2025-04-23 21:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975104', 'tblTempUsageDetail_20' ) start [2025-04-23 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975104', 'tblTempUsageDetail_20' ) end [2025-04-23 21:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 21:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 21:45:22] Production.INFO: ==31025== Releasing lock... [2025-04-23 21:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 21:45:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-23 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 18:46:05 [end_date_ymd] => 2025-04-23 21:46:05 [RateCDR] => 1 ) [2025-04-23 21:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 18:46:05' and `end` < '2025-04-23 21:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 21:46:18] Production.INFO: count ==1562 [2025-04-23 21:46:18] Production.ERROR: pbx CDR StartTime 2025-04-23 18:46:05 - End Time 2025-04-23 21:46:05 [2025-04-23 21:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975109', 'tblTempUsageDetail_20' ) start [2025-04-23 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975109', 'tblTempUsageDetail_20' ) end [2025-04-23 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975109', 'tblTempVendorCDR_20' ) start [2025-04-23 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975109', 'tblTempVendorCDR_20' ) end [2025-04-23 21:46:18] Production.INFO: ProcessCDR(1,14975109,1,1,2) [2025-04-23 21:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975109', 'tblTempUsageDetail_20' ) start [2025-04-23 21:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975109', 'tblTempUsageDetail_20' ) end [2025-04-23 21:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 21:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 21:46:22] Production.INFO: ==31107== Releasing lock... [2025-04-23 21:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 21:46:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-23 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 18:47:05 [end_date_ymd] => 2025-04-23 21:47:05 [RateCDR] => 1 ) [2025-04-23 21:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 18:47:05' and `end` < '2025-04-23 21:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 21:47:18] Production.INFO: count ==1553 [2025-04-23 21:47:19] Production.ERROR: pbx CDR StartTime 2025-04-23 18:47:05 - End Time 2025-04-23 21:47:05 [2025-04-23 21:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975114', 'tblTempUsageDetail_20' ) start [2025-04-23 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975114', 'tblTempUsageDetail_20' ) end [2025-04-23 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975114', 'tblTempVendorCDR_20' ) start [2025-04-23 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975114', 'tblTempVendorCDR_20' ) end [2025-04-23 21:47:19] Production.INFO: ProcessCDR(1,14975114,1,1,2) [2025-04-23 21:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975114', 'tblTempUsageDetail_20' ) start [2025-04-23 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975114', 'tblTempUsageDetail_20' ) end [2025-04-23 21:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 21:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 21:47:22] Production.INFO: ==31179== Releasing lock... [2025-04-23 21:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 21:47:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-23 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 18:48:05 [end_date_ymd] => 2025-04-23 21:48:05 [RateCDR] => 1 ) [2025-04-23 21:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 18:48:05' and `end` < '2025-04-23 21:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 21:48:17] Production.INFO: count ==1548 [2025-04-23 21:48:18] Production.ERROR: pbx CDR StartTime 2025-04-23 18:48:05 - End Time 2025-04-23 21:48:05 [2025-04-23 21:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975119', 'tblTempUsageDetail_20' ) start [2025-04-23 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975119', 'tblTempUsageDetail_20' ) end [2025-04-23 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975119', 'tblTempVendorCDR_20' ) start [2025-04-23 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975119', 'tblTempVendorCDR_20' ) end [2025-04-23 21:48:18] Production.INFO: ProcessCDR(1,14975119,1,1,2) [2025-04-23 21:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975119', 'tblTempUsageDetail_20' ) start [2025-04-23 21:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975119', 'tblTempUsageDetail_20' ) end [2025-04-23 21:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 21:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 21:48:21] Production.INFO: ==31253== Releasing lock... [2025-04-23 21:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 21:48:21] Production.INFO: 40 MB #Memory Used# [2025-04-23 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 18:49:05 [end_date_ymd] => 2025-04-23 21:49:05 [RateCDR] => 1 ) [2025-04-23 21:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 18:49:05' and `end` < '2025-04-23 21:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 21:49:17] Production.INFO: count ==1536 [2025-04-23 21:49:18] Production.ERROR: pbx CDR StartTime 2025-04-23 18:49:05 - End Time 2025-04-23 21:49:05 [2025-04-23 21:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975124', 'tblTempUsageDetail_20' ) start [2025-04-23 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975124', 'tblTempUsageDetail_20' ) end [2025-04-23 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975124', 'tblTempVendorCDR_20' ) start [2025-04-23 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975124', 'tblTempVendorCDR_20' ) end [2025-04-23 21:49:18] Production.INFO: ProcessCDR(1,14975124,1,1,2) [2025-04-23 21:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975124', 'tblTempUsageDetail_20' ) start [2025-04-23 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975124', 'tblTempUsageDetail_20' ) end [2025-04-23 21:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 21:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 21:49:21] Production.INFO: ==31325== Releasing lock... [2025-04-23 21:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 21:49:21] Production.INFO: 39.75 MB #Memory Used# [2025-04-23 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 18:50:06 [end_date_ymd] => 2025-04-23 21:50:06 [RateCDR] => 1 ) [2025-04-23 21:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 18:50:06' and `end` < '2025-04-23 21:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 21:50:19] Production.INFO: count ==1534 [2025-04-23 21:50:19] Production.ERROR: pbx CDR StartTime 2025-04-23 18:50:06 - End Time 2025-04-23 21:50:06 [2025-04-23 21:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975130', 'tblTempUsageDetail_20' ) start [2025-04-23 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975130', 'tblTempUsageDetail_20' ) end [2025-04-23 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975130', 'tblTempVendorCDR_20' ) start [2025-04-23 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975130', 'tblTempVendorCDR_20' ) end [2025-04-23 21:50:20] Production.INFO: ProcessCDR(1,14975130,1,1,2) [2025-04-23 21:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975130', 'tblTempUsageDetail_20' ) start [2025-04-23 21:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975130', 'tblTempUsageDetail_20' ) end [2025-04-23 21:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 21:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 21:50:24] Production.INFO: ==31410== Releasing lock... [2025-04-23 21:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 21:50:24] Production.INFO: 39.75 MB #Memory Used# [2025-04-23 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 18:51:05 [end_date_ymd] => 2025-04-23 21:51:05 [RateCDR] => 1 ) [2025-04-23 21:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 18:51:05' and `end` < '2025-04-23 21:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 21:51:18] Production.INFO: count ==1504 [2025-04-23 21:51:18] Production.ERROR: pbx CDR StartTime 2025-04-23 18:51:05 - End Time 2025-04-23 21:51:05 [2025-04-23 21:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975135', 'tblTempUsageDetail_20' ) start [2025-04-23 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975135', 'tblTempUsageDetail_20' ) end [2025-04-23 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975135', 'tblTempVendorCDR_20' ) start [2025-04-23 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975135', 'tblTempVendorCDR_20' ) end [2025-04-23 21:51:18] Production.INFO: ProcessCDR(1,14975135,1,1,2) [2025-04-23 21:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975135', 'tblTempUsageDetail_20' ) start [2025-04-23 21:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975135', 'tblTempUsageDetail_20' ) end [2025-04-23 21:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 21:51:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 21:51:23] Production.INFO: ==31490== Releasing lock... [2025-04-23 21:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 21:51:23] Production.INFO: 39.25 MB #Memory Used# [2025-04-23 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 18:52:05 [end_date_ymd] => 2025-04-23 21:52:05 [RateCDR] => 1 ) [2025-04-23 21:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 18:52:05' and `end` < '2025-04-23 21:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 21:52:18] Production.INFO: count ==1495 [2025-04-23 21:52:18] Production.ERROR: pbx CDR StartTime 2025-04-23 18:52:05 - End Time 2025-04-23 21:52:05 [2025-04-23 21:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975140', 'tblTempUsageDetail_20' ) start [2025-04-23 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975140', 'tblTempUsageDetail_20' ) end [2025-04-23 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975140', 'tblTempVendorCDR_20' ) start [2025-04-23 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975140', 'tblTempVendorCDR_20' ) end [2025-04-23 21:52:18] Production.INFO: ProcessCDR(1,14975140,1,1,2) [2025-04-23 21:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975140', 'tblTempUsageDetail_20' ) start [2025-04-23 21:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975140', 'tblTempUsageDetail_20' ) end [2025-04-23 21:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 21:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 21:52:23] Production.INFO: ==31563== Releasing lock... [2025-04-23 21:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 21:52:23] Production.INFO: 39.25 MB #Memory Used# [2025-04-23 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 18:53:05 [end_date_ymd] => 2025-04-23 21:53:05 [RateCDR] => 1 ) [2025-04-23 21:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 18:53:05' and `end` < '2025-04-23 21:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 21:53:17] Production.INFO: count ==1496 [2025-04-23 21:53:18] Production.ERROR: pbx CDR StartTime 2025-04-23 18:53:05 - End Time 2025-04-23 21:53:05 [2025-04-23 21:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975145', 'tblTempUsageDetail_20' ) start [2025-04-23 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975145', 'tblTempUsageDetail_20' ) end [2025-04-23 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975145', 'tblTempVendorCDR_20' ) start [2025-04-23 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975145', 'tblTempVendorCDR_20' ) end [2025-04-23 21:53:18] Production.INFO: ProcessCDR(1,14975145,1,1,2) [2025-04-23 21:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975145', 'tblTempUsageDetail_20' ) start [2025-04-23 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975145', 'tblTempUsageDetail_20' ) end [2025-04-23 21:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 21:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 21:53:21] Production.INFO: ==31635== Releasing lock... [2025-04-23 21:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 21:53:21] Production.INFO: 39.25 MB #Memory Used# [2025-04-23 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 18:54:05 [end_date_ymd] => 2025-04-23 21:54:05 [RateCDR] => 1 ) [2025-04-23 21:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 18:54:05' and `end` < '2025-04-23 21:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 21:54:18] Production.INFO: count ==1487 [2025-04-23 21:54:19] Production.ERROR: pbx CDR StartTime 2025-04-23 18:54:05 - End Time 2025-04-23 21:54:05 [2025-04-23 21:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975150', 'tblTempUsageDetail_20' ) start [2025-04-23 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975150', 'tblTempUsageDetail_20' ) end [2025-04-23 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975150', 'tblTempVendorCDR_20' ) start [2025-04-23 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975150', 'tblTempVendorCDR_20' ) end [2025-04-23 21:54:19] Production.INFO: ProcessCDR(1,14975150,1,1,2) [2025-04-23 21:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975150', 'tblTempUsageDetail_20' ) start [2025-04-23 21:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975150', 'tblTempUsageDetail_20' ) end [2025-04-23 21:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 21:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 21:54:23] Production.INFO: ==31749== Releasing lock... [2025-04-23 21:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 21:54:23] Production.INFO: 39.5 MB #Memory Used# [2025-04-23 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 18:55:05 [end_date_ymd] => 2025-04-23 21:55:05 [RateCDR] => 1 ) [2025-04-23 21:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 18:55:05' and `end` < '2025-04-23 21:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 21:55:18] Production.INFO: count ==1482 [2025-04-23 21:55:18] Production.ERROR: pbx CDR StartTime 2025-04-23 18:55:05 - End Time 2025-04-23 21:55:05 [2025-04-23 21:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975155', 'tblTempUsageDetail_20' ) start [2025-04-23 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975155', 'tblTempUsageDetail_20' ) end [2025-04-23 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975155', 'tblTempVendorCDR_20' ) start [2025-04-23 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975155', 'tblTempVendorCDR_20' ) end [2025-04-23 21:55:18] Production.INFO: ProcessCDR(1,14975155,1,1,2) [2025-04-23 21:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975155', 'tblTempUsageDetail_20' ) start [2025-04-23 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975155', 'tblTempUsageDetail_20' ) end [2025-04-23 21:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 21:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 21:55:22] Production.INFO: ==31823== Releasing lock... [2025-04-23 21:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 21:55:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-23 21:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 18:56:05 [end_date_ymd] => 2025-04-23 21:56:05 [RateCDR] => 1 ) [2025-04-23 21:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 18:56:05' and `end` < '2025-04-23 21:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 21:56:18] Production.INFO: count ==1476 [2025-04-23 21:56:18] Production.ERROR: pbx CDR StartTime 2025-04-23 18:56:05 - End Time 2025-04-23 21:56:05 [2025-04-23 21:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975160', 'tblTempUsageDetail_20' ) start [2025-04-23 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975160', 'tblTempUsageDetail_20' ) end [2025-04-23 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975160', 'tblTempVendorCDR_20' ) start [2025-04-23 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975160', 'tblTempVendorCDR_20' ) end [2025-04-23 21:56:19] Production.INFO: ProcessCDR(1,14975160,1,1,2) [2025-04-23 21:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975160', 'tblTempUsageDetail_20' ) start [2025-04-23 21:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975160', 'tblTempUsageDetail_20' ) end [2025-04-23 21:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 21:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 21:56:22] Production.INFO: ==31904== Releasing lock... [2025-04-23 21:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 21:56:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-23 21:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 18:57:04 [end_date_ymd] => 2025-04-23 21:57:04 [RateCDR] => 1 ) [2025-04-23 21:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 18:57:04' and `end` < '2025-04-23 21:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 21:57:17] Production.INFO: count ==1456 [2025-04-23 21:57:18] Production.ERROR: pbx CDR StartTime 2025-04-23 18:57:04 - End Time 2025-04-23 21:57:04 [2025-04-23 21:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975165', 'tblTempUsageDetail_20' ) start [2025-04-23 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975165', 'tblTempUsageDetail_20' ) end [2025-04-23 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975165', 'tblTempVendorCDR_20' ) start [2025-04-23 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975165', 'tblTempVendorCDR_20' ) end [2025-04-23 21:57:18] Production.INFO: ProcessCDR(1,14975165,1,1,2) [2025-04-23 21:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975165', 'tblTempUsageDetail_20' ) start [2025-04-23 21:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975165', 'tblTempUsageDetail_20' ) end [2025-04-23 21:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 21:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 21:57:21] Production.INFO: ==31978== Releasing lock... [2025-04-23 21:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 21:57:21] Production.INFO: 39 MB #Memory Used# [2025-04-23 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 18:58:05 [end_date_ymd] => 2025-04-23 21:58:05 [RateCDR] => 1 ) [2025-04-23 21:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 18:58:05' and `end` < '2025-04-23 21:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 21:58:18] Production.INFO: count ==1447 [2025-04-23 21:58:18] Production.ERROR: pbx CDR StartTime 2025-04-23 18:58:05 - End Time 2025-04-23 21:58:05 [2025-04-23 21:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975170', 'tblTempUsageDetail_20' ) start [2025-04-23 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975170', 'tblTempUsageDetail_20' ) end [2025-04-23 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975170', 'tblTempVendorCDR_20' ) start [2025-04-23 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975170', 'tblTempVendorCDR_20' ) end [2025-04-23 21:58:18] Production.INFO: ProcessCDR(1,14975170,1,1,2) [2025-04-23 21:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975170', 'tblTempUsageDetail_20' ) start [2025-04-23 21:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975170', 'tblTempUsageDetail_20' ) end [2025-04-23 21:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 21:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 21:58:21] Production.INFO: ==32052== Releasing lock... [2025-04-23 21:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 21:58:21] Production.INFO: 39.25 MB #Memory Used# [2025-04-23 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 18:59:05 [end_date_ymd] => 2025-04-23 21:59:05 [RateCDR] => 1 ) [2025-04-23 21:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 18:59:05' and `end` < '2025-04-23 21:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 21:59:18] Production.INFO: count ==1444 [2025-04-23 21:59:19] Production.ERROR: pbx CDR StartTime 2025-04-23 18:59:05 - End Time 2025-04-23 21:59:05 [2025-04-23 21:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975175', 'tblTempUsageDetail_20' ) start [2025-04-23 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975175', 'tblTempUsageDetail_20' ) end [2025-04-23 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975175', 'tblTempVendorCDR_20' ) start [2025-04-23 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975175', 'tblTempVendorCDR_20' ) end [2025-04-23 21:59:19] Production.INFO: ProcessCDR(1,14975175,1,1,2) [2025-04-23 21:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 21:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975175', 'tblTempUsageDetail_20' ) start [2025-04-23 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975175', 'tblTempUsageDetail_20' ) end [2025-04-23 21:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 21:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 21:59:22] Production.INFO: ==32130== Releasing lock... [2025-04-23 21:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 21:59:22] Production.INFO: 39 MB #Memory Used# [2025-04-23 22:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 19:00:05 [end_date_ymd] => 2025-04-23 22:00:05 [RateCDR] => 1 ) [2025-04-23 22:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 19:00:05' and `end` < '2025-04-23 22:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 22:00:18] Production.INFO: count ==1436 [2025-04-23 22:00:18] Production.ERROR: pbx CDR StartTime 2025-04-23 19:00:05 - End Time 2025-04-23 22:00:05 [2025-04-23 22:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975181', 'tblTempUsageDetail_20' ) start [2025-04-23 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975181', 'tblTempUsageDetail_20' ) end [2025-04-23 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975181', 'tblTempVendorCDR_20' ) start [2025-04-23 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975181', 'tblTempVendorCDR_20' ) end [2025-04-23 22:00:19] Production.INFO: ProcessCDR(1,14975181,1,1,2) [2025-04-23 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975181', 'tblTempUsageDetail_20' ) start [2025-04-23 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975181', 'tblTempUsageDetail_20' ) end [2025-04-23 22:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 22:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 22:00:22] Production.INFO: ==32206== Releasing lock... [2025-04-23 22:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 22:00:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-23 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 19:01:05 [end_date_ymd] => 2025-04-23 22:01:05 [RateCDR] => 1 ) [2025-04-23 22:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 19:01:05' and `end` < '2025-04-23 22:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 22:01:18] Production.INFO: count ==1402 [2025-04-23 22:01:18] Production.ERROR: pbx CDR StartTime 2025-04-23 19:01:05 - End Time 2025-04-23 22:01:05 [2025-04-23 22:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975186', 'tblTempUsageDetail_20' ) start [2025-04-23 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975186', 'tblTempUsageDetail_20' ) end [2025-04-23 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975186', 'tblTempVendorCDR_20' ) start [2025-04-23 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975186', 'tblTempVendorCDR_20' ) end [2025-04-23 22:01:18] Production.INFO: ProcessCDR(1,14975186,1,1,2) [2025-04-23 22:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975186', 'tblTempUsageDetail_20' ) start [2025-04-23 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975186', 'tblTempUsageDetail_20' ) end [2025-04-23 22:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 22:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 22:01:22] Production.INFO: ==32305== Releasing lock... [2025-04-23 22:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 22:01:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-23 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 19:02:05 [end_date_ymd] => 2025-04-23 22:02:05 [RateCDR] => 1 ) [2025-04-23 22:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 19:02:05' and `end` < '2025-04-23 22:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 22:02:18] Production.INFO: count ==1401 [2025-04-23 22:02:18] Production.ERROR: pbx CDR StartTime 2025-04-23 19:02:05 - End Time 2025-04-23 22:02:05 [2025-04-23 22:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975191', 'tblTempUsageDetail_20' ) start [2025-04-23 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975191', 'tblTempUsageDetail_20' ) end [2025-04-23 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975191', 'tblTempVendorCDR_20' ) start [2025-04-23 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975191', 'tblTempVendorCDR_20' ) end [2025-04-23 22:02:18] Production.INFO: ProcessCDR(1,14975191,1,1,2) [2025-04-23 22:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975191', 'tblTempUsageDetail_20' ) start [2025-04-23 22:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975191', 'tblTempUsageDetail_20' ) end [2025-04-23 22:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 22:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 22:02:21] Production.INFO: ==32383== Releasing lock... [2025-04-23 22:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 22:02:21] Production.INFO: 39 MB #Memory Used# [2025-04-23 22:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 19:03:04 [end_date_ymd] => 2025-04-23 22:03:04 [RateCDR] => 1 ) [2025-04-23 22:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 19:03:04' and `end` < '2025-04-23 22:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 22:03:17] Production.INFO: count ==1398 [2025-04-23 22:03:17] Production.ERROR: pbx CDR StartTime 2025-04-23 19:03:04 - End Time 2025-04-23 22:03:04 [2025-04-23 22:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 22:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975196', 'tblTempUsageDetail_20' ) start [2025-04-23 22:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975196', 'tblTempUsageDetail_20' ) end [2025-04-23 22:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975196', 'tblTempVendorCDR_20' ) start [2025-04-23 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975196', 'tblTempVendorCDR_20' ) end [2025-04-23 22:03:18] Production.INFO: ProcessCDR(1,14975196,1,1,2) [2025-04-23 22:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975196', 'tblTempUsageDetail_20' ) start [2025-04-23 22:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975196', 'tblTempUsageDetail_20' ) end [2025-04-23 22:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 22:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 22:03:21] Production.INFO: ==32462== Releasing lock... [2025-04-23 22:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 22:03:21] Production.INFO: 38.75 MB #Memory Used# [2025-04-23 22:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 19:04:04 [end_date_ymd] => 2025-04-23 22:04:04 [RateCDR] => 1 ) [2025-04-23 22:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 19:04:04' and `end` < '2025-04-23 22:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 22:04:17] Production.INFO: count ==1394 [2025-04-23 22:04:18] Production.ERROR: pbx CDR StartTime 2025-04-23 19:04:04 - End Time 2025-04-23 22:04:04 [2025-04-23 22:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975201', 'tblTempUsageDetail_20' ) start [2025-04-23 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975201', 'tblTempUsageDetail_20' ) end [2025-04-23 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975201', 'tblTempVendorCDR_20' ) start [2025-04-23 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975201', 'tblTempVendorCDR_20' ) end [2025-04-23 22:04:18] Production.INFO: ProcessCDR(1,14975201,1,1,2) [2025-04-23 22:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975201', 'tblTempUsageDetail_20' ) start [2025-04-23 22:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975201', 'tblTempUsageDetail_20' ) end [2025-04-23 22:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 22:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 22:04:21] Production.INFO: ==32536== Releasing lock... [2025-04-23 22:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 22:04:21] Production.INFO: 38.5 MB #Memory Used# [2025-04-23 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 19:05:05 [end_date_ymd] => 2025-04-23 22:05:05 [RateCDR] => 1 ) [2025-04-23 22:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 19:05:05' and `end` < '2025-04-23 22:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 22:05:18] Production.INFO: count ==1393 [2025-04-23 22:05:18] Production.ERROR: pbx CDR StartTime 2025-04-23 19:05:05 - End Time 2025-04-23 22:05:05 [2025-04-23 22:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975206', 'tblTempUsageDetail_20' ) start [2025-04-23 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975206', 'tblTempUsageDetail_20' ) end [2025-04-23 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975206', 'tblTempVendorCDR_20' ) start [2025-04-23 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975206', 'tblTempVendorCDR_20' ) end [2025-04-23 22:05:18] Production.INFO: ProcessCDR(1,14975206,1,1,2) [2025-04-23 22:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975206', 'tblTempUsageDetail_20' ) start [2025-04-23 22:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975206', 'tblTempUsageDetail_20' ) end [2025-04-23 22:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 22:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 22:05:23] Production.INFO: ==32607== Releasing lock... [2025-04-23 22:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 22:05:23] Production.INFO: 38.75 MB #Memory Used# [2025-04-23 22:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 19:06:06 [end_date_ymd] => 2025-04-23 22:06:06 [RateCDR] => 1 ) [2025-04-23 22:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 19:06:06' and `end` < '2025-04-23 22:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 22:06:18] Production.INFO: count ==1392 [2025-04-23 22:06:19] Production.ERROR: pbx CDR StartTime 2025-04-23 19:06:06 - End Time 2025-04-23 22:06:06 [2025-04-23 22:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975211', 'tblTempUsageDetail_20' ) start [2025-04-23 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975211', 'tblTempUsageDetail_20' ) end [2025-04-23 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975211', 'tblTempVendorCDR_20' ) start [2025-04-23 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975211', 'tblTempVendorCDR_20' ) end [2025-04-23 22:06:19] Production.INFO: ProcessCDR(1,14975211,1,1,2) [2025-04-23 22:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975211', 'tblTempUsageDetail_20' ) start [2025-04-23 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975211', 'tblTempUsageDetail_20' ) end [2025-04-23 22:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 22:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 22:06:22] Production.INFO: ==32685== Releasing lock... [2025-04-23 22:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 22:06:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-23 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 19:07:05 [end_date_ymd] => 2025-04-23 22:07:05 [RateCDR] => 1 ) [2025-04-23 22:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 19:07:05' and `end` < '2025-04-23 22:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 22:07:18] Production.INFO: count ==1389 [2025-04-23 22:07:18] Production.ERROR: pbx CDR StartTime 2025-04-23 19:07:05 - End Time 2025-04-23 22:07:05 [2025-04-23 22:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975216', 'tblTempUsageDetail_20' ) start [2025-04-23 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975216', 'tblTempUsageDetail_20' ) end [2025-04-23 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975216', 'tblTempVendorCDR_20' ) start [2025-04-23 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975216', 'tblTempVendorCDR_20' ) end [2025-04-23 22:07:18] Production.INFO: ProcessCDR(1,14975216,1,1,2) [2025-04-23 22:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975216', 'tblTempUsageDetail_20' ) start [2025-04-23 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975216', 'tblTempUsageDetail_20' ) end [2025-04-23 22:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 22:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 22:07:22] Production.INFO: ==32763== Releasing lock... [2025-04-23 22:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 22:07:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-23 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 19:08:05 [end_date_ymd] => 2025-04-23 22:08:05 [RateCDR] => 1 ) [2025-04-23 22:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 19:08:05' and `end` < '2025-04-23 22:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 22:08:18] Production.INFO: count ==1383 [2025-04-23 22:08:18] Production.ERROR: pbx CDR StartTime 2025-04-23 19:08:05 - End Time 2025-04-23 22:08:05 [2025-04-23 22:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975221', 'tblTempUsageDetail_20' ) start [2025-04-23 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975221', 'tblTempUsageDetail_20' ) end [2025-04-23 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975221', 'tblTempVendorCDR_20' ) start [2025-04-23 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975221', 'tblTempVendorCDR_20' ) end [2025-04-23 22:08:18] Production.INFO: ProcessCDR(1,14975221,1,1,2) [2025-04-23 22:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975221', 'tblTempUsageDetail_20' ) start [2025-04-23 22:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975221', 'tblTempUsageDetail_20' ) end [2025-04-23 22:08:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 22:08:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 22:08:23] Production.INFO: ==391== Releasing lock... [2025-04-23 22:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 22:08:23] Production.INFO: 38.75 MB #Memory Used# [2025-04-23 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 19:09:05 [end_date_ymd] => 2025-04-23 22:09:05 [RateCDR] => 1 ) [2025-04-23 22:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 19:09:05' and `end` < '2025-04-23 22:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 22:09:17] Production.INFO: count ==1386 [2025-04-23 22:09:18] Production.ERROR: pbx CDR StartTime 2025-04-23 19:09:05 - End Time 2025-04-23 22:09:05 [2025-04-23 22:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975226', 'tblTempUsageDetail_20' ) start [2025-04-23 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975226', 'tblTempUsageDetail_20' ) end [2025-04-23 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975226', 'tblTempVendorCDR_20' ) start [2025-04-23 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975226', 'tblTempVendorCDR_20' ) end [2025-04-23 22:09:18] Production.INFO: ProcessCDR(1,14975226,1,1,2) [2025-04-23 22:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975226', 'tblTempUsageDetail_20' ) start [2025-04-23 22:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975226', 'tblTempUsageDetail_20' ) end [2025-04-23 22:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 22:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 22:09:21] Production.INFO: ==461== Releasing lock... [2025-04-23 22:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 22:09:21] Production.INFO: 38.75 MB #Memory Used# [2025-04-23 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 19:10:06 [end_date_ymd] => 2025-04-23 22:10:06 [RateCDR] => 1 ) [2025-04-23 22:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 19:10:06' and `end` < '2025-04-23 22:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 22:10:19] Production.INFO: count ==1385 [2025-04-23 22:10:19] Production.ERROR: pbx CDR StartTime 2025-04-23 19:10:06 - End Time 2025-04-23 22:10:06 [2025-04-23 22:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975231', 'tblTempUsageDetail_20' ) start [2025-04-23 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975231', 'tblTempUsageDetail_20' ) end [2025-04-23 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975231', 'tblTempVendorCDR_20' ) start [2025-04-23 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975231', 'tblTempVendorCDR_20' ) end [2025-04-23 22:10:19] Production.INFO: ProcessCDR(1,14975231,1,1,2) [2025-04-23 22:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975231', 'tblTempUsageDetail_20' ) start [2025-04-23 22:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975231', 'tblTempUsageDetail_20' ) end [2025-04-23 22:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 22:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 22:10:23] Production.INFO: ==577== Releasing lock... [2025-04-23 22:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 22:10:23] Production.INFO: 39.25 MB #Memory Used# [2025-04-23 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 19:11:05 [end_date_ymd] => 2025-04-23 22:11:05 [RateCDR] => 1 ) [2025-04-23 22:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 19:11:05' and `end` < '2025-04-23 22:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 22:11:17] Production.INFO: count ==1352 [2025-04-23 22:11:18] Production.ERROR: pbx CDR StartTime 2025-04-23 19:11:05 - End Time 2025-04-23 22:11:05 [2025-04-23 22:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975237', 'tblTempUsageDetail_20' ) start [2025-04-23 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975237', 'tblTempUsageDetail_20' ) end [2025-04-23 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975237', 'tblTempVendorCDR_20' ) start [2025-04-23 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975237', 'tblTempVendorCDR_20' ) end [2025-04-23 22:11:18] Production.INFO: ProcessCDR(1,14975237,1,1,2) [2025-04-23 22:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975237', 'tblTempUsageDetail_20' ) start [2025-04-23 22:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975237', 'tblTempUsageDetail_20' ) end [2025-04-23 22:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 22:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 22:11:21] Production.INFO: ==679== Releasing lock... [2025-04-23 22:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 22:11:21] Production.INFO: 38 MB #Memory Used# [2025-04-23 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 19:12:05 [end_date_ymd] => 2025-04-23 22:12:05 [RateCDR] => 1 ) [2025-04-23 22:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 19:12:05' and `end` < '2025-04-23 22:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 22:12:18] Production.INFO: count ==1348 [2025-04-23 22:12:18] Production.ERROR: pbx CDR StartTime 2025-04-23 19:12:05 - End Time 2025-04-23 22:12:05 [2025-04-23 22:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975242', 'tblTempUsageDetail_20' ) start [2025-04-23 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975242', 'tblTempUsageDetail_20' ) end [2025-04-23 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975242', 'tblTempVendorCDR_20' ) start [2025-04-23 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975242', 'tblTempVendorCDR_20' ) end [2025-04-23 22:12:18] Production.INFO: ProcessCDR(1,14975242,1,1,2) [2025-04-23 22:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975242', 'tblTempUsageDetail_20' ) start [2025-04-23 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975242', 'tblTempUsageDetail_20' ) end [2025-04-23 22:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 22:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 22:12:21] Production.INFO: ==770== Releasing lock... [2025-04-23 22:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 22:12:21] Production.INFO: 38.25 MB #Memory Used# [2025-04-23 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 19:13:05 [end_date_ymd] => 2025-04-23 22:13:05 [RateCDR] => 1 ) [2025-04-23 22:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 19:13:05' and `end` < '2025-04-23 22:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 22:13:17] Production.INFO: count ==1349 [2025-04-23 22:13:18] Production.ERROR: pbx CDR StartTime 2025-04-23 19:13:05 - End Time 2025-04-23 22:13:05 [2025-04-23 22:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975247', 'tblTempUsageDetail_20' ) start [2025-04-23 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975247', 'tblTempUsageDetail_20' ) end [2025-04-23 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975247', 'tblTempVendorCDR_20' ) start [2025-04-23 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975247', 'tblTempVendorCDR_20' ) end [2025-04-23 22:13:18] Production.INFO: ProcessCDR(1,14975247,1,1,2) [2025-04-23 22:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975247', 'tblTempUsageDetail_20' ) start [2025-04-23 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975247', 'tblTempUsageDetail_20' ) end [2025-04-23 22:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 22:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 22:13:21] Production.INFO: ==842== Releasing lock... [2025-04-23 22:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 22:13:21] Production.INFO: 38.75 MB #Memory Used# [2025-04-23 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 19:14:05 [end_date_ymd] => 2025-04-23 22:14:05 [RateCDR] => 1 ) [2025-04-23 22:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 19:14:05' and `end` < '2025-04-23 22:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 22:14:18] Production.INFO: count ==1345 [2025-04-23 22:14:18] Production.ERROR: pbx CDR StartTime 2025-04-23 19:14:05 - End Time 2025-04-23 22:14:05 [2025-04-23 22:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975252', 'tblTempUsageDetail_20' ) start [2025-04-23 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975252', 'tblTempUsageDetail_20' ) end [2025-04-23 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975252', 'tblTempVendorCDR_20' ) start [2025-04-23 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975252', 'tblTempVendorCDR_20' ) end [2025-04-23 22:14:18] Production.INFO: ProcessCDR(1,14975252,1,1,2) [2025-04-23 22:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975252', 'tblTempUsageDetail_20' ) start [2025-04-23 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975252', 'tblTempUsageDetail_20' ) end [2025-04-23 22:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 22:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 22:14:22] Production.INFO: ==917== Releasing lock... [2025-04-23 22:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 22:14:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-23 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 19:15:05 [end_date_ymd] => 2025-04-23 22:15:05 [RateCDR] => 1 ) [2025-04-23 22:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 19:15:05' and `end` < '2025-04-23 22:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 22:15:18] Production.INFO: count ==1336 [2025-04-23 22:15:18] Production.ERROR: pbx CDR StartTime 2025-04-23 19:15:05 - End Time 2025-04-23 22:15:05 [2025-04-23 22:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975257', 'tblTempUsageDetail_20' ) start [2025-04-23 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975257', 'tblTempUsageDetail_20' ) end [2025-04-23 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975257', 'tblTempVendorCDR_20' ) start [2025-04-23 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975257', 'tblTempVendorCDR_20' ) end [2025-04-23 22:15:18] Production.INFO: ProcessCDR(1,14975257,1,1,2) [2025-04-23 22:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975257', 'tblTempUsageDetail_20' ) start [2025-04-23 22:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975257', 'tblTempUsageDetail_20' ) end [2025-04-23 22:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 22:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 22:15:22] Production.INFO: ==988== Releasing lock... [2025-04-23 22:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 22:15:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-23 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 19:16:05 [end_date_ymd] => 2025-04-23 22:16:05 [RateCDR] => 1 ) [2025-04-23 22:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 19:16:05' and `end` < '2025-04-23 22:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 22:16:18] Production.INFO: count ==1328 [2025-04-23 22:16:18] Production.ERROR: pbx CDR StartTime 2025-04-23 19:16:05 - End Time 2025-04-23 22:16:05 [2025-04-23 22:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975262', 'tblTempUsageDetail_20' ) start [2025-04-23 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975262', 'tblTempUsageDetail_20' ) end [2025-04-23 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975262', 'tblTempVendorCDR_20' ) start [2025-04-23 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975262', 'tblTempVendorCDR_20' ) end [2025-04-23 22:16:18] Production.INFO: ProcessCDR(1,14975262,1,1,2) [2025-04-23 22:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975262', 'tblTempUsageDetail_20' ) start [2025-04-23 22:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975262', 'tblTempUsageDetail_20' ) end [2025-04-23 22:16:24] Production.ERROR: pbx prc_insertCDR start [2025-04-23 22:16:24] Production.ERROR: pbx prc_insertCDR end [2025-04-23 22:16:24] Production.INFO: ==1076== Releasing lock... [2025-04-23 22:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 22:16:24] Production.INFO: 38 MB #Memory Used# [2025-04-23 22:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 19:17:06 [end_date_ymd] => 2025-04-23 22:17:06 [RateCDR] => 1 ) [2025-04-23 22:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 19:17:06' and `end` < '2025-04-23 22:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 22:17:18] Production.INFO: count ==1318 [2025-04-23 22:17:19] Production.ERROR: pbx CDR StartTime 2025-04-23 19:17:06 - End Time 2025-04-23 22:17:06 [2025-04-23 22:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975267', 'tblTempUsageDetail_20' ) start [2025-04-23 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975267', 'tblTempUsageDetail_20' ) end [2025-04-23 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975267', 'tblTempVendorCDR_20' ) start [2025-04-23 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975267', 'tblTempVendorCDR_20' ) end [2025-04-23 22:17:19] Production.INFO: ProcessCDR(1,14975267,1,1,2) [2025-04-23 22:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975267', 'tblTempUsageDetail_20' ) start [2025-04-23 22:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975267', 'tblTempUsageDetail_20' ) end [2025-04-23 22:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 22:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 22:17:22] Production.INFO: ==1158== Releasing lock... [2025-04-23 22:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 22:17:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-23 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 19:18:05 [end_date_ymd] => 2025-04-23 22:18:05 [RateCDR] => 1 ) [2025-04-23 22:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 19:18:05' and `end` < '2025-04-23 22:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 22:18:18] Production.INFO: count ==1315 [2025-04-23 22:18:18] Production.ERROR: pbx CDR StartTime 2025-04-23 19:18:05 - End Time 2025-04-23 22:18:05 [2025-04-23 22:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975272', 'tblTempUsageDetail_20' ) start [2025-04-23 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975272', 'tblTempUsageDetail_20' ) end [2025-04-23 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975272', 'tblTempVendorCDR_20' ) start [2025-04-23 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975272', 'tblTempVendorCDR_20' ) end [2025-04-23 22:18:18] Production.INFO: ProcessCDR(1,14975272,1,1,2) [2025-04-23 22:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975272', 'tblTempUsageDetail_20' ) start [2025-04-23 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975272', 'tblTempUsageDetail_20' ) end [2025-04-23 22:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 22:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 22:18:21] Production.INFO: ==1246== Releasing lock... [2025-04-23 22:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 22:18:21] Production.INFO: 38.25 MB #Memory Used# [2025-04-23 22:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 19:19:06 [end_date_ymd] => 2025-04-23 22:19:06 [RateCDR] => 1 ) [2025-04-23 22:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 19:19:06' and `end` < '2025-04-23 22:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 22:19:18] Production.INFO: count ==1312 [2025-04-23 22:19:19] Production.ERROR: pbx CDR StartTime 2025-04-23 19:19:06 - End Time 2025-04-23 22:19:06 [2025-04-23 22:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975277', 'tblTempUsageDetail_20' ) start [2025-04-23 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975277', 'tblTempUsageDetail_20' ) end [2025-04-23 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975277', 'tblTempVendorCDR_20' ) start [2025-04-23 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975277', 'tblTempVendorCDR_20' ) end [2025-04-23 22:19:19] Production.INFO: ProcessCDR(1,14975277,1,1,2) [2025-04-23 22:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975277', 'tblTempUsageDetail_20' ) start [2025-04-23 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975277', 'tblTempUsageDetail_20' ) end [2025-04-23 22:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 22:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 22:19:22] Production.INFO: ==1326== Releasing lock... [2025-04-23 22:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 22:19:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-23 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 19:20:06 [end_date_ymd] => 2025-04-23 22:20:06 [RateCDR] => 1 ) [2025-04-23 22:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 19:20:06' and `end` < '2025-04-23 22:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 22:20:18] Production.INFO: count ==1308 [2025-04-23 22:20:19] Production.ERROR: pbx CDR StartTime 2025-04-23 19:20:06 - End Time 2025-04-23 22:20:06 [2025-04-23 22:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975283', 'tblTempUsageDetail_20' ) start [2025-04-23 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975283', 'tblTempUsageDetail_20' ) end [2025-04-23 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975283', 'tblTempVendorCDR_20' ) start [2025-04-23 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975283', 'tblTempVendorCDR_20' ) end [2025-04-23 22:20:19] Production.INFO: ProcessCDR(1,14975283,1,1,2) [2025-04-23 22:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975283', 'tblTempUsageDetail_20' ) start [2025-04-23 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975283', 'tblTempUsageDetail_20' ) end [2025-04-23 22:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 22:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 22:20:22] Production.INFO: ==1407== Releasing lock... [2025-04-23 22:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 22:20:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-23 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 19:21:05 [end_date_ymd] => 2025-04-23 22:21:05 [RateCDR] => 1 ) [2025-04-23 22:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 19:21:05' and `end` < '2025-04-23 22:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 22:21:18] Production.INFO: count ==1297 [2025-04-23 22:21:18] Production.ERROR: pbx CDR StartTime 2025-04-23 19:21:05 - End Time 2025-04-23 22:21:05 [2025-04-23 22:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975288', 'tblTempUsageDetail_20' ) start [2025-04-23 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975288', 'tblTempUsageDetail_20' ) end [2025-04-23 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975288', 'tblTempVendorCDR_20' ) start [2025-04-23 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975288', 'tblTempVendorCDR_20' ) end [2025-04-23 22:21:18] Production.INFO: ProcessCDR(1,14975288,1,1,2) [2025-04-23 22:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975288', 'tblTempUsageDetail_20' ) start [2025-04-23 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975288', 'tblTempUsageDetail_20' ) end [2025-04-23 22:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 22:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 22:21:21] Production.INFO: ==1484== Releasing lock... [2025-04-23 22:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 22:21:21] Production.INFO: 38 MB #Memory Used# [2025-04-23 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 19:22:05 [end_date_ymd] => 2025-04-23 22:22:05 [RateCDR] => 1 ) [2025-04-23 22:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 19:22:05' and `end` < '2025-04-23 22:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 22:22:18] Production.INFO: count ==1297 [2025-04-23 22:22:18] Production.ERROR: pbx CDR StartTime 2025-04-23 19:22:05 - End Time 2025-04-23 22:22:05 [2025-04-23 22:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975293', 'tblTempUsageDetail_20' ) start [2025-04-23 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975293', 'tblTempUsageDetail_20' ) end [2025-04-23 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975293', 'tblTempVendorCDR_20' ) start [2025-04-23 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975293', 'tblTempVendorCDR_20' ) end [2025-04-23 22:22:18] Production.INFO: ProcessCDR(1,14975293,1,1,2) [2025-04-23 22:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975293', 'tblTempUsageDetail_20' ) start [2025-04-23 22:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975293', 'tblTempUsageDetail_20' ) end [2025-04-23 22:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 22:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 22:22:23] Production.INFO: ==1593== Releasing lock... [2025-04-23 22:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 22:22:23] Production.INFO: 37.75 MB #Memory Used# [2025-04-23 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 19:23:05 [end_date_ymd] => 2025-04-23 22:23:05 [RateCDR] => 1 ) [2025-04-23 22:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 19:23:05' and `end` < '2025-04-23 22:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 22:23:18] Production.INFO: count ==1299 [2025-04-23 22:23:18] Production.ERROR: pbx CDR StartTime 2025-04-23 19:23:05 - End Time 2025-04-23 22:23:05 [2025-04-23 22:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975298', 'tblTempUsageDetail_20' ) start [2025-04-23 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975298', 'tblTempUsageDetail_20' ) end [2025-04-23 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975298', 'tblTempVendorCDR_20' ) start [2025-04-23 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975298', 'tblTempVendorCDR_20' ) end [2025-04-23 22:23:18] Production.INFO: ProcessCDR(1,14975298,1,1,2) [2025-04-23 22:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975298', 'tblTempUsageDetail_20' ) start [2025-04-23 22:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975298', 'tblTempUsageDetail_20' ) end [2025-04-23 22:23:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 22:23:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 22:23:23] Production.INFO: ==1669== Releasing lock... [2025-04-23 22:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 22:23:23] Production.INFO: 38 MB #Memory Used# [2025-04-23 22:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 19:24:06 [end_date_ymd] => 2025-04-23 22:24:06 [RateCDR] => 1 ) [2025-04-23 22:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 19:24:06' and `end` < '2025-04-23 22:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 22:24:19] Production.INFO: count ==1302 [2025-04-23 22:24:19] Production.ERROR: pbx CDR StartTime 2025-04-23 19:24:06 - End Time 2025-04-23 22:24:06 [2025-04-23 22:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975303', 'tblTempUsageDetail_20' ) start [2025-04-23 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975303', 'tblTempUsageDetail_20' ) end [2025-04-23 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975303', 'tblTempVendorCDR_20' ) start [2025-04-23 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975303', 'tblTempVendorCDR_20' ) end [2025-04-23 22:24:19] Production.INFO: ProcessCDR(1,14975303,1,1,2) [2025-04-23 22:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975303', 'tblTempUsageDetail_20' ) start [2025-04-23 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975303', 'tblTempUsageDetail_20' ) end [2025-04-23 22:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 22:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 22:24:23] Production.INFO: ==1739== Releasing lock... [2025-04-23 22:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 22:24:23] Production.INFO: 38 MB #Memory Used# [2025-04-23 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 19:25:05 [end_date_ymd] => 2025-04-23 22:25:05 [RateCDR] => 1 ) [2025-04-23 22:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 19:25:05' and `end` < '2025-04-23 22:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 22:25:18] Production.INFO: count ==1313 [2025-04-23 22:25:18] Production.ERROR: pbx CDR StartTime 2025-04-23 19:25:05 - End Time 2025-04-23 22:25:05 [2025-04-23 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975308', 'tblTempUsageDetail_20' ) start [2025-04-23 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975308', 'tblTempUsageDetail_20' ) end [2025-04-23 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975308', 'tblTempVendorCDR_20' ) start [2025-04-23 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975308', 'tblTempVendorCDR_20' ) end [2025-04-23 22:25:18] Production.INFO: ProcessCDR(1,14975308,1,1,2) [2025-04-23 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975308', 'tblTempUsageDetail_20' ) start [2025-04-23 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975308', 'tblTempUsageDetail_20' ) end [2025-04-23 22:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 22:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 22:25:22] Production.INFO: ==1856== Releasing lock... [2025-04-23 22:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 22:25:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-23 22:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 19:26:06 [end_date_ymd] => 2025-04-23 22:26:06 [RateCDR] => 1 ) [2025-04-23 22:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 19:26:06' and `end` < '2025-04-23 22:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 22:26:18] Production.INFO: count ==1307 [2025-04-23 22:26:19] Production.ERROR: pbx CDR StartTime 2025-04-23 19:26:06 - End Time 2025-04-23 22:26:06 [2025-04-23 22:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975313', 'tblTempUsageDetail_20' ) start [2025-04-23 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975313', 'tblTempUsageDetail_20' ) end [2025-04-23 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975313', 'tblTempVendorCDR_20' ) start [2025-04-23 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975313', 'tblTempVendorCDR_20' ) end [2025-04-23 22:26:19] Production.INFO: ProcessCDR(1,14975313,1,1,2) [2025-04-23 22:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975313', 'tblTempUsageDetail_20' ) start [2025-04-23 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975313', 'tblTempUsageDetail_20' ) end [2025-04-23 22:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 22:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 22:26:22] Production.INFO: ==1933== Releasing lock... [2025-04-23 22:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 22:26:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-23 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 19:27:05 [end_date_ymd] => 2025-04-23 22:27:05 [RateCDR] => 1 ) [2025-04-23 22:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 19:27:05' and `end` < '2025-04-23 22:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 22:27:18] Production.INFO: count ==1299 [2025-04-23 22:27:18] Production.ERROR: pbx CDR StartTime 2025-04-23 19:27:05 - End Time 2025-04-23 22:27:05 [2025-04-23 22:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975318', 'tblTempUsageDetail_20' ) start [2025-04-23 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975318', 'tblTempUsageDetail_20' ) end [2025-04-23 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975318', 'tblTempVendorCDR_20' ) start [2025-04-23 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975318', 'tblTempVendorCDR_20' ) end [2025-04-23 22:27:18] Production.INFO: ProcessCDR(1,14975318,1,1,2) [2025-04-23 22:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975318', 'tblTempUsageDetail_20' ) start [2025-04-23 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975318', 'tblTempUsageDetail_20' ) end [2025-04-23 22:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 22:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 22:27:21] Production.INFO: ==2006== Releasing lock... [2025-04-23 22:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 22:27:21] Production.INFO: 37.75 MB #Memory Used# [2025-04-23 22:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 19:28:06 [end_date_ymd] => 2025-04-23 22:28:06 [RateCDR] => 1 ) [2025-04-23 22:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 19:28:06' and `end` < '2025-04-23 22:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 22:28:18] Production.INFO: count ==1295 [2025-04-23 22:28:19] Production.ERROR: pbx CDR StartTime 2025-04-23 19:28:06 - End Time 2025-04-23 22:28:06 [2025-04-23 22:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975323', 'tblTempUsageDetail_20' ) start [2025-04-23 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975323', 'tblTempUsageDetail_20' ) end [2025-04-23 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975323', 'tblTempVendorCDR_20' ) start [2025-04-23 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975323', 'tblTempVendorCDR_20' ) end [2025-04-23 22:28:19] Production.INFO: ProcessCDR(1,14975323,1,1,2) [2025-04-23 22:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975323', 'tblTempUsageDetail_20' ) start [2025-04-23 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975323', 'tblTempUsageDetail_20' ) end [2025-04-23 22:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 22:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 22:28:22] Production.INFO: ==2086== Releasing lock... [2025-04-23 22:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 22:28:22] Production.INFO: 38 MB #Memory Used# [2025-04-23 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 19:29:05 [end_date_ymd] => 2025-04-23 22:29:05 [RateCDR] => 1 ) [2025-04-23 22:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 19:29:05' and `end` < '2025-04-23 22:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 22:29:18] Production.INFO: count ==1292 [2025-04-23 22:29:18] Production.ERROR: pbx CDR StartTime 2025-04-23 19:29:05 - End Time 2025-04-23 22:29:05 [2025-04-23 22:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975328', 'tblTempUsageDetail_20' ) start [2025-04-23 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975328', 'tblTempUsageDetail_20' ) end [2025-04-23 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975328', 'tblTempVendorCDR_20' ) start [2025-04-23 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975328', 'tblTempVendorCDR_20' ) end [2025-04-23 22:29:18] Production.INFO: ProcessCDR(1,14975328,1,1,2) [2025-04-23 22:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975328', 'tblTempUsageDetail_20' ) start [2025-04-23 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975328', 'tblTempUsageDetail_20' ) end [2025-04-23 22:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 22:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 22:29:22] Production.INFO: ==2159== Releasing lock... [2025-04-23 22:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 22:29:22] Production.INFO: 38 MB #Memory Used# [2025-04-23 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 19:30:06 [end_date_ymd] => 2025-04-23 22:30:06 [RateCDR] => 1 ) [2025-04-23 22:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 19:30:06' and `end` < '2025-04-23 22:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 22:30:19] Production.INFO: count ==1289 [2025-04-23 22:30:19] Production.ERROR: pbx CDR StartTime 2025-04-23 19:30:06 - End Time 2025-04-23 22:30:06 [2025-04-23 22:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975334', 'tblTempUsageDetail_20' ) start [2025-04-23 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975334', 'tblTempUsageDetail_20' ) end [2025-04-23 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975334', 'tblTempVendorCDR_20' ) start [2025-04-23 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975334', 'tblTempVendorCDR_20' ) end [2025-04-23 22:30:19] Production.INFO: ProcessCDR(1,14975334,1,1,2) [2025-04-23 22:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975334', 'tblTempUsageDetail_20' ) start [2025-04-23 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975334', 'tblTempUsageDetail_20' ) end [2025-04-23 22:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 22:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 22:30:22] Production.INFO: ==2235== Releasing lock... [2025-04-23 22:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 22:30:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-23 22:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 19:31:04 [end_date_ymd] => 2025-04-23 22:31:04 [RateCDR] => 1 ) [2025-04-23 22:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 19:31:04' and `end` < '2025-04-23 22:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 22:31:17] Production.INFO: count ==1282 [2025-04-23 22:31:17] Production.ERROR: pbx CDR StartTime 2025-04-23 19:31:04 - End Time 2025-04-23 22:31:04 [2025-04-23 22:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975339', 'tblTempUsageDetail_20' ) start [2025-04-23 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975339', 'tblTempUsageDetail_20' ) end [2025-04-23 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975339', 'tblTempVendorCDR_20' ) start [2025-04-23 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975339', 'tblTempVendorCDR_20' ) end [2025-04-23 22:31:17] Production.INFO: ProcessCDR(1,14975339,1,1,2) [2025-04-23 22:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975339', 'tblTempUsageDetail_20' ) start [2025-04-23 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975339', 'tblTempUsageDetail_20' ) end [2025-04-23 22:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 22:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 22:31:22] Production.INFO: ==2318== Releasing lock... [2025-04-23 22:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 22:31:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-23 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 19:32:05 [end_date_ymd] => 2025-04-23 22:32:05 [RateCDR] => 1 ) [2025-04-23 22:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 19:32:05' and `end` < '2025-04-23 22:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 22:32:18] Production.INFO: count ==1270 [2025-04-23 22:32:18] Production.ERROR: pbx CDR StartTime 2025-04-23 19:32:05 - End Time 2025-04-23 22:32:05 [2025-04-23 22:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975344', 'tblTempUsageDetail_20' ) start [2025-04-23 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975344', 'tblTempUsageDetail_20' ) end [2025-04-23 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975344', 'tblTempVendorCDR_20' ) start [2025-04-23 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975344', 'tblTempVendorCDR_20' ) end [2025-04-23 22:32:18] Production.INFO: ProcessCDR(1,14975344,1,1,2) [2025-04-23 22:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975344', 'tblTempUsageDetail_20' ) start [2025-04-23 22:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975344', 'tblTempUsageDetail_20' ) end [2025-04-23 22:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 22:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 22:32:21] Production.INFO: ==2398== Releasing lock... [2025-04-23 22:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 22:32:21] Production.INFO: 37.75 MB #Memory Used# [2025-04-23 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 19:33:05 [end_date_ymd] => 2025-04-23 22:33:05 [RateCDR] => 1 ) [2025-04-23 22:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 19:33:05' and `end` < '2025-04-23 22:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 22:33:18] Production.INFO: count ==1266 [2025-04-23 22:33:18] Production.ERROR: pbx CDR StartTime 2025-04-23 19:33:05 - End Time 2025-04-23 22:33:05 [2025-04-23 22:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975349', 'tblTempUsageDetail_20' ) start [2025-04-23 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975349', 'tblTempUsageDetail_20' ) end [2025-04-23 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975349', 'tblTempVendorCDR_20' ) start [2025-04-23 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975349', 'tblTempVendorCDR_20' ) end [2025-04-23 22:33:18] Production.INFO: ProcessCDR(1,14975349,1,1,2) [2025-04-23 22:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975349', 'tblTempUsageDetail_20' ) start [2025-04-23 22:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975349', 'tblTempUsageDetail_20' ) end [2025-04-23 22:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 22:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 22:33:22] Production.INFO: ==2472== Releasing lock... [2025-04-23 22:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 22:33:22] Production.INFO: 38 MB #Memory Used# [2025-04-23 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 19:34:05 [end_date_ymd] => 2025-04-23 22:34:05 [RateCDR] => 1 ) [2025-04-23 22:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 19:34:05' and `end` < '2025-04-23 22:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 22:34:17] Production.INFO: count ==1266 [2025-04-23 22:34:18] Production.ERROR: pbx CDR StartTime 2025-04-23 19:34:05 - End Time 2025-04-23 22:34:05 [2025-04-23 22:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975354', 'tblTempUsageDetail_20' ) start [2025-04-23 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975354', 'tblTempUsageDetail_20' ) end [2025-04-23 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975354', 'tblTempVendorCDR_20' ) start [2025-04-23 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975354', 'tblTempVendorCDR_20' ) end [2025-04-23 22:34:18] Production.INFO: ProcessCDR(1,14975354,1,1,2) [2025-04-23 22:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975354', 'tblTempUsageDetail_20' ) start [2025-04-23 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975354', 'tblTempUsageDetail_20' ) end [2025-04-23 22:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 22:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 22:34:21] Production.INFO: ==2546== Releasing lock... [2025-04-23 22:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 22:34:21] Production.INFO: 37.75 MB #Memory Used# [2025-04-23 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 19:35:05 [end_date_ymd] => 2025-04-23 22:35:05 [RateCDR] => 1 ) [2025-04-23 22:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 19:35:05' and `end` < '2025-04-23 22:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 22:35:18] Production.INFO: count ==1269 [2025-04-23 22:35:18] Production.ERROR: pbx CDR StartTime 2025-04-23 19:35:05 - End Time 2025-04-23 22:35:05 [2025-04-23 22:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975359', 'tblTempUsageDetail_20' ) start [2025-04-23 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975359', 'tblTempUsageDetail_20' ) end [2025-04-23 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975359', 'tblTempVendorCDR_20' ) start [2025-04-23 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975359', 'tblTempVendorCDR_20' ) end [2025-04-23 22:35:18] Production.INFO: ProcessCDR(1,14975359,1,1,2) [2025-04-23 22:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975359', 'tblTempUsageDetail_20' ) start [2025-04-23 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975359', 'tblTempUsageDetail_20' ) end [2025-04-23 22:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 22:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 22:35:22] Production.INFO: ==2623== Releasing lock... [2025-04-23 22:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 22:35:22] Production.INFO: 38 MB #Memory Used# [2025-04-23 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 19:36:05 [end_date_ymd] => 2025-04-23 22:36:05 [RateCDR] => 1 ) [2025-04-23 22:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 19:36:05' and `end` < '2025-04-23 22:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 22:36:17] Production.INFO: count ==1265 [2025-04-23 22:36:18] Production.ERROR: pbx CDR StartTime 2025-04-23 19:36:05 - End Time 2025-04-23 22:36:05 [2025-04-23 22:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975364', 'tblTempUsageDetail_20' ) start [2025-04-23 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975364', 'tblTempUsageDetail_20' ) end [2025-04-23 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975364', 'tblTempVendorCDR_20' ) start [2025-04-23 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975364', 'tblTempVendorCDR_20' ) end [2025-04-23 22:36:18] Production.INFO: ProcessCDR(1,14975364,1,1,2) [2025-04-23 22:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975364', 'tblTempUsageDetail_20' ) start [2025-04-23 22:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975364', 'tblTempUsageDetail_20' ) end [2025-04-23 22:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 22:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 22:36:21] Production.INFO: ==2695== Releasing lock... [2025-04-23 22:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 22:36:21] Production.INFO: 37.75 MB #Memory Used# [2025-04-23 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 19:37:05 [end_date_ymd] => 2025-04-23 22:37:05 [RateCDR] => 1 ) [2025-04-23 22:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 19:37:05' and `end` < '2025-04-23 22:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 22:37:18] Production.INFO: count ==1261 [2025-04-23 22:37:18] Production.ERROR: pbx CDR StartTime 2025-04-23 19:37:05 - End Time 2025-04-23 22:37:05 [2025-04-23 22:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975369', 'tblTempUsageDetail_20' ) start [2025-04-23 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975369', 'tblTempUsageDetail_20' ) end [2025-04-23 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975369', 'tblTempVendorCDR_20' ) start [2025-04-23 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975369', 'tblTempVendorCDR_20' ) end [2025-04-23 22:37:18] Production.INFO: ProcessCDR(1,14975369,1,1,2) [2025-04-23 22:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975369', 'tblTempUsageDetail_20' ) start [2025-04-23 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975369', 'tblTempUsageDetail_20' ) end [2025-04-23 22:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 22:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 22:37:21] Production.INFO: ==2772== Releasing lock... [2025-04-23 22:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 22:37:21] Production.INFO: 38 MB #Memory Used# [2025-04-23 22:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 19:38:04 [end_date_ymd] => 2025-04-23 22:38:04 [RateCDR] => 1 ) [2025-04-23 22:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 19:38:04' and `end` < '2025-04-23 22:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 22:38:17] Production.INFO: count ==1258 [2025-04-23 22:38:17] Production.ERROR: pbx CDR StartTime 2025-04-23 19:38:04 - End Time 2025-04-23 22:38:04 [2025-04-23 22:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975374', 'tblTempUsageDetail_20' ) start [2025-04-23 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975374', 'tblTempUsageDetail_20' ) end [2025-04-23 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975374', 'tblTempVendorCDR_20' ) start [2025-04-23 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975374', 'tblTempVendorCDR_20' ) end [2025-04-23 22:38:17] Production.INFO: ProcessCDR(1,14975374,1,1,2) [2025-04-23 22:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975374', 'tblTempUsageDetail_20' ) start [2025-04-23 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975374', 'tblTempUsageDetail_20' ) end [2025-04-23 22:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 22:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 22:38:21] Production.INFO: ==2848== Releasing lock... [2025-04-23 22:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 22:38:21] Production.INFO: 37.5 MB #Memory Used# [2025-04-23 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 19:39:05 [end_date_ymd] => 2025-04-23 22:39:05 [RateCDR] => 1 ) [2025-04-23 22:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 19:39:05' and `end` < '2025-04-23 22:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 22:39:17] Production.INFO: count ==1258 [2025-04-23 22:39:18] Production.ERROR: pbx CDR StartTime 2025-04-23 19:39:05 - End Time 2025-04-23 22:39:05 [2025-04-23 22:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975379', 'tblTempUsageDetail_20' ) start [2025-04-23 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975379', 'tblTempUsageDetail_20' ) end [2025-04-23 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975379', 'tblTempVendorCDR_20' ) start [2025-04-23 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975379', 'tblTempVendorCDR_20' ) end [2025-04-23 22:39:18] Production.INFO: ProcessCDR(1,14975379,1,1,2) [2025-04-23 22:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975379', 'tblTempUsageDetail_20' ) start [2025-04-23 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975379', 'tblTempUsageDetail_20' ) end [2025-04-23 22:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 22:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 22:39:21] Production.INFO: ==2926== Releasing lock... [2025-04-23 22:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 22:39:21] Production.INFO: 37.25 MB #Memory Used# [2025-04-23 22:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 19:40:06 [end_date_ymd] => 2025-04-23 22:40:06 [RateCDR] => 1 ) [2025-04-23 22:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 19:40:06' and `end` < '2025-04-23 22:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 22:40:18] Production.INFO: count ==1256 [2025-04-23 22:40:19] Production.ERROR: pbx CDR StartTime 2025-04-23 19:40:06 - End Time 2025-04-23 22:40:06 [2025-04-23 22:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975384', 'tblTempUsageDetail_20' ) start [2025-04-23 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975384', 'tblTempUsageDetail_20' ) end [2025-04-23 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975384', 'tblTempVendorCDR_20' ) start [2025-04-23 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975384', 'tblTempVendorCDR_20' ) end [2025-04-23 22:40:19] Production.INFO: ProcessCDR(1,14975384,1,1,2) [2025-04-23 22:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975384', 'tblTempUsageDetail_20' ) start [2025-04-23 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975384', 'tblTempUsageDetail_20' ) end [2025-04-23 22:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 22:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 22:40:22] Production.INFO: ==3001== Releasing lock... [2025-04-23 22:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 22:40:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-23 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 19:41:05 [end_date_ymd] => 2025-04-23 22:41:05 [RateCDR] => 1 ) [2025-04-23 22:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 19:41:05' and `end` < '2025-04-23 22:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 22:41:17] Production.INFO: count ==1200 [2025-04-23 22:41:18] Production.ERROR: pbx CDR StartTime 2025-04-23 19:41:05 - End Time 2025-04-23 22:41:05 [2025-04-23 22:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975390', 'tblTempUsageDetail_20' ) start [2025-04-23 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975390', 'tblTempUsageDetail_20' ) end [2025-04-23 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975390', 'tblTempVendorCDR_20' ) start [2025-04-23 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975390', 'tblTempVendorCDR_20' ) end [2025-04-23 22:41:18] Production.INFO: ProcessCDR(1,14975390,1,1,2) [2025-04-23 22:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975390', 'tblTempUsageDetail_20' ) start [2025-04-23 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975390', 'tblTempUsageDetail_20' ) end [2025-04-23 22:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 22:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 22:41:21] Production.INFO: ==3114== Releasing lock... [2025-04-23 22:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 22:41:21] Production.INFO: 37 MB #Memory Used# [2025-04-23 22:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 19:42:06 [end_date_ymd] => 2025-04-23 22:42:06 [RateCDR] => 1 ) [2025-04-23 22:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 19:42:06' and `end` < '2025-04-23 22:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 22:42:18] Production.INFO: count ==1195 [2025-04-23 22:42:18] Production.ERROR: pbx CDR StartTime 2025-04-23 19:42:06 - End Time 2025-04-23 22:42:06 [2025-04-23 22:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975395', 'tblTempUsageDetail_20' ) start [2025-04-23 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975395', 'tblTempUsageDetail_20' ) end [2025-04-23 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975395', 'tblTempVendorCDR_20' ) start [2025-04-23 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975395', 'tblTempVendorCDR_20' ) end [2025-04-23 22:42:18] Production.INFO: ProcessCDR(1,14975395,1,1,2) [2025-04-23 22:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975395', 'tblTempUsageDetail_20' ) start [2025-04-23 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975395', 'tblTempUsageDetail_20' ) end [2025-04-23 22:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 22:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 22:42:22] Production.INFO: ==3193== Releasing lock... [2025-04-23 22:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 22:42:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-23 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 19:43:05 [end_date_ymd] => 2025-04-23 22:43:05 [RateCDR] => 1 ) [2025-04-23 22:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 19:43:05' and `end` < '2025-04-23 22:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 22:43:18] Production.INFO: count ==1190 [2025-04-23 22:43:18] Production.ERROR: pbx CDR StartTime 2025-04-23 19:43:05 - End Time 2025-04-23 22:43:05 [2025-04-23 22:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975400', 'tblTempUsageDetail_20' ) start [2025-04-23 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975400', 'tblTempUsageDetail_20' ) end [2025-04-23 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975400', 'tblTempVendorCDR_20' ) start [2025-04-23 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975400', 'tblTempVendorCDR_20' ) end [2025-04-23 22:43:18] Production.INFO: ProcessCDR(1,14975400,1,1,2) [2025-04-23 22:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975400', 'tblTempUsageDetail_20' ) start [2025-04-23 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975400', 'tblTempUsageDetail_20' ) end [2025-04-23 22:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 22:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 22:43:21] Production.INFO: ==3263== Releasing lock... [2025-04-23 22:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 22:43:21] Production.INFO: 37.75 MB #Memory Used# [2025-04-23 22:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 19:44:06 [end_date_ymd] => 2025-04-23 22:44:06 [RateCDR] => 1 ) [2025-04-23 22:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 19:44:06' and `end` < '2025-04-23 22:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 22:44:18] Production.INFO: count ==1187 [2025-04-23 22:44:19] Production.ERROR: pbx CDR StartTime 2025-04-23 19:44:06 - End Time 2025-04-23 22:44:06 [2025-04-23 22:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975405', 'tblTempUsageDetail_20' ) start [2025-04-23 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975405', 'tblTempUsageDetail_20' ) end [2025-04-23 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975405', 'tblTempVendorCDR_20' ) start [2025-04-23 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975405', 'tblTempVendorCDR_20' ) end [2025-04-23 22:44:19] Production.INFO: ProcessCDR(1,14975405,1,1,2) [2025-04-23 22:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975405', 'tblTempUsageDetail_20' ) start [2025-04-23 22:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975405', 'tblTempUsageDetail_20' ) end [2025-04-23 22:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 22:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 22:44:23] Production.INFO: ==3343== Releasing lock... [2025-04-23 22:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 22:44:23] Production.INFO: 37.5 MB #Memory Used# [2025-04-23 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 19:45:05 [end_date_ymd] => 2025-04-23 22:45:05 [RateCDR] => 1 ) [2025-04-23 22:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 19:45:05' and `end` < '2025-04-23 22:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 22:45:17] Production.INFO: count ==1182 [2025-04-23 22:45:18] Production.ERROR: pbx CDR StartTime 2025-04-23 19:45:05 - End Time 2025-04-23 22:45:05 [2025-04-23 22:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975410', 'tblTempUsageDetail_20' ) start [2025-04-23 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975410', 'tblTempUsageDetail_20' ) end [2025-04-23 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975410', 'tblTempVendorCDR_20' ) start [2025-04-23 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975410', 'tblTempVendorCDR_20' ) end [2025-04-23 22:45:18] Production.INFO: ProcessCDR(1,14975410,1,1,2) [2025-04-23 22:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975410', 'tblTempUsageDetail_20' ) start [2025-04-23 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975410', 'tblTempUsageDetail_20' ) end [2025-04-23 22:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 22:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 22:45:21] Production.INFO: ==3425== Releasing lock... [2025-04-23 22:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 22:45:21] Production.INFO: 37.5 MB #Memory Used# [2025-04-23 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 19:46:05 [end_date_ymd] => 2025-04-23 22:46:05 [RateCDR] => 1 ) [2025-04-23 22:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 19:46:05' and `end` < '2025-04-23 22:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 22:46:18] Production.INFO: count ==1180 [2025-04-23 22:46:18] Production.ERROR: pbx CDR StartTime 2025-04-23 19:46:05 - End Time 2025-04-23 22:46:05 [2025-04-23 22:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975415', 'tblTempUsageDetail_20' ) start [2025-04-23 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975415', 'tblTempUsageDetail_20' ) end [2025-04-23 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975415', 'tblTempVendorCDR_20' ) start [2025-04-23 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975415', 'tblTempVendorCDR_20' ) end [2025-04-23 22:46:18] Production.INFO: ProcessCDR(1,14975415,1,1,2) [2025-04-23 22:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975415', 'tblTempUsageDetail_20' ) start [2025-04-23 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975415', 'tblTempUsageDetail_20' ) end [2025-04-23 22:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 22:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 22:46:22] Production.INFO: ==3502== Releasing lock... [2025-04-23 22:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 22:46:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-23 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 19:47:05 [end_date_ymd] => 2025-04-23 22:47:05 [RateCDR] => 1 ) [2025-04-23 22:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 19:47:05' and `end` < '2025-04-23 22:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 22:47:18] Production.INFO: count ==1176 [2025-04-23 22:47:18] Production.ERROR: pbx CDR StartTime 2025-04-23 19:47:05 - End Time 2025-04-23 22:47:05 [2025-04-23 22:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975420', 'tblTempUsageDetail_20' ) start [2025-04-23 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975420', 'tblTempUsageDetail_20' ) end [2025-04-23 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975420', 'tblTempVendorCDR_20' ) start [2025-04-23 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975420', 'tblTempVendorCDR_20' ) end [2025-04-23 22:47:18] Production.INFO: ProcessCDR(1,14975420,1,1,2) [2025-04-23 22:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975420', 'tblTempUsageDetail_20' ) start [2025-04-23 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975420', 'tblTempUsageDetail_20' ) end [2025-04-23 22:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 22:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 22:47:21] Production.INFO: ==3582== Releasing lock... [2025-04-23 22:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 22:47:21] Production.INFO: 37.25 MB #Memory Used# [2025-04-23 22:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 19:48:06 [end_date_ymd] => 2025-04-23 22:48:06 [RateCDR] => 1 ) [2025-04-23 22:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 19:48:06' and `end` < '2025-04-23 22:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 22:48:18] Production.INFO: count ==1175 [2025-04-23 22:48:19] Production.ERROR: pbx CDR StartTime 2025-04-23 19:48:06 - End Time 2025-04-23 22:48:06 [2025-04-23 22:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975425', 'tblTempUsageDetail_20' ) start [2025-04-23 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975425', 'tblTempUsageDetail_20' ) end [2025-04-23 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975425', 'tblTempVendorCDR_20' ) start [2025-04-23 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975425', 'tblTempVendorCDR_20' ) end [2025-04-23 22:48:19] Production.INFO: ProcessCDR(1,14975425,1,1,2) [2025-04-23 22:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975425', 'tblTempUsageDetail_20' ) start [2025-04-23 22:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975425', 'tblTempUsageDetail_20' ) end [2025-04-23 22:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 22:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 22:48:22] Production.INFO: ==3657== Releasing lock... [2025-04-23 22:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 22:48:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-23 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 19:49:05 [end_date_ymd] => 2025-04-23 22:49:05 [RateCDR] => 1 ) [2025-04-23 22:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 19:49:05' and `end` < '2025-04-23 22:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 22:49:18] Production.INFO: count ==1170 [2025-04-23 22:49:18] Production.ERROR: pbx CDR StartTime 2025-04-23 19:49:05 - End Time 2025-04-23 22:49:05 [2025-04-23 22:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975430', 'tblTempUsageDetail_20' ) start [2025-04-23 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975430', 'tblTempUsageDetail_20' ) end [2025-04-23 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975430', 'tblTempVendorCDR_20' ) start [2025-04-23 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975430', 'tblTempVendorCDR_20' ) end [2025-04-23 22:49:18] Production.INFO: ProcessCDR(1,14975430,1,1,2) [2025-04-23 22:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975430', 'tblTempUsageDetail_20' ) start [2025-04-23 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975430', 'tblTempUsageDetail_20' ) end [2025-04-23 22:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 22:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 22:49:21] Production.INFO: ==3738== Releasing lock... [2025-04-23 22:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 22:49:21] Production.INFO: 37.25 MB #Memory Used# [2025-04-23 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 19:50:06 [end_date_ymd] => 2025-04-23 22:50:06 [RateCDR] => 1 ) [2025-04-23 22:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 19:50:06' and `end` < '2025-04-23 22:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 22:50:19] Production.INFO: count ==1166 [2025-04-23 22:50:19] Production.ERROR: pbx CDR StartTime 2025-04-23 19:50:06 - End Time 2025-04-23 22:50:06 [2025-04-23 22:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975436', 'tblTempUsageDetail_20' ) start [2025-04-23 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975436', 'tblTempUsageDetail_20' ) end [2025-04-23 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975436', 'tblTempVendorCDR_20' ) start [2025-04-23 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975436', 'tblTempVendorCDR_20' ) end [2025-04-23 22:50:19] Production.INFO: ProcessCDR(1,14975436,1,1,2) [2025-04-23 22:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975436', 'tblTempUsageDetail_20' ) start [2025-04-23 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975436', 'tblTempUsageDetail_20' ) end [2025-04-23 22:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 22:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 22:50:22] Production.INFO: ==3813== Releasing lock... [2025-04-23 22:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 22:50:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-23 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 19:51:05 [end_date_ymd] => 2025-04-23 22:51:05 [RateCDR] => 1 ) [2025-04-23 22:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 19:51:05' and `end` < '2025-04-23 22:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 22:51:18] Production.INFO: count ==1174 [2025-04-23 22:51:18] Production.ERROR: pbx CDR StartTime 2025-04-23 19:51:05 - End Time 2025-04-23 22:51:05 [2025-04-23 22:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975441', 'tblTempUsageDetail_20' ) start [2025-04-23 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975441', 'tblTempUsageDetail_20' ) end [2025-04-23 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975441', 'tblTempVendorCDR_20' ) start [2025-04-23 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975441', 'tblTempVendorCDR_20' ) end [2025-04-23 22:51:18] Production.INFO: ProcessCDR(1,14975441,1,1,2) [2025-04-23 22:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975441', 'tblTempUsageDetail_20' ) start [2025-04-23 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975441', 'tblTempUsageDetail_20' ) end [2025-04-23 22:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 22:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 22:51:21] Production.INFO: ==3888== Releasing lock... [2025-04-23 22:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 22:51:21] Production.INFO: 37.75 MB #Memory Used# [2025-04-23 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 19:52:05 [end_date_ymd] => 2025-04-23 22:52:05 [RateCDR] => 1 ) [2025-04-23 22:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 19:52:05' and `end` < '2025-04-23 22:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 22:52:17] Production.INFO: count ==1170 [2025-04-23 22:52:18] Production.ERROR: pbx CDR StartTime 2025-04-23 19:52:05 - End Time 2025-04-23 22:52:05 [2025-04-23 22:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975446', 'tblTempUsageDetail_20' ) start [2025-04-23 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975446', 'tblTempUsageDetail_20' ) end [2025-04-23 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975446', 'tblTempVendorCDR_20' ) start [2025-04-23 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975446', 'tblTempVendorCDR_20' ) end [2025-04-23 22:52:18] Production.INFO: ProcessCDR(1,14975446,1,1,2) [2025-04-23 22:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975446', 'tblTempUsageDetail_20' ) start [2025-04-23 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975446', 'tblTempUsageDetail_20' ) end [2025-04-23 22:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 22:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 22:52:21] Production.INFO: ==3963== Releasing lock... [2025-04-23 22:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 22:52:21] Production.INFO: 37 MB #Memory Used# [2025-04-23 22:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 19:53:06 [end_date_ymd] => 2025-04-23 22:53:06 [RateCDR] => 1 ) [2025-04-23 22:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 19:53:06' and `end` < '2025-04-23 22:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 22:53:18] Production.INFO: count ==1166 [2025-04-23 22:53:19] Production.ERROR: pbx CDR StartTime 2025-04-23 19:53:06 - End Time 2025-04-23 22:53:06 [2025-04-23 22:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975451', 'tblTempUsageDetail_20' ) start [2025-04-23 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975451', 'tblTempUsageDetail_20' ) end [2025-04-23 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975451', 'tblTempVendorCDR_20' ) start [2025-04-23 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975451', 'tblTempVendorCDR_20' ) end [2025-04-23 22:53:19] Production.INFO: ProcessCDR(1,14975451,1,1,2) [2025-04-23 22:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975451', 'tblTempUsageDetail_20' ) start [2025-04-23 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975451', 'tblTempUsageDetail_20' ) end [2025-04-23 22:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 22:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 22:53:22] Production.INFO: ==4040== Releasing lock... [2025-04-23 22:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 22:53:22] Production.INFO: 37 MB #Memory Used# [2025-04-23 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 19:54:05 [end_date_ymd] => 2025-04-23 22:54:05 [RateCDR] => 1 ) [2025-04-23 22:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 19:54:05' and `end` < '2025-04-23 22:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 22:54:17] Production.INFO: count ==1175 [2025-04-23 22:54:18] Production.ERROR: pbx CDR StartTime 2025-04-23 19:54:05 - End Time 2025-04-23 22:54:05 [2025-04-23 22:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975456', 'tblTempUsageDetail_20' ) start [2025-04-23 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975456', 'tblTempUsageDetail_20' ) end [2025-04-23 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975456', 'tblTempVendorCDR_20' ) start [2025-04-23 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975456', 'tblTempVendorCDR_20' ) end [2025-04-23 22:54:18] Production.INFO: ProcessCDR(1,14975456,1,1,2) [2025-04-23 22:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975456', 'tblTempUsageDetail_20' ) start [2025-04-23 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975456', 'tblTempUsageDetail_20' ) end [2025-04-23 22:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 22:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 22:54:21] Production.INFO: ==4115== Releasing lock... [2025-04-23 22:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 22:54:21] Production.INFO: 37.5 MB #Memory Used# [2025-04-23 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 19:55:05 [end_date_ymd] => 2025-04-23 22:55:05 [RateCDR] => 1 ) [2025-04-23 22:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 19:55:05' and `end` < '2025-04-23 22:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 22:55:18] Production.INFO: count ==1172 [2025-04-23 22:55:18] Production.ERROR: pbx CDR StartTime 2025-04-23 19:55:05 - End Time 2025-04-23 22:55:05 [2025-04-23 22:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975461', 'tblTempUsageDetail_20' ) start [2025-04-23 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975461', 'tblTempUsageDetail_20' ) end [2025-04-23 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975461', 'tblTempVendorCDR_20' ) start [2025-04-23 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975461', 'tblTempVendorCDR_20' ) end [2025-04-23 22:55:18] Production.INFO: ProcessCDR(1,14975461,1,1,2) [2025-04-23 22:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975461', 'tblTempUsageDetail_20' ) start [2025-04-23 22:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975461', 'tblTempUsageDetail_20' ) end [2025-04-23 22:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 22:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 22:55:23] Production.INFO: ==4197== Releasing lock... [2025-04-23 22:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 22:55:23] Production.INFO: 37 MB #Memory Used# [2025-04-23 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 19:56:05 [end_date_ymd] => 2025-04-23 22:56:05 [RateCDR] => 1 ) [2025-04-23 22:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 19:56:05' and `end` < '2025-04-23 22:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 22:56:18] Production.INFO: count ==1171 [2025-04-23 22:56:18] Production.ERROR: pbx CDR StartTime 2025-04-23 19:56:05 - End Time 2025-04-23 22:56:05 [2025-04-23 22:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975466', 'tblTempUsageDetail_20' ) start [2025-04-23 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975466', 'tblTempUsageDetail_20' ) end [2025-04-23 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975466', 'tblTempVendorCDR_20' ) start [2025-04-23 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975466', 'tblTempVendorCDR_20' ) end [2025-04-23 22:56:18] Production.INFO: ProcessCDR(1,14975466,1,1,2) [2025-04-23 22:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975466', 'tblTempUsageDetail_20' ) start [2025-04-23 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975466', 'tblTempUsageDetail_20' ) end [2025-04-23 22:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 22:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 22:56:21] Production.INFO: ==4309== Releasing lock... [2025-04-23 22:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 22:56:21] Production.INFO: 37.25 MB #Memory Used# [2025-04-23 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 19:57:05 [end_date_ymd] => 2025-04-23 22:57:05 [RateCDR] => 1 ) [2025-04-23 22:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 19:57:05' and `end` < '2025-04-23 22:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 22:57:18] Production.INFO: count ==1170 [2025-04-23 22:57:19] Production.ERROR: pbx CDR StartTime 2025-04-23 19:57:05 - End Time 2025-04-23 22:57:05 [2025-04-23 22:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975471', 'tblTempUsageDetail_20' ) start [2025-04-23 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975471', 'tblTempUsageDetail_20' ) end [2025-04-23 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975471', 'tblTempVendorCDR_20' ) start [2025-04-23 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975471', 'tblTempVendorCDR_20' ) end [2025-04-23 22:57:19] Production.INFO: ProcessCDR(1,14975471,1,1,2) [2025-04-23 22:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975471', 'tblTempUsageDetail_20' ) start [2025-04-23 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975471', 'tblTempUsageDetail_20' ) end [2025-04-23 22:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 22:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 22:57:22] Production.INFO: ==4392== Releasing lock... [2025-04-23 22:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 22:57:22] Production.INFO: 37 MB #Memory Used# [2025-04-23 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 19:58:05 [end_date_ymd] => 2025-04-23 22:58:05 [RateCDR] => 1 ) [2025-04-23 22:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 19:58:05' and `end` < '2025-04-23 22:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 22:58:18] Production.INFO: count ==1167 [2025-04-23 22:58:18] Production.ERROR: pbx CDR StartTime 2025-04-23 19:58:05 - End Time 2025-04-23 22:58:05 [2025-04-23 22:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975476', 'tblTempUsageDetail_20' ) start [2025-04-23 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975476', 'tblTempUsageDetail_20' ) end [2025-04-23 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975476', 'tblTempVendorCDR_20' ) start [2025-04-23 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975476', 'tblTempVendorCDR_20' ) end [2025-04-23 22:58:18] Production.INFO: ProcessCDR(1,14975476,1,1,2) [2025-04-23 22:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975476', 'tblTempUsageDetail_20' ) start [2025-04-23 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975476', 'tblTempUsageDetail_20' ) end [2025-04-23 22:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 22:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 22:58:21] Production.INFO: ==4472== Releasing lock... [2025-04-23 22:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 22:58:21] Production.INFO: 37 MB #Memory Used# [2025-04-23 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 19:59:05 [end_date_ymd] => 2025-04-23 22:59:05 [RateCDR] => 1 ) [2025-04-23 22:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 19:59:05' and `end` < '2025-04-23 22:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 22:59:18] Production.INFO: count ==1165 [2025-04-23 22:59:18] Production.ERROR: pbx CDR StartTime 2025-04-23 19:59:05 - End Time 2025-04-23 22:59:05 [2025-04-23 22:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975481', 'tblTempUsageDetail_20' ) start [2025-04-23 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975481', 'tblTempUsageDetail_20' ) end [2025-04-23 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975481', 'tblTempVendorCDR_20' ) start [2025-04-23 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975481', 'tblTempVendorCDR_20' ) end [2025-04-23 22:59:18] Production.INFO: ProcessCDR(1,14975481,1,1,2) [2025-04-23 22:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 22:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975481', 'tblTempUsageDetail_20' ) start [2025-04-23 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975481', 'tblTempUsageDetail_20' ) end [2025-04-23 22:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 22:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 22:59:21] Production.INFO: ==4545== Releasing lock... [2025-04-23 22:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 22:59:21] Production.INFO: 37.25 MB #Memory Used# [2025-04-23 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 20:00:06 [end_date_ymd] => 2025-04-23 23:00:06 [RateCDR] => 1 ) [2025-04-23 23:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 20:00:06' and `end` < '2025-04-23 23:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 23:00:19] Production.INFO: count ==1164 [2025-04-23 23:00:19] Production.ERROR: pbx CDR StartTime 2025-04-23 20:00:06 - End Time 2025-04-23 23:00:06 [2025-04-23 23:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975487', 'tblTempUsageDetail_20' ) start [2025-04-23 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975487', 'tblTempUsageDetail_20' ) end [2025-04-23 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975487', 'tblTempVendorCDR_20' ) start [2025-04-23 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975487', 'tblTempVendorCDR_20' ) end [2025-04-23 23:00:19] Production.INFO: ProcessCDR(1,14975487,1,1,2) [2025-04-23 23:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975487', 'tblTempUsageDetail_20' ) start [2025-04-23 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975487', 'tblTempUsageDetail_20' ) end [2025-04-23 23:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 23:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 23:00:22] Production.INFO: ==4639== Releasing lock... [2025-04-23 23:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 23:00:22] Production.INFO: 37 MB #Memory Used# [2025-04-23 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 20:01:05 [end_date_ymd] => 2025-04-23 23:01:05 [RateCDR] => 1 ) [2025-04-23 23:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 20:01:05' and `end` < '2025-04-23 23:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 23:01:18] Production.INFO: count ==1103 [2025-04-23 23:01:19] Production.ERROR: pbx CDR StartTime 2025-04-23 20:01:05 - End Time 2025-04-23 23:01:05 [2025-04-23 23:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975492', 'tblTempUsageDetail_20' ) start [2025-04-23 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975492', 'tblTempUsageDetail_20' ) end [2025-04-23 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975492', 'tblTempVendorCDR_20' ) start [2025-04-23 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975492', 'tblTempVendorCDR_20' ) end [2025-04-23 23:01:19] Production.INFO: ProcessCDR(1,14975492,1,1,2) [2025-04-23 23:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975492', 'tblTempUsageDetail_20' ) start [2025-04-23 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975492', 'tblTempUsageDetail_20' ) end [2025-04-23 23:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 23:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 23:01:22] Production.INFO: ==4808== Releasing lock... [2025-04-23 23:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 23:01:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-23 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 20:02:05 [end_date_ymd] => 2025-04-23 23:02:05 [RateCDR] => 1 ) [2025-04-23 23:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 20:02:05' and `end` < '2025-04-23 23:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 23:02:18] Production.INFO: count ==1102 [2025-04-23 23:02:18] Production.ERROR: pbx CDR StartTime 2025-04-23 20:02:05 - End Time 2025-04-23 23:02:05 [2025-04-23 23:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975497', 'tblTempUsageDetail_20' ) start [2025-04-23 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975497', 'tblTempUsageDetail_20' ) end [2025-04-23 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975497', 'tblTempVendorCDR_20' ) start [2025-04-23 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975497', 'tblTempVendorCDR_20' ) end [2025-04-23 23:02:18] Production.INFO: ProcessCDR(1,14975497,1,1,2) [2025-04-23 23:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975497', 'tblTempUsageDetail_20' ) start [2025-04-23 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975497', 'tblTempUsageDetail_20' ) end [2025-04-23 23:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 23:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 23:02:21] Production.INFO: ==4892== Releasing lock... [2025-04-23 23:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 23:02:21] Production.INFO: 37 MB #Memory Used# [2025-04-23 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 20:03:05 [end_date_ymd] => 2025-04-23 23:03:05 [RateCDR] => 1 ) [2025-04-23 23:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 20:03:05' and `end` < '2025-04-23 23:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 23:03:17] Production.INFO: count ==1096 [2025-04-23 23:03:18] Production.ERROR: pbx CDR StartTime 2025-04-23 20:03:05 - End Time 2025-04-23 23:03:05 [2025-04-23 23:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975502', 'tblTempUsageDetail_20' ) start [2025-04-23 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975502', 'tblTempUsageDetail_20' ) end [2025-04-23 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975502', 'tblTempVendorCDR_20' ) start [2025-04-23 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975502', 'tblTempVendorCDR_20' ) end [2025-04-23 23:03:18] Production.INFO: ProcessCDR(1,14975502,1,1,2) [2025-04-23 23:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975502', 'tblTempUsageDetail_20' ) start [2025-04-23 23:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975502', 'tblTempUsageDetail_20' ) end [2025-04-23 23:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 23:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 23:03:21] Production.INFO: ==4974== Releasing lock... [2025-04-23 23:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 23:03:21] Production.INFO: 36.75 MB #Memory Used# [2025-04-23 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 20:04:05 [end_date_ymd] => 2025-04-23 23:04:05 [RateCDR] => 1 ) [2025-04-23 23:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 20:04:05' and `end` < '2025-04-23 23:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 23:04:18] Production.INFO: count ==1093 [2025-04-23 23:04:18] Production.ERROR: pbx CDR StartTime 2025-04-23 20:04:05 - End Time 2025-04-23 23:04:05 [2025-04-23 23:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975507', 'tblTempUsageDetail_20' ) start [2025-04-23 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975507', 'tblTempUsageDetail_20' ) end [2025-04-23 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975507', 'tblTempVendorCDR_20' ) start [2025-04-23 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975507', 'tblTempVendorCDR_20' ) end [2025-04-23 23:04:18] Production.INFO: ProcessCDR(1,14975507,1,1,2) [2025-04-23 23:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975507', 'tblTempUsageDetail_20' ) start [2025-04-23 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975507', 'tblTempUsageDetail_20' ) end [2025-04-23 23:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 23:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 23:04:21] Production.INFO: ==5059== Releasing lock... [2025-04-23 23:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 23:04:21] Production.INFO: 36.75 MB #Memory Used# [2025-04-23 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 20:05:05 [end_date_ymd] => 2025-04-23 23:05:05 [RateCDR] => 1 ) [2025-04-23 23:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 20:05:05' and `end` < '2025-04-23 23:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 23:05:18] Production.INFO: count ==1092 [2025-04-23 23:05:18] Production.ERROR: pbx CDR StartTime 2025-04-23 20:05:05 - End Time 2025-04-23 23:05:05 [2025-04-23 23:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975512', 'tblTempUsageDetail_20' ) start [2025-04-23 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975512', 'tblTempUsageDetail_20' ) end [2025-04-23 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975512', 'tblTempVendorCDR_20' ) start [2025-04-23 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975512', 'tblTempVendorCDR_20' ) end [2025-04-23 23:05:18] Production.INFO: ProcessCDR(1,14975512,1,1,2) [2025-04-23 23:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975512', 'tblTempUsageDetail_20' ) start [2025-04-23 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975512', 'tblTempUsageDetail_20' ) end [2025-04-23 23:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 23:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 23:05:21] Production.INFO: ==5217== Releasing lock... [2025-04-23 23:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 23:05:21] Production.INFO: 36.5 MB #Memory Used# [2025-04-23 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 20:06:05 [end_date_ymd] => 2025-04-23 23:06:05 [RateCDR] => 1 ) [2025-04-23 23:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 20:06:05' and `end` < '2025-04-23 23:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 23:06:18] Production.INFO: count ==1089 [2025-04-23 23:06:18] Production.ERROR: pbx CDR StartTime 2025-04-23 20:06:05 - End Time 2025-04-23 23:06:05 [2025-04-23 23:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975517', 'tblTempUsageDetail_20' ) start [2025-04-23 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975517', 'tblTempUsageDetail_20' ) end [2025-04-23 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975517', 'tblTempVendorCDR_20' ) start [2025-04-23 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975517', 'tblTempVendorCDR_20' ) end [2025-04-23 23:06:18] Production.INFO: ProcessCDR(1,14975517,1,1,2) [2025-04-23 23:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975517', 'tblTempUsageDetail_20' ) start [2025-04-23 23:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975517', 'tblTempUsageDetail_20' ) end [2025-04-23 23:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 23:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 23:06:22] Production.INFO: ==5294== Releasing lock... [2025-04-23 23:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 23:06:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-23 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 20:07:05 [end_date_ymd] => 2025-04-23 23:07:05 [RateCDR] => 1 ) [2025-04-23 23:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 20:07:05' and `end` < '2025-04-23 23:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 23:07:18] Production.INFO: count ==1090 [2025-04-23 23:07:18] Production.ERROR: pbx CDR StartTime 2025-04-23 20:07:05 - End Time 2025-04-23 23:07:05 [2025-04-23 23:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975522', 'tblTempUsageDetail_20' ) start [2025-04-23 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975522', 'tblTempUsageDetail_20' ) end [2025-04-23 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975522', 'tblTempVendorCDR_20' ) start [2025-04-23 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975522', 'tblTempVendorCDR_20' ) end [2025-04-23 23:07:18] Production.INFO: ProcessCDR(1,14975522,1,1,2) [2025-04-23 23:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975522', 'tblTempUsageDetail_20' ) start [2025-04-23 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975522', 'tblTempUsageDetail_20' ) end [2025-04-23 23:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 23:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 23:07:21] Production.INFO: ==5379== Releasing lock... [2025-04-23 23:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 23:07:21] Production.INFO: 36.75 MB #Memory Used# [2025-04-23 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 20:08:05 [end_date_ymd] => 2025-04-23 23:08:05 [RateCDR] => 1 ) [2025-04-23 23:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 20:08:05' and `end` < '2025-04-23 23:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 23:08:18] Production.INFO: count ==1089 [2025-04-23 23:08:18] Production.ERROR: pbx CDR StartTime 2025-04-23 20:08:05 - End Time 2025-04-23 23:08:05 [2025-04-23 23:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975527', 'tblTempUsageDetail_20' ) start [2025-04-23 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975527', 'tblTempUsageDetail_20' ) end [2025-04-23 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975527', 'tblTempVendorCDR_20' ) start [2025-04-23 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975527', 'tblTempVendorCDR_20' ) end [2025-04-23 23:08:18] Production.INFO: ProcessCDR(1,14975527,1,1,2) [2025-04-23 23:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975527', 'tblTempUsageDetail_20' ) start [2025-04-23 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975527', 'tblTempUsageDetail_20' ) end [2025-04-23 23:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 23:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 23:08:22] Production.INFO: ==5538== Releasing lock... [2025-04-23 23:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 23:08:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-23 23:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 20:09:04 [end_date_ymd] => 2025-04-23 23:09:04 [RateCDR] => 1 ) [2025-04-23 23:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 20:09:04' and `end` < '2025-04-23 23:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 23:09:17] Production.INFO: count ==1086 [2025-04-23 23:09:17] Production.ERROR: pbx CDR StartTime 2025-04-23 20:09:04 - End Time 2025-04-23 23:09:04 [2025-04-23 23:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975532', 'tblTempUsageDetail_20' ) start [2025-04-23 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975532', 'tblTempUsageDetail_20' ) end [2025-04-23 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975532', 'tblTempVendorCDR_20' ) start [2025-04-23 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975532', 'tblTempVendorCDR_20' ) end [2025-04-23 23:09:17] Production.INFO: ProcessCDR(1,14975532,1,1,2) [2025-04-23 23:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975532', 'tblTempUsageDetail_20' ) start [2025-04-23 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975532', 'tblTempUsageDetail_20' ) end [2025-04-23 23:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 23:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 23:09:21] Production.INFO: ==5612== Releasing lock... [2025-04-23 23:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 23:09:21] Production.INFO: 36.25 MB #Memory Used# [2025-04-23 23:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 20:10:06 [end_date_ymd] => 2025-04-23 23:10:06 [RateCDR] => 1 ) [2025-04-23 23:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 20:10:06' and `end` < '2025-04-23 23:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 23:10:19] Production.INFO: count ==1085 [2025-04-23 23:10:19] Production.ERROR: pbx CDR StartTime 2025-04-23 20:10:06 - End Time 2025-04-23 23:10:06 [2025-04-23 23:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975538', 'tblTempUsageDetail_20' ) start [2025-04-23 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975538', 'tblTempUsageDetail_20' ) end [2025-04-23 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975538', 'tblTempVendorCDR_20' ) start [2025-04-23 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975538', 'tblTempVendorCDR_20' ) end [2025-04-23 23:10:19] Production.INFO: ProcessCDR(1,14975538,1,1,2) [2025-04-23 23:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975538', 'tblTempUsageDetail_20' ) start [2025-04-23 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975538', 'tblTempUsageDetail_20' ) end [2025-04-23 23:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 23:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 23:10:22] Production.INFO: ==5697== Releasing lock... [2025-04-23 23:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 23:10:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-23 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 20:11:05 [end_date_ymd] => 2025-04-23 23:11:05 [RateCDR] => 1 ) [2025-04-23 23:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 20:11:05' and `end` < '2025-04-23 23:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 23:11:18] Production.INFO: count ==1067 [2025-04-23 23:11:18] Production.ERROR: pbx CDR StartTime 2025-04-23 20:11:05 - End Time 2025-04-23 23:11:05 [2025-04-23 23:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975543', 'tblTempUsageDetail_20' ) start [2025-04-23 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975543', 'tblTempUsageDetail_20' ) end [2025-04-23 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975543', 'tblTempVendorCDR_20' ) start [2025-04-23 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975543', 'tblTempVendorCDR_20' ) end [2025-04-23 23:11:18] Production.INFO: ProcessCDR(1,14975543,1,1,2) [2025-04-23 23:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975543', 'tblTempUsageDetail_20' ) start [2025-04-23 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975543', 'tblTempUsageDetail_20' ) end [2025-04-23 23:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 23:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 23:11:21] Production.INFO: ==5817== Releasing lock... [2025-04-23 23:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 23:11:21] Production.INFO: 36.25 MB #Memory Used# [2025-04-23 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 20:12:05 [end_date_ymd] => 2025-04-23 23:12:05 [RateCDR] => 1 ) [2025-04-23 23:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 20:12:05' and `end` < '2025-04-23 23:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 23:12:17] Production.INFO: count ==1064 [2025-04-23 23:12:18] Production.ERROR: pbx CDR StartTime 2025-04-23 20:12:05 - End Time 2025-04-23 23:12:05 [2025-04-23 23:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975548', 'tblTempUsageDetail_20' ) start [2025-04-23 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975548', 'tblTempUsageDetail_20' ) end [2025-04-23 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975548', 'tblTempVendorCDR_20' ) start [2025-04-23 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975548', 'tblTempVendorCDR_20' ) end [2025-04-23 23:12:18] Production.INFO: ProcessCDR(1,14975548,1,1,2) [2025-04-23 23:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975548', 'tblTempUsageDetail_20' ) start [2025-04-23 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975548', 'tblTempUsageDetail_20' ) end [2025-04-23 23:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 23:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 23:12:21] Production.INFO: ==5979== Releasing lock... [2025-04-23 23:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 23:12:21] Production.INFO: 36.5 MB #Memory Used# [2025-04-23 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 20:13:05 [end_date_ymd] => 2025-04-23 23:13:05 [RateCDR] => 1 ) [2025-04-23 23:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 20:13:05' and `end` < '2025-04-23 23:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 23:13:18] Production.INFO: count ==1060 [2025-04-23 23:13:18] Production.ERROR: pbx CDR StartTime 2025-04-23 20:13:05 - End Time 2025-04-23 23:13:05 [2025-04-23 23:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975553', 'tblTempUsageDetail_20' ) start [2025-04-23 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975553', 'tblTempUsageDetail_20' ) end [2025-04-23 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975553', 'tblTempVendorCDR_20' ) start [2025-04-23 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975553', 'tblTempVendorCDR_20' ) end [2025-04-23 23:13:18] Production.INFO: ProcessCDR(1,14975553,1,1,2) [2025-04-23 23:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975553', 'tblTempUsageDetail_20' ) start [2025-04-23 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975553', 'tblTempUsageDetail_20' ) end [2025-04-23 23:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 23:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 23:13:21] Production.INFO: ==6064== Releasing lock... [2025-04-23 23:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 23:13:21] Production.INFO: 36.25 MB #Memory Used# [2025-04-23 23:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 20:14:04 [end_date_ymd] => 2025-04-23 23:14:04 [RateCDR] => 1 ) [2025-04-23 23:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 20:14:04' and `end` < '2025-04-23 23:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 23:14:17] Production.INFO: count ==1055 [2025-04-23 23:14:17] Production.ERROR: pbx CDR StartTime 2025-04-23 20:14:04 - End Time 2025-04-23 23:14:04 [2025-04-23 23:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975558', 'tblTempUsageDetail_20' ) start [2025-04-23 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975558', 'tblTempUsageDetail_20' ) end [2025-04-23 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975558', 'tblTempVendorCDR_20' ) start [2025-04-23 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975558', 'tblTempVendorCDR_20' ) end [2025-04-23 23:14:17] Production.INFO: ProcessCDR(1,14975558,1,1,2) [2025-04-23 23:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975558', 'tblTempUsageDetail_20' ) start [2025-04-23 23:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975558', 'tblTempUsageDetail_20' ) end [2025-04-23 23:14:20] Production.ERROR: pbx prc_insertCDR start [2025-04-23 23:14:20] Production.ERROR: pbx prc_insertCDR end [2025-04-23 23:14:20] Production.INFO: ==6138== Releasing lock... [2025-04-23 23:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 23:14:20] Production.INFO: 36.25 MB #Memory Used# [2025-04-23 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 20:15:05 [end_date_ymd] => 2025-04-23 23:15:05 [RateCDR] => 1 ) [2025-04-23 23:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 20:15:05' and `end` < '2025-04-23 23:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 23:15:18] Production.INFO: count ==1049 [2025-04-23 23:15:18] Production.ERROR: pbx CDR StartTime 2025-04-23 20:15:05 - End Time 2025-04-23 23:15:05 [2025-04-23 23:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975563', 'tblTempUsageDetail_20' ) start [2025-04-23 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975563', 'tblTempUsageDetail_20' ) end [2025-04-23 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975563', 'tblTempVendorCDR_20' ) start [2025-04-23 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975563', 'tblTempVendorCDR_20' ) end [2025-04-23 23:15:18] Production.INFO: ProcessCDR(1,14975563,1,1,2) [2025-04-23 23:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975563', 'tblTempUsageDetail_20' ) start [2025-04-23 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975563', 'tblTempUsageDetail_20' ) end [2025-04-23 23:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 23:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 23:15:21] Production.INFO: ==6293== Releasing lock... [2025-04-23 23:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 23:15:21] Production.INFO: 36.5 MB #Memory Used# [2025-04-23 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 20:16:05 [end_date_ymd] => 2025-04-23 23:16:05 [RateCDR] => 1 ) [2025-04-23 23:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 20:16:05' and `end` < '2025-04-23 23:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 23:16:18] Production.INFO: count ==1046 [2025-04-23 23:16:18] Production.ERROR: pbx CDR StartTime 2025-04-23 20:16:05 - End Time 2025-04-23 23:16:05 [2025-04-23 23:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975568', 'tblTempUsageDetail_20' ) start [2025-04-23 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975568', 'tblTempUsageDetail_20' ) end [2025-04-23 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975568', 'tblTempVendorCDR_20' ) start [2025-04-23 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975568', 'tblTempVendorCDR_20' ) end [2025-04-23 23:16:18] Production.INFO: ProcessCDR(1,14975568,1,1,2) [2025-04-23 23:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975568', 'tblTempUsageDetail_20' ) start [2025-04-23 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975568', 'tblTempUsageDetail_20' ) end [2025-04-23 23:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 23:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 23:16:21] Production.INFO: ==6366== Releasing lock... [2025-04-23 23:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 23:16:21] Production.INFO: 36.25 MB #Memory Used# [2025-04-23 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 20:17:05 [end_date_ymd] => 2025-04-23 23:17:05 [RateCDR] => 1 ) [2025-04-23 23:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 20:17:05' and `end` < '2025-04-23 23:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 23:17:17] Production.INFO: count ==1045 [2025-04-23 23:17:18] Production.ERROR: pbx CDR StartTime 2025-04-23 20:17:05 - End Time 2025-04-23 23:17:05 [2025-04-23 23:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975573', 'tblTempUsageDetail_20' ) start [2025-04-23 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975573', 'tblTempUsageDetail_20' ) end [2025-04-23 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975573', 'tblTempVendorCDR_20' ) start [2025-04-23 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975573', 'tblTempVendorCDR_20' ) end [2025-04-23 23:17:18] Production.INFO: ProcessCDR(1,14975573,1,1,2) [2025-04-23 23:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975573', 'tblTempUsageDetail_20' ) start [2025-04-23 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975573', 'tblTempUsageDetail_20' ) end [2025-04-23 23:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 23:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 23:17:21] Production.INFO: ==6447== Releasing lock... [2025-04-23 23:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 23:17:21] Production.INFO: 36 MB #Memory Used# [2025-04-23 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 20:18:05 [end_date_ymd] => 2025-04-23 23:18:05 [RateCDR] => 1 ) [2025-04-23 23:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 20:18:05' and `end` < '2025-04-23 23:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 23:18:18] Production.INFO: count ==1041 [2025-04-23 23:18:19] Production.ERROR: pbx CDR StartTime 2025-04-23 20:18:05 - End Time 2025-04-23 23:18:05 [2025-04-23 23:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975578', 'tblTempUsageDetail_20' ) start [2025-04-23 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975578', 'tblTempUsageDetail_20' ) end [2025-04-23 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975578', 'tblTempVendorCDR_20' ) start [2025-04-23 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975578', 'tblTempVendorCDR_20' ) end [2025-04-23 23:18:19] Production.INFO: ProcessCDR(1,14975578,1,1,2) [2025-04-23 23:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975578', 'tblTempUsageDetail_20' ) start [2025-04-23 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975578', 'tblTempUsageDetail_20' ) end [2025-04-23 23:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 23:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 23:18:22] Production.INFO: ==6528== Releasing lock... [2025-04-23 23:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 23:18:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-23 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 20:19:05 [end_date_ymd] => 2025-04-23 23:19:05 [RateCDR] => 1 ) [2025-04-23 23:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 20:19:05' and `end` < '2025-04-23 23:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 23:19:17] Production.INFO: count ==1035 [2025-04-23 23:19:18] Production.ERROR: pbx CDR StartTime 2025-04-23 20:19:05 - End Time 2025-04-23 23:19:05 [2025-04-23 23:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975583', 'tblTempUsageDetail_20' ) start [2025-04-23 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975583', 'tblTempUsageDetail_20' ) end [2025-04-23 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975583', 'tblTempVendorCDR_20' ) start [2025-04-23 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975583', 'tblTempVendorCDR_20' ) end [2025-04-23 23:19:18] Production.INFO: ProcessCDR(1,14975583,1,1,2) [2025-04-23 23:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975583', 'tblTempUsageDetail_20' ) start [2025-04-23 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975583', 'tblTempUsageDetail_20' ) end [2025-04-23 23:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 23:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 23:19:21] Production.INFO: ==6609== Releasing lock... [2025-04-23 23:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 23:19:21] Production.INFO: 36.25 MB #Memory Used# [2025-04-23 23:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 20:20:05 [end_date_ymd] => 2025-04-23 23:20:05 [RateCDR] => 1 ) [2025-04-23 23:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 20:20:05' and `end` < '2025-04-23 23:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 23:20:18] Production.INFO: count ==1035 [2025-04-23 23:20:18] Production.ERROR: pbx CDR StartTime 2025-04-23 20:20:05 - End Time 2025-04-23 23:20:05 [2025-04-23 23:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975588', 'tblTempUsageDetail_20' ) start [2025-04-23 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975588', 'tblTempUsageDetail_20' ) end [2025-04-23 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975588', 'tblTempVendorCDR_20' ) start [2025-04-23 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975588', 'tblTempVendorCDR_20' ) end [2025-04-23 23:20:18] Production.INFO: ProcessCDR(1,14975588,1,1,2) [2025-04-23 23:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975588', 'tblTempUsageDetail_20' ) start [2025-04-23 23:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975588', 'tblTempUsageDetail_20' ) end [2025-04-23 23:20:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 23:20:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 23:20:21] Production.INFO: ==6688== Releasing lock... [2025-04-23 23:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 23:20:21] Production.INFO: 36 MB #Memory Used# [2025-04-23 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 20:21:05 [end_date_ymd] => 2025-04-23 23:21:05 [RateCDR] => 1 ) [2025-04-23 23:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 20:21:05' and `end` < '2025-04-23 23:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 23:21:17] Production.INFO: count ==1003 [2025-04-23 23:21:17] Production.ERROR: pbx CDR StartTime 2025-04-23 20:21:05 - End Time 2025-04-23 23:21:05 [2025-04-23 23:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975594', 'tblTempUsageDetail_20' ) start [2025-04-23 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975594', 'tblTempUsageDetail_20' ) end [2025-04-23 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975594', 'tblTempVendorCDR_20' ) start [2025-04-23 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975594', 'tblTempVendorCDR_20' ) end [2025-04-23 23:21:18] Production.INFO: ProcessCDR(1,14975594,1,1,2) [2025-04-23 23:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975594', 'tblTempUsageDetail_20' ) start [2025-04-23 23:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975594', 'tblTempUsageDetail_20' ) end [2025-04-23 23:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 23:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 23:21:21] Production.INFO: ==6770== Releasing lock... [2025-04-23 23:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 23:21:21] Production.INFO: 36 MB #Memory Used# [2025-04-23 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 20:22:05 [end_date_ymd] => 2025-04-23 23:22:05 [RateCDR] => 1 ) [2025-04-23 23:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 20:22:05' and `end` < '2025-04-23 23:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 23:22:17] Production.INFO: count ==1002 [2025-04-23 23:22:18] Production.ERROR: pbx CDR StartTime 2025-04-23 20:22:05 - End Time 2025-04-23 23:22:05 [2025-04-23 23:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975599', 'tblTempUsageDetail_20' ) start [2025-04-23 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975599', 'tblTempUsageDetail_20' ) end [2025-04-23 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975599', 'tblTempVendorCDR_20' ) start [2025-04-23 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975599', 'tblTempVendorCDR_20' ) end [2025-04-23 23:22:18] Production.INFO: ProcessCDR(1,14975599,1,1,2) [2025-04-23 23:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975599', 'tblTempUsageDetail_20' ) start [2025-04-23 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975599', 'tblTempUsageDetail_20' ) end [2025-04-23 23:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 23:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 23:22:21] Production.INFO: ==6845== Releasing lock... [2025-04-23 23:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 23:22:21] Production.INFO: 36.25 MB #Memory Used# [2025-04-23 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 20:23:05 [end_date_ymd] => 2025-04-23 23:23:05 [RateCDR] => 1 ) [2025-04-23 23:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 20:23:05' and `end` < '2025-04-23 23:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 23:23:18] Production.INFO: count ==999 [2025-04-23 23:23:18] Production.ERROR: pbx CDR StartTime 2025-04-23 20:23:05 - End Time 2025-04-23 23:23:05 [2025-04-23 23:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975604', 'tblTempUsageDetail_20' ) start [2025-04-23 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975604', 'tblTempUsageDetail_20' ) end [2025-04-23 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975604', 'tblTempVendorCDR_20' ) start [2025-04-23 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975604', 'tblTempVendorCDR_20' ) end [2025-04-23 23:23:18] Production.INFO: ProcessCDR(1,14975604,1,1,2) [2025-04-23 23:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975604', 'tblTempUsageDetail_20' ) start [2025-04-23 23:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975604', 'tblTempUsageDetail_20' ) end [2025-04-23 23:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 23:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 23:23:22] Production.INFO: ==6925== Releasing lock... [2025-04-23 23:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 23:23:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-23 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 20:24:05 [end_date_ymd] => 2025-04-23 23:24:05 [RateCDR] => 1 ) [2025-04-23 23:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 20:24:05' and `end` < '2025-04-23 23:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 23:24:18] Production.INFO: count ==995 [2025-04-23 23:24:18] Production.ERROR: pbx CDR StartTime 2025-04-23 20:24:05 - End Time 2025-04-23 23:24:05 [2025-04-23 23:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975609', 'tblTempUsageDetail_20' ) start [2025-04-23 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975609', 'tblTempUsageDetail_20' ) end [2025-04-23 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975609', 'tblTempVendorCDR_20' ) start [2025-04-23 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975609', 'tblTempVendorCDR_20' ) end [2025-04-23 23:24:18] Production.INFO: ProcessCDR(1,14975609,1,1,2) [2025-04-23 23:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975609', 'tblTempUsageDetail_20' ) start [2025-04-23 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975609', 'tblTempUsageDetail_20' ) end [2025-04-23 23:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 23:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 23:24:21] Production.INFO: ==7004== Releasing lock... [2025-04-23 23:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 23:24:21] Production.INFO: 35.75 MB #Memory Used# [2025-04-23 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 20:25:05 [end_date_ymd] => 2025-04-23 23:25:05 [RateCDR] => 1 ) [2025-04-23 23:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 20:25:05' and `end` < '2025-04-23 23:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 23:25:18] Production.INFO: count ==993 [2025-04-23 23:25:18] Production.ERROR: pbx CDR StartTime 2025-04-23 20:25:05 - End Time 2025-04-23 23:25:05 [2025-04-23 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975614', 'tblTempUsageDetail_20' ) start [2025-04-23 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975614', 'tblTempUsageDetail_20' ) end [2025-04-23 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975614', 'tblTempVendorCDR_20' ) start [2025-04-23 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975614', 'tblTempVendorCDR_20' ) end [2025-04-23 23:25:18] Production.INFO: ProcessCDR(1,14975614,1,1,2) [2025-04-23 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975614', 'tblTempUsageDetail_20' ) start [2025-04-23 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975614', 'tblTempUsageDetail_20' ) end [2025-04-23 23:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 23:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 23:25:21] Production.INFO: ==7080== Releasing lock... [2025-04-23 23:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 23:25:21] Production.INFO: 36 MB #Memory Used# [2025-04-23 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 20:26:05 [end_date_ymd] => 2025-04-23 23:26:05 [RateCDR] => 1 ) [2025-04-23 23:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 20:26:05' and `end` < '2025-04-23 23:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 23:26:18] Production.INFO: count ==992 [2025-04-23 23:26:18] Production.ERROR: pbx CDR StartTime 2025-04-23 20:26:05 - End Time 2025-04-23 23:26:05 [2025-04-23 23:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975619', 'tblTempUsageDetail_20' ) start [2025-04-23 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975619', 'tblTempUsageDetail_20' ) end [2025-04-23 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975619', 'tblTempVendorCDR_20' ) start [2025-04-23 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975619', 'tblTempVendorCDR_20' ) end [2025-04-23 23:26:18] Production.INFO: ProcessCDR(1,14975619,1,1,2) [2025-04-23 23:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975619', 'tblTempUsageDetail_20' ) start [2025-04-23 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975619', 'tblTempUsageDetail_20' ) end [2025-04-23 23:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 23:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 23:26:21] Production.INFO: ==7161== Releasing lock... [2025-04-23 23:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 23:26:21] Production.INFO: 36.25 MB #Memory Used# [2025-04-23 23:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 20:27:06 [end_date_ymd] => 2025-04-23 23:27:06 [RateCDR] => 1 ) [2025-04-23 23:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 20:27:06' and `end` < '2025-04-23 23:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 23:27:19] Production.INFO: count ==989 [2025-04-23 23:27:19] Production.ERROR: pbx CDR StartTime 2025-04-23 20:27:06 - End Time 2025-04-23 23:27:06 [2025-04-23 23:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975624', 'tblTempUsageDetail_20' ) start [2025-04-23 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975624', 'tblTempUsageDetail_20' ) end [2025-04-23 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975624', 'tblTempVendorCDR_20' ) start [2025-04-23 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975624', 'tblTempVendorCDR_20' ) end [2025-04-23 23:27:19] Production.INFO: ProcessCDR(1,14975624,1,1,2) [2025-04-23 23:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975624', 'tblTempUsageDetail_20' ) start [2025-04-23 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975624', 'tblTempUsageDetail_20' ) end [2025-04-23 23:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 23:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 23:27:22] Production.INFO: ==7277== Releasing lock... [2025-04-23 23:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 23:27:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-23 23:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 20:28:04 [end_date_ymd] => 2025-04-23 23:28:04 [RateCDR] => 1 ) [2025-04-23 23:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 20:28:04' and `end` < '2025-04-23 23:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 23:28:17] Production.INFO: count ==991 [2025-04-23 23:28:17] Production.ERROR: pbx CDR StartTime 2025-04-23 20:28:04 - End Time 2025-04-23 23:28:04 [2025-04-23 23:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975629', 'tblTempUsageDetail_20' ) start [2025-04-23 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975629', 'tblTempUsageDetail_20' ) end [2025-04-23 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975629', 'tblTempVendorCDR_20' ) start [2025-04-23 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975629', 'tblTempVendorCDR_20' ) end [2025-04-23 23:28:17] Production.INFO: ProcessCDR(1,14975629,1,1,2) [2025-04-23 23:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975629', 'tblTempUsageDetail_20' ) start [2025-04-23 23:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975629', 'tblTempUsageDetail_20' ) end [2025-04-23 23:28:20] Production.ERROR: pbx prc_insertCDR start [2025-04-23 23:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 23:28:21] Production.INFO: ==7355== Releasing lock... [2025-04-23 23:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 23:28:21] Production.INFO: 35.75 MB #Memory Used# [2025-04-23 23:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 20:29:06 [end_date_ymd] => 2025-04-23 23:29:06 [RateCDR] => 1 ) [2025-04-23 23:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 20:29:06' and `end` < '2025-04-23 23:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 23:29:18] Production.INFO: count ==991 [2025-04-23 23:29:19] Production.ERROR: pbx CDR StartTime 2025-04-23 20:29:06 - End Time 2025-04-23 23:29:06 [2025-04-23 23:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975634', 'tblTempUsageDetail_20' ) start [2025-04-23 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975634', 'tblTempUsageDetail_20' ) end [2025-04-23 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975634', 'tblTempVendorCDR_20' ) start [2025-04-23 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975634', 'tblTempVendorCDR_20' ) end [2025-04-23 23:29:19] Production.INFO: ProcessCDR(1,14975634,1,1,2) [2025-04-23 23:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975634', 'tblTempUsageDetail_20' ) start [2025-04-23 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975634', 'tblTempUsageDetail_20' ) end [2025-04-23 23:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 23:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 23:29:22] Production.INFO: ==7434== Releasing lock... [2025-04-23 23:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 23:29:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-23 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 20:30:06 [end_date_ymd] => 2025-04-23 23:30:06 [RateCDR] => 1 ) [2025-04-23 23:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 20:30:06' and `end` < '2025-04-23 23:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 23:30:19] Production.INFO: count ==993 [2025-04-23 23:30:19] Production.ERROR: pbx CDR StartTime 2025-04-23 20:30:06 - End Time 2025-04-23 23:30:06 [2025-04-23 23:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975640', 'tblTempUsageDetail_20' ) start [2025-04-23 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975640', 'tblTempUsageDetail_20' ) end [2025-04-23 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975640', 'tblTempVendorCDR_20' ) start [2025-04-23 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975640', 'tblTempVendorCDR_20' ) end [2025-04-23 23:30:19] Production.INFO: ProcessCDR(1,14975640,1,1,2) [2025-04-23 23:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975640', 'tblTempUsageDetail_20' ) start [2025-04-23 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975640', 'tblTempUsageDetail_20' ) end [2025-04-23 23:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 23:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 23:30:22] Production.INFO: ==7511== Releasing lock... [2025-04-23 23:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 23:30:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-23 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 20:31:05 [end_date_ymd] => 2025-04-23 23:31:05 [RateCDR] => 1 ) [2025-04-23 23:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 20:31:05' and `end` < '2025-04-23 23:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 23:31:17] Production.INFO: count ==986 [2025-04-23 23:31:18] Production.ERROR: pbx CDR StartTime 2025-04-23 20:31:05 - End Time 2025-04-23 23:31:05 [2025-04-23 23:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975645', 'tblTempUsageDetail_20' ) start [2025-04-23 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975645', 'tblTempUsageDetail_20' ) end [2025-04-23 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975645', 'tblTempVendorCDR_20' ) start [2025-04-23 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975645', 'tblTempVendorCDR_20' ) end [2025-04-23 23:31:18] Production.INFO: ProcessCDR(1,14975645,1,1,2) [2025-04-23 23:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975645', 'tblTempUsageDetail_20' ) start [2025-04-23 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975645', 'tblTempUsageDetail_20' ) end [2025-04-23 23:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 23:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 23:31:21] Production.INFO: ==7582== Releasing lock... [2025-04-23 23:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 23:31:21] Production.INFO: 35.75 MB #Memory Used# [2025-04-23 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 20:32:05 [end_date_ymd] => 2025-04-23 23:32:05 [RateCDR] => 1 ) [2025-04-23 23:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 20:32:05' and `end` < '2025-04-23 23:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 23:32:18] Production.INFO: count ==989 [2025-04-23 23:32:19] Production.ERROR: pbx CDR StartTime 2025-04-23 20:32:05 - End Time 2025-04-23 23:32:05 [2025-04-23 23:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975650', 'tblTempUsageDetail_20' ) start [2025-04-23 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975650', 'tblTempUsageDetail_20' ) end [2025-04-23 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975650', 'tblTempVendorCDR_20' ) start [2025-04-23 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975650', 'tblTempVendorCDR_20' ) end [2025-04-23 23:32:19] Production.INFO: ProcessCDR(1,14975650,1,1,2) [2025-04-23 23:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975650', 'tblTempUsageDetail_20' ) start [2025-04-23 23:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975650', 'tblTempUsageDetail_20' ) end [2025-04-23 23:32:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 23:32:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 23:32:23] Production.INFO: ==7658== Releasing lock... [2025-04-23 23:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 23:32:23] Production.INFO: 36 MB #Memory Used# [2025-04-23 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 20:33:05 [end_date_ymd] => 2025-04-23 23:33:05 [RateCDR] => 1 ) [2025-04-23 23:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 20:33:05' and `end` < '2025-04-23 23:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 23:33:18] Production.INFO: count ==992 [2025-04-23 23:33:18] Production.ERROR: pbx CDR StartTime 2025-04-23 20:33:05 - End Time 2025-04-23 23:33:05 [2025-04-23 23:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975655', 'tblTempUsageDetail_20' ) start [2025-04-23 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975655', 'tblTempUsageDetail_20' ) end [2025-04-23 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975655', 'tblTempVendorCDR_20' ) start [2025-04-23 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975655', 'tblTempVendorCDR_20' ) end [2025-04-23 23:33:18] Production.INFO: ProcessCDR(1,14975655,1,1,2) [2025-04-23 23:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975655', 'tblTempUsageDetail_20' ) start [2025-04-23 23:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975655', 'tblTempUsageDetail_20' ) end [2025-04-23 23:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 23:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 23:33:23] Production.INFO: ==7739== Releasing lock... [2025-04-23 23:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 23:33:23] Production.INFO: 35.75 MB #Memory Used# [2025-04-23 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 20:34:05 [end_date_ymd] => 2025-04-23 23:34:05 [RateCDR] => 1 ) [2025-04-23 23:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 20:34:05' and `end` < '2025-04-23 23:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 23:34:17] Production.INFO: count ==996 [2025-04-23 23:34:18] Production.ERROR: pbx CDR StartTime 2025-04-23 20:34:05 - End Time 2025-04-23 23:34:05 [2025-04-23 23:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975660', 'tblTempUsageDetail_20' ) start [2025-04-23 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975660', 'tblTempUsageDetail_20' ) end [2025-04-23 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975660', 'tblTempVendorCDR_20' ) start [2025-04-23 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975660', 'tblTempVendorCDR_20' ) end [2025-04-23 23:34:18] Production.INFO: ProcessCDR(1,14975660,1,1,2) [2025-04-23 23:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975660', 'tblTempUsageDetail_20' ) start [2025-04-23 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975660', 'tblTempUsageDetail_20' ) end [2025-04-23 23:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 23:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 23:34:21] Production.INFO: ==7815== Releasing lock... [2025-04-23 23:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 23:34:21] Production.INFO: 36.25 MB #Memory Used# [2025-04-23 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 20:35:05 [end_date_ymd] => 2025-04-23 23:35:05 [RateCDR] => 1 ) [2025-04-23 23:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 20:35:05' and `end` < '2025-04-23 23:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 23:35:17] Production.INFO: count ==994 [2025-04-23 23:35:18] Production.ERROR: pbx CDR StartTime 2025-04-23 20:35:05 - End Time 2025-04-23 23:35:05 [2025-04-23 23:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975665', 'tblTempUsageDetail_20' ) start [2025-04-23 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975665', 'tblTempUsageDetail_20' ) end [2025-04-23 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975665', 'tblTempVendorCDR_20' ) start [2025-04-23 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975665', 'tblTempVendorCDR_20' ) end [2025-04-23 23:35:18] Production.INFO: ProcessCDR(1,14975665,1,1,2) [2025-04-23 23:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975665', 'tblTempUsageDetail_20' ) start [2025-04-23 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975665', 'tblTempUsageDetail_20' ) end [2025-04-23 23:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 23:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 23:35:21] Production.INFO: ==7887== Releasing lock... [2025-04-23 23:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 23:35:21] Production.INFO: 36 MB #Memory Used# [2025-04-23 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 20:36:05 [end_date_ymd] => 2025-04-23 23:36:05 [RateCDR] => 1 ) [2025-04-23 23:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 20:36:05' and `end` < '2025-04-23 23:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 23:36:18] Production.INFO: count ==988 [2025-04-23 23:36:18] Production.ERROR: pbx CDR StartTime 2025-04-23 20:36:05 - End Time 2025-04-23 23:36:05 [2025-04-23 23:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975670', 'tblTempUsageDetail_20' ) start [2025-04-23 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975670', 'tblTempUsageDetail_20' ) end [2025-04-23 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975670', 'tblTempVendorCDR_20' ) start [2025-04-23 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975670', 'tblTempVendorCDR_20' ) end [2025-04-23 23:36:18] Production.INFO: ProcessCDR(1,14975670,1,1,2) [2025-04-23 23:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975670', 'tblTempUsageDetail_20' ) start [2025-04-23 23:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975670', 'tblTempUsageDetail_20' ) end [2025-04-23 23:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 23:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 23:36:21] Production.INFO: ==7961== Releasing lock... [2025-04-23 23:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 23:36:21] Production.INFO: 36 MB #Memory Used# [2025-04-23 23:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 20:37:04 [end_date_ymd] => 2025-04-23 23:37:04 [RateCDR] => 1 ) [2025-04-23 23:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 20:37:04' and `end` < '2025-04-23 23:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 23:37:17] Production.INFO: count ==990 [2025-04-23 23:37:17] Production.ERROR: pbx CDR StartTime 2025-04-23 20:37:04 - End Time 2025-04-23 23:37:04 [2025-04-23 23:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975675', 'tblTempUsageDetail_20' ) start [2025-04-23 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975675', 'tblTempUsageDetail_20' ) end [2025-04-23 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975675', 'tblTempVendorCDR_20' ) start [2025-04-23 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975675', 'tblTempVendorCDR_20' ) end [2025-04-23 23:37:17] Production.INFO: ProcessCDR(1,14975675,1,1,2) [2025-04-23 23:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975675', 'tblTempUsageDetail_20' ) start [2025-04-23 23:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975675', 'tblTempUsageDetail_20' ) end [2025-04-23 23:37:20] Production.ERROR: pbx prc_insertCDR start [2025-04-23 23:37:20] Production.ERROR: pbx prc_insertCDR end [2025-04-23 23:37:20] Production.INFO: ==8039== Releasing lock... [2025-04-23 23:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 23:37:20] Production.INFO: 36.25 MB #Memory Used# [2025-04-23 23:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 20:38:05 [end_date_ymd] => 2025-04-23 23:38:05 [RateCDR] => 1 ) [2025-04-23 23:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 20:38:05' and `end` < '2025-04-23 23:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 23:38:17] Production.INFO: count ==983 [2025-04-23 23:38:18] Production.ERROR: pbx CDR StartTime 2025-04-23 20:38:05 - End Time 2025-04-23 23:38:05 [2025-04-23 23:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975680', 'tblTempUsageDetail_20' ) start [2025-04-23 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975680', 'tblTempUsageDetail_20' ) end [2025-04-23 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975680', 'tblTempVendorCDR_20' ) start [2025-04-23 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975680', 'tblTempVendorCDR_20' ) end [2025-04-23 23:38:18] Production.INFO: ProcessCDR(1,14975680,1,1,2) [2025-04-23 23:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975680', 'tblTempUsageDetail_20' ) start [2025-04-23 23:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975680', 'tblTempUsageDetail_20' ) end [2025-04-23 23:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 23:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 23:38:21] Production.INFO: ==8111== Releasing lock... [2025-04-23 23:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 23:38:21] Production.INFO: 35.75 MB #Memory Used# [2025-04-23 23:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 20:39:06 [end_date_ymd] => 2025-04-23 23:39:06 [RateCDR] => 1 ) [2025-04-23 23:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 20:39:06' and `end` < '2025-04-23 23:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 23:39:18] Production.INFO: count ==976 [2025-04-23 23:39:18] Production.ERROR: pbx CDR StartTime 2025-04-23 20:39:06 - End Time 2025-04-23 23:39:06 [2025-04-23 23:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975685', 'tblTempUsageDetail_20' ) start [2025-04-23 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975685', 'tblTempUsageDetail_20' ) end [2025-04-23 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975685', 'tblTempVendorCDR_20' ) start [2025-04-23 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975685', 'tblTempVendorCDR_20' ) end [2025-04-23 23:39:18] Production.INFO: ProcessCDR(1,14975685,1,1,2) [2025-04-23 23:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975685', 'tblTempUsageDetail_20' ) start [2025-04-23 23:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975685', 'tblTempUsageDetail_20' ) end [2025-04-23 23:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 23:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 23:39:22] Production.INFO: ==8206== Releasing lock... [2025-04-23 23:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 23:39:22] Production.INFO: 36 MB #Memory Used# [2025-04-23 23:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 20:40:05 [end_date_ymd] => 2025-04-23 23:40:05 [RateCDR] => 1 ) [2025-04-23 23:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 20:40:05' and `end` < '2025-04-23 23:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 23:40:18] Production.INFO: count ==966 [2025-04-23 23:40:18] Production.ERROR: pbx CDR StartTime 2025-04-23 20:40:05 - End Time 2025-04-23 23:40:05 [2025-04-23 23:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975690', 'tblTempUsageDetail_20' ) start [2025-04-23 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975690', 'tblTempUsageDetail_20' ) end [2025-04-23 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975690', 'tblTempVendorCDR_20' ) start [2025-04-23 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975690', 'tblTempVendorCDR_20' ) end [2025-04-23 23:40:19] Production.INFO: ProcessCDR(1,14975690,1,1,2) [2025-04-23 23:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975690', 'tblTempUsageDetail_20' ) start [2025-04-23 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975690', 'tblTempUsageDetail_20' ) end [2025-04-23 23:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 23:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 23:40:22] Production.INFO: ==8291== Releasing lock... [2025-04-23 23:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 23:40:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-23 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 20:41:05 [end_date_ymd] => 2025-04-23 23:41:05 [RateCDR] => 1 ) [2025-04-23 23:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 20:41:05' and `end` < '2025-04-23 23:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 23:41:18] Production.INFO: count ==919 [2025-04-23 23:41:18] Production.ERROR: pbx CDR StartTime 2025-04-23 20:41:05 - End Time 2025-04-23 23:41:05 [2025-04-23 23:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975696', 'tblTempUsageDetail_20' ) start [2025-04-23 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975696', 'tblTempUsageDetail_20' ) end [2025-04-23 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975696', 'tblTempVendorCDR_20' ) start [2025-04-23 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975696', 'tblTempVendorCDR_20' ) end [2025-04-23 23:41:18] Production.INFO: ProcessCDR(1,14975696,1,1,2) [2025-04-23 23:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975696', 'tblTempUsageDetail_20' ) start [2025-04-23 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975696', 'tblTempUsageDetail_20' ) end [2025-04-23 23:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 23:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 23:41:22] Production.INFO: ==8367== Releasing lock... [2025-04-23 23:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 23:41:22] Production.INFO: 35.25 MB #Memory Used# [2025-04-23 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 20:42:05 [end_date_ymd] => 2025-04-23 23:42:05 [RateCDR] => 1 ) [2025-04-23 23:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 20:42:05' and `end` < '2025-04-23 23:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 23:42:17] Production.INFO: count ==915 [2025-04-23 23:42:17] Production.ERROR: pbx CDR StartTime 2025-04-23 20:42:05 - End Time 2025-04-23 23:42:05 [2025-04-23 23:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 23:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975701', 'tblTempUsageDetail_20' ) start [2025-04-23 23:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975701', 'tblTempUsageDetail_20' ) end [2025-04-23 23:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975701', 'tblTempVendorCDR_20' ) start [2025-04-23 23:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975701', 'tblTempVendorCDR_20' ) end [2025-04-23 23:42:17] Production.INFO: ProcessCDR(1,14975701,1,1,2) [2025-04-23 23:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975701', 'tblTempUsageDetail_20' ) start [2025-04-23 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975701', 'tblTempUsageDetail_20' ) end [2025-04-23 23:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 23:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 23:42:21] Production.INFO: ==8487== Releasing lock... [2025-04-23 23:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 23:42:21] Production.INFO: 35 MB #Memory Used# [2025-04-23 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 20:43:05 [end_date_ymd] => 2025-04-23 23:43:05 [RateCDR] => 1 ) [2025-04-23 23:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 20:43:05' and `end` < '2025-04-23 23:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 23:43:18] Production.INFO: count ==913 [2025-04-23 23:43:18] Production.ERROR: pbx CDR StartTime 2025-04-23 20:43:05 - End Time 2025-04-23 23:43:05 [2025-04-23 23:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975706', 'tblTempUsageDetail_20' ) start [2025-04-23 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975706', 'tblTempUsageDetail_20' ) end [2025-04-23 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975706', 'tblTempVendorCDR_20' ) start [2025-04-23 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975706', 'tblTempVendorCDR_20' ) end [2025-04-23 23:43:18] Production.INFO: ProcessCDR(1,14975706,1,1,2) [2025-04-23 23:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975706', 'tblTempUsageDetail_20' ) start [2025-04-23 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975706', 'tblTempUsageDetail_20' ) end [2025-04-23 23:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 23:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 23:43:21] Production.INFO: ==8564== Releasing lock... [2025-04-23 23:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 23:43:21] Production.INFO: 35 MB #Memory Used# [2025-04-23 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 20:44:05 [end_date_ymd] => 2025-04-23 23:44:05 [RateCDR] => 1 ) [2025-04-23 23:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 20:44:05' and `end` < '2025-04-23 23:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 23:44:18] Production.INFO: count ==911 [2025-04-23 23:44:18] Production.ERROR: pbx CDR StartTime 2025-04-23 20:44:05 - End Time 2025-04-23 23:44:05 [2025-04-23 23:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975711', 'tblTempUsageDetail_20' ) start [2025-04-23 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975711', 'tblTempUsageDetail_20' ) end [2025-04-23 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975711', 'tblTempVendorCDR_20' ) start [2025-04-23 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975711', 'tblTempVendorCDR_20' ) end [2025-04-23 23:44:18] Production.INFO: ProcessCDR(1,14975711,1,1,2) [2025-04-23 23:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975711', 'tblTempUsageDetail_20' ) start [2025-04-23 23:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975711', 'tblTempUsageDetail_20' ) end [2025-04-23 23:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 23:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 23:44:23] Production.INFO: ==8638== Releasing lock... [2025-04-23 23:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 23:44:23] Production.INFO: 34.75 MB #Memory Used# [2025-04-23 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 20:45:05 [end_date_ymd] => 2025-04-23 23:45:05 [RateCDR] => 1 ) [2025-04-23 23:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 20:45:05' and `end` < '2025-04-23 23:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 23:45:18] Production.INFO: count ==912 [2025-04-23 23:45:18] Production.ERROR: pbx CDR StartTime 2025-04-23 20:45:05 - End Time 2025-04-23 23:45:05 [2025-04-23 23:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975716', 'tblTempUsageDetail_20' ) start [2025-04-23 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975716', 'tblTempUsageDetail_20' ) end [2025-04-23 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975716', 'tblTempVendorCDR_20' ) start [2025-04-23 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975716', 'tblTempVendorCDR_20' ) end [2025-04-23 23:45:18] Production.INFO: ProcessCDR(1,14975716,1,1,2) [2025-04-23 23:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975716', 'tblTempUsageDetail_20' ) start [2025-04-23 23:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975716', 'tblTempUsageDetail_20' ) end [2025-04-23 23:45:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 23:45:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 23:45:23] Production.INFO: ==8719== Releasing lock... [2025-04-23 23:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 23:45:23] Production.INFO: 34.75 MB #Memory Used# [2025-04-23 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 20:46:05 [end_date_ymd] => 2025-04-23 23:46:05 [RateCDR] => 1 ) [2025-04-23 23:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 20:46:05' and `end` < '2025-04-23 23:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 23:46:17] Production.INFO: count ==910 [2025-04-23 23:46:17] Production.ERROR: pbx CDR StartTime 2025-04-23 20:46:05 - End Time 2025-04-23 23:46:05 [2025-04-23 23:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975721', 'tblTempUsageDetail_20' ) start [2025-04-23 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975721', 'tblTempUsageDetail_20' ) end [2025-04-23 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975721', 'tblTempVendorCDR_20' ) start [2025-04-23 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975721', 'tblTempVendorCDR_20' ) end [2025-04-23 23:46:17] Production.INFO: ProcessCDR(1,14975721,1,1,2) [2025-04-23 23:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975721', 'tblTempUsageDetail_20' ) start [2025-04-23 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975721', 'tblTempUsageDetail_20' ) end [2025-04-23 23:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 23:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 23:46:21] Production.INFO: ==8788== Releasing lock... [2025-04-23 23:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 23:46:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-23 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 20:47:05 [end_date_ymd] => 2025-04-23 23:47:05 [RateCDR] => 1 ) [2025-04-23 23:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 20:47:05' and `end` < '2025-04-23 23:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 23:47:18] Production.INFO: count ==906 [2025-04-23 23:47:18] Production.ERROR: pbx CDR StartTime 2025-04-23 20:47:05 - End Time 2025-04-23 23:47:05 [2025-04-23 23:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975726', 'tblTempUsageDetail_20' ) start [2025-04-23 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975726', 'tblTempUsageDetail_20' ) end [2025-04-23 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975726', 'tblTempVendorCDR_20' ) start [2025-04-23 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975726', 'tblTempVendorCDR_20' ) end [2025-04-23 23:47:18] Production.INFO: ProcessCDR(1,14975726,1,1,2) [2025-04-23 23:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975726', 'tblTempUsageDetail_20' ) start [2025-04-23 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975726', 'tblTempUsageDetail_20' ) end [2025-04-23 23:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 23:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 23:47:21] Production.INFO: ==8864== Releasing lock... [2025-04-23 23:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 23:47:21] Production.INFO: 35.25 MB #Memory Used# [2025-04-23 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 20:48:05 [end_date_ymd] => 2025-04-23 23:48:05 [RateCDR] => 1 ) [2025-04-23 23:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 20:48:05' and `end` < '2025-04-23 23:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 23:48:18] Production.INFO: count ==902 [2025-04-23 23:48:18] Production.ERROR: pbx CDR StartTime 2025-04-23 20:48:05 - End Time 2025-04-23 23:48:05 [2025-04-23 23:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975731', 'tblTempUsageDetail_20' ) start [2025-04-23 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975731', 'tblTempUsageDetail_20' ) end [2025-04-23 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975731', 'tblTempVendorCDR_20' ) start [2025-04-23 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975731', 'tblTempVendorCDR_20' ) end [2025-04-23 23:48:18] Production.INFO: ProcessCDR(1,14975731,1,1,2) [2025-04-23 23:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975731', 'tblTempUsageDetail_20' ) start [2025-04-23 23:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975731', 'tblTempUsageDetail_20' ) end [2025-04-23 23:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 23:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 23:48:21] Production.INFO: ==8944== Releasing lock... [2025-04-23 23:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 23:48:21] Production.INFO: 35.5 MB #Memory Used# [2025-04-23 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 20:49:05 [end_date_ymd] => 2025-04-23 23:49:05 [RateCDR] => 1 ) [2025-04-23 23:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 20:49:05' and `end` < '2025-04-23 23:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 23:49:18] Production.INFO: count ==901 [2025-04-23 23:49:18] Production.ERROR: pbx CDR StartTime 2025-04-23 20:49:05 - End Time 2025-04-23 23:49:05 [2025-04-23 23:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975736', 'tblTempUsageDetail_20' ) start [2025-04-23 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975736', 'tblTempUsageDetail_20' ) end [2025-04-23 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975736', 'tblTempVendorCDR_20' ) start [2025-04-23 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975736', 'tblTempVendorCDR_20' ) end [2025-04-23 23:49:18] Production.INFO: ProcessCDR(1,14975736,1,1,2) [2025-04-23 23:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975736', 'tblTempUsageDetail_20' ) start [2025-04-23 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975736', 'tblTempUsageDetail_20' ) end [2025-04-23 23:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 23:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 23:49:22] Production.INFO: ==9020== Releasing lock... [2025-04-23 23:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 23:49:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-23 23:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 20:50:06 [end_date_ymd] => 2025-04-23 23:50:06 [RateCDR] => 1 ) [2025-04-23 23:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 20:50:06' and `end` < '2025-04-23 23:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 23:50:18] Production.INFO: count ==904 [2025-04-23 23:50:19] Production.ERROR: pbx CDR StartTime 2025-04-23 20:50:06 - End Time 2025-04-23 23:50:06 [2025-04-23 23:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975742', 'tblTempUsageDetail_20' ) start [2025-04-23 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975742', 'tblTempUsageDetail_20' ) end [2025-04-23 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975742', 'tblTempVendorCDR_20' ) start [2025-04-23 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975742', 'tblTempVendorCDR_20' ) end [2025-04-23 23:50:19] Production.INFO: ProcessCDR(1,14975742,1,1,2) [2025-04-23 23:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975742', 'tblTempUsageDetail_20' ) start [2025-04-23 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975742', 'tblTempUsageDetail_20' ) end [2025-04-23 23:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 23:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 23:50:22] Production.INFO: ==9096== Releasing lock... [2025-04-23 23:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 23:50:22] Production.INFO: 35.5 MB #Memory Used# [2025-04-23 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 20:51:05 [end_date_ymd] => 2025-04-23 23:51:05 [RateCDR] => 1 ) [2025-04-23 23:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 20:51:05' and `end` < '2025-04-23 23:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 23:51:18] Production.INFO: count ==884 [2025-04-23 23:51:18] Production.ERROR: pbx CDR StartTime 2025-04-23 20:51:05 - End Time 2025-04-23 23:51:05 [2025-04-23 23:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975747', 'tblTempUsageDetail_20' ) start [2025-04-23 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975747', 'tblTempUsageDetail_20' ) end [2025-04-23 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975747', 'tblTempVendorCDR_20' ) start [2025-04-23 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975747', 'tblTempVendorCDR_20' ) end [2025-04-23 23:51:18] Production.INFO: ProcessCDR(1,14975747,1,1,2) [2025-04-23 23:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975747', 'tblTempUsageDetail_20' ) start [2025-04-23 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975747', 'tblTempUsageDetail_20' ) end [2025-04-23 23:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 23:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 23:51:21] Production.INFO: ==9171== Releasing lock... [2025-04-23 23:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 23:51:21] Production.INFO: 35 MB #Memory Used# [2025-04-23 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 20:52:05 [end_date_ymd] => 2025-04-23 23:52:05 [RateCDR] => 1 ) [2025-04-23 23:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 20:52:05' and `end` < '2025-04-23 23:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 23:52:18] Production.INFO: count ==882 [2025-04-23 23:52:18] Production.ERROR: pbx CDR StartTime 2025-04-23 20:52:05 - End Time 2025-04-23 23:52:05 [2025-04-23 23:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975752', 'tblTempUsageDetail_20' ) start [2025-04-23 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975752', 'tblTempUsageDetail_20' ) end [2025-04-23 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975752', 'tblTempVendorCDR_20' ) start [2025-04-23 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975752', 'tblTempVendorCDR_20' ) end [2025-04-23 23:52:18] Production.INFO: ProcessCDR(1,14975752,1,1,2) [2025-04-23 23:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975752', 'tblTempUsageDetail_20' ) start [2025-04-23 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975752', 'tblTempUsageDetail_20' ) end [2025-04-23 23:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 23:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 23:52:21] Production.INFO: ==9243== Releasing lock... [2025-04-23 23:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 23:52:21] Production.INFO: 35.25 MB #Memory Used# [2025-04-23 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 20:53:05 [end_date_ymd] => 2025-04-23 23:53:05 [RateCDR] => 1 ) [2025-04-23 23:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 20:53:05' and `end` < '2025-04-23 23:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 23:53:18] Production.INFO: count ==883 [2025-04-23 23:53:18] Production.ERROR: pbx CDR StartTime 2025-04-23 20:53:05 - End Time 2025-04-23 23:53:05 [2025-04-23 23:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975757', 'tblTempUsageDetail_20' ) start [2025-04-23 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975757', 'tblTempUsageDetail_20' ) end [2025-04-23 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975757', 'tblTempVendorCDR_20' ) start [2025-04-23 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975757', 'tblTempVendorCDR_20' ) end [2025-04-23 23:53:18] Production.INFO: ProcessCDR(1,14975757,1,1,2) [2025-04-23 23:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975757', 'tblTempUsageDetail_20' ) start [2025-04-23 23:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975757', 'tblTempUsageDetail_20' ) end [2025-04-23 23:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 23:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 23:53:23] Production.INFO: ==9333== Releasing lock... [2025-04-23 23:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 23:53:23] Production.INFO: 35 MB #Memory Used# [2025-04-23 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 20:54:05 [end_date_ymd] => 2025-04-23 23:54:05 [RateCDR] => 1 ) [2025-04-23 23:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 20:54:05' and `end` < '2025-04-23 23:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 23:54:18] Production.INFO: count ==884 [2025-04-23 23:54:18] Production.ERROR: pbx CDR StartTime 2025-04-23 20:54:05 - End Time 2025-04-23 23:54:05 [2025-04-23 23:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975762', 'tblTempUsageDetail_20' ) start [2025-04-23 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975762', 'tblTempUsageDetail_20' ) end [2025-04-23 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975762', 'tblTempVendorCDR_20' ) start [2025-04-23 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975762', 'tblTempVendorCDR_20' ) end [2025-04-23 23:54:18] Production.INFO: ProcessCDR(1,14975762,1,1,2) [2025-04-23 23:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975762', 'tblTempUsageDetail_20' ) start [2025-04-23 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975762', 'tblTempUsageDetail_20' ) end [2025-04-23 23:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 23:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 23:54:21] Production.INFO: ==9408== Releasing lock... [2025-04-23 23:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 23:54:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-23 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 20:55:05 [end_date_ymd] => 2025-04-23 23:55:05 [RateCDR] => 1 ) [2025-04-23 23:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 20:55:05' and `end` < '2025-04-23 23:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 23:55:18] Production.INFO: count ==882 [2025-04-23 23:55:18] Production.ERROR: pbx CDR StartTime 2025-04-23 20:55:05 - End Time 2025-04-23 23:55:05 [2025-04-23 23:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975767', 'tblTempUsageDetail_20' ) start [2025-04-23 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975767', 'tblTempUsageDetail_20' ) end [2025-04-23 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975767', 'tblTempVendorCDR_20' ) start [2025-04-23 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975767', 'tblTempVendorCDR_20' ) end [2025-04-23 23:55:18] Production.INFO: ProcessCDR(1,14975767,1,1,2) [2025-04-23 23:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975767', 'tblTempUsageDetail_20' ) start [2025-04-23 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975767', 'tblTempUsageDetail_20' ) end [2025-04-23 23:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-23 23:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-23 23:55:22] Production.INFO: ==9488== Releasing lock... [2025-04-23 23:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 23:55:22] Production.INFO: 35.25 MB #Memory Used# [2025-04-23 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 20:56:05 [end_date_ymd] => 2025-04-23 23:56:05 [RateCDR] => 1 ) [2025-04-23 23:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 20:56:05' and `end` < '2025-04-23 23:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 23:56:17] Production.INFO: count ==879 [2025-04-23 23:56:18] Production.ERROR: pbx CDR StartTime 2025-04-23 20:56:05 - End Time 2025-04-23 23:56:05 [2025-04-23 23:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975772', 'tblTempUsageDetail_20' ) start [2025-04-23 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975772', 'tblTempUsageDetail_20' ) end [2025-04-23 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975772', 'tblTempVendorCDR_20' ) start [2025-04-23 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975772', 'tblTempVendorCDR_20' ) end [2025-04-23 23:56:18] Production.INFO: ProcessCDR(1,14975772,1,1,2) [2025-04-23 23:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975772', 'tblTempUsageDetail_20' ) start [2025-04-23 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975772', 'tblTempUsageDetail_20' ) end [2025-04-23 23:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 23:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 23:56:21] Production.INFO: ==9559== Releasing lock... [2025-04-23 23:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 23:56:21] Production.INFO: 35 MB #Memory Used# [2025-04-23 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 20:57:05 [end_date_ymd] => 2025-04-23 23:57:05 [RateCDR] => 1 ) [2025-04-23 23:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 20:57:05' and `end` < '2025-04-23 23:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 23:57:18] Production.INFO: count ==876 [2025-04-23 23:57:18] Production.ERROR: pbx CDR StartTime 2025-04-23 20:57:05 - End Time 2025-04-23 23:57:05 [2025-04-23 23:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975777', 'tblTempUsageDetail_20' ) start [2025-04-23 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975777', 'tblTempUsageDetail_20' ) end [2025-04-23 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975777', 'tblTempVendorCDR_20' ) start [2025-04-23 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975777', 'tblTempVendorCDR_20' ) end [2025-04-23 23:57:18] Production.INFO: ProcessCDR(1,14975777,1,1,2) [2025-04-23 23:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975777', 'tblTempUsageDetail_20' ) start [2025-04-23 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975777', 'tblTempUsageDetail_20' ) end [2025-04-23 23:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-23 23:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-23 23:57:21] Production.INFO: ==9630== Releasing lock... [2025-04-23 23:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 23:57:21] Production.INFO: 34.5 MB #Memory Used# [2025-04-23 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 20:58:05 [end_date_ymd] => 2025-04-23 23:58:05 [RateCDR] => 1 ) [2025-04-23 23:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 20:58:05' and `end` < '2025-04-23 23:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 23:58:18] Production.INFO: count ==878 [2025-04-23 23:58:18] Production.ERROR: pbx CDR StartTime 2025-04-23 20:58:05 - End Time 2025-04-23 23:58:05 [2025-04-23 23:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975782', 'tblTempUsageDetail_20' ) start [2025-04-23 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975782', 'tblTempUsageDetail_20' ) end [2025-04-23 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975782', 'tblTempVendorCDR_20' ) start [2025-04-23 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975782', 'tblTempVendorCDR_20' ) end [2025-04-23 23:58:18] Production.INFO: ProcessCDR(1,14975782,1,1,2) [2025-04-23 23:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975782', 'tblTempUsageDetail_20' ) start [2025-04-23 23:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975782', 'tblTempUsageDetail_20' ) end [2025-04-23 23:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 23:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 23:58:23] Production.INFO: ==9745== Releasing lock... [2025-04-23 23:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 23:58:23] Production.INFO: 34.75 MB #Memory Used# [2025-04-23 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-23 20:59:05 [end_date_ymd] => 2025-04-23 23:59:05 [RateCDR] => 1 ) [2025-04-23 23:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-23 20:59:05' and `end` < '2025-04-23 23:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-23 23:59:18] Production.INFO: count ==879 [2025-04-23 23:59:18] Production.ERROR: pbx CDR StartTime 2025-04-23 20:59:05 - End Time 2025-04-23 23:59:05 [2025-04-23 23:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-23 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975787', 'tblTempUsageDetail_20' ) start [2025-04-23 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14975787', 'tblTempUsageDetail_20' ) end [2025-04-23 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975787', 'tblTempVendorCDR_20' ) start [2025-04-23 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14975787', 'tblTempVendorCDR_20' ) end [2025-04-23 23:59:18] Production.INFO: ProcessCDR(1,14975787,1,1,2) [2025-04-23 23:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14975787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14975787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-23 23:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14975787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14975787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-23 23:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975787', 'tblTempUsageDetail_20' ) start [2025-04-23 23:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14975787', 'tblTempUsageDetail_20' ) end [2025-04-23 23:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-23 23:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-23 23:59:23] Production.INFO: ==9820== Releasing lock... [2025-04-23 23:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-23 23:59:23] Production.INFO: 35.25 MB #Memory Used#